Browse Source

modify text

haojianlong 5 years ago
parent
commit
94ef9fde1a

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

@@ -200,7 +200,7 @@ export default {
     showTypes() {
       return this.onlyRead ?
         [{ value: "all", label: '全部' }, { value: "Visible", label: '只看采集信息' }] :
-        [{ value: "all", label: '全部' }, { value: "Visible", label: '只看采集信息' }, { value: "partInfo", label: '隐藏信息点' }]
+        [{ value: "partInfo", label: '隐藏信息点' }, { value: "all", label: '全部' }, { value: "Visible", label: '只看采集信息' }]
     }
   },
   methods: {

+ 3 - 3
src/views/ledger/facility/partsmanage/addparts/index.vue

@@ -203,13 +203,13 @@ export default {
 
       for (let i = 0; i < newData.length; i++) {
         let params = newData[i]
-        params.ParentId = this.category.deviceId, //当前设备id
-          params.Category = this.category.Code //当前部件分类
+        params.ParentId = this.category.deviceId //当前设备id
+        params.Category = this.category.Code //当前部件分类
         params.Family = this.firmId;
 
         await createPart([params], async res => {
           if (newData[i].Checked) {//同时创建资产
-            params.EquipId = res.EntityList[0].EquipID
+            params.EquipmentId = res.EntityList[0].EquipID
             await createPropertyData([params], res => { })
           }
           this.$router.push({