| | |
| | | const EnumEnterpriseCostType: typeof import('./src/constants/apiEnum')['EnumEnterpriseCostType'] |
| | | const EnumEnterpriseRealMethod: typeof import('./src/constants/apiEnum')['EnumEnterpriseRealMethod'] |
| | | const EnumEnterpriseType: typeof import('./src/constants/apiEnum')['EnumEnterpriseType'] |
| | | const EnumEnterpriseTypeText: typeof import('./src/constants/enterprise')['EnumEnterpriseTypeText'] |
| | | const EnumEnterpriseTypeText: typeof import('./src/constants/apiEnumText')['EnumEnterpriseTypeText'] |
| | | const EnumEnterpriseWalletAccess: typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletAccess'] |
| | | const EnumEnterpriseWalletAccessText: typeof import('./src/constants/enterpriseWallet')['EnumEnterpriseWalletAccessText'] |
| | | const EnumEnterpriseWalletAccessTextForSettle: typeof import('./src/constants/enterpriseWallet')['EnumEnterpriseWalletAccessTextForSettle'] |
| | |
| | | readonly EnumEnterpriseCostType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseCostType']> |
| | | readonly EnumEnterpriseRealMethod: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseRealMethod']> |
| | | readonly EnumEnterpriseType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseType']> |
| | | readonly EnumEnterpriseTypeText: UnwrapRef<typeof import('./src/constants/enterprise')['EnumEnterpriseTypeText']> |
| | | readonly EnumEnterpriseTypeText: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumEnterpriseTypeText']> |
| | | readonly EnumEnterpriseWalletAccess: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumEnterpriseWalletAccess']> |
| | | readonly EnumEnterpriseWalletAccessText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumEnterpriseWalletAccessText']> |
| | | readonly EnumEnterpriseWalletAccessTextForSettle: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumEnterpriseWalletAccessTextForSettle']> |
| | |
| | | import { EnumClientType, EnumUserType, EnumRoleWebApiDataPower } from './apiEnum'; |
| | | import { |
| | | EnumClientType, |
| | | EnumUserType, |
| | | EnumRoleWebApiDataPower, |
| | | EnumEnterpriseType, |
| | | } from './apiEnum'; |
| | | |
| | | export const EnumClientTypeText = { |
| | | [EnumClientType.PcWeb]: '电脑网页', |
| | |
| | | [EnumUserType.Operation]: '运营', |
| | | }; |
| | | |
| | | export const EnumEnterpriseTypeText = { |
| | | [EnumEnterpriseType.Supplier]: '承揽', |
| | | [EnumEnterpriseType.PartyA]: '甲方', |
| | | }; |
| | | |
| | | export const EnumRoleWebApiDataPowerText = { |
| | | [EnumRoleWebApiDataPower.Custom]: '自定义', |
| | | [EnumRoleWebApiDataPower.Creator]: '个人数据', |
| | |
| | | [EnumEnterpriseWalletExpandindirectOrderStatus.DISUSE]: '已废弃', |
| | | [EnumEnterpriseWalletExpandindirectOrderStatus.REVOKED]: '已撤销', |
| | | }; |
| | | |
| | | export const EnumEnterpriseTypeText = { |
| | | [EnumEnterpriseType.Supplier]: '承揽', |
| | | [EnumEnterpriseType.PartyA]: '甲方', |
| | | }; |
| | |
| | | import * as task from './task'; |
| | | import * as enterpriseWallet from './enterpriseWallet'; |
| | | import * as ocrUtils from './ocrUtils'; |
| | | import * as electronSign from './electronSign'; |
| | | import * as resource from './resource'; |
| | | import * as logRecords from './logRecords'; |
| | | import * as dictionary from './dictionary'; |
| | | import * as taskCheckReceive from './taskCheckReceive'; |
| | | import * as electronSign from './electronSign'; |
| | | import * as userResume from './userResume'; |
| | | import * as auth from './auth'; |
| | | import * as taskUser from './taskUser'; |
| | | import * as eventUtils from './eventUtils'; |
| | | import * as enterpriseCooperationWallet from './enterpriseCooperationWallet'; |
| | | import * as codeUrl from './codeUrl'; |
| | | import * as syncDatabase from './syncDatabase'; |
| | |
| | | import * as userWallet from './userWallet'; |
| | | import * as fileUtils from './fileUtils'; |
| | | import * as settings from './settings'; |
| | | import * as eventUtils from './eventUtils'; |
| | | export default { |
| | | enterprise, |
| | | enterpriseEmployee, |
| | |
| | | task, |
| | | enterpriseWallet, |
| | | ocrUtils, |
| | | electronSign, |
| | | resource, |
| | | logRecords, |
| | | dictionary, |
| | | taskCheckReceive, |
| | | electronSign, |
| | | userResume, |
| | | auth, |
| | | taskUser, |
| | | eventUtils, |
| | | enterpriseCooperationWallet, |
| | | codeUrl, |
| | | syncDatabase, |
| | |
| | | userWallet, |
| | | fileUtils, |
| | | settings, |
| | | eventUtils, |
| | | }; |
| | |
| | | interface APIgetMenusParams { |
| | | /** 用户类型 */ |
| | | userType?: EnumUserType; |
| | | /** 企业类型 */ |
| | | enterpriseType?: EnumEnterpriseType; |
| | | /** 客户端类型 */ |
| | | clientType?: EnumClientType; |
| | | /** 角色Id */ |
| | |
| | | checkOutTime?: string; |
| | | checkHistoryType?: EnumTaskUserSubmitCheckHistoryType; |
| | | /** 操作人 */ |
| | | checkOperator?: string; |
| | | /** 操作人 */ |
| | | operator?: string; |
| | | /** 最近提交时间 */ |
| | | lastSubmitTime?: string; |
| | |
| | | interface GetCheckReceiveTaskUserSubmitQueryResult { |
| | | /** 提交Id */ |
| | | id?: string; |
| | | /** 任务人员Id */ |
| | | taskInfoUserId?: string; |
| | | enterpriseEmployeeUser?: GetCheckReceiveTaskUserSubmitsQueryResultObjectDataEnterpriseEmployeeUser; |
| | | /** 验收时间 */ |
| | | date?: string; |
| | |
| | | /** 人工签出时间 */ |
| | | checkOutTime?: string; |
| | | checkHistoryType?: EnumTaskUserSubmitCheckHistoryType; |
| | | /** 操作人 */ |
| | | checkOperator?: string; |
| | | /** 操作人 */ |
| | | operator?: string; |
| | | /** 验收照片 */ |
| | |
| | | /** 人工签出时间 */ |
| | | checkOutTime?: string; |
| | | checkHistoryType?: EnumTaskUserSubmitCheckHistoryType; |
| | | /** 操作人 */ |
| | | checkOperator?: string; |
| | | /** 操作人 */ |
| | | operator?: string; |
| | | /** 提交时间 */ |
| | |
| | | /** 是否选择(用户角色授权) */ |
| | | isChecked?: boolean; |
| | | userType?: EnumUserType; |
| | | enterpriseType?: EnumEnterpriseType; |
| | | clientType?: EnumClientType; |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | |
| | | dataPower?: EnumRoleWebApiDataPower; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | /** 用户数 */ |
| | | userCount?: number; |
| | | /** 菜单Id */ |
| | | menuIds?: string[]; |
| | | /** 资源 */ |
| | |
| | | |
| | | interface SaveMenuCommand { |
| | | userType?: EnumUserType; |
| | | enterpriseType?: EnumEnterpriseType; |
| | | clientType?: EnumClientType; |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | |
| | | @change="getList()" |
| | | /> |
| | | </QueryFilterItem> |
| | | <QueryFilterItem v-if="extraParamState.userType === EnumUserType.Enterprise"> |
| | | <FieldRadio |
| | | v-model="extraParamState.enterpriseType" |
| | | :value-enum="EnumEnterpriseTypeText" |
| | | buttonStyle |
| | | @change="getList()" |
| | | /> |
| | | </QueryFilterItem> |
| | | <QueryFilterItem> |
| | | <SearchInput |
| | | v-model="extraParamState.queryCondition" |
| | |
| | | import { useAccess, useAllRoleList } from '@/hooks'; |
| | | import { Message } from '@bole-core/core'; |
| | | import AddOrEditRoleDialog from './components/AddOrEditRoleDialog.vue'; |
| | | import { EnumClientTypeText, EnumUserTypeText } from '@/constants'; |
| | | import { |
| | | EnumClientTypeText, |
| | | EnumUserTypeText, |
| | | EnumEnterpriseTypeText, |
| | | EnumUserType, |
| | | } from '@/constants'; |
| | | import DialogAuthorizeV2 from './components/dialogAuthorizeV2.vue'; |
| | | import * as roleServices from '@/services/api/role'; |
| | | |
| | |
| | | clientType: extraParamState.clientType, |
| | | keywords: extraParamState.queryCondition, |
| | | }; |
| | | if (extraParamState.userType === EnumUserType.Enterprise) { |
| | | params.enterpriseType = extraParamState.enterpriseType; |
| | | } |
| | | let res = await roleServices.getRoles(params, { |
| | | showLoading: !state.loading, |
| | | }); |
| | |
| | | orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }], |
| | | userType: EnumUserType.Operation, |
| | | clientType: EnumClientType.PcWeb, |
| | | enterpriseType: EnumEnterpriseType.Supplier, |
| | | }, |
| | | queryKey: ['roleServices/getRoles'], |
| | | columnsRenderProps: { |
| | |
| | | userType: editForm.userType, |
| | | clientType: editForm.clientType, |
| | | minLevel: editForm.minLevel, |
| | | enterpriseType: editForm.enterpriseType, |
| | | }; |
| | | if (editForm.userType === EnumUserType.Enterprise) { |
| | | params.enterpriseType = editForm.enterpriseType; |
| | | } |
| | | if (isEdit) { |
| | | params = { |
| | | ...editForm.detail, |
| | |
| | | :controls="false" |
| | | ></ProFormInputNumber> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="企业类型" prop="enterpriseType"> |
| | | <ProFormItemV2 |
| | | label="企业类型" |
| | | prop="enterpriseType" |
| | | v-if="form.userType === EnumUserType.Enterprise" |
| | | > |
| | | <ProFormRadio |
| | | v-model="form.enterpriseType" |
| | | :value-enum="EnumEnterpriseTypeText" |
| | |
| | | ProFormTextArea, |
| | | ProFormInputNumber, |
| | | } from '@bole-core/components'; |
| | | import { EnumRoleWebApiDataPowerTextForFilter, EnumEnterpriseTypeText } from '@/constants'; |
| | | import { |
| | | EnumRoleWebApiDataPowerTextForFilter, |
| | | EnumEnterpriseTypeText, |
| | | EnumUserType, |
| | | } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | | name: 'AddOrEditRoleDialog', |
| | |
| | | dataRange: EnumRoleWebApiDataPower; |
| | | minLevel: number; |
| | | enterpriseType: EnumEnterpriseType; |
| | | userType: EnumUserType; |
| | | }; |
| | | }; |
| | | |
| | |
| | | @change="getAllModule()" |
| | | /> |
| | | </QueryFilterItem> |
| | | <QueryFilterItem v-if="state.userType === EnumUserType.Enterprise"> |
| | | <FieldRadio |
| | | v-model="state.enterpriseType" |
| | | :value-enum="EnumEnterpriseTypeText" |
| | | buttonStyle |
| | | @change="getAllModule()" |
| | | /> |
| | | </QueryFilterItem> |
| | | <div class="query-filter-list-item"> |
| | | <SearchInput |
| | | v-model="state.searchValue" |
| | |
| | | EnumMenuType, |
| | | EnumClientTypeText, |
| | | EnumUserTypeText, |
| | | EnumEnterpriseTypeText, |
| | | EnumUserType, |
| | | } from '@/constants'; |
| | | import SubModuleEditDrawer from './components/SubModuleEditDrawer.vue'; |
| | | import AddOrEditModuleDialog from './components/AddOrEditModuleDialog.vue'; |
| | |
| | | group: 'default', |
| | | userType: EnumUserType.Operation, |
| | | clientType: EnumClientType.PcWeb, |
| | | enterpriseType: EnumEnterpriseType.Supplier, |
| | | }; |
| | | const state = reactive({ ...BaseState }); |
| | | const moduleTreeStore = ref<TreeStore<TreeModuleDtoGroupDto>>(); |
| | |
| | | }); |
| | | async function getAllModule() { |
| | | try { |
| | | let res = await menuServices.getMenus( |
| | | { |
| | | let params: API.APIgetMenusParams = { |
| | | userType: state.userType, |
| | | clientType: state.clientType, |
| | | }, |
| | | { |
| | | showLoading: false, |
| | | }; |
| | | if (state.userType === EnumUserType.Enterprise) { |
| | | params.enterpriseType = state.enterpriseType; |
| | | } |
| | | ); |
| | | let res = await menuServices.getMenus(params, { |
| | | showLoading: false, |
| | | }); |
| | | const treeStore = ModuleUtils.convertToModuleGroup(flattenTree(res)); |
| | | moduleTreeStore.value = treeStore; |
| | | originModuleTree.value = [...treeStore.data]; |
| | |
| | | let params: API.SaveMenuCommand = { |
| | | userType: state.userType, |
| | | clientType: state.clientType, |
| | | enterpriseType: state.enterpriseType, |
| | | code: editForm.enCode, |
| | | name: editForm.name, |
| | | type: editForm.isMenu ? EnumMenuType.Menu : EnumMenuType.Page, |
| | |
| | | name: subModule.name, |
| | | group: state.group, |
| | | // location: 'string', |
| | | width: subModule.width.toString(), |
| | | width: !!subModule.width ? subModule.width.toString() : undefined, |
| | | sort: subModule.sortCode, |
| | | }; |
| | | if (subModule.id) { |
| | |
| | | getBaseModuleGetAllSubModule(currentDrawerModule.value, drawerState.type); |
| | | Message.successMessage('保存成功'); |
| | | } |
| | | } catch (error) {} |
| | | } catch (error) { |
| | | console.log('error: ', error); |
| | | } |
| | | } |
| | | async function handelBatchSaveColumn() { |
| | | try { |