dedsudiyu 5 mēneši atpakaļ
vecāks
revīzija
c291a7d3f4

+ 9 - 0
src/api/hierarchicalControl/index.js

@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+
+export function laboratoryGradeManageList(data) {
+  return request({
+    url: '/laboratory/gradeManage/list',
+    method: 'post',
+    data: data
+  })
+}

+ 11 - 8
src/views/hierarchicalControl/gradeManage/index.vue

@@ -57,9 +57,9 @@
             <el-select v-model="queryParams.moldId" placeholder="请选择类型" style="width: 200px">
               <el-option
                 v-for="dict in moldIdOptionList"
-                :key="dict.id"
+                :key="dict.moldId"
                 :label="dict.moldName"
-                :value="dict.id"
+                :value="dict.moldId"
               />
             </el-select>
           </el-form-item>
@@ -149,16 +149,19 @@
 
 <script>
   import {
-    listGradeManage, getGradeManage,
+    getGradeManage,
     delGradeManage, addGradeManage,
     updateGradeManage,
-    labMoldQueryOption
   } from "@/api/hierarchicalControl/indexDemo";
   import {
     getDeptDropList,
     laboratoryClassLevelGetList,
     laboratoryClassTypeGetList,
+    laboratoryClassMoldGetList,
   } from '@/api/commonality/permission'
+  import {
+    laboratoryGradeManageList
+  } from "@/api/hierarchicalControl/index";
   import addPage from "./addPage.vue"
 
   export default {
@@ -298,13 +301,13 @@
       this.laboratoryClassLevelGetList();
       this.laboratoryClassTypeGetList();
       this.getDeptDropList();
-      this.labMoldQueryOption();
+      this.laboratoryClassMoldGetList();
       this.getList();
     },
     methods: {
       //获取实验室类型
-      labMoldQueryOption(){
-        labMoldQueryOption({}).then(response => {
+      laboratoryClassMoldGetList(){
+        laboratoryClassMoldGetList({}).then(response => {
           this.$set(this,'moldIdOptionList',response.data);
         });
       },
@@ -345,7 +348,7 @@
       /** 查询分级管控管理列表 */
       getList() {
         this.loading = true;
-        listGradeManage(this.queryParams).then( response => {
+        laboratoryGradeManageList(this.queryParams).then( response => {
           this.dataList =  response.rows;
           this.total =  response.total;
           this.loading = false;