|
@@ -165,6 +165,7 @@
|
|
|
"relationId": this.type,
|
|
|
"size": this.pageSize,
|
|
|
"startName": this.startName,
|
|
|
+ "isDeleted":this.isState
|
|
|
}
|
|
|
const params = this.type?param1:param;
|
|
|
api.knowledgeRelation(params).then((res) => {
|
|
@@ -243,7 +244,8 @@
|
|
|
id:item.id,
|
|
|
isDeleted:item.isDeleted === 'N'?'Y':'N'
|
|
|
}
|
|
|
- this.showConfirmDialog('是否删除该关系?可能对现有系统造成影响',()=>{
|
|
|
+ let warningTxt = item.isDeleted === 'N'?'是否删除该关系?可能对现有系统造成影响':'是否重新启用该条数据?'
|
|
|
+ this.showConfirmDialog(warningTxt,()=>{
|
|
|
api.delKnowledgeRelation(params).then((res)=>{
|
|
|
if(res.data.code=='0'){
|
|
|
this.warning(res.data.msg||'操作成功','success');
|
|
@@ -276,6 +278,7 @@
|
|
|
message: '上传成功',
|
|
|
type: 'success',
|
|
|
});
|
|
|
+ this.getDataList()
|
|
|
}else{
|
|
|
this.$message({
|
|
|
dangerouslyUseHTMLString: true,
|