| | |
| | | } |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo); |
| | | this.things = JSON.parse(JSON.stringify(this.userInfo)); |
| | | // 获取所属类型列表 |
| | | this.getTypeThird(); |
| | |
| | | this.getTypeFirst(); |
| | | }, |
| | | methods: { |
| | | // handleUser() { |
| | | // this.$refs.user.validate((valid) => { |
| | | // if (valid) { |
| | | // const { role } = this; |
| | | // console.log(role); |
| | | // this.$axios.post('/sccg/role/update/' + role.id, { |
| | | // id: role.id, |
| | | // status: role.status, |
| | | // description: role.description, |
| | | // name: role.name, |
| | | // sort: 0 |
| | | // }).then(res => { |
| | | // this.$emit('changeDialog', { dialogUpdate: false }); |
| | | // this.getUserList(); |
| | | // }) |
| | | // } else { |
| | | // return false; |
| | | // } |
| | | // }) |
| | | // }, |
| | | // 查询所属类型 |
| | | getTypeThird() { |
| | | this.$axios({ |