diff --git a/.env b/.env index cd851a2..783e5c0 100644 --- a/.env +++ b/.env @@ -2,7 +2,7 @@ VITE_APP_TITLE=金融产品设计及数字化营销沙盘 VITE_PORT=9520 VITE_PROXY=http://192.168.31.125:8080 VITE_PUBLIC_PATH=./ -# VITE_BASE_API=http://192.168.31.51:9000 +# VITE_BASE_API=http://192.168.31.217:9000 VITE_BASE_API=http://121.37.12.51 VITE_I18N_LOCALE=zh-cn VITE_I18N_FALLBACK_LOCALE=zh-cn diff --git a/src/api/config.ts b/src/api/config.ts index a23e931..7e55504 100644 --- a/src/api/config.ts +++ b/src/api/config.ts @@ -15,3 +15,9 @@ export const savePass = async (data: Record): Promise => (awai export const updatePass = async (data: Record[]): Promise => (await axios.post(`/nakadai/nakadai/customsPass/update`, data)).data; export const checkPointListByStu = async (projectId: number, displayCollection?: number | string = ''): Promise => (await axios.post(`/nakadai/nakadai/customsPass/checkPointListByStu?projectId=${projectId}&displayCollection=${displayCollection}`)).data; +export const getTheCurrentUserName = async (): Promise => (await axios.post('/product/product/bank/products/getTheCurrentUserName')).data; + +export const getOperationTime = async (checkpointId: number, projectId: number): Promise => + (await axios.post(`/product/product/bank/products/getOperationTime?checkPointId=${checkpointId}&projectId=${projectId}`)).data; +export const saveOperationTime = async (checkpointId: number, projectId: number, operationTime: string): Promise => + (await axios.post(`/product/product/bank/products/saveOperationTime?checkPointId=${checkpointId}&projectId=${projectId}&operationTime=${operationTime}`)).data; diff --git a/src/assets/images/date.png b/src/assets/images/date.png new file mode 100644 index 0000000..87d2173 Binary files /dev/null and b/src/assets/images/date.png differ diff --git a/src/layout/components/AppSidebar/index.vue b/src/layout/components/AppSidebar/index.vue index d49de8d..d807dfa 100644 --- a/src/layout/components/AppSidebar/index.vue +++ b/src/layout/components/AppSidebar/index.vue @@ -7,23 +7,54 @@ alt="" />

{{roleName}}

产品部门

-

操作日期:2018-02-06

+
+ 操作日期:{{ date }} + +
+ + +
+ +
+ +