| | |
| | | </template> |
| | | |
| | | <script> |
| | | import winSm from '@/components/win/win-sm' |
| | | import myButton from '@/components/myButton/myButton' |
| | | import * as DateFormatter from '@/utils/DateFormatter' |
| | | import * as role from "@/api/system/role"; |
| | | import * as user from "@/api/user"; |
| | | import {departmentListAll} from "@/api/system/deptment"; |
| | | import winSm from '@/components/win/win-sm' |
| | | import myButton from '@/components/myButton/myButton' |
| | | import * as DateFormatter from '@/utils/DateFormatter' |
| | | import * as role from "@/api/system/role"; |
| | | import * as user from "@/api/user"; |
| | | import {departmentListAll} from "@/api/system/deptment"; |
| | | |
| | | export default { |
| | | export default { |
| | | components: {winSm, myButton}, |
| | | props: { |
| | | // setting 中须至少包含控制dialog显示或隐藏的属性,其余属性可拓展 |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | deptmentOptions:[], |
| | | checkAll: false, |
| | | checkedList: [], |
| | | roleList: [ |
| | |
| | | methods: { |
| | | // 获取所有角色 |
| | | getAllRole() { |
| | | const user = this.$store.getters.userInfo |
| | | // const user = this.$store.getters.userInfo |
| | | // this.data_scope = 1 |
| | | // if (user.lv == 1) { |
| | | // this.data_scope = 1 |
| | | // } |
| | | // if (user.lv == 2) { |
| | | // this.data_scope = 2 |
| | | // } |
| | | // if (user.lv == 3) { |
| | | // this.data_scope = 3 |
| | | // } |
| | | this.data_scope = 1 |
| | | if (user.lv == 1) { |
| | | this.data_scope = 1 |
| | | } |
| | | if (user.lv == 2) { |
| | | this.data_scope = 2 |
| | | } |
| | | if (user.lv == 3) { |
| | | this.data_scope = 3 |
| | | } |
| | | role.listRoleByDataScope({dataScope: this.data_scope}).then(response => { |
| | | if (response) { |
| | | this.roleOptions = response; |