Pārlūkot izejas kodu

问题词维护修改

zhangxc 6 gadi atpakaļ
vecāks
revīzija
aaa4751b99
1 mainītis faili ar 8 papildinājumiem un 8 dzēšanām
  1. 8 8
      src/components/diagBase/QuestionWords.vue

+ 8 - 8
src/components/diagBase/QuestionWords.vue

@@ -1,6 +1,6 @@
 <template>
     <div>
-        <crumbs title="标签组维护" style="min-width: 980px">
+        <crumbs title="问题词数据维护" style="min-width: 980px">
             <el-form :inline="true" class="demo-form-inline">
                 <el-form-item label="诊断名称:">
                     <el-input size="mini" v-model="filter.disName" placeholder="诊断名称" clearable></el-input>
@@ -10,7 +10,7 @@
                 </el-form-item>
                 <el-form-item label="类型:">
                     <el-select size="mini" v-model="filter.type" @change="getValue"  placeholder="类型" clearable>
-                        <el-option v-for="item in tagTypes" :label="item.name" :value="item.val" :key="item.id" ></el-option>
+                        <el-option v-for="item in tagTypes" :label="item.name" :value="item.key" :key="item.id" ></el-option>
                     </el-select>
                 </el-form-item>
                 <el-form-item>
@@ -55,7 +55,7 @@
                 <el-table-column
                     :resizable = "false"
                     prop="typeCn"
-                    label="类型">
+                    label="问题词归属">
                 </el-table-column>
                 <el-table-column
                     :resizable = "false"
@@ -129,13 +129,13 @@ export default {
             // console.log('changeVal', val, this.filter.tagAdscription)
         },
         getDropList() {
-            return apis.getknowledgeList().then((res) =>{
+            return apis.getKnowledgeEnums().then((res) =>{
                 if(res.data.code === '0') {
                     // this.Adscriptions = res.data.data[1];
-                    let tmpLis = res.data.data[4]
+                    let tmpLis = res.data.data.diagnoseFieldEnum
                     // this.Adscriptions = tmpLis.filter(item => item.val);
                     this.Adscriptions = tmpLis;
-                    this.tagTypes =  res.data.data[2];
+                    this.tagTypes =  res.data.data.diagnoseFeatureTypeEnum;
                     // for (var i = 0; i < this.tagTypes.length; i++) {
                     //     this.tagTypesList.push(this.tagTypes[i].val)
                     // }
@@ -150,12 +150,12 @@ export default {
                 const list = res.data.data.records
                 for (var i = 0; i < list.length; i++) {
                     for (var z =  0; z < this.Adscriptions.length; z++) {
-                        if(list[i].questionType == this.Adscriptions[z].val) {
+                        if(list[i].questionType == this.Adscriptions[z].key) {
                             list[i].typeCn = this.Adscriptions[z].name
                         }
                     }
                     for (var m =  0; m < this.tagTypes.length; m++) {
-                        if(list[i].type == this.tagTypes[m].val) {
+                        if(list[i].type == this.tagTypes[m].key) {
                             list[i].typeNm = this.tagTypes[m].name
                         }
                     }