|
|
@@ -5,32 +5,26 @@
|
|
|
:iconSize="iconSize" :phValue="phValue" :fanStatus="fanStatus"></VTypeTank>
|
|
|
<div class="valve_progress">
|
|
|
<!-- 上右 -->
|
|
|
- <div :style="valveProgressStyle" class="valve_progress1 rotate_270" v-if="valveNames[0]">
|
|
|
- <ValveProgress :iconSize="valveIconSize" :title="valveNames[0]" :rotateAngle="270" :pipeLength="205"
|
|
|
- :pipeLeftOffset="-47" :valveStatusArr="initValveStatusArr" progressType="steam"
|
|
|
- :pipeStatus="initPipeStatus" :pipeReverse="true" />
|
|
|
- </div>
|
|
|
+ <ValveProgress :iconSize="valveIconSize" :title="valveNames[0]" :rotateAngle="270" :pipeLength="205"
|
|
|
+ :pipeLeftOffset="-47" :valveStatusArr="initValveStatusArr" progressType="steam"
|
|
|
+ :pipeStatus="initPipeStatus" :pipeReverse="true" class="valve_progress1 rotate_270" />
|
|
|
<!-- 左 -->
|
|
|
- <div :style="valveProgressStyle" class="valve_progress2" v-if="valveNames[1]">
|
|
|
- <ValveProgress :iconSize="valveIconSize" :title="valveNames[1]" :pipeLength="200" :pipeLeftOffset="-60"
|
|
|
- :valveStatusArr="initValveStatusArr" progressType="steam" :pipeStatus="initPipeStatus" />
|
|
|
- </div>
|
|
|
+ <ValveProgress :iconSize="valveIconSize" :title="valveNames[1]" :pipeLength="200" :pipeLeftOffset="-60"
|
|
|
+ :valveStatusArr="initValveStatusArr" progressType="steam" :pipeStatus="initPipeStatus"
|
|
|
+ class="valve_progress2" />
|
|
|
<!-- 右 -->
|
|
|
- <div :style="valveProgressStyle" class="valve_progress3" v-if="valveNames[2]">
|
|
|
- <ValveProgress :iconSize="valveIconSize" :title="valveNames[2]" :pipeLength="185" :pipeLeftOffset="-45"
|
|
|
- :valveStatusArr="initValveStatusArr" progressType="steam" :pipeStatus="initPipeStatus" />
|
|
|
- </div>
|
|
|
+ <ValveProgress :iconSize="valveIconSize" :title="valveNames[2]" :pipeLength="185" :pipeLeftOffset="-45"
|
|
|
+ :valveStatusArr="initValveStatusArr" progressType="steam" :pipeStatus="initPipeStatus"
|
|
|
+ class="valve_progress3" />
|
|
|
<!-- 下 -->
|
|
|
- <div :style="valveProgressStyle" class="valve_progress4 rotate_270" v-if="valveNames[3]">
|
|
|
- <ValveProgress :iconSize="valveIconSize" :title="valveNames[3]" :pipeLength="200" :pipeLeftOffset="-40"
|
|
|
- :valveStatusArr="initValveStatusArr" progressType="steam" :pipeStatus="initPipeStatus"
|
|
|
- :rotateAngle="270" :pipeReverse="true" />
|
|
|
- </div>
|
|
|
+ <ValveProgress :iconSize="valveIconSize" :title="valveNames[3]" :pipeLength="200" :pipeLeftOffset="-40"
|
|
|
+ :valveStatusArr="initValveStatusArr" progressType="steam" :pipeStatus="initPipeStatus"
|
|
|
+ :rotateAngle="270" :pipeReverse="true" class="valve_progress4 rotate_270" />
|
|
|
</div>
|
|
|
<div class="pump_progress">
|
|
|
<!-- 右 -->
|
|
|
<PumpProgress :title="pumpNames[0]" :pumpDataArr="[1, 10]" :iconSize="iconSize * 0.4" :showPipe="true"
|
|
|
- :pipeType="steam" class="pump_progress1" v-if="pumpNames[0]" />
|
|
|
+ :pipeType="steam" class="pump_progress1" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -87,12 +81,13 @@ const valveNameArr = {
|
|
|
'V2006': ['', '', 'ACV2061', ''],
|
|
|
'V2008': ['ACV2072', '', 'ACV2070', ''],
|
|
|
'V2010': ['ACV2073', 'ACV2071', 'ACV2074', ''],
|
|
|
- 'V2011':['ACV2078','','',''],
|
|
|
- 'V2012':['','','ACV2082',''],
|
|
|
- 'V2013':['ACV2079','','ACV2077',''],
|
|
|
- 'S2008':['ACV2076','','',''],
|
|
|
- 'V2017':['','','ACV2086',''],
|
|
|
- 'V2015':['','','ACV2084',''],
|
|
|
+ 'V2011': ['ACV2078', '', '', ''],
|
|
|
+ 'V2012': ['', '', 'ACV2082', ''],
|
|
|
+ 'V2013': ['ACV2079', '', 'ACV2077', ''],
|
|
|
+ 'S2008': ['ACV2076', '', '', ''],
|
|
|
+ 'V2017': ['', '', 'ACV2086', ''],
|
|
|
+ 'V2015': ['', '', 'ACV2084', ''],
|
|
|
+ 'V6109': ['ACV6153', '', 'ACV6154', ''],
|
|
|
}
|
|
|
//泵名称映射表
|
|
|
const pumpNameArr = {
|
|
|
@@ -113,6 +108,7 @@ const pumpNameArr = {
|
|
|
'S2008': [''],
|
|
|
'V2017': ['P2023'],
|
|
|
'V2015': ['P2021'],
|
|
|
+ 'V6109': ['P6121'],
|
|
|
}
|
|
|
|
|
|
//阀门名称数组,根据罐名来匹配
|
|
|
@@ -141,19 +137,9 @@ const phValue = computed({
|
|
|
|
|
|
//阀门icon大小(罐子200-阀门50)
|
|
|
const valveIconSize = computed(() => {
|
|
|
- console.log('getFanStatus', props.fanStatus, typeof props.fanStatus)
|
|
|
-
|
|
|
return props.iconSize * 0.25;
|
|
|
});
|
|
|
|
|
|
-//阀门进度样式
|
|
|
-const valveProgressStyle = computed(() => {
|
|
|
- return {
|
|
|
- width: `${valveIconSize.value}px`,
|
|
|
- height: `${valveIconSize.value}px`,
|
|
|
- }
|
|
|
-});
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|