dedsudiyu %!s(int64=2) %!d(string=hai) anos
pai
achega
8ce8a0f9b8
Modificáronse 2 ficheiros con 12 adicións e 5 borrados
  1. 7 0
      src/api/laboratory/sensor.js
  2. 5 5
      src/views/emergencyManagement/plan/index.vue

+ 7 - 0
src/api/laboratory/sensor.js

@@ -62,3 +62,10 @@ export function getSensorList() {
     method: 'get'
   })
 }
+// 预案管理页面 查询传感器下拉列表
+export function riskOptionSensor() {
+  return request({
+    url: '/laboratory/sensor/getSensorList',
+    method: 'get'
+  })
+}

+ 5 - 5
src/views/emergencyManagement/plan/index.vue

@@ -16,9 +16,9 @@
           <el-select v-model="param.startCondition" placeholder="请选择启动条件" clearable size="small">
             <el-option
               v-for="dict in deptOptions"
-              :key="dict.describe"
-              :label="dict.describe"
-              :value="dict.describe"
+              :key="dict.code"
+              :label="dict.name"
+              :value="dict.name"
             ></el-option>
           </el-select>
         </el-form-item>
@@ -114,7 +114,7 @@ import {listClassifiedAll} from "@/api/laboratory/classified";
 import {listClasstypeAll} from "@/api/laboratory/classtype";
 import {authListSubject} from "@/api/laboratory/subject";
 import { selectRiskPlanLeveList, addPlan, delPlanData } from "@/api/evacuation3_2/index";
-import { optionSensor } from "@/api/laboratory/sensor";
+import { riskOptionSensor } from "@/api/laboratory/sensor";
 
 export default {
   components: {
@@ -256,7 +256,7 @@ export default {
     },
     /** 查询启动条件 */
     getDeptListTow() {
-      optionSensor({}).then(response => {
+      riskOptionSensor({}).then(response => {
         this.$set(this, 'deptOptions', response.data)
       });
     },