forked from github/dataease
refactor: 跳转设置外部参数设置添加或选中参数自动启用
This commit is contained in:
parent
d421b81b83
commit
0eee607a36
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user