zhouna 4 年之前
父节点
当前提交
77f2d1cee6
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      src/components/knowledgeExtra/DiagBaseItem.vue

+ 4 - 5
src/components/knowledgeExtra/DiagBaseItem.vue

@@ -29,7 +29,7 @@
                             v-for="item in baseTermTypeList"
                             :key="item.id"
                             :label="item.name"
-                            :value="item.code">
+                            :value="Number(item.code)">
                     </el-option>
                 </el-select>
             </el-form-item>
@@ -166,11 +166,10 @@
             }else if(this.groupData.eqValue){
                 this.groupData.dataType='2';
             }
-        },
-        mounted(){
             this.conceptList=[{conceptName:this.groupData.basLibName,conceptId:this.groupData.basConceptId}];
-            if(this.groupData.basLibType){
-                this.baseTermTypeList=[{name:this.groupData.basLename,code:this.groupData.basLibType}];
+            if(this.groupData.basType){
+                const obj = this.baseTypes.find((it)=>it.type===this.groupData.basType);
+                this.baseTermTypeList = obj.subMenuList;
             }
         },
         computed:{