From db96301a4715b1c4f1180095441963ed6f430797 Mon Sep 17 00:00:00 2001 From: MrShi <1878285526@qq.com> Date: 星期五, 17 一月 2025 11:02:41 +0800 Subject: [PATCH] 开发功能 --- admin/src/views/finance/collectionSettings.vue | 72 ++++++++++++++++++++++++++++++++--- 1 files changed, 65 insertions(+), 7 deletions(-) diff --git a/admin/src/views/finance/collectionSettings.vue b/admin/src/views/finance/collectionSettings.vue index 42b37e6..1df43de 100644 --- a/admin/src/views/finance/collectionSettings.vue +++ b/admin/src/views/finance/collectionSettings.vue @@ -5,15 +5,46 @@ <el-form ref="form" :model="form" label-width="120px"> <el-form-item label="鐭俊妯℃澘"> <div style="display: flex; align-items: self-start;"> - <el-input type="textarea" rows="5" v-model="form.desc"></el-input> - <el-button type="primary" style="margin-left: 10px;">淇濆瓨</el-button> + <el-input type="textarea" rows="5" v-model="form.smsTemp"></el-input> +<!-- <el-button type="primary" style="margin-left: 10px;">淇濆瓨</el-button>--> </div> </el-form-item> <el-form-item label="閭妯℃澘"> <div style="display: flex; align-items: self-start;"> - <el-input type="textarea" rows="5" v-model="form.desc"></el-input> - <el-button type="primary" style="margin-left: 10px;">淇濆瓨</el-button> + <el-input type="textarea" rows="5" v-model="form.emailTemp"></el-input> +<!-- <el-button type="primary" style="margin-left: 10px;">淇濆瓨</el-button>--> </div> + </el-form-item> + <el-form-item label="绉熻祦閫氱煡鍗曟ā鏉�"> + <div style="display: flex; align-items: self-start;"> + <el-tooltip style="margin-right: 10px; margin-top: 10px; flex-shrink: 0;" effect="dark" content="鍖呭惈绉熻祦璐广�佺墿涓氳垂銆佺璧佹娂閲戙�佺墿涓氭娂閲�" placement="bottom-start"> + <i class="el-icon-question"></i> + </el-tooltip> + <el-upload + style="flex: 1;" + class="upload-demo" + :action="uploadImgUrl" + :data="uploadData" + :on-success="uploadAvatarSuccess" + :on-remove="handleRemove" + :file-list="form.leaseTemp"> + <el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button> + </el-upload> + </div> + </el-form-item> + <el-form-item label="鍏朵粬閫氱煡鍗曟ā鏉�"> + <el-upload + class="upload-demo" + :action="uploadImgUrl" + :data="uploadData" + :on-success="uploadAvatarSuccess1" + :on-remove="handleRemove1" + :file-list="form.otherTemp"> + <el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button> + </el-upload> + </el-form-item> + <el-form-item> + <el-button type="primary" @click="submit">淇濆瓨</el-button> </el-form-item> </el-form> </div> @@ -30,8 +61,15 @@ name: 'collectionSettings', data() { return { + uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/visitsAdmin/cloudService/public/uploadBatch', + uploadData: { + folder: 'TEMP_CONFIG' + }, form: { - desc: '' + emailTemp: '', + smsTemp: '', + leaseTemp: [], + otherTemp: [] } } }, @@ -40,10 +78,30 @@ this.getCallTempVal() }, methods: { + submit() { + + }, + handleRemove(e) { + this.form.leaseTemp = [] + }, + uploadAvatarSuccess(file) { + const item = file.data[0] + this.form.leaseTemp = [{ ...item, name: item.originname }] + }, + handleRemove1(e) { + this.form.otherTemp = [] + }, + uploadAvatarSuccess1(file) { + const item = file.data[0] + this.form.otherTemp = [{ ...item, name: item.originname }] + }, getCallTempVal() { getCallTemp({}) .then(res => { - console.log(res) + this.form.smsTemp = res.smsTemp.title + this.form.emailTemp = res.emailTemp.title + this.form.leaseTemp = [{ url: res.leaseTemp.url, name: res.leaseTemp.title }] + this.form.otherTemp = [{ url: res.otherTemp.url, name: res.otherTemp.title }] }) } } @@ -64,7 +122,7 @@ align-items: self-start; justify-content: space-between; .content_form { - width: 60%; + width: 70%; } } } -- Gitblit v1.9.3