Browse Source

添加请求动态信息点的接口参数

zhangyu 5 years ago
parent
commit
b76bb08171
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/views/ledger/facility/details/index.vue

+ 12 - 0
src/views/ledger/facility/details/index.vue

@@ -90,6 +90,7 @@
         list: [], //设备列表
         pointData: [], //信息点数据
         exampleData: {}, //实例数据
+        criterias: [], //动态参数
         selectRadio: {
           information: '设备信息点',
           radioList: [
@@ -161,6 +162,17 @@
         Promise.all([promise1, promise2]).then(values => {
           this.pointData = values[0].Content;
           this.exampleData = values[1].Content[0];
+          this.pointData.forEach(item => {
+            if (item.InputMode == "L" || item.InputMode == "L1" || item.InputMode == "L2" || item.InputMode == "M") {
+              let cur = tools.dataForKey(this.exampleData, item.Path);
+              if (cur) {
+                this.criterias.push({
+                  id: exampleData.EquipID,
+                  code: item.InfoPointCode
+                })
+              }
+            }
+          })
         })
       },
       goBack () {