Explorar o código

修改 字段

yuwandanmian hai 1 ano
pai
achega
94c3aa90d0
Modificáronse 2 ficheiros con 16 adicións e 5 borrados
  1. 3 3
      src/views/allcase/defectNumber.vue
  2. 13 2
      src/views/allcase/index.vue

+ 3 - 3
src/views/allcase/defectNumber.vue

@@ -10,7 +10,7 @@
             <el-option v-for="(item, index) in departmentList" :label="item.name" :value="item.name" :key="index"></el-option>
           </el-select>
           <span class="kong"></span>
-          <el-select v-model="formData.department" clearable filterable class="selects" placeholder="质控类型">
+          <el-select v-model="formData.rule_type" clearable filterable class="selects" placeholder="质控类型">
             <el-option label="时效性" value="时效性"></el-option>
             <el-option label="专科质控" value="专科质控"></el-option>
             <el-option label="内涵质控" value="内涵质控"></el-option>
@@ -82,7 +82,7 @@ export default {
         startTime:'',
         endTime:'',
         recordNum: '',
-        department: ''
+        rule_type: ''
       },
       error_rule: '',
       tableData: [],
@@ -133,7 +133,7 @@ export default {
         limit: this.paginationData.pageSize,
         AAA28: this.formData.recordNum,
         AAC11N: this.formData.AAC11N,
-        department: this.formData.department
+        rule_type: this.formData.rule_type
       };
       if (this.error_rule) {
         pramse.error_rule = this.error_rule;

+ 13 - 2
src/views/allcase/index.vue

@@ -66,7 +66,9 @@
       <Title :title="'缺陷问题'" />
       <el-form :inline="true" :model="caseSearchData" class="demo-form-inline">
         <el-form-item label="">
-          <el-input v-model="caseSearchData.department" clearable placeholder="科室"></el-input>
+          <el-select v-model="caseSearchData.department" filterable clearable placeholder="科室">
+            <el-option v-for="(item, index) in departmentList" :label="item.name" :value="item.name" :key="index"></el-option>
+          </el-select>
         </el-form-item>
         <el-form-item>
           <el-button type="primary" @click="getCaseList">查询</el-button>
@@ -122,7 +124,8 @@ export default {
       caseSearchData: {
         department: ''
       },
-      caseList: []
+      caseList: [],
+      departmentList: []
     };
   },
   mounted() {
@@ -134,10 +137,18 @@ export default {
       this.formData = this.storageGet('homeFrom');
       this.storageRemove('homeFrom');
     }
+    this.getDepartmentList()
     this.funQuery();
     this.selectInfo();
   },
   methods: {
+    // 获取部门集合
+    getDepartmentList() {
+      this.$axios.post('/get_omr_department_list').then(res => {
+        this.departmentList = res.data;
+      });
+    },
+    // 获取缺陷问题
     getCaseList() {
       let pramse = {
         start_time: this.formData.startTime,