zhulizhen1111 4 年之前
父節點
當前提交
68c035bc9a
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      src/views/equipment/eqDialog.vue

+ 9 - 2
src/views/equipment/eqDialog.vue

@@ -66,7 +66,7 @@
                         <!-- 维修的表格 -->
                         <wx-table v-else-if='value.id.slice(2,4)=="WX"' :smsxt='smsxt' :tabLabel='tabLabel' :diff='diff' :major='dialogInfo.id'></wx-table>
                         <!-- 专维 -->
-                        <zw-table v-else-if='value.id.slice(2,4)=="ZW"' :smsxt='smsxt' :tabLabel='tabLabel' :diff='diff' :major='dialogInfo.id'></zw-table>
+                        <zw-table v-else-if='value.id.slice(2,4)=="ZW"' :smsxt='smsxt' :tabLabel='tabLabel' :diff='difference' :major='dialogInfo.id'></zw-table>
                         <!-- 其他 -->
                         <other-table v-else-if='value.id.slice(2,4)=="QT"' ref='qtList' :tabLabel='tabLabel' :smsxt='smsxt' :major='dialogInfo.id'></other-table>
                     </el-tab-pane>
@@ -126,7 +126,8 @@ export default {
             dialogInfo: {},
             param: '', //区分清单tab
             typecode: '', //区分原理图的tab
-            diff: '', //区分给水排水
+            diff: '', 
+            difference:'',//区分给水排水
             rotationImg: [],
             tabLabel: '',
             tabCount: [],
@@ -140,11 +141,16 @@ export default {
     methods: {
         //打开弹窗
         showModal(item) {
+            console.log(item)
             this.visible = true
             this.dialogInfo = item
             if (Object.keys(this.dialogInfo).length > 0 && this.dialogInfo.children.length > 0) {
                 this.activeName = this.dialogInfo.children[0].param.tab_code
+                console.log(this.dialogInfo)
                 this.diff = this.dialogInfo.children[0].param.diff
+                //给排水的专维区分
+                this.difference = this.dialogInfo.children[0].param.difference
+                console.log(this.diff)
                 if (this.dialogInfo.children[0].id.slice(2, 4) == 'YL') {
                     this.typecode = this.dialogInfo.children[0].param.type_code
                     this.activeName = this.typecode
@@ -174,6 +180,7 @@ export default {
             if (this.dialogInfo.children.length > 0) {
                 this.typecode = this.dialogInfo.children[`${tab.index}`].param.type_code
                 this.diff = this.dialogInfo.children[`${tab.index}`].param.diff
+                this.difference = this.dialogInfo.children[`${tab.index}`].param.difference
             }
             if (this.dialogInfo.children[0].id.slice(2, 4) == 'YL' && this.typecode.slice(0, 3) != 'FBT') {
                 this.initImage(this.typecode)