Bladeren bron

修改问题 765 762

chuwu 6 jaren geleden
bovenliggende
commit
7bd7c26ddb

+ 14 - 14
src/utils/point_edit/handson_header.js

@@ -1,27 +1,27 @@
 const headers = {
     "modbus-tcp": [{
-            InfoPointName: "slave_id",
+            InfoPointName: "*slave_id",
             InfoPointCode: "SlaveId",
             InputMode: "B1",
             Visible: true,
             FirstTag: ""
         },
         {
-            InfoPointName: "registers_address ",
+            InfoPointName: "*registers_address ",
             InfoPointCode: "RegistersAddress",
             InputMode: "B1",
             Visible: true,
             FirstTag: ""
         },
         {
-            InfoPointName: "registers_quality",
+            InfoPointName: "*registers_quality",
             InfoPointCode: "RegistersQuality",
             InputMode: "B1",
             Visible: true,
             FirstTag: ""
         },
         {
-            InfoPointName: "convert_type",
+            InfoPointName: "*convert_type",
             InfoPointCode: "ConvertType",
             InputMode: "select",
             DataSource: [{
@@ -43,7 +43,7 @@ const headers = {
             FirstTag: ""
         },
         {
-            InfoPointName: "翻转规则",
+            InfoPointName: "*翻转规则",
             InfoPointCode: "RevertRule",
             InputMode: "B1",
             Visible: true,
@@ -51,21 +51,21 @@ const headers = {
         }
     ],
     "bacnet-ip": [{
-            InfoPointName: "device_id",
+            InfoPointName: "*device_id",
             InfoPointCode: "DeviceId",
             InputMode: "B1",
             Visible: true,
             FirstTag: ""
         },
         {
-            InfoPointName: "instance_number",
+            InfoPointName: "*instance_number",
             InfoPointCode: "InstanceNumber",
             InputMode: "B1",
             Visible: true,
             FirstTag: ""
         },
         {
-            InfoPointName: "data_type",
+            InfoPointName: "*data_type",
             InfoPointCode: "DataType",
             DataSource: [{
                     Code: "analogInput",
@@ -110,42 +110,42 @@ const headers = {
         }
     ],
     "opc": [{
-        InfoPointName: "item",
+        InfoPointName: "*item",
         InfoPointCode: "Item",
         InputMode: "B1",
         Visible: true,
         FirstTag: ""
     }],
     "knx": [{
-        InfoPointName: "group_address",
+        InfoPointName: "*group_address",
         InfoPointCode: "GroupAddress",
         InputMode: "B1",
         Visible: true,
         FirstTag: ""
     }],
     "mqtt": [{
-        InfoPointName: "topic",
+        InfoPointName: "*topic",
         InfoPointCode: "Topic",
         InputMode: "B1",
         Visible: true,
         FirstTag: ""
     }],
     "amqp": [{
-            InfoPointName: "exchange",
+            InfoPointName: "*exchange",
             InfoPointCode: "Exchange",
             InputMode: "B1",
             Visible: true,
             FirstTag: ""
         },
         {
-            InfoPointName: "type",
+            InfoPointName: "*type",
             InfoPointCode: "Type",
             InputMode: "B1",
             Visible: true,
             FirstTag: ""
         },
         {
-            InfoPointName: "routing_key ",
+            InfoPointName: "*routing_key ",
             InfoPointCode: "RoutingKey",
             InputMode: "B1",
             Visible: true,

+ 3 - 3
src/utils/point_edit/steps2.js

@@ -1,21 +1,21 @@
 export default [{
         InfoPointName: "原始点位描述",
         InfoPointCode: "Description",
-        InputMode: "B1",
+        InputMode: "X",
         Visible: true,
         FirstTag: ""
     },
     {
         InfoPointName: "位置标签",
         InfoPointCode: "LocationFlag",
-        InputMode: "myOwn",
+        InputMode: "X",
         Visible: true,
         FirstTag: ""
     },
     {
         InfoPointName: "备注",
         InfoPointCode: "Remarks",
-        InputMode: "B1",
+        InputMode: "X",
         Visible: true,
         FirstTag: ""
     },

+ 6 - 6
src/views/point/config_point/steps/step2.vue

@@ -102,12 +102,12 @@
         },
         methods: {
             clickTable(info, row) {
-                let activeCell = this.hot.getActiveEditor()
-                this.renderData = info
-                console.log(activeCell, 'activeCell')
-                if (activeCell.prop == "LocationFlag") {
-                    this.localtionDialog = true
-                }
+                // let activeCell = this.hot.getActiveEditor()
+                // this.renderData = info
+                // console.log(activeCell, 'activeCell')
+                // if (activeCell.prop == "LocationFlag") {
+                //     this.localtionDialog = true
+                // }
             },
             changeLoc(val) {
                 this.renderData.LocationFlag = val