|
@ -1,9 +1,15 @@ |
|
|
/** @format */ |
|
|
/** @format */ |
|
|
import { dateUtil } from '/nerv-lib/util/date-util'; |
|
|
import { dateUtil } from '/nerv-lib/util/date-util'; |
|
|
import mockResource from './resource.json'; |
|
|
import mockResource from './resource.json'; |
|
|
|
|
|
import { http } from '/nerv-lib/saas'; |
|
|
import { ref } from 'vue'; |
|
|
import { ref } from 'vue'; |
|
|
const value = ref('1'); |
|
|
const value = ref('1'); |
|
|
|
|
|
const transform = (data, map) => { |
|
|
|
|
|
return Object.keys(map).reduce((pre, cur) => { |
|
|
|
|
|
pre[cur] = data[map[cur]]; |
|
|
|
|
|
return pre; |
|
|
|
|
|
}, {}); |
|
|
|
|
|
}; |
|
|
export const appConfig = { |
|
|
export const appConfig = { |
|
|
projectType: 'web', |
|
|
projectType: 'web', |
|
|
baseApi: '/api', |
|
|
baseApi: '/api', |
|
@ -21,6 +27,25 @@ export const appConfig = { |
|
|
// },
|
|
|
// },
|
|
|
|
|
|
|
|
|
// customUpdatePwd: () => import('/@/view/updatePassword/updatePassword.vue'),
|
|
|
// customUpdatePwd: () => import('/@/view/updatePassword/updatePassword.vue'),
|
|
|
|
|
|
|
|
|
|
|
|
// userInfoApi: () => {
|
|
|
|
|
|
// return {
|
|
|
|
|
|
// code: 200,
|
|
|
|
|
|
// success: true,
|
|
|
|
|
|
// data: {
|
|
|
|
|
|
// accountCode: '1305107806187376793',
|
|
|
|
|
|
// accountName: 'adm*n',
|
|
|
|
|
|
// accountType: 'admin',
|
|
|
|
|
|
// accountStatus: 1,
|
|
|
|
|
|
// accountRealName: 'admin',
|
|
|
|
|
|
// organizationCode: 'dingcloud',
|
|
|
|
|
|
// authConfigList: [],
|
|
|
|
|
|
// organizeResCode: [],
|
|
|
|
|
|
// leadDepartmentUuidList: [],
|
|
|
|
|
|
// },
|
|
|
|
|
|
// };
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
headerSlotConfig: { |
|
|
headerSlotConfig: { |
|
|
component: 'NsSelect', |
|
|
component: 'NsSelect', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -42,22 +67,17 @@ export const appConfig = { |
|
|
return { data: mockResource.menus }; |
|
|
return { data: mockResource.menus }; |
|
|
}, |
|
|
}, |
|
|
userInfoApi: () => { |
|
|
userInfoApi: () => { |
|
|
return { |
|
|
return http.post('/carbon-smart/user/login/logInInfo').then((res) => { |
|
|
code: 200, |
|
|
const info = res.data; |
|
|
success: true, |
|
|
const trD = transform(info, { |
|
|
data: { |
|
|
accountCode: 'userId', |
|
|
accountCode: '1305107806187376793', |
|
|
accountName: 'realName', |
|
|
accountName: 'adm*n', |
|
|
accountRealName: 'realName', |
|
|
accountType: 'admin', |
|
|
}); |
|
|
accountStatus: 1, |
|
|
return { data: { ...trD } }; |
|
|
accountRealName: 'admin', |
|
|
}); |
|
|
organizationCode: 'dingcloud', |
|
|
|
|
|
authConfigList: [], |
|
|
|
|
|
organizeResCode: [], |
|
|
|
|
|
leadDepartmentUuidList: [], |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
useHistoryTag: false, |
|
|
useHistoryTag: false, |
|
|
// 修改密码配置
|
|
|
// 修改密码配置
|
|
|
updatePassWordInfo: { |
|
|
updatePassWordInfo: { |
|
|