From f7b760a680397fd0a3de2d8de36a2601de98530d Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期三, 02 七月 2025 10:36:06 +0800 Subject: [PATCH] ss --- admin/src/views/business/bottom.vue | 63 +++++++++++++++++++++++++++++++ 1 files changed, 62 insertions(+), 1 deletions(-) diff --git a/admin/src/views/business/bottom.vue b/admin/src/views/business/bottom.vue index f2bee33..3713a5e 100644 --- a/admin/src/views/business/bottom.vue +++ b/admin/src/views/business/bottom.vue @@ -56,6 +56,13 @@ @uploadSuccess="uploadAvatarSuccess" /> </div> </el-form-item> + <el-form-item label="浼佷笟寰俊" prop="faceImgFull"> + <div class="upload_wrap"> + + <UploadAvatarImage :file="{ 'imgurlfull': form.footFullImgUrl2, 'imgurl': form.footImgUrl2 }" :uploadData="uploadData" + @uploadSuccess="uploadAvatarSuccess2" /> + </div> + </el-form-item> <div style="margin:20px 0 50px 0"> <span style="font-size: 15px; font-weight: bold">銆�2銆戣В鍐虫柟妗堬細</span> </div> @@ -121,7 +128,42 @@ </div> </div> <el-form-item style="display: block"> - <el-button type="primary" icon="el-icon-plus" @click="add2">娣诲姞鎸囨尌绯荤粺</el-button> + <el-button type="primary" icon="el-icon-plus" @click="add2">娣诲姞鏅烘収绯荤粺</el-button> + </el-form-item> + <div style="margin: 100px 0 50px 0"> + <span style="font-size: 15px; font-weight: bold;">銆�4銆戣崳瑾夎祫璐細</span> + </div> + <div v-for="(item1,index) in form.honors" :key="'鑽h獕璧勮川'+index" style="display: flex"> + <div style="flex: 1;"> + <el-form-item label="鏍囬:" :required="true" > + <el-input + style="width: 100%" + type="text" + v-model="item1.name" + placeholder="璇疯緭鍏ユ爣棰�" + v-trim + /> + </el-form-item> + </div> + <div style="display: block;flex: 3"> + <el-form-item label="璺宠浆鍦板潃:" style="display:inline-block; width: 80%"> + <el-input + style="width: 100%" + type="text" + v-model="item1.address" + placeholder="璇疯緭鍏ヨ烦杞湴鍧�" + v-trim + /> + </el-form-item> + <el-form-item label-width="30px" style="display:inline-block;"> + <el-button type="danger" v-if="form.honors && form.honors.length >1" icon="el-icon-delete" @click="del3(index)">鍒犻櫎</el-button> + </el-form-item> + </div> + <div> + </div> + </div> + <el-form-item style="display: block"> + <el-button type="primary" icon="el-icon-plus" @click="add3">娣诲姞鑽h獕璧勮川</el-button> </el-form-item> <el-form-item style="margin-top: 100px;width: 100%;text-align: center"> <el-button type="primary" style="width: 300px" :loading="working" @click="submit">淇濆瓨閰嶇疆椤�</el-button> @@ -147,11 +189,14 @@ address: null, footImgUrl: 0, footFullImgUrl: 0, + footImgUrl2: 0, + footFullImgUrl2: 0, footWords: 0, linkMobile: 0, linkPhone: 0, serverTime: '', solveScheme: [{ name: '', address: '' }], + honors: [{ name: '', address: '' }], wisdomSystem: [{ name: '', address: '' }] } } @@ -171,6 +216,15 @@ add1 () { this.form.solveScheme.push({ name: '', address: '' }) }, + del3 (index) { + if (this.form.honors.length == 1) { + return + } + this.form.honors.splice(index) + }, + add3 () { + this.form.honors.push({ name: '', address: '' }) + }, del2 (index) { if (this.form.wisdomSystem.length == 1) { return @@ -187,12 +241,15 @@ this.form.address = res.address this.form.footImgUrl = res.footImgUrl this.form.footFullImgUrl = res.footFullImgUrl + this.form.footImgUrl2 = res.footImgUrl2 + this.form.footFullImgUrl2 = res.footFullImgUrl2 this.form.footWords = res.footWords this.form.linkMobile = res.linkMobile this.form.linkPhone = res.linkPhone this.form.serverTime = res.serverTime this.form.solveScheme = res.solveScheme || [{ name: '', address: '' }] this.form.wisdomSystem = res.wisdomSystem || [{ name: '', address: '' }] + this.form.honors = res.honors || [{ name: '', address: '' }] } }) }, @@ -202,6 +259,10 @@ this.form.footImgUrl = file.imgurl this.form.footFullImgUrl = file.imgurlfull }, + uploadAvatarSuccess2(file) { + this.form.footImgUrl2 = file.imgurl + this.form.footFullImgUrl2 = file.imgurlfull + }, submit () { console.log(this.form) this.$refs.form.validate((valid) => { -- Gitblit v1.9.3