zhulizhen1111 4 vuotta sitten
vanhempi
commit
efc723e4bd

+ 9 - 9
src/utils/plugins/components.js

@@ -403,12 +403,12 @@ var system = [
                         {
                             label: "给水系统原理示意图",
                             id: "GSYL1",
-                            param: { tab_code: "1572", type_code: "2021" },
+                            param: { tab_code: "1572", type_code: "2021", difference: "给水" },
                         },
                         {
                             label: "排水系统原理示意图",
                             id: "GSYL2",
-                            param: { tab_code: "1542", type_code: "2022" },
+                            param: { tab_code: "1542", type_code: "2022", difference: "排水" },
                         },
                     ],
                 },
@@ -425,12 +425,12 @@ var system = [
                         {
                             label: "给水系统",
                             id: "GSWB1",
-                            param: { tab_code: "gps01" },
+                            param: { tab_code: "gps01", difference: "给水" },
                         },
                         {
                             label: "排水系统",
                             id: "GSWB2",
-                            param: { tab_code: "gps02" },
+                            param: { tab_code: "gps02", difference: "排水" },
                         },
                     ],
                 },
@@ -441,12 +441,12 @@ var system = [
                         {
                             label: "给水系统",
                             id: "GSWX1",
-                            param: { tab_code: "1592" },
+                            param: { tab_code: "1592", difference: "给水" },
                         },
                         {
                             label: "排水系统",
                             id: "GSWX2",
-                            param: { tab_code: "1593" },
+                            param: { tab_code: "1593", difference: "排水" },
                         },
                     ],
                 },
@@ -457,17 +457,17 @@ var system = [
                         {
                             label: "给水系统专项维修",
                             id: "GSZW1",
-                            param: { tab_code: "1592" },
+                            param: { tab_code: "1592", difference: "给水" },
                         },
                         {
                             label: "排水系统专项维修",
                             id: "GSZW2",
-                            param: { tab_code: "1593" },
+                            param: { tab_code: "1593", difference: "排水" },
                         },
                         {
                             label: "其他事项",
                             id: "GSQT",
-                            param: { tab_code: "1594" },
+                            param: { tab_code: "1594", difference: "" },
                         },
                     ],
                 },

+ 6 - 3
src/views/equipment/eqDialog.vue

@@ -45,11 +45,11 @@
                         <tableList v-else-if='value.id.slice(0,4)=="RDQD"' :param='param' ref='list1' major='弱电'></tableList>
                         <tableList v-else-if='value.id.slice(0,4)=="NTQD"' :param='param' ref='list2' major='暖通'></tableList>
                         <!-- 维保表格 -->
-                        <wb-table v-else-if='value.id.slice(2,4)=="WB"' :smsxt='smsxt' :major='dialogInfo.id'></wb-table>
+                        <wb-table v-else-if='value.id.slice(2,4)=="WB"' :smsxt='smsxt' :difference='difference' :major='dialogInfo.id'></wb-table>
                         <!-- 维修的表格 -->
-                        <wx-table v-else-if='value.id.slice(2,4)=="WX"' :smsxt='smsxt' :major='dialogInfo.id'></wx-table>
+                        <wx-table v-else-if='value.id.slice(2,4)=="WX"' :smsxt='smsxt' :difference='difference' :major='dialogInfo.id'></wx-table>
                         <!-- 专维 -->
-                        <zw-table v-else-if='value.id.slice(2,4)=="ZW"' :smsxt='smsxt' :major='dialogInfo.id'></zw-table>
+                        <zw-table v-else-if='value.id.slice(2,4)=="ZW"' :smsxt='smsxt' :difference='difference' :major='dialogInfo.id'></zw-table>
                         <!-- 其他 -->
                         <other-table v-else-if='value.id.slice(2,4)=="QT"' ref='qtList' :smsxt='smsxt' :major='dialogInfo.id'></other-table>
                     </el-tab-pane>
@@ -81,6 +81,7 @@ export default {
             dialogInfo: {},
             param: '', //区分清单tab
             typecode: '', //区分原理图的tab
+            difference: '', //区分给水排水
             rotationImg: []
         }
     },
@@ -100,6 +101,7 @@ export default {
             if (Object.keys(this.dialogInfo).length > 0 && this.dialogInfo.children.length > 0) {
                 this.activeName = this.dialogInfo.children[0].param.tab_code
                 this.typecode = this.dialogInfo.children[0].param.type_code
+                this.difference = this.dialogInfo.children[0].param.difference
                 if (this.dialogInfo.children[0].id.slice(2, 4) == 'YL') {
                     this.isShowTab()
                     this.initImage(this.typecode)
@@ -127,6 +129,7 @@ export default {
             //原理图的tab怎么传typecode
             if (this.dialogInfo.children.length > 0) {
                 this.typecode = this.dialogInfo.children[`${tab.index}`].param.type_code
+                this.difference = this.dialogInfo.children[`${tab.index}`].param.difference
             }
             if (this.dialogInfo.children[0].id.slice(2, 4) == 'YL') {
                 this.initImage(this.typecode)

+ 3 - 2
src/views/equipment/table/wbTable.vue

@@ -158,7 +158,7 @@ export default {
             matters: ''
         }
     },
-    props: ['smsxt', 'major'],
+    props: ['smsxt', 'major', 'difference'],
     computed: {
         ...mapGetters(['floorSelect'])
     },
@@ -176,6 +176,7 @@ export default {
             let getParams = {
                 data: {
                     smsxt: this.smsxt,
+                    difference: this.difference,
                     plazaId: this.$store.state.plazaId,
                     page: this.currentPage,
                     size: this.size,
@@ -229,7 +230,7 @@ export default {
         }
     },
     watch: {
-        smsxt(newV, oldV) {
+        difference(newV, oldV) {
             if (newV !== oldV) {
                 this.getList()
             }

+ 3 - 3
src/views/equipment/table/wxTable.vue

@@ -169,7 +169,7 @@ export default {
     computed: {
         ...mapGetters(['floorSelect'])
     },
-    props: ['smsxt', 'major'],
+    props: ['smsxt', 'major', 'difference'],
     methods: {
         //多余输入框监听
         confirm(wonum) {
@@ -184,7 +184,7 @@ export default {
             let getParams = {
                 data: {
                     smsxt: this.smsxt,
-                    // tab: this.major,
+                    difference: this.difference,
                     plazaId: this.$store.state.plazaId,
                     page: this.currentPage,
                     size: this.size,
@@ -237,7 +237,7 @@ export default {
         }
     },
     watch: {
-        smsxt(newV, oldV) {
+        difference(newV, oldV) {
             if (newV !== oldV) {
                 this.getList()
             }

+ 3 - 2
src/views/equipment/table/zwTable.vue

@@ -146,7 +146,7 @@ export default {
     computed: {
         ...mapGetters(['floorSelect'])
     },
-    props: ['smsxt', 'major'],
+    props: ['smsxt', 'major', 'difference'],
     methods: {
         //多余输入框监听
         confirm(status, yssjwcsj) {
@@ -232,6 +232,7 @@ export default {
                     smsxt: this.smsxt,
                     plazaId: this.$store.state.plazaId,
                     page: this.currentPage,
+                    difference: this.difference,
                     size: this.size
                 }
             }
@@ -273,7 +274,7 @@ export default {
         }
     },
     watch: {
-        smsxt(newV, oldV) {
+        difference(newV, oldV) {
             if (newV !== oldV) {
                 this.tabFind()
                 this.getList()