|
|
|
@ -1,7 +1,9 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="page"> |
|
|
|
|
<div class="action"> |
|
|
|
|
<el-button @click="edit">编辑</el-button> |
|
|
|
|
<el-button v-if="!editing" |
|
|
|
|
type="primary" |
|
|
|
|
@click="edit">编辑</el-button> |
|
|
|
|
</div> |
|
|
|
|
<el-form label-width="170px" |
|
|
|
|
label-suffix=":" |
|
|
|
@ -14,7 +16,7 @@ |
|
|
|
|
:limit="1" |
|
|
|
|
:on-exceed="handleExceed" |
|
|
|
|
:before-remove="beforeRemove" |
|
|
|
|
:on-remove="handleRemove('logoUrl')" |
|
|
|
|
:on-remove="e => handleRemove('logoUrl')" |
|
|
|
|
:on-error="uploadError" |
|
|
|
|
action="" |
|
|
|
|
:http-request="e => handleRequest(e, 'logoUrl')"> |
|
|
|
@ -35,6 +37,7 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="幼儿园slogan"> |
|
|
|
|
<el-input type="textarea" |
|
|
|
|
rows="4" |
|
|
|
|
v-model="form.slogan" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="省份"> |
|
|
|
@ -60,10 +63,12 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="地址"> |
|
|
|
|
<el-input type="textarea" |
|
|
|
|
rows="4" |
|
|
|
|
v-model="form.address" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="幼儿园简介"> |
|
|
|
|
<el-input type="textarea" |
|
|
|
|
rows="4" |
|
|
|
|
v-model="form.briefIntroduction" /> |
|
|
|
|
<Upload class="m-t-10" |
|
|
|
|
:limit="3" |
|
|
|
@ -84,7 +89,7 @@ |
|
|
|
|
:limit="1" |
|
|
|
|
:on-exceed="handleExceed" |
|
|
|
|
:before-remove="beforeRemove" |
|
|
|
|
:on-remove="handleRemove('qrCodeOneUrl')" |
|
|
|
|
:on-remove="e => handleRemove('qrCodeOneUrl')" |
|
|
|
|
:on-error="uploadError" |
|
|
|
|
action="" |
|
|
|
|
:http-request="e => handleRequest(e, 'qrCodeOneUrl')"> |
|
|
|
@ -101,13 +106,12 @@ |
|
|
|
|
<el-form-item label="二维码二"> |
|
|
|
|
<el-input v-model="form.qrCodeTwoName" |
|
|
|
|
placeholder="请输入二维码描述" /> |
|
|
|
|
|
|
|
|
|
<el-upload class="avatar-uploader m-t-10" |
|
|
|
|
accept=".jpg,.png,.jpeg,.gif" |
|
|
|
|
:limit="1" |
|
|
|
|
:on-exceed="handleExceed" |
|
|
|
|
:before-remove="beforeRemove" |
|
|
|
|
:on-remove="handleRemove('qrCodeTwoUrl')" |
|
|
|
|
:on-remove="e => handleRemove('qrCodeTwoUrl')" |
|
|
|
|
:on-error="uploadError" |
|
|
|
|
action="" |
|
|
|
|
:http-request="e => handleRequest(e, 'qrCodeTwoUrl')"> |
|
|
|
@ -130,7 +134,7 @@ |
|
|
|
|
:limit="1" |
|
|
|
|
:on-exceed="handleExceed" |
|
|
|
|
:before-remove="beforeRemove" |
|
|
|
|
:on-remove="handleRemove('qrCodeThreeUrl')" |
|
|
|
|
:on-remove="e => handleRemove('qrCodeThreeUrl')" |
|
|
|
|
:on-error="uploadError" |
|
|
|
|
action="" |
|
|
|
|
:http-request="e => handleRequest(e, 'qrCodeThreeUrl')"> |
|
|
|
@ -218,7 +222,6 @@ export default { |
|
|
|
|
getData () { |
|
|
|
|
this.$get(`${this.api.queryTeamInfo}?teamId=${this.teamId}`).then(res => { |
|
|
|
|
Object.assign(this.form, res.teamInfo) |
|
|
|
|
console.log("🚀 ~ file: basic.vue:120 ~ this.$get ~ this.form:", this.form) |
|
|
|
|
}).catch(err => { }) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -254,6 +257,7 @@ export default { |
|
|
|
|
return this.$confirm(`确定移除 ${file.name}?`); |
|
|
|
|
}, |
|
|
|
|
handleRemove (field) { |
|
|
|
|
console.log("🚀 ~ file: basic.vue:255 ~ handleRemove ~ field:", field) |
|
|
|
|
Oss.del(this.form[field]) |
|
|
|
|
this.form[field] = '' |
|
|
|
|
}, |
|
|
|
|