From 5ec5d31c12f5f040611cffa02369a0fde274b617 Mon Sep 17 00:00:00 2001
From: MustangDeng <670124965@qq.com>
Date: Wed, 23 Mar 2022 14:19:45 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E8=A1=A8=E5=A4=B4=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/attendance.js | 18 ++++++++--
.../components/selectItemsModal/index.js | 13 +++++--
.../pages/dataAcquisition/attendance/index.js | 12 ++++++-
pc4mobx/hrmSalary/stores/attendanceStore.js | 35 +++++++++++++++++++
4 files changed, 73 insertions(+), 5 deletions(-)
diff --git a/pc4mobx/hrmSalary/apis/attendance.js b/pc4mobx/hrmSalary/apis/attendance.js
index cbe5706f..b749338c 100644
--- a/pc4mobx/hrmSalary/apis/attendance.js
+++ b/pc4mobx/hrmSalary/apis/attendance.js
@@ -149,10 +149,24 @@ export const saveAttendanceFieldSetting = params => {
}
//数据采集-考勤引用-考勤引用字段设置-恢复默认设置
export const returnToAttendanceFieldSettingDefault = params => {
- return WeaTools.callApi('/api/bs/hrmsalary/attendQuote/fieldSetting/recoverAsDefault', 'POST', params);
+ return fetch('/api/bs/hrmsalary/attendQuote/fieldSetting/recoverAsDefault', {
+ method: 'POST',
+ mode: 'cors',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify(params)
+ }).then(res => res.json())
}
//数据采集-考勤引用-考勤引用字段设置-设为默认设置
export const saveAttendanceFieldSettingAsDefault = params => {
- return WeaTools.callApi('/api/bs/hrmsalary/attendQuote/fieldSetting/saveAsDefault', 'POST', params);
+ return fetch('/api/bs/hrmsalary/attendQuote/fieldSetting/saveAsDefault', {
+ method: 'POST',
+ mode: 'cors',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify(params)
+ }).then(res => res.json())
}
\ No newline at end of file
diff --git a/pc4mobx/hrmSalary/components/selectItemsModal/index.js b/pc4mobx/hrmSalary/components/selectItemsModal/index.js
index aa54c40b..6c30b268 100644
--- a/pc4mobx/hrmSalary/components/selectItemsModal/index.js
+++ b/pc4mobx/hrmSalary/components/selectItemsModal/index.js
@@ -30,10 +30,19 @@ export default class SelectItemModal extends React.Component {
this.props.onShowChecked(value)
}
- render(){
+ handleMenuClick(e) {
+ if(e.key == "1") { //恢复默认设置
+ this.props.onRestoreDefault()
+ } else if(e.key == "2") {
+ this.props.onSetDefault()
+ } else if(e.key == "3") {
+
+ }
+ }
+ render(){
const menu = (
-