|
@@ -108,7 +108,8 @@ export default {
|
|
|
pageSizeArr:config.pageSizeArr,
|
|
|
pageLayout:config.pageLayout,
|
|
|
total: 0,
|
|
|
- typeList:[]
|
|
|
+ typeList:[],
|
|
|
+ relationId: 17
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -134,6 +135,7 @@ export default {
|
|
|
//const pm = to.param;
|
|
|
Object.assign(vm, to.params);
|
|
|
vm.inCurrentPage=to.params.currentPage;
|
|
|
+ vm.relationId=to.params.relationId;
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
@@ -147,6 +149,11 @@ export default {
|
|
|
this.filter.conceptName = '';
|
|
|
this.filter.type = item.key;
|
|
|
this.currentPage = 1;
|
|
|
+ if(item.key === 181011) {
|
|
|
+ this.relationId = 4
|
|
|
+ } else {
|
|
|
+ this.relationId = 17
|
|
|
+ }
|
|
|
this.getDataList();
|
|
|
},
|
|
|
getDataList(isTurnPage) {
|
|
@@ -178,19 +185,22 @@ export default {
|
|
|
const pam = this.searched ? {
|
|
|
currentPage: this.currentPage,
|
|
|
pageSize:this.pageSize,
|
|
|
- filter: this.filter
|
|
|
+ filter: this.filter,
|
|
|
+ relationId: this.relationId
|
|
|
} : {currentPage: this.currentPage,
|
|
|
- pageSize:this.pageSize,filter:Object.assign(this.filter,{conceptName:''})};
|
|
|
+ pageSize:this.pageSize,relationId: this.relationId,filter:Object.assign(this.filter,{conceptName:''})};
|
|
|
this.$router.push({name:'AddConceptRelation',params:pam})
|
|
|
},
|
|
|
modifyRelation(row) {
|
|
|
const typeL = this.filter.type.toString().split('101');
|
|
|
const typeId = [];
|
|
|
+ const relationIds = []
|
|
|
+ relationIds.push(this.relationId)
|
|
|
typeId[0] = +typeL[1];
|
|
|
const param = {
|
|
|
"conceptId": row.conceptId,
|
|
|
// "relationId":17
|
|
|
- "relationIds":[17],//9-20新增
|
|
|
+ "relationIds":relationIds,//9-20新增
|
|
|
"typeIds":typeId
|
|
|
}
|
|
|
const pam = this.searched ? {
|
|
@@ -202,7 +212,7 @@ export default {
|
|
|
api.getConceptRelationDet(param).then((res) => {
|
|
|
if(res.data.code=='0'){
|
|
|
const { data } = res.data;
|
|
|
- this.$router.push({name:'AddConceptRelation',params:Object.assign(pam, {isEdit: true, data: data})});
|
|
|
+ this.$router.push({name:'AddConceptRelation',params:Object.assign(pam, {isEdit: true, relationId: this.relationId,data: data})});
|
|
|
} else {
|
|
|
this.warning(res.data.msg);
|
|
|
}
|
|
@@ -224,7 +234,7 @@ export default {
|
|
|
current: this.inCurrentPage||this.currentPage,
|
|
|
size: this.pageSize,
|
|
|
name:this.filter.conceptName.trim(),
|
|
|
- relationId:17,
|
|
|
+ relationId:this.relationId,
|
|
|
relationModelTypeCode:this.filter.type
|
|
|
};
|
|
|
return param;
|