heyang 2 rokov pred
rodič
commit
3f2fd22c65

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

@@ -182,6 +182,7 @@
 <script>
 <script>
 import { listControl, getControl, delControl, addControl, updateControl } from "@/api/laboratory/control";
 import { listControl, getControl, delControl, addControl, updateControl } from "@/api/laboratory/control";
 import { listDepartments } from "@/api/system/dept";
 import { listDepartments } from "@/api/system/dept";
+import { getSubjectDictByViolation } from '@/api/laboratory/violation'
 import {subjectDictList } from "@/api/laboratory/record";
 import {subjectDictList } from "@/api/laboratory/record";
 
 
   import { queryHardwareType} from "@/api/laboratory/hardware";
   import { queryHardwareType} from "@/api/laboratory/hardware";
@@ -283,7 +284,7 @@ export default {
       let params = {};
       let params = {};
       params.deptId = deptId;
       params.deptId = deptId;
       this.queryParams.subjectId = "";
       this.queryParams.subjectId = "";
-      subjectDictList(params).then(response => {
+      getSubjectDictByViolation(params).then(response => {
         this.subjectOptions = response.data;
         this.subjectOptions = response.data;
         this.loading = false;
         this.loading = false;
       });
       });