|
@@ -72,7 +72,7 @@
|
|
|
v-for="item in group.options"
|
|
|
:key="item.id"
|
|
|
:label="item.name"
|
|
|
- :value="item.code"
|
|
|
+ :value="item.name"
|
|
|
></el-option>
|
|
|
</el-option-group>
|
|
|
</el-select>
|
|
@@ -130,7 +130,6 @@
|
|
|
/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <!-- {{data.type}} -->
|
|
|
<template v-if="index==0&©">
|
|
|
<el-select
|
|
|
v-model="data.type"
|
|
@@ -303,6 +302,7 @@ export default {
|
|
|
data: {
|
|
|
name: '',
|
|
|
type: '',
|
|
|
+ code: '',
|
|
|
remark: '',
|
|
|
isConcept: 1,
|
|
|
spell: ''
|
|
@@ -472,7 +472,7 @@ export default {
|
|
|
}]
|
|
|
for(let i = 0;i < data.klConceptSub.length;i++){
|
|
|
let tmp = data.klConceptSub[i]
|
|
|
- tmp.name = tmp.libName
|
|
|
+ tmp.name = tmp.synonymName
|
|
|
tmp.type = tmp.typeName
|
|
|
tmp.typeId = tmp.libType
|
|
|
}
|
|
@@ -489,7 +489,7 @@ export default {
|
|
|
this.data = redata.libName[0];
|
|
|
this.singleword = redata.libName;
|
|
|
this.synonymous = redata.otherNames;
|
|
|
- this.allwords = redata.libName.concat(result.data.otherNames);
|
|
|
+ this.allwords = redata.libName.concat(redata.otherNames);
|
|
|
this.showMore = redata.isHasCommon;
|
|
|
this.maxAge = redata.maxAge;
|
|
|
this.minAge = redata.minAge;
|
|
@@ -607,6 +607,7 @@ export default {
|
|
|
this.unfit = true;
|
|
|
} else {
|
|
|
// let current = this.synonymous[index-1];
|
|
|
+ console.log(9999000000)
|
|
|
let current = this.allwords[index];
|
|
|
current.spell = pinyin.getCamelChars(current.name);
|
|
|
this.unfit = false;
|
|
@@ -631,7 +632,7 @@ export default {
|
|
|
this.unfit = false;
|
|
|
this.searchType = 'similar';
|
|
|
this.searchIndex = index;
|
|
|
- this.getSimilarList(this.synonymous[index].name);
|
|
|
+ this.getSimilarList(current.name);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -741,6 +742,7 @@ export default {
|
|
|
|
|
|
// 过滤同义词空数据
|
|
|
let realData = [];
|
|
|
+ console.log(99999,this.allWords)
|
|
|
if (this.id) {
|
|
|
//修改用暂存的列表
|
|
|
realData = this.synonymous.filter(item => {
|
|
@@ -763,9 +765,18 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
let detailList = [];
|
|
|
+ console.log(this.data,realData,2222)
|
|
|
for (let i = 0; i < realData.length; i++) {
|
|
|
- realData[i].type = this.data.type;
|
|
|
+ let obj = {}
|
|
|
+ realData[i].synonymName = realData[i].name;
|
|
|
+ realData[i].typeId = this.data.code;
|
|
|
+
|
|
|
+ // obj.isConcept=realData[i].isConcept
|
|
|
+ // obj.remark=realData[i].remark
|
|
|
+ // obj.spell=realData[i].spell
|
|
|
+
|
|
|
detailList.push(realData[i]);
|
|
|
+ // detailList.push(obj);
|
|
|
}
|
|
|
// 校验是否有名称全为数字
|
|
|
const pattern = /[^0-9]/g;
|
|
@@ -804,6 +815,7 @@ export default {
|
|
|
spell: this.data.spell,
|
|
|
status: this.data.status||1,
|
|
|
libType: this.data.typeId,
|
|
|
+ typeId:this.data.typeId,
|
|
|
synonymName: this.data.synonymName,
|
|
|
isHasCommon: this.data.isHasCommon,
|
|
|
libId: this.data.libId,
|
|
@@ -819,15 +831,17 @@ export default {
|
|
|
libName: this.data.name,
|
|
|
remark: this.data.remark,
|
|
|
spell: this.data.spell,
|
|
|
- libType: this.data.typeId||this.data.type,
|
|
|
- libId: this.data.libId||-1*Math.random(),
|
|
|
+ libType: this.data.typeId||this.data.code,
|
|
|
+ typeId:this.data.typeId||this.data.code,
|
|
|
+ libId: this.data.libId,
|
|
|
status: this.data.status||1,
|
|
|
isHasCommon: this.data.isHasCommon||0,
|
|
|
- synonymName: this.data.synonymName,
|
|
|
- klConceptSub: [],
|
|
|
+ synonymName: '',
|
|
|
+ klConceptSub: detailList||[],
|
|
|
};
|
|
|
}
|
|
|
- // return
|
|
|
+ console.log(params,5555)
|
|
|
+ // return false
|
|
|
this.saveDisable = true; //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
|
|
|
api.saveBaseConceptInfo(params).then(res => {
|
|
|
const result = res.data;
|
|
@@ -858,6 +872,7 @@ export default {
|
|
|
this.typeList.map((v, i) => {
|
|
|
if (v.name == e) {
|
|
|
this.showMore = v.isHasCommon;
|
|
|
+ this.data.code = v.code
|
|
|
}
|
|
|
});
|
|
|
if (e == '诊断') {
|