Commit e8bdac80 by H.wb.wang.peixun

BUG修复

parent 874a1c1f
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="身份"> <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" <el-option v-for="dict in dict.type.sys_user_sex" :key="dict.value" :label="dict.label"
:value="dict.value"></el-option> :value="dict.value"></el-option>
</el-select> </el-select>
...@@ -387,10 +387,6 @@ export default { ...@@ -387,10 +387,6 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
userName: undefined, userName: undefined,
phonenumber: undefined,
status: undefined,
deptId: undefined,
sex: '0'
}, },
// 列信息 // 列信息
columns: [ columns: [
...@@ -512,7 +508,7 @@ export default { ...@@ -512,7 +508,7 @@ export default {
postIds: [], postIds: [],
roleIds: [], roleIds: [],
sex: '', sex: '',
deptList:undefined deptList: undefined
}; };
this.resetForm("form"); this.resetForm("form");
}, },
...@@ -619,13 +615,18 @@ export default { ...@@ -619,13 +615,18 @@ export default {
submitForm: function () { submitForm: function () {
// this.form.deptList = this.$refs['refSelect'].value // this.form.deptList = this.$refs['refSelect'].value
let obj = [] let obj = []
obj.push(this.$refs['refSelect'].value) // console.log(,'this.form----------')
if(this.form.sex == 0){ 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 this.form.deptInsetArray = obj
}else{ } else {
this.form.deptInsetArray = this.$refs['refSelect'].value this.form.deptInsetArray = this.$refs['refSelect'].value
} }
// console.log(this.form,'this.form----------')
// return // return
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (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