|
@@ -255,12 +255,16 @@
|
|
|
<tr style="width: 100px;">
|
|
|
<td class="title">光头</td>
|
|
|
<td>
|
|
|
- <div class="text1" style="margin-bottom: 8px;">{{ resultArr[0] && resultArr[0].itemname}}</div>
|
|
|
+ <div class="text1" style="margin-bottom: 8px;">
|
|
|
+ <el-tag style="margin-right: 10px;" size="small" type="warning">{{ resultArr[0] && resultArr[0].actuatorbrand }}</el-tag>
|
|
|
+ <span style="margin-bottom: 8px;">{{ resultArr[0] && resultArr[0].itemname}}</span>
|
|
|
+ </div>
|
|
|
<div class="descript">
|
|
|
<div class="item" v-if="resultArr.length && resultArr[0].itemno"><span style="color: #888888;">料号:</span>{{resultArr[0].itemno }}</div>
|
|
|
<div class="item" v-if="resultArr.length && resultArr[0].torque"><span style="color: #888888;">扭矩:</span>{{resultArr[0].torque }}</div>
|
|
|
<div class="item" v-if="resultArr.length && resultArr[0].flh"><span style="color: #888888;">法兰号:</span>{{resultArr[0].flh }}</div>
|
|
|
<div class="item" v-if="resultArr.length && resultArr[0].caliber"><span style="color: #888888;">公称通径:</span>{{resultArr[0].caliber }}</div>
|
|
|
+ <div class="item" v-if="resultArr.length && resultArr[0].nominalpressure"><span style="color: #888888;">公称压力:</span>{{resultArr[0].nominalpressure.join(',') }}</div>
|
|
|
<div class="item" v-if="resultArr.length && resultArr[0].stemmaterial"><span style="color: #888888;">阀杆材质:</span>{{resultArr[0].stemmaterial }}</div>
|
|
|
<div class="item" v-if="resultArr.length && resultArr[0].mainmaterial"><span style="color: #888888;">主体材质:</span>{{resultArr[0].mainmaterial }}</div>
|
|
|
</div>
|
|
@@ -269,7 +273,10 @@
|
|
|
<tr>
|
|
|
<td class="title">执行器</td>
|
|
|
<td>
|
|
|
- <div class="text1" style="margin-bottom: 8px;">{{ resultArr[1] && resultArr[1].actuatormodel }} {{guangtouParam.content.where.drivetype == '电动' && resultArr[1] && resultArr[1].gearboxname ? ` + 减速箱:${resultArr[1] && resultArr[1].gearboxname}` : '' }}</div>
|
|
|
+ <div class="text1" style="margin-bottom: 8px;">
|
|
|
+ <el-tag style="margin-right: 10px;" size="small" type="warning">{{ resultArr[1] && resultArr[1].actuatorbrand }}</el-tag>
|
|
|
+ <span style="margin-bottom: 8px;">{{ resultArr[1] && resultArr[1].actuatormodel }} {{guangtouParam.content.where.drivetype == '电动' && resultArr[1] && resultArr[1].gearboxname ? ` + 减速箱:${resultArr[1] && resultArr[1].gearboxname}` : '' }}</span>
|
|
|
+ </div>
|
|
|
<div class="descript">
|
|
|
<div class="item" v-if="resultArr.length >= 2 && resultArr[1].torque"><span style="color: #888888;">输出扭矩:</span>{{resultArr[1].torque }}(Nm)</div>
|
|
|
<div class="item" v-if="resultArr.length >= 2 && resultArr[1].maxruntime"><span style="color: #888888;">开关时间:</span>{{resultArr[1].maxruntime }}(s)</div>
|
|
@@ -278,7 +285,7 @@
|
|
|
<div class="item" v-if="resultArr.length >= 2 && resultArr[1].supplyvoltage"><span style="color: #888888;">电压:</span>{{resultArr[1].supplyvoltage }}(V)</div>
|
|
|
<div class="item" v-if="resultArr.length >= 2 && resultArr[1].ratedcurrent"><span style="color: #888888;">电流:</span>{{resultArr[1].ratedcurrent }}(A)</div>
|
|
|
<div class="item" v-if="resultArr.length >= 2 && resultArr[1].ratedpower"><span style="color: #888888;">功率:</span>{{resultArr[1].ratedpower }}(KW)</div>
|
|
|
- <div class="item" v-if="resultArr.length >= 2 && resultArr[1].actuatorsignal"><span style="color: #888888;">信号类型:</span>{{resultArr[1].actuatorsignal.join(',') }}</div>
|
|
|
+ <div class="item" v-if="resultArr.length >= 2 && resultArr[1].actuatorsignal && resultArr[1].actuatorsignal.length"><span style="color: #888888;">信号类型:</span>{{resultArr[1].actuatorsignal.join(',') }}</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -287,16 +294,28 @@
|
|
|
<td style="padding: 0;">
|
|
|
<tr style="border-bottom: 1px solid #DDDDDD;" class="custom-table">
|
|
|
<div>定位器</div>
|
|
|
- <div class="text1">{{ resultArr.filter(item => item.itemname == '定位器').length ? resultArr.filter(item => item.itemname == '定位器')[0].model : '-' }}</div>
|
|
|
+ <div class="text1">
|
|
|
+ <el-tag style="margin-right: 10px;" size="small" type="warning" v-if="fujianArr.filter(item => item.itemname == '定位器').length">{{ fujianArr.filter(item => item.itemname == '定位器')[0].actuatorbrand}}</el-tag>
|
|
|
+ <span>{{ fujianArr.filter(item => item.itemname == '定位器').length ? fujianArr.filter(item => item.itemname == '定位器')[0].model : '-' }}</span>
|
|
|
+ </div>
|
|
|
<div>电磁阀</div>
|
|
|
- <div class="text1">{{ resultArr.filter(item => item.itemname == '电磁阀').length ? resultArr.filter(item => item.itemname == '电磁阀')[0].model : '-' }}</div>
|
|
|
+ <div class="text1">
|
|
|
+ <el-tag style="margin-right: 10px;" size="small" type="warning" v-if="fujianArr.filter(item => item.itemname == '电磁阀').length">{{ fujianArr.filter(item => item.itemname == '电磁阀')[0].actuatorbrand}}</el-tag>
|
|
|
+ <span>{{ fujianArr.filter(item => item.itemname == '电磁阀').length ? fujianArr.filter(item => item.itemname == '电磁阀')[0].model : '-' }}</span>
|
|
|
+ </div>
|
|
|
</tr>
|
|
|
|
|
|
<tr class="custom-table">
|
|
|
<div>限位开关</div>
|
|
|
- <div class="text1">{{ resultArr.filter(item => item.itemname == '限位开关').length ? resultArr.filter(item => item.itemname == '限位开关')[0].model : '-' }}</div>
|
|
|
+ <div class="text1">
|
|
|
+ <el-tag style="margin-right: 10px;" size="small" type="warning" v-if="fujianArr.filter(item => item.itemname == '限位开关').length">{{ fujianArr.filter(item => item.itemname == '限位开关')[0].actuatorbrand}}</el-tag>
|
|
|
+ <span>{{ fujianArr.filter(item => item.itemname == '限位开关').length ? fujianArr.filter(item => item.itemname == '限位开关')[0].model : '-' }}</span>
|
|
|
+ </div>
|
|
|
<div>过滤减压阀</div>
|
|
|
- <div class="text1">{{ resultArr.filter(item => item.itemname == '过滤减压阀').length ? resultArr.filter(item => item.itemname == '过滤减压阀')[0].model : '-' }}</div>
|
|
|
+ <div class="text1">
|
|
|
+ <el-tag style="margin-right: 10px;" size="small" type="warning" v-if="fujianArr.filter(item => item.itemname == '过滤减压阀').length">{{ fujianArr.filter(item => item.itemname == '过滤减压阀')[0].actuatorbrand}}</el-tag>
|
|
|
+ <span>{{ fujianArr.filter(item => item.itemname == '过滤减压阀').length ? fujianArr.filter(item => item.itemname == '过滤减压阀')[0].model : '-' }}</span>
|
|
|
+ </div>
|
|
|
</tr>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -497,12 +516,17 @@ export default {
|
|
|
this.fujianArr=[]
|
|
|
} else if (type == '执行器') {
|
|
|
this.active=2
|
|
|
- this.resultArr.splice(1)
|
|
|
+ this.resultArr = this.resultArr.splice(0,1)
|
|
|
this.fujianArr=[]
|
|
|
} else {
|
|
|
this.fujianArr=[]
|
|
|
+ this.resultArr = this.resultArr.splice(0,2)
|
|
|
this.active = 3
|
|
|
- this.fujianParam.content.othertypes = ['电磁阀','限位开关','过滤减压阀']
|
|
|
+ if (this.excelParam.content.where.drivetype == '气动调节') {
|
|
|
+ this.fujianParam.content.othertypes = ['定位器','过滤减压阀']
|
|
|
+ } else if (this.excelParam.content.where.drivetype == '气动开关') {
|
|
|
+ this.fujianParam.content.othertypes = ['电磁阀','限位开关','过滤减压阀']
|
|
|
+ }
|
|
|
this.$refs.fujianRef.listData()
|
|
|
}
|
|
|
},
|
|
@@ -622,11 +646,12 @@ export default {
|
|
|
},
|
|
|
calcTableHieght (id) {
|
|
|
this.$nextTick(() => {
|
|
|
- let target = this.$refs[id].$el.getBoundingClientRect()
|
|
|
- let clientHeight = document.body.clientHeight
|
|
|
- this.tableHeight = clientHeight - target.top - 30 + 'px'
|
|
|
- this.$refs[id].$refs.table.doLayout()
|
|
|
- console.log('出发');
|
|
|
+ setTimeout(() => {
|
|
|
+ let target = this.$refs[id].$el.getBoundingClientRect()
|
|
|
+ let clientHeight = document.body.clientHeight
|
|
|
+ this.tableHeight = clientHeight - target.top - 30 + 'px'
|
|
|
+ this.$refs[id].$refs.table.doLayout()
|
|
|
+ },200)
|
|
|
|
|
|
})
|
|
|
},
|
|
@@ -721,10 +746,10 @@ export default {
|
|
|
} else {
|
|
|
if (this.fujianArr.filter(item=>item.itemid==data.itemid).length) return
|
|
|
this.fujianParam.content.othertypes.splice(this.fujianParam.content.othertypes.indexOf(data.itemname),1)
|
|
|
+ this.fujianArr.push(data)
|
|
|
if (!this.fujianParam.content.othertypes.length) return this.active = 4
|
|
|
this.loading = true
|
|
|
this.$refs.fujianRef.listData(()=> {
|
|
|
- this.fujianArr.push(data)
|
|
|
this.loading = false
|
|
|
})
|
|
|
|