|
@@ -226,6 +226,8 @@ export default {
|
|
|
return {
|
|
|
visible: false,
|
|
|
treeId: '', // 树节点ID
|
|
|
+ deatailId: '', // 详情ID
|
|
|
+
|
|
|
paramList: [
|
|
|
{
|
|
|
symbolName: '<0.75',
|
|
@@ -267,12 +269,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- show(val,treeId,id,projectid) {
|
|
|
+ show(val,treeId,id,projectid,deatailId) {
|
|
|
this.getTableTypelist();
|
|
|
this.visible = true
|
|
|
if(val.length > 0&&val[0].name) {
|
|
|
this.treeId = treeId
|
|
|
this.id = id
|
|
|
+ this.deatailId = deatailId
|
|
|
this.projectid = projectid
|
|
|
this.paramList=val
|
|
|
val.forEach((item,index)=>{
|
|
@@ -287,7 +290,7 @@ export default {
|
|
|
async handleSelect(index) {
|
|
|
this.activeIndex = index
|
|
|
let leftId = this.paramList[index].id
|
|
|
- let arr= await this.getRelationData(this.id,leftId)
|
|
|
+ let arr= await this.getRelationData(this.deatailId,leftId)
|
|
|
|
|
|
if(arr.length>0){
|
|
|
this.$nextTick(()=>{
|
|
@@ -344,7 +347,7 @@ export default {
|
|
|
|
|
|
handleConfirm() {
|
|
|
|
|
|
- saveElementJoin(this.linkListData,this.id).then((res)=>{
|
|
|
+ saveElementJoin(this.linkListData,this.deatailId).then((res)=>{
|
|
|
if(res.data.code === 200) {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
@@ -382,7 +385,7 @@ export default {
|
|
|
this.$message.success(res.data.msg);
|
|
|
|
|
|
this.linkListData.splice(index, 1);
|
|
|
- this.getLinkSetData(this.id);
|
|
|
+ this.getLinkSetData(this.deatailId);
|
|
|
}else{
|
|
|
this.$message.error(res.data.msg);
|
|
|
}
|
|
@@ -427,7 +430,7 @@ export default {
|
|
|
objArr={
|
|
|
|
|
|
privateName: this.checkTableRow.tableName,
|
|
|
- privateId: this.checkTableRow.id,
|
|
|
+ privateId: this.checkTableRow.pkeyId,
|
|
|
elementNames: elementNames,
|
|
|
keys: selectedCodes,
|
|
|
|