From 89cecff4f95a1f6a4454552b5749aaa02ce93f87 Mon Sep 17 00:00:00 2001 From: children117cl <278950112@qq.com> Date: 星期三, 14 四月 2021 11:38:22 +0800 Subject: [PATCH] banner上传突破,需要描述尺寸 --- src/pages/system/banner.vue | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/pages/system/banner.vue b/src/pages/system/banner.vue index 1fb64b5..202be7f 100644 --- a/src/pages/system/banner.vue +++ b/src/pages/system/banner.vue @@ -58,12 +58,16 @@ /> <!-- 鏂板&缂栬緫 --> - <el-dialog v-el-drag-dialog :title="dialogData.type=='add'?'鏂板杞挱鍥�':'缂栬緫杞挱鍥�'" width="500px" :visible.sync="isShowDialog" append-to-body :before-close="hideDialog"> + <el-dialog v-el-drag-dialog :title="dialogData.type=='add'?'鏂板杞挱鍥�':'缂栬緫杞挱鍥�'" width="500px" :visible.sync="isShowDialog" append-to-body :before-close="hideDialog" :close-on-click-modal="false"> <el-form :ref="formName" :model="dialogData" label-width="120px" :rules="rules" size="small"> <el-form-item label="鎺掑簭鍙凤細" prop="orderNum"> <el-input v-model="dialogData.orderNum" placeholder="璇疯緭鍏ユ帓搴忓彿" maxlength="10" /> </el-form-item> - <el-form-item ref="uploadFormItem" label="杞挱鍥撅細" prop="uploadImgs"> + <el-form-item ref="uploadFormItem" prop="uploadImgs"> + <span slot="label"> + <!-- 灏哄 --> + 杞挱鍥撅細<br><span style="color: #999;font-size: 12px">(xxx*xxx鍍忕礌)</span> + </span> <!-- 涓婁紶鍥剧墖缁勪欢(澶氬浘) --> <UploadSingleImg ref="refUploadImg" @@ -93,6 +97,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 +252,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