|
@@ -156,7 +156,7 @@
|
|
<td class="desc">{{item.isConcept == 1?"标准词":"同义词"}}</td>
|
|
<td class="desc">{{item.isConcept == 1?"标准词":"同义词"}}</td>
|
|
<td v-if="id">
|
|
<td v-if="id">
|
|
<span class="displayColor" v-if="item.isConcept == 1">删除</span>
|
|
<span class="displayColor" v-if="item.isConcept == 1">删除</span>
|
|
- <span @click="deleLine(index,55)" class="delete" v-else>删除</span>
|
|
|
|
|
|
+ <span @click="deleLine(index,55,item)" class="delete" v-else>删除</span>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr @click="addSpan(55)">
|
|
<tr @click="addSpan(55)">
|
|
@@ -224,7 +224,7 @@
|
|
<input v-model="item.remark" placeholder="请输入术语说明" maxlength="120" />
|
|
<input v-model="item.remark" placeholder="请输入术语说明" maxlength="120" />
|
|
</td>
|
|
</td>
|
|
<td v-if="id">
|
|
<td v-if="id">
|
|
- <span @click="deleLine(index)" class="delete">删除</span>
|
|
|
|
|
|
+ <span @click="deleLine(index,1,item)" class="delete">删除</span>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr @click="addSpan">
|
|
<tr @click="addSpan">
|
|
@@ -607,7 +607,6 @@ export default {
|
|
this.unfit = true;
|
|
this.unfit = true;
|
|
} else {
|
|
} else {
|
|
// let current = this.synonymous[index-1];
|
|
// let current = this.synonymous[index-1];
|
|
- console.log(9999000000)
|
|
|
|
let current = this.allwords[index];
|
|
let current = this.allwords[index];
|
|
current.spell = pinyin.getCamelChars(current.name);
|
|
current.spell = pinyin.getCamelChars(current.name);
|
|
this.unfit = false;
|
|
this.unfit = false;
|
|
@@ -699,12 +698,24 @@ export default {
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
},
|
|
},
|
|
- deleLine(index, type) {
|
|
|
|
|
|
+ deleLine(index, type,item) {
|
|
// 只在界面删除数据,待点确认 后参才真正删除
|
|
// 只在界面删除数据,待点确认 后参才真正删除
|
|
if (type == 55) {
|
|
if (type == 55) {
|
|
- this.synonymous.splice(index - 1, 1);
|
|
|
|
- this.allwords.splice(index, 1);
|
|
|
|
|
|
+ const {libId} = item
|
|
|
|
+ if(libId){
|
|
|
|
+ api.clearConceptInfo({libId}).then((res)=>{
|
|
|
|
+ const result = res.data
|
|
|
|
+ if(result.code == 0){
|
|
|
|
+ this.synonymous.splice(index - 1, 1);
|
|
|
|
+ this.allwords.splice(index, 1);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.synonymous.splice(index - 1, 1);
|
|
|
|
+ this.allwords.splice(index, 1);
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
|
|
+ console.log(2222)
|
|
this.synonymous.splice(index, 1);
|
|
this.synonymous.splice(index, 1);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -742,7 +753,6 @@ export default {
|
|
|
|
|
|
// 过滤同义词空数据
|
|
// 过滤同义词空数据
|
|
let realData = [];
|
|
let realData = [];
|
|
- console.log(99999,this.allWords)
|
|
|
|
if (this.id) {
|
|
if (this.id) {
|
|
//修改用暂存的列表
|
|
//修改用暂存的列表
|
|
realData = this.synonymous.filter(item => {
|
|
realData = this.synonymous.filter(item => {
|
|
@@ -765,7 +775,6 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
let detailList = [];
|
|
let detailList = [];
|
|
- console.log(this.data,realData,2222)
|
|
|
|
for (let i = 0; i < realData.length; i++) {
|
|
for (let i = 0; i < realData.length; i++) {
|
|
let obj = {}
|
|
let obj = {}
|
|
realData[i].synonymName = realData[i].name;
|
|
realData[i].synonymName = realData[i].name;
|
|
@@ -840,7 +849,6 @@ export default {
|
|
klConceptSub: detailList||[],
|
|
klConceptSub: detailList||[],
|
|
};
|
|
};
|
|
}
|
|
}
|
|
- console.log(params,5555)
|
|
|
|
// return false
|
|
// return false
|
|
this.saveDisable = true; //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
|
|
this.saveDisable = true; //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
|
|
api.saveBaseConceptInfo(params).then(res => {
|
|
api.saveBaseConceptInfo(params).then(res => {
|