|
@@ -408,7 +408,7 @@ export default {
|
|
|
row.loading = true;
|
|
|
if (type == "关联") {
|
|
|
// saveRelation(row.id, this.from.id, this.tableData)
|
|
|
- this.savelinktableInfo({
|
|
|
+ this.savelinktableInfo1({
|
|
|
linkids: row.id,
|
|
|
tabId: this.from.id,
|
|
|
type:1
|
|
@@ -421,7 +421,7 @@ export default {
|
|
|
row.loading = false;
|
|
|
});
|
|
|
} else {
|
|
|
- this. savelinktableInfo({
|
|
|
+ this. savelinktableInfo1({
|
|
|
linkids: row.id,
|
|
|
tabId: this.from.id,
|
|
|
type:4
|
|
@@ -472,11 +472,11 @@ export default {
|
|
|
if (this.addElementForm.wbsId) {
|
|
|
console.log(this.tableData,'this.tableData');
|
|
|
if (this.activeName == "link") {
|
|
|
- this.savelinktableInfo({
|
|
|
- linkids: this.selectNodeIds,
|
|
|
- tabId: this.from.id,
|
|
|
- type:1
|
|
|
- })
|
|
|
+ // this.savelinktableInfo({
|
|
|
+ // linkids: this.selectNodeIds,
|
|
|
+ // tabId: this.from.id,
|
|
|
+ // type:1
|
|
|
+ // })
|
|
|
} else {
|
|
|
if (
|
|
|
this.addElementForm.nodeName &&
|
|
@@ -619,6 +619,19 @@ export default {
|
|
|
this.AssociatedPublicClose();
|
|
|
}
|
|
|
},
|
|
|
+ //选择关联取消关联修改
|
|
|
+ async savelinktableInfo1(da) {
|
|
|
+ console.log('选择关联',da);
|
|
|
+ const { data: res } = await savelinktableInfo(da)
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "设置成功",
|
|
|
+ });
|
|
|
+ // this.AssociatedPublicTap = false;
|
|
|
+ // this.AssociatedPublicClose();
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
async getColByTabId() {
|
|
|
//获取字段信息
|