Quellcode durchsuchen

修改设备设施bug

shaun-sheep vor 4 Jahren
Ursprung
Commit
f728219e4c

+ 26 - 1
src/views/equipment/eqDialog.vue

@@ -165,11 +165,36 @@ export default {
         initImage(typecode) {
             let getParams = {
                 plazaId: this.$store.state.plazaId,
-                system: this.systemName.slice(0, 2),
+                // system: this.systemName.slice(0, 2),
+                system: this.systemName,
                 siteid: '1000423',
                 module: '1002',
                 neTypename: '位置布置图'
             }
+            switch (this.systemName) {
+                case '暖通系统':
+                    getParams.system = '1002'
+                    break
+                case '消防系统':
+                    getParams.system = '1003'
+                    break
+                case '弱点系统':
+                    getParams.system = '1004'
+                    break
+                case '电梯系统':
+                    getParams.system = '1006'
+                    break
+                case '燃气系统':
+                    getParams.system = '1007'
+                    break
+            }
+            if (this.systemName == '给排水系统') {
+                getParams.system = '1005'
+            }
+            if (this.systemName == '供电系统') {
+                getParams.system = '1001'
+            }
+
             queryPic({ getParams }).then(res => {
                 this.rotationImg = res.data || []
             })

+ 2 - 2
src/views/equipment/table/eqListTable.vue

@@ -33,8 +33,8 @@
         </div>
         <el-table :data='tableData' style='width: 100%' :border='true' @row-click='rowHandle'>
             <el-table-column type='index' label='序号' width='80'></el-table-column>
-            <el-table-column prop='sbjc' label='设备名称' width='160'>
-                <template slot-scope='{row}'>{{row.sbjc || '--'}}</template>
+            <el-table-column prop='classqc' label='设备名称' width='160'>
+                <template slot-scope='{row}'>{{row.classqc || '--'}}</template>
             </el-table-column>
             <el-table-column prop='sl' label='数量' width='100'>
                 <template slot-scope='{row}'>{{row.sl || '--'}}</template>

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

@@ -15,8 +15,8 @@
         </div>
         <el-table :data='tableData' style='width: 100%'>
             <el-table-column type='index' label='序号' width='80'></el-table-column>
-            <el-table-column prop='lb' label='类别' width='160'>
-                <template slot-scope='{row}'>{{row.lb || '--'}}</template>
+            <el-table-column prop='category' label='类别' width='160'>
+                <template slot-scope='{row}'>{{row.category || '--'}}</template>
             </el-table-column>
             <el-table-column prop='sl' label='数量' width='100'>
                 <template slot-scope='{row}'>{{row.sl || '--'}}</template>
@@ -74,7 +74,7 @@ export default {
             }
             getParams.keyword = ''
             if (this.lb) {
-                getParams.keyword += `${this.lb}:lb;`
+                getParams.keyword += `${this.lb}:category;`
             }
             if (this.brand) {
                 getParams.keyword += `${this.brand}:brand;`

+ 2 - 1
vue.config.js

@@ -32,6 +32,7 @@ module.exports = {
             },
         },
         hot: true,
+        host: '192.168.200.100',
         // 关闭esline
         overlay: {
             warnings: false,
@@ -54,4 +55,4 @@ module.exports = {
     outputDir: 'wandaBmGuide',
     // 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录
     assetsDir: 'static',
-}
+}