Browse Source

下拉选中问题

luolei 4 năm trước cách đây
mục cha
commit
34bc13e2f5
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      src/components/icss/AddMedicinePrompt.vue

+ 2 - 3
src/components/icss/AddMedicinePrompt.vue

@@ -19,7 +19,7 @@
               loading-text="加载中..."
               @change="changeWord"
               @visible-change="handleVisible"
-              value-key="conceptId"
+              value-key="id"
               @clear="handleClear"
               ref="termName"
               placeholder="搜索"
@@ -331,13 +331,12 @@ export default {
       this.isShowTip = false;
     },
     changeWord(newVal) {
-      // console.log(newVal, '选中');
       this.showType = newVal.type || -1;
       const name = newVal.name;
       const typeName = newVal.typeName;
       const type = newVal.type;
       this.form.selectedTermName = name + (typeName ? '(' + typeName + ')' : '');
-      this.form.selectedTerm = name + (typeName ? '(' + typeName + ')' : '');
+      // this.form.selectedTerm = name + (typeName ? '(' + typeName + ')' : '');
       this.form.name = name;
       this.form.fileList = [];
       this.showFileList = false;