diff --git a/frontend/src/views/panel/LinkJumpSet/index.vue b/frontend/src/views/panel/LinkJumpSet/index.vue index 60ce7bba70..a213082411 100644 --- a/frontend/src/views/panel/LinkJumpSet/index.vue +++ b/frontend/src/views/panel/LinkJumpSet/index.vue @@ -141,15 +141,16 @@ - {{$t(panel.target_url)}} + {{ $t('panel.target_url') }}
- {{$t(panel.target_url_tips)}} + {{ $t('panel.target_url_tips') }}
- {{$t(panel.select_world)}} + {{ $t('panel.select_world') }}
引用字段以 "[" 开始, "]" 结束 @@ -272,6 +273,7 @@ export default { }, data() { return { + codemirrorShow: true, name2Auto: [], searchField: '', searchFunction: '', @@ -313,7 +315,7 @@ export default { styleActiveLine: true, lineNumbers: true, line: true, - mode: 'text/x-sql', + mode: 'text/x-textile', theme: 'solarized', hintOptions: { // 自定义提示选项 completeSingle: false // 当匹配只有一项的时候是否自动补全 @@ -387,6 +389,7 @@ export default { this.$emit('closeJumpSetDialog') }, save() { + this.codemirrorShow = false this.linkJumpInfo.content = checkAddHttp(this.linkJumpInfo.content) this.linkJumpInfoArray.forEach(jumpInfo => { jumpInfo.content = this.setNameIdTrans('sourceFieldName', 'sourceFieldId', jumpInfo.content) @@ -401,7 +404,12 @@ export default { queryPanelJumpInfo(this.panelInfo.id).then(rsp => { this.$store.commit('setNowPanelJumpInfo', rsp.data) this.cancel() + this.codemirrorShow = true + }).catch(() => { + this.codemirrorShow = true }) + }).catch(() => { + this.codemirrorShow = true }) }, nodeClick(data, node) {