|
@@ -99,7 +99,7 @@
|
|
|
</tr>
|
|
|
<tr v-for="(item,index) in allwords" :key="index">
|
|
|
<td class="ind">{{index+1}}</td>
|
|
|
- <td :title="item.name&&item.name.length>9?item.name:''">
|
|
|
+ <td :title="item.libName&&item.libName.length>9?item.libName:''">
|
|
|
<!-- 使用原生input,输入限制 -->
|
|
|
<!-- <el-input v-model="item.name" placeholder="请输入术语" maxlength="30" size="small" @input.native="handleInput(2,index)"></el-input> -->
|
|
|
<input
|
|
@@ -180,12 +180,12 @@
|
|
|
</tr>
|
|
|
<tr v-for="(item,index) in synonymous" :key="index">
|
|
|
<td class="ind">{{index+1}}</td>
|
|
|
- <td :title="item.name&&item.name.length>9?item.name:''">
|
|
|
+ <td :title="item.libName&&item.libName.length>9?item.libName:''">
|
|
|
<!-- 使用原生input,输入限制 -->
|
|
|
<!-- <el-input v-model="item.name" placeholder="请输入术语" maxlength="30" size="small" @input.native="handleInput(2,index)"></el-input> -->
|
|
|
<input
|
|
|
type="text"
|
|
|
- v-model.trim="item.name"
|
|
|
+ v-model.trim="item.libName"
|
|
|
placeholder="请输入术语"
|
|
|
maxlength="50"
|
|
|
@blur="handleBlur(2,index)"
|
|
@@ -1195,8 +1195,8 @@ export default {
|
|
|
if (flg == 99) {
|
|
|
// if(this.synonymous[index-1].name && !pattern.test(this.synonymous[index-1].name)){
|
|
|
if (
|
|
|
- this.allwords[index].name &&
|
|
|
- !pattern.test(this.allwords[index].name)
|
|
|
+ this.allwords[index].libName &&
|
|
|
+ !pattern.test(this.allwords[index].libName)
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '无法输入纯数字,请输入正确数据!',
|
|
@@ -1207,16 +1207,16 @@ export default {
|
|
|
} else {
|
|
|
// let current = this.synonymous[index-1];
|
|
|
let current = this.allwords[index];
|
|
|
- current.spell = pinyin.getCamelChars(current.name);
|
|
|
+ current.spell = pinyin.getCamelChars(current.libName);
|
|
|
this.unfit = false;
|
|
|
this.searchType = 'standard';
|
|
|
this.searchIndex = index;
|
|
|
- this.getSimilarList(this.allwords[index].name);
|
|
|
+ this.getSimilarList(this.allwords[index].libName);
|
|
|
}
|
|
|
} else {
|
|
|
if (
|
|
|
- this.synonymous[index].name &&
|
|
|
- !pattern.test(this.synonymous[index].name)
|
|
|
+ this.synonymous[index].libName &&
|
|
|
+ !pattern.test(this.synonymous[index].libName)
|
|
|
) {
|
|
|
this.$message({
|
|
|
message: '无法输入纯数字,请输入正确数据!',
|
|
@@ -1226,11 +1226,11 @@ export default {
|
|
|
this.unfit = true;
|
|
|
} else {
|
|
|
let current = this.synonymous[index];
|
|
|
- current.spell = pinyin.getCamelChars(current.name);
|
|
|
+ current.spell = pinyin.getCamelChars(current.libName);
|
|
|
this.unfit = false;
|
|
|
this.searchType = 'similar';
|
|
|
this.searchIndex = index;
|
|
|
- this.getSimilarList(current.name);
|
|
|
+ this.getSimilarList(current.libName);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1319,6 +1319,7 @@ export default {
|
|
|
},
|
|
|
// 保存基础术语
|
|
|
comfirn(flg) {
|
|
|
+ console.log(this.synonymous)
|
|
|
if (!this.data.libName) {
|
|
|
this.warning('请输入医学标准术语名称');
|
|
|
return;
|
|
@@ -1378,7 +1379,7 @@ export default {
|
|
|
if (this.id) {
|
|
|
//修改用暂存的列表
|
|
|
realData = this.synonymous.filter(item => {
|
|
|
- return item.name;
|
|
|
+ return item.libName;
|
|
|
});
|
|
|
let tmpArr = [];
|
|
|
for (let k = 0; k < realData.length; k++) {
|
|
@@ -1393,13 +1394,13 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
realData = this.synonymous.filter(item => {
|
|
|
- return item.name;
|
|
|
+ return item.libName;
|
|
|
});
|
|
|
}
|
|
|
let detailList = [];
|
|
|
for (let i = 0; i < realData.length; i++) {
|
|
|
let obj = {};
|
|
|
- realData[i].synonymName = realData[i].name;
|
|
|
+ realData[i].synonymName = realData[i].libName;
|
|
|
realData[i].conceptId = undefined;
|
|
|
realData[i].status = undefined;
|
|
|
realData[i].libType = this.data.libType;
|