Commit e8bdac80 by H.wb.wang.peixun

BUG修复

parent 874a1c1f
......@@ -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 = []
// console.log(,'this.form----------')
if (this.$refs['refSelect'].value instanceof Array) {
obj = this.$refs['refSelect'].value
} else {
obj.push(this.$refs['refSelect'].value)
if(this.form.sex == 0){
// 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