Explorar el Código

设备关联资产接口字段调整

haojianlong hace 4 años
padre
commit
5d7a99aee5

+ 4 - 4
src/components/dialogs/changeRea.vue

@@ -30,17 +30,17 @@
               <template slot-scope="scope">
                 {{
                   scope.row.building ? scope.row.building.localName ? scope.row.building.localName : '' : ''
-                }}-{{ scope.row.Floor ? scope.row.Floor.FloorLocalName ? scope.row.Floor.FloorLocalName : '' : '' }}
+                }}-{{ scope.row.floor ? scope.row.floor.localName ? scope.row.floor.localName : '' : '' }}
               </template>
             </el-table-column>
             <el-table-column label="设备族">
               <template slot-scope="scope">
-                {{ scope.row.EquipFamilyList[0].FamilyName }}
+                {{ scope.row.equipFamilyList[0].familyName }}
               </template>
             </el-table-column>
             <el-table-column label="安装位置">
               <template slot-scope="scope">
-                {{ scope.row.LedgerParam ? scope.row.LedgerParam.Siteinstall ? scope.row.LedgerParam.Siteinstall.InstallLocation : "--" : "--" }}
+                {{ scope.row.infos ? scope.row.infos.InstallLocation ? scope.row.infos.InstallLocation : "--" : "--" }}
               </template>
             </el-table-column>
           </el-table>
@@ -106,7 +106,7 @@ export default {
     //确认选择
     clickTrue() {
       if (this.radio) {
-        this.$emit('changeProperty', { PropertyId: this.radio, LinkEquipLocalName: this.$refs[this.radio].value });
+        this.$emit('changeProperty', { propertyId: this.radio, linkEquipLocalName: this.$refs[this.radio].value });
         this.dialog.changeRea = false;
       } else {
         this.$message("请先选择资产")

+ 3 - 3
src/components/ledger/handsontables/assets.vue

@@ -901,7 +901,7 @@ export default {
           }
           return false
         //关联资产
-        case 'LinkEquipLocalName':
+        case 'linkEquipLocalName':
           if (this.linkNameFalg) {
             this.myDialog.changeRea = true;
           }
@@ -1168,8 +1168,8 @@ export default {
     },
     //修改关联的资产
     changeProperty(val) {
-      this.setDataToMain(val.PropertyId, 'PropertyId', this.row);
-      this.setDataToMain(val.LinkEquipLocalName, 'LinkEquipLocalName', this.row);
+      this.setDataToMain(val.propertyId, 'propertyId', this.row);
+      this.setDataToMain(val.linkEquipLocalName, 'linkEquipLocalName', this.row);
     },
     //上传文件弹窗触发事件
     fileChange(keys, type, file) {

+ 4 - 4
src/components/ledger/handsontables/device.vue

@@ -1334,7 +1334,7 @@ export default {
           this.myDialog.systemType = true;
           return false;
         //关联资产()
-        case "LinkEquipLocalName":
+        case "linkEquipLocalName":
           if (!this.onlyRead) {
             this.myDialog.changeRea = true;
           }
@@ -1697,10 +1697,10 @@ export default {
     },
     //修改关联的资产
     changeProperty(val) {
-      this.setDataToMain(val.PropertyId, "PropertyId", this.row);
+      this.setDataToMain(val.propertyId, "propertyId", this.row);
       this.setDataToMain(
-        val.LinkEquipLocalName,
-        "LinkEquipLocalName",
+        val.linkEquipLocalName,
+        "linkEquipLocalName",
         this.row
       );
     },

+ 1 - 1
src/views/ledger/facility/addfacility.vue

@@ -562,7 +562,7 @@ export default {
           }
           break;
         //关联资产
-        case 'LinkEquipLocalName':
+        case 'linkEquipLocalName':
           if (this.linkNameFalg) {
             this.myDialog.changeRea = true;
           }

+ 2 - 2
src/views/ledger/facility/partsmanage/index.vue

@@ -562,8 +562,8 @@ export default {
     },
     //修改关联的资产
     changeProperty(val) {
-      this.setDataToMain(val.PropertyId, 'PropertyId', this.row);
-      this.setDataToMain(val.LinkEquipLocalName, 'LinkEquipLocalName', this.row);
+      this.setDataToMain(val.propertyId, 'propertyId', this.row);
+      this.setDataToMain(val.linkEquipLocalName, 'linkEquipLocalName', this.row);
     },
     //上传文件弹窗触发事件
     fileChange(keys) {