refactor: 跳转设置外部参数设置添加或选中参数自动启用

This commit is contained in:
wangjiahao 2022-04-12 19:25:28 +08:00
parent d421b81b83
commit 0eee607a36
2 changed files with 8 additions and 1 deletions

View File

@ -347,6 +347,9 @@ export default {
targetViewInfo.targetFieldId = null
},
sourceFieldCheckedChange(data) {
if (data.checked) {
this.linkJump.checked = true
}
this.$nextTick(() => {
this.$refs.linkJumpInfoTree.setCurrentKey(data.sourceFieldId)
this.nodeClick(data)

View File

@ -204,7 +204,7 @@ export default {
currentFiledTreeNode: null,
defaultOuterParamsInfo: {
paramName: '',
checked: false,
checked: true,
targetViewInfoList: []
},
defaultTargetViewInfo: {
@ -322,12 +322,16 @@ export default {
targetViewInfo.targetFieldId = null
},
sourceFieldCheckedChange(data) {
if (data.checked) {
this.outerParams.checked = true
}
this.$nextTick(() => {
this.$refs.outerParamsInfoTree.setCurrentKey(data.paramsInfoId)
this.nodeClick(data)
})
},
addOuterParamsInfo() {
this.outerParams.checked = true
const outerParamsInfo = deepCopy(this.defaultOuterParamsInfo)
outerParamsInfo['paramsInfoId'] = uuid.v1()
this.outerParamsInfoArray.push(outerParamsInfo)