|
|
@@ -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();
|