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 :span="12">
<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
v-for="item in warehouse.companyList"
:key="item.BELONG_TO_CORP"
@ -272,7 +272,7 @@ export default {
},
updateSelect(rows, row) {
console.log(rows)
if (this.form.CLASS_SIZE === '' || this.form.CLASS_SIZE) {
if (this.form.CLASS_SIZE === '' || !this.form.CLASS_SIZE) {
this.$message.error('请先选择班级容量')
return
}
@ -324,6 +324,8 @@ export default {
CLASS_SIZE: '', //
CLASS_STATUS: ''// 0-1-2-
}
this.selectPeopleList = []
this.util.BELONG_TO_CORP = ''
},
getDic() {
let i = 0

View File

@ -1,6 +1,6 @@
<template>
<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">
<el-button @click="goBack"> </el-button>
<el-button type="primary" @click="save"> </el-button>

View File

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