| | |
| | | display: false |
| | | }, |
| | | { |
| | | display: false, |
| | | label: "账号状态", |
| | | prop: "bannedState", |
| | | slot: true, |
| | | dicData: [{ |
| | | label: '已封禁', |
| | | value: "1" |
| | | }, { |
| | | label: '正常', |
| | | value: "0" |
| | | }], |
| | | }, |
| | | { |
| | | label: "所属部门", |
| | | prop: "deptName", |
| | | slot: true, |
| | |
| | | row['deptId'] = this.userInfo.dept_id; |
| | | row.roleId = row.roleId.join(","); |
| | | row.farmId = row.farmId.join(","); |
| | | // row.postId = row.postId.join(","); |
| | | row.id = null |
| | | if (!row.sex){ |
| | | row.sex = 3 |
| | | } |
| | |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }); |
| | | this.onLoad(this.page) |
| | | }); |
| | | }, |
| | | handleImport() { |
| | |
| | | }) |
| | | }, |
| | | beforeOpen(done, type) { |
| | | this.initFlag = true; |
| | | const column = this.findObject(this.option.group, "farmId"); |
| | | var passwordColumn = this.findObject(this.option.group,"password"); |
| | | var password2Column = this.findObject(this.option.group,"password2") |
| | | passwordColumn.display = true; |
| | | password2Column.display = true; |
| | | if(type == "add"&& column.dicData == ""){ |
| | | this.form = { |
| | | id:null |
| | | } |
| | | this.form = {id:null} |
| | | this.initData(website.tenantId) |
| | | } |
| | | if (["edit", "view"].includes(type)) { |
| | |
| | | // this.form.postId = this.form.postId.split(","); |
| | | // } |
| | | }); |
| | | }else { |
| | | this.form = { |
| | | id:null |
| | | } |
| | | } |
| | | this.initFlag = true; |
| | | if (type == "add"){ |
| | | if (this.$refs.form){ |
| | | this.$refs.form.resetForm() |
| | | } |
| | | this.form = {id :null } |
| | | } |
| | | done(); |
| | | }, |
| | | currentChange(currentPage) { |