code4eat 3 týždňov pred
rodič
commit
d27233fe49

+ 2 - 2
config/proxy.js

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-07-22 15:04:09
- * @LastEditTime: 2023-04-25 10:24:22
+ * @LastEditTime: 2023-12-08 20:54:21
  * @LastEditors: code4eat awesomedema@gmail.com
  * @Description: In User Settings Edit
  * @FilePath: /TracerMethodology_PC/config/proxy.js
@@ -26,7 +26,7 @@ export default {
   },
   dev: {
     '/api/': {
-      target: 'http://47.96.149.190:8082',    //开发本地:192.168.51.76 ,dev:112.124.59.133:8082  hr:192.168.51.80
+      target: 'http://47.96.149.190:8000/api',    //开发本地:192.168.51.76 ,dev:112.124.59.133:8082  hr:192.168.51.80
       changeOrigin: true,
       pathRewrite: {
         '^/api': '',

+ 1 - 1
src/app.jsx

@@ -45,7 +45,7 @@ const urlParamsResult = Object.fromEntries(urlSearchParams.entries());
 
 const {token:urlToken} = urlParamsResult
 
-
+console.log({urlToken});
 if(urlToken){
   //嵌入中台暂时模拟
   const userData = {

+ 6 - 5
src/pages/costAccounting/costShare/index.jsx

@@ -1,8 +1,8 @@
 /*
  * @Author: your name
  * @Date: 2021-07-26 10:13:13
- * @LastEditTime: 2021-09-10 09:16:15
- * @LastEditors: Please set LastEditors
+ * @LastEditTime: 2023-12-08 21:00:11
+ * @LastEditors: code4eat awesomedema@gmail.com
  * @Description: In User Settings Edit
  * @FilePath: /TracerMethodology_PC/src/pages/UserMana/index.js
  */
@@ -121,17 +121,18 @@ const CostShare = () => {
       };
     }
     
-  };
+  };  
 
 
   const optionBtnGroupshandle = async (isAllocation,record)=>{
+      console.log({currentTime})
       if(!isAllocation){
         //开始分摊
-        await startAllocation({year:currentTime.format('YYYY'),month:currentTime.format('MM')});
+        await startAllocation({year:(currentTime.split('-'))[0],month:((currentTime).split('-'))[1]});
       }
       if(isAllocation){
         //撤销分摊
-        await cancelAllocation({year:currentTime.format('YYYY'),month:currentTime.format('MM')});
+        await cancelAllocation({year:(currentTime.split('-'))[0],month:((currentTime).split('-'))[1]});
       }
       
       actionRef?.current?.reload();

+ 1 - 1
src/pages/user/Login/index.jsx

@@ -45,7 +45,7 @@ const Login = () => {
       // 登录
       const loginResp = await login({ ...values, hospSign:hospSign});
       const {status,msg,data={}} = loginResp;
-      // console.log({status,msg,data});
+      console.log({status,msg,data});
       if (status == 200) {
         const defaultloginSuccessMessage = '登录成功!';