Browse Source

术语静态知识术语列表接口对接修改,单选提示颜色修改

zhouna 6 years ago
parent
commit
5ae4abd87b

+ 1 - 1
src/components/icss/AddIndeptLabel.vue

@@ -13,7 +13,7 @@
                 ref="submitForm"
         ></PubIndeptTag>
         <div class="main">
-            <p class="title" v-if="dataPub.region2==1||dataPub.region2==2"> <i>*</i> 标签明细:<i style="margin-left: 70px">所有选项必须都有或者都没有同“伴”/“无”标记</i></p>
+            <p class="title" v-if="dataPub.region2==1||dataPub.region2==2"> <i>*</i> 标签明细:<i style="margin-left:70px;color: #22ccc8; font-size: 12px;">所有选项必须都有或者都没有同“伴”/“无”标记</i></p>
             <SingleSelect v-if="dataPub.region2==1 || dataPub.region2==2" :ascription="dataPub.region1" :sexType="dataPub.region7" :type="dataPub.region2" @pushValues="pushValues" :options="editData.questionDetailList"></SingleSelect>
             <div class="btn">
                 <el-button

+ 5 - 5
src/components/icss/AddMedicinePrompt.vue

@@ -14,11 +14,11 @@
                                filterable
                                remote
                                clearable
-                               value-key="libId"
+                               value-key="id"
                                ref="termName"
                                placeholder="搜索术语"
                                :remote-method="searchTerms">
-                        <el-option v-for="term in terms" :key="term.libId" :label="term.name+'-('+term.libraryInfo[0].type+')'" :value="term" ></el-option>
+                        <el-option v-for="term in terms" :key="term.id" :label="term.name+'-('+term.type+')'" :value="term" ></el-option>
                     </el-select>
                 </el-form-item>
                 <el-form-item label="已选择术语标签:">
@@ -108,7 +108,7 @@
         const name = newVal.name;
         //this.editData.selectedTermName = name;
         this.form.selectedTermName = name;
-        this.form.selectedTermType = newVal.libraryInfo&&newVal.libraryInfo[0].type;
+        this.form.selectedTermType = newVal.type;
       }
     },
     created:function(){
@@ -150,9 +150,9 @@
       },
       searchTerms(query){
         //搜索术语列表
-        api.getConceptInfo({term:query,type:''}).then((res) =>{
+        api.knowledgeName({term:query,type:''}).then((res) =>{
           if(res.data.code === '0') {
-            this.terms = res.data.data;
+            this.terms = res.data.data.records;
           }else{
             this.warning("数据获取失败");
           }

+ 3 - 1
src/components/icss/InfoParagraph.vue

@@ -90,7 +90,9 @@
       },
       emitVal(){
         let data = Object.assign({},this.data);
-        data =   Object.assign({},data,{position:this.data.position?this.data.position.join(","):''});
+        let pst=this.data.position;
+        pst = typeof pst=='string'?pst:pst.join(',');
+        data =   Object.assign({},data,{position:this.data.position?pst:''});
         this.$emit("change",this.index,data);
       }
     }