dedsudiyu 2 anos atrás
pai
commit
435e903a9f

+ 12 - 11
src/views/gasManage3_0/manage/recognizerManage/recognizerManage.vue

@@ -213,6 +213,7 @@ export default {
         subjectId:'',
         deviceType:'7',
         ipAddress:'',//ip地址
+        port:'',//ip地址
         channels:4,//信道
         sessionIndex:0,//设备推送频率
         uniformPower:'',//设备推送频率
@@ -395,16 +396,16 @@ export default {
       let _this=this;
       this.open = true;
       this.title = "修改识别器";
-      this.form.id=row.id
-      this.form.deviceType='7'
-      this.form.deviceName=row.deviceName
-      this.form.hardwareNum=row.hardwareNum
-      this.form.subjectId=row.subjectId
-      this.form.ipAddress=row.ipAddress
-      this.form.port=row.port
-      this.form.channels=row.channels+''
-      this.form.sessionIndex=row.sessionIndex+''
-      this.form.manufacturerType=row.manufacturerType+''
+      this.form.id=row.id;
+      this.form.deviceType='7';
+      this.form.deviceName=row.deviceName;
+      this.form.hardwareNum=row.hardwareNum;
+      this.form.subjectId=row.subjectId;
+      this.form.ipAddress=row.ipAddress;
+      this.form.port=row.port;
+      this.form.channels=row.channels+'';
+      this.form.sessionIndex=row.sessionIndex+'';
+      this.form.manufacturerType=row.manufacturerType+'';
       //this.uniformPower=row.uniformPower.split(',')
       this.antennaNum=[];
       this.uniformPower=[];
@@ -419,7 +420,7 @@ export default {
         _this.uniformPower.push(item.split(':')[0])
         _this.detection.push(item.split(':')[1])
       })
-
+      this.$forceUpdate();
     },
     /** 提交按钮 */
     submitForm() {