Commit e8bdac80 by H.wb.wang.peixun

BUG修复

parent 874a1c1f
......@@ -232,7 +232,7 @@
<el-row>
<el-col :span="12">
<el-form-item label="身份">
<el-select v-model="form.sex" placeholder="请选择身份" :disabled="true" @change="clickChange()">
<el-select v-model="form.sex" placeholder="请选择身份" :disabled="true" @change="clickChange()">
<el-option v-for="dict in dict.type.sys_user_sex" :key="dict.value" :label="dict.label"
:value="dict.value"></el-option>
</el-select>
......@@ -387,10 +387,6 @@ export default {
pageNum: 1,
pageSize: 10,
userName: undefined,
phonenumber: undefined,
status: undefined,
deptId: undefined,
sex: '0'
},
// 列信息
columns: [
......@@ -512,7 +508,7 @@ export default {
postIds: [],
roleIds: [],
sex: '',
deptList:undefined
deptList: undefined
};
this.resetForm("form");
},
......@@ -619,13 +615,18 @@ export default {
submitForm: function () {
// this.form.deptList = this.$refs['refSelect'].value
let obj = []
obj.push(this.$refs['refSelect'].value)
if(this.form.sex == 0){
// console.log(,'this.form----------')
if (this.$refs['refSelect'].value instanceof Array) {
obj = this.$refs['refSelect'].value
} else {
obj.push(this.$refs['refSelect'].value)
// console.log('1111111')
}
if (this.form.sex == 0) {
this.form.deptInsetArray = obj
}else{
} else {
this.form.deptInsetArray = this.$refs['refSelect'].value
}
// console.log(this.form,'this.form----------')
// return
this.$refs["form"].validate(valid => {
if (valid) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment