Merge pull request #2103 from dataease/pr@dev@refactor_add-sys-template

refactor: 跳转设置外部参数设置添加或选中参数自动启用
This commit is contained in:
王嘉豪 2022-04-12 19:26:42 +08:00 committed by GitHub
commit eff4c2b287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)