|
@@ -3036,7 +3036,8 @@ export default {
|
|
|
message: "设置参数节点成功!",
|
|
|
});
|
|
|
this.nodeInfoSaveload=false
|
|
|
- this.nodeInfoVisible = false;
|
|
|
+ this.parameters(this.jiedianId)
|
|
|
+ // this.nodeInfoVisible = false;
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: "error",
|
|
@@ -3529,15 +3530,21 @@ export default {
|
|
|
|
|
|
//节点参数 关联元素
|
|
|
linkEle(row){
|
|
|
- this.linkEleVisible = true;
|
|
|
- this.curParam = row;
|
|
|
- getParamElements({nodeId:this.curTreeData.id,projectId:this.projectid,paramId:row.id,scopeType:10}).then((res) => {
|
|
|
- if (res.data.data.length) {
|
|
|
- this.linkEleTableList = res.data.data;
|
|
|
- } else {
|
|
|
- this.linkEleTableList = [];
|
|
|
- }
|
|
|
- })
|
|
|
+ console.log(row,'row');
|
|
|
+ if(!row.id){
|
|
|
+ this.$message.warning('请先保存数据,再点击关联元素')
|
|
|
+ }else{
|
|
|
+ this.linkEleVisible = true;
|
|
|
+ this.curParam = row;
|
|
|
+ getParamElements({nodeId:this.curTreeData.id,projectId:this.projectid,paramId:row.id,scopeType:10}).then((res) => {
|
|
|
+ if (res.data.data.length) {
|
|
|
+ this.linkEleTableList = res.data.data;
|
|
|
+ } else {
|
|
|
+ this.linkEleTableList = [];
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
|
|
|
//关联元素弹框
|