zhaobao 2 ani în urmă
părinte
comite
ec876c7e40
1 a modificat fișierele cu 10 adăugiri și 1 ștergeri
  1. 10 1
      src/views/goaf/sensor/Model.vue

+ 10 - 1
src/views/goaf/sensor/Model.vue

@@ -123,6 +123,7 @@
           placeholder="设备安装时间"
           format="yyyy-MM-dd"
           value-format="yyyy-MM-dd"
+          style="width: 260px"
         />
       </el-form-item>
       <el-form-item label="组织部门">
@@ -213,7 +214,10 @@ export default {
       })
       getGoafBaseInfo().then((res) => {
         this.goaf = res.data
-        this.goafOrebelts = this.unique(res.data, 'goafOrebelt')
+        this.goafOrebelts = res.data
+        this.goafOrebodys = res.data
+        this.goafOreheights = res.data
+        this.goafNames = res.data
       })
       getGroupByList().then((resp) => {
         const { code, data } = resp
@@ -309,6 +313,11 @@ export default {
       this.actionType = 'UPDATE'
       this.title = '修改传感器配置'
       this.dialogVisible = true
+      // Life minus one
+      const sensorCat = this.sensorCats.filter(
+        (item) => item.sensorTypeName === data.goafDevTypename
+      )[0]
+      this.formData.goafDevTypeId = sensorCat.sensorTypeId
     },
 
     // Reset Form Data