| | |
| | | :type="type" |
| | | :size="size" |
| | | icon="el-icon-edit" |
| | | :disabled="row.roleId == 1123598816738675201" |
| | | :disabled="row.roleId == '1123598816738675201' " |
| | | @click="update(row)">编辑</el-button> |
| | | <el-button |
| | | :type="type" |
| | | :size="size" |
| | | icon="el-icon-delete" |
| | | :disabled="row.roleId == 1123598816738675201" |
| | | :disabled="row.roleId == '1123598816738675201' " |
| | | @click="rowDel(row)">删除</el-button> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | |
| | | roleId:row.roleId.split(','), |
| | | farmId : row.farmId.split(",") |
| | | } |
| | | var passwordColumn = this.findObject(this.option.group,"password"); |
| | | var password2Column = this.findObject(this.option.group,"password2") |
| | | passwordColumn.display = false; |
| | | password2Column.display = false; |
| | | this.dialogVisible = true |
| | | }, |
| | | submitUpdate(row, done, loading){ |
| | |
| | | }, |
| | | beforeOpen(done, type) { |
| | | 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 = {} |
| | | this.initData(website.tenantId) |
| | | } |
| | | if (["edit", "view"].includes(type)) { |
| | | console.log(this.form.id) |
| | | passwordColumn.display = false; |
| | | password2Column.display = false; |
| | | getUser(this.form.id).then(res => { |
| | | this.form = res.data.data; |
| | | if(this.form.hasOwnProperty("deptId")){ |