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 = (
-