|
@@ -3119,15 +3119,20 @@ export default {
|
|
|
target={elementId:e.id,paramId:this.curParam.id};
|
|
|
}
|
|
|
})
|
|
|
- specifiedParamElements(target).then(data=>{
|
|
|
- this.linkCheckVisible = false;
|
|
|
- getParamElements({nodeId:this.jiedianId,paramId:this.curParam.id,scopeType:1}).then((res) => {
|
|
|
- if (res.data.data.length) {
|
|
|
- this.linkEleTableList = res.data.data;
|
|
|
- } else {
|
|
|
- this.linkEleTableList = [];
|
|
|
- }})
|
|
|
- })
|
|
|
+ if(JSON.stringify(target) !== '{}'){
|
|
|
+ specifiedParamElements(target).then(data=>{
|
|
|
+ this.linkCheckVisible = false;
|
|
|
+ getParamElements({nodeId:this.jiedianId,paramId:this.curParam.id,scopeType:1}).then((res) => {
|
|
|
+ if (res.data.data.length) {
|
|
|
+ this.linkEleTableList = res.data.data;
|
|
|
+ } else {
|
|
|
+ this.linkEleTableList = [];
|
|
|
+ }})
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.$message.warning('请先选择关联元素')
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
|
|
|
//筛选元素
|