15033 更换头像 应该限制只能上传图片格式

pet_li_6.6
liujun 2024-04-09 09:20:31 +08:00
parent 4954bc68e3
commit e37efe2bf8
3 changed files with 6 additions and 4 deletions

View File

@ -81,7 +81,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="归属企业"> <el-form-item label="归属企业">
<el-select v-model="util.BELONG_TO_CORP" :disabled="isShow" placeholder="请选择" style="width: 100%" @change="getPeopleList"> <el-select v-model="util.BELONG_TO_CORP" :disabled="isShow" filterable placeholder="请选择" style="width: 100%" @change="getPeopleList">
<el-option <el-option
v-for="item in warehouse.companyList" v-for="item in warehouse.companyList"
:key="item.BELONG_TO_CORP" :key="item.BELONG_TO_CORP"
@ -272,7 +272,7 @@ export default {
}, },
updateSelect(rows, row) { updateSelect(rows, row) {
console.log(rows) console.log(rows)
if (this.form.CLASS_SIZE === '' || this.form.CLASS_SIZE) { if (this.form.CLASS_SIZE === '' || !this.form.CLASS_SIZE) {
this.$message.error('请先选择班级容量') this.$message.error('请先选择班级容量')
return return
} }
@ -324,6 +324,8 @@ export default {
CLASS_SIZE: '', // CLASS_SIZE: '', //
CLASS_STATUS: ''// 0-1-2- CLASS_STATUS: ''// 0-1-2-
} }
this.selectPeopleList = []
this.util.BELONG_TO_CORP = ''
}, },
getDic() { getDic() {
let i = 0 let i = 0

View File

@ -1,6 +1,6 @@
<template> <template>
<el-dialog v-loading="loading" :visible.sync="visible" :append-to-body="appendToBody" title="头像更换" width="370px" destroy-on-close > <el-dialog v-loading="loading" :visible.sync="visible" :append-to-body="appendToBody" title="头像更换" width="370px" destroy-on-close >
<upload-img ref="uploadImg" :file-list.sync="fileList" :limit="1"/> <upload-img ref="uploadImg" :file-list.sync="fileList" :limit="1" accept=".jpg,.jpeg,.png"/>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="goBack"> </el-button> <el-button @click="goBack"> </el-button>
<el-button type="primary" @click="save"> </el-button> <el-button type="primary" @click="save"> </el-button>

View File

@ -67,7 +67,7 @@
<user-info ref="userInfos" append-to-body/> <user-info ref="userInfos" append-to-body/>
<flow-info-list ref="flowInfo"/> <flow-info-list ref="flowInfo"/>
<flow-step ref="flowStep" /> <flow-step ref="flowStep" />
<repulse ref="repulse"/> <repulse ref="repulse" @refresh="getList"/>
</div> </div>
</template> </template>