| | |
| | | > |
| | | <el-option |
| | | v-for="item in datacodeArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | :key="item.datacode" |
| | | :label="item.dataname" |
| | | :value="item.datacode" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | import { validateCode } from '@/utils/global' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | import { PrentOrganization } from '@/api/GeneralBasicData' |
| | | import { DataPermissions, PrentOrganization } from '@/api/GeneralBasicData' |
| | | import arrayToTree from 'array-to-tree' |
| | | |
| | | export default { |
| | |
| | | datapermissions: '', // 数据权限 |
| | | status: 'Y'// 状态 |
| | | }, |
| | | datacodeArr: [ |
| | | { code: 'ALL', name: '全部' }, |
| | | { code: 'CUSTOM', name: '自定义' }, |
| | | { code: 'LEVEL', name: '本级' }, |
| | | { code: 'PERSON', name: '本人' } |
| | | ], |
| | | datacodeArr: [], |
| | | checkboxGroupSelected: ['展开/折叠', '父子联动'], |
| | | checkboxGroup: ['展开/折叠', '全选/全不选', '父子联动'], |
| | | operation: '', |
| | |
| | | this.getHeight() |
| | | |
| | | this.getPrentOrganization() |
| | | this.getDataPermissions() |
| | | }, |
| | | methods: { |
| | | async getRoleData() { |
| | |
| | | this.tableData = res.data |
| | | this.total = res.count |
| | | }, |
| | | async getDataPermissions() { |
| | | const { data: res } = await DataPermissions() |
| | | this.datacodeArr = res |
| | | }, |
| | | // 组织架构级联选择器 |
| | | async getPrentOrganization() { |
| | | const { data: res } = await PrentOrganization() |