| | |
| | | slot="userTypeName"> |
| | | <el-tag>{{row.userTypeName}}</el-tag> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="online_status"> |
| | | <el-tag |
| | | >{{ |
| | | row.online_status == "0" ? "离线" : row.online_status == "1" ? "在线" : "离线" |
| | | }} |
| | | </el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="用户角色配置" |
| | | append-to-body |
| | |
| | | }; |
| | | return { |
| | | form: {}, |
| | | search:{}, |
| | | search: {}, |
| | | roleBox: false, |
| | | excelBox: false, |
| | | platformBox: false, |
| | |
| | | slot: true, |
| | | display: false |
| | | }, |
| | | |
| | | { |
| | | label: "用户平台", |
| | | prop: "userTypeName", |
| | | slot: true, |
| | | display: false |
| | | }, { |
| | | label: "在线状态", |
| | | prop: "online_status", |
| | | slot: true, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "工作状态", |
| | | prop: "work_status", |
| | | slot: true, |
| | | hide: true, |
| | | display: false |
| | | }, |
| | | { |
| | |
| | | this.excelBox = true; |
| | | }, |
| | | uploadAfter(res, done, loading, column) { |
| | | window.console.log(column); |
| | | this.excelBox = false; |
| | | this.refreshChange(); |
| | | done(); |
| | |
| | | if (["edit", "view"].includes(type)) { |
| | | getUser(this.form.id).then(res => { |
| | | this.form = res.data.data; |
| | | if(this.form.hasOwnProperty("deptId")){ |
| | | if (this.form.hasOwnProperty("deptId")) { |
| | | this.form.deptId = this.form.deptId.split(","); |
| | | } |
| | | if(this.form.hasOwnProperty("roleId")){ |
| | | if (this.form.hasOwnProperty("roleId")) { |
| | | this.form.roleId = this.form.roleId.split(","); |
| | | } |
| | | if(this.form.hasOwnProperty("postId")){ |
| | | if (this.form.hasOwnProperty("postId")) { |
| | | this.form.postId = this.form.postId.split(","); |
| | | } |
| | | }); |