From b00c9d83f57f24178bf63a257a221face060b936 Mon Sep 17 00:00:00 2001 From: Flex <q1406482700@163.com> Date: 星期四, 12 六月 2025 16:42:03 +0800 Subject: [PATCH] Merge branch 'master' of http://yykjgit.sdyyst.com/r/easegen --- easegen-front/src/views/digitalcourse/template/TemplateForm.vue | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/easegen-front/src/views/digitalcourse/template/TemplateForm.vue b/easegen-front/src/views/digitalcourse/template/TemplateForm.vue index 4322597..392934e 100644 --- a/easegen-front/src/views/digitalcourse/template/TemplateForm.vue +++ b/easegen-front/src/views/digitalcourse/template/TemplateForm.vue @@ -4,9 +4,9 @@ ref="formRef" :model="formData" :rules="formRules" - label-width="200px" + label-width="80px" v-loading="formLoading"> - <el-row> + <el-row :gutter="40"> <el-col :span="12"> <el-form-item label="妯℃澘鍚嶇О" prop="templateName"> <el-input v-model="formData.templateName" maxlength="50" placeholder="璇疯緭鍏ユā鏉垮悕绉�" /> @@ -28,15 +28,15 @@ > <el-button type="primary">涓婁紶鍥剧墖</el-button> <template #tip> - <div class="el-upload__tip"> - 鍙兘涓婁紶jpg/png鏂囦欢 - </div> + <span class="el-upload__tip" style="display: inline-block;margin-left: 20px"> + 涓婁紶jpg/png鏂囦欢 + </span> </template> </el-upload> </el-form-item> </el-col> </el-row> - <el-row v-if="ishasAdminRole==true"> + <el-row v-if="ishasAdminRole==true" :gutter="40"> <el-col :span="12"> <el-form-item label="妯℃澘绫诲瀷" prop="zg"> <el-select v-model="formData.zg"> @@ -172,7 +172,7 @@ ElMessage.error('鍥剧墖澶у皬涓嶈兘瓒呰繃2MB!'); return false; } - + return true; }; async function updataImage(formData1) { @@ -405,13 +405,13 @@ } .checkbox-image { - width: 230px; + width: 93%; height: 150px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; transition: all 0.3s; - margin-left: 20px; + margin-left: 10px; margin-top: 20px; } @@ -447,4 +447,7 @@ .checkbox-input:checked ~ .checkbox-image { border: 1px solid #ddd; /* 閫変腑鏃朵繚鎸佺伆鑹�1px杈规 */ } +.upload-demo{ + margin-top: -7px; +} </style> -- Gitblit v1.9.3