| | |
| | | label="关联角色" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <i class="el-icon-share" @click="roleClick({row})" /> |
| | | <i v-if="row.is_role==='Y'" class="el-icon-share" @click="roleClick({row})" /> |
| | | <i v-if="row.is_role==='N'" class="el-icon-share" style="color: #E4E7ED" @click="roleClick({row})" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | UserCode: '', |
| | | UserName: '', |
| | | Password: '', |
| | | Enable: '', |
| | | Enable: 'Y', |
| | | StuOrg: '', |
| | | Mobile: '', |
| | | Email: '', |
| | |
| | | this.form.UserCode = '' |
| | | this.form.UserName = '' |
| | | this.form.StuOrg = '' |
| | | this.form.Enable = '' |
| | | this.form.Enable = 'Y' |
| | | this.form.wagetype = '' |
| | | this.$refs.cascader.checkedValue = ''// 级联选择器的清空 |
| | | this.getUserSearch() |
| | |
| | | this.dialogForm.UserCode = '' |
| | | this.dialogForm.UserName = '' |
| | | this.dialogForm.Password = '' |
| | | this.dialogForm.Enable = '' |
| | | this.dialogForm.Enable = 'Y' |
| | | this.$refs.dialogCascader.checkedValue = '' |
| | | this.dialogForm.StuOrg = '' |
| | | this.dialogForm.Mobile = '' |
| | |
| | | const res = await SaveUserAssoctRole(this.dialogFormRoles.roleTreeSelectedArr, this.dialogFormRoles.usercode) |
| | | if (res.code === '200') { |
| | | this.$message.success('保存成功!') |
| | | await this.getUserSearch() |
| | | this.dialogVisibleRoles = false |
| | | } |
| | | }, |
| | |
| | | if (row.group_name.trim().length < 1) { |
| | | return this.$message.info('班组名称不能为空!') |
| | | } |
| | | if (row.description.trim().length < 1) { |
| | | return this.$message.info('班组描述不能为空!') |
| | | } |
| | | // if (row.description.trim().length < 1) { |
| | | // return this.$message.info('班组描述不能为空!') |
| | | // } |
| | | const data = { |
| | | code: row.group_code, |
| | | name: row.group_name, |