|
|
|
/** @format */
|
|
|
|
import { dateUtil } from '/nerv-lib/util/date-util';
|
|
|
|
import mockResource from './resource.json';
|
|
|
|
import { ref } from 'vue';
|
|
|
|
const value = ref('1');
|
|
|
|
|
|
|
|
export const appConfig = {
|
|
|
|
projectType: 'web',
|
|
|
|
baseApi: '/api',
|
|
|
|
enablePermissions: false,
|
|
|
|
// themeColor: '#eee',
|
|
|
|
siderPosition: 'left',
|
|
|
|
baseHeader: '/parkingManage',
|
|
|
|
baseRouter: '/parkingManage/parkingLotManage',
|
|
|
|
// userCustomRouterGuard: (to, from, next, whiteNameList, authorizationStore, appConfig) => {
|
|
|
|
// console.log({ to, from, next, whiteNameList, authorizationStore, appConfig }, 'routeConfig');
|
|
|
|
// next();
|
|
|
|
// },
|
|
|
|
|
|
|
|
// customUpdatePwd: () => import('/@/view/updatePassword/updatePassword.vue'),
|
|
|
|
headerSlotConfig: {
|
|
|
|
component: 'NsSelect',
|
|
|
|
componentProps: {
|
|
|
|
style: { width: '200px' },
|
|
|
|
placeholder: '请选择',
|
|
|
|
value,
|
|
|
|
onChange: (cur) => {
|
|
|
|
value.value = cur;
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{ label: '济阳', value: '1' },
|
|
|
|
{ label: '临沂', value: '2' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
timeout: 60 * 1000,
|
|
|
|
userLoginApi: () => {
|
|
|
|
return {
|
|
|
|
code: 200,
|
|
|
|
success: true,
|
|
|
|
data: { userToken: 123123123 },
|
|
|
|
};
|
|
|
|
},
|
|
|
|
userResourceApi: () => {
|
|
|
|
return { data: mockResource.menus };
|
|
|
|
},
|
|
|
|
userInfoApi: () => {
|
|
|
|
return {
|
|
|
|
code: 200,
|
|
|
|
success: true,
|
|
|
|
data: {
|
|
|
|
accountCode: '1305107806187376793',
|
|
|
|
accountName: 'adm*n',
|
|
|
|
accountType: 'admin',
|
|
|
|
accountStatus: 1,
|
|
|
|
accountRealName: 'admin',
|
|
|
|
organizationCode: 'dingcloud',
|
|
|
|
authConfigList: [],
|
|
|
|
organizeResCode: [],
|
|
|
|
leadDepartmentUuidList: [],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
},
|
|
|
|
useHistoryTag: false,
|
|
|
|
// 修改密码配置
|
|
|
|
updatePassWordInfo: {
|
|
|
|
title: '修改密码',
|
|
|
|
subtitle: 'huaxing平台',
|
|
|
|
api: '/api/web/objs/User/changePassword',
|
|
|
|
},
|
|
|
|
// headerBellInfo: {
|
|
|
|
// isShow: true,
|
|
|
|
// api: '/api/web/objs/bulletin/readCount',
|
|
|
|
// toRouterName: 'NoticeManageIndex',
|
|
|
|
// },
|
|
|
|
resourceInfo: {
|
|
|
|
application: {
|
|
|
|
version: '1.1.74',
|
|
|
|
label: '停车业务平台',
|
|
|
|
dataScope: {
|
|
|
|
scopeMode: 0,
|
|
|
|
scopeType: '',
|
|
|
|
dataTips: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
api: '/qa/Operation/Resources/Pc/init',
|
|
|
|
token: `${dateUtil().format('YYYYMMDD')}1a329ffasasozozxqq66cfab7`,
|
|
|
|
},
|
|
|
|
};
|