Browse Source

fix: 批量维护弹窗字段修复

quanchuan 4 years ago
parent
commit
6d08f7fa70
2 changed files with 11 additions and 10 deletions
  1. 3 2
      src/api/scan/request.js
  2. 8 8
      src/components/dialogs/list/batchDialog.vue

+ 3 - 2
src/api/scan/request.js

@@ -1271,7 +1271,7 @@ export function countEquip(param, success) {
 
 //设备清单 - 查询设备信息
 export function queryEquip(param, success) {
-  let url = `${baseUrl}/datacenter2/equip/query`;
+  let url = `${baseUrl}/datacenter2/object/equip/query`;
   http.postJson(url, param, success)
 }
 
@@ -1323,6 +1323,7 @@ export function queryProperty(param, success) {
 
 // 修改设备的附件功能
 export function queryUpdate(param, success) {
+  // /equip-componnet2/equip-query/update
   let url = `${baseUrl}/equip-component/equip-query/update`;
   http.postJson(url, param, success)
 }
@@ -1369,7 +1370,7 @@ export function createPropertys(param, success) {
 
 //根据条件查询统计数量
 export function countProperty(param, success) {
-  let url = `${baseUrl}/datacenter2/property/count`;
+  let url = `${baseUrl}/datacenter2/object/property/count`;
   http.postJson(url, param, success)
 }
 

+ 8 - 8
src/components/dialogs/list/batchDialog.vue

@@ -99,10 +99,10 @@
             label="设备本地名称"
             width=""
         >
-          <template slot-scope="scope">{{scope.row.EquipLocalName}}</template>
+          <template slot-scope="scope">{{scope.row.name}}</template>
         </el-table-column>
         <el-table-column
-            prop="EquipLocalID"
+            prop="localId"
             label="设备本地编码"
             width="120"
         />
@@ -213,12 +213,12 @@
       tableData() {
         this.allObject.map(item => {
           let build = ''
-          if (item.Building && item.Floor) {
-            build = item.Building.BuildLocalName + ' - ' + item.Floor.FloorLocalName
-          } else if (item.Building) {
-            build = item.Building.BuildLocalName
-          } else if (item.Floor) {
-            build = item.Floor.FloorLocalName
+          if (item.building && item.floor) {
+            build = item.building.localName + ' - ' + item.floor.localName
+          } else if (item.building) {
+            build = item.building.localName
+          } else if (item.floor) {
+            build = item.floor.localName
           } else {
             build = '-'
           }