From cf8a751fa16e30b13080bf0e7af2ff6c9df693a8 Mon Sep 17 00:00:00 2001 From: children117cl <278950112@qq.com> Date: 星期三, 14 四月 2021 11:28:05 +0800 Subject: [PATCH] banner设置跳转类型为不跳转时,清空其余跳转字段 --- src/pages/system/banner.vue | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/pages/system/banner.vue b/src/pages/system/banner.vue index 9cceb20..7f2f5f7 100644 --- a/src/pages/system/banner.vue +++ b/src/pages/system/banner.vue @@ -93,6 +93,7 @@ clearable placeholder="璇烽�夋嫨灏忕▼搴忕増鏈�" class="com-edit-input" + @change="handleJumpTypeChange" > <el-option v-for="item in envVersionOpt" :key="item.value" :label="item.label" :value="item.value" /> </el-select> @@ -247,6 +248,15 @@ handleEdit(item) { this.showDialog('edit', item) }, + // 璺宠浆绫诲瀷涓恒�愪笉璺宠浆銆戞椂锛屾竻绌哄叾浣欒烦杞瓧娈� + handleJumpTypeChange() { + if (this.dialogData.jumpType === 0) { + this.dialogData.jumpUrl = '' + this.dialogData.jumpMpId = '' + this.dialogData.envVersion = '' + this.dialogData.extraData = '' + } + }, // 鏄剧ず寮规 showDialog(type, item) { let dialogData = {} -- Gitblit v1.8.0