15033 更换头像 应该限制只能上传图片格式
parent
4954bc68e3
commit
e37efe2bf8
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue