heyang преди 2 години
родител
ревизия
0831aaddb6
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/views/emergencyManagement/smartLoT/sensor/index.vue

+ 2 - 1
src/views/emergencyManagement/smartLoT/sensor/index.vue

@@ -149,6 +149,7 @@ import { subjectDictList } from "@/api/laboratory/group";
 import { treeselect } from "@/api/system/dept";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+import { getSubjectDictByViolation } from '@/api/laboratory/violation'
 
 export default {
   name: "Sensor",
@@ -249,7 +250,7 @@ export default {
       let params = {};
       params.deptId = deptId;
       this.queryParams.subjectId = "";
-      subjectDictList(params).then(response => {
+      getSubjectDictByViolation(params).then(response => {
         this.subjectOptions = response.data;
         this.loading = false;
       });