From b15b08433fbd0c708f326dcfc4461ad004e848a2 Mon Sep 17 00:00:00 2001
From: Chengliang <1546584672@qq.com>
Date: Tue, 10 Jan 2023 18:23:25 +0800
Subject: [PATCH] =?UTF-8?q?=E8=8A=B1=E5=90=8D=E5=86=8C=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/organization/apis/resource.js | 32 ++
.../components/resource/SearchCustomDialog.js | 15 +-
.../components/resource/resource.js | 56 ++-
pc4mobx/organization/stores/resource.js | 468 +++++++++++-------
4 files changed, 379 insertions(+), 192 deletions(-)
diff --git a/pc4mobx/organization/apis/resource.js b/pc4mobx/organization/apis/resource.js
index d7d1e33..dab4bce 100644
--- a/pc4mobx/organization/apis/resource.js
+++ b/pc4mobx/organization/apis/resource.js
@@ -54,3 +54,35 @@ export const exportResource = (ids) => {
window.URL.revokeObjectURL(url);
}))
}
+
+
+export const saveSearchTemplate = (params) => {
+ return fetch('/api/bs/hrmorganization/hrmresource/saveSearchTemplate', {
+ method: 'POST',
+ mode: 'cors',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify(params)
+ })
+}
+
+
+export const deleteSearchTemplate = (params) => {
+ return fetch('/api/bs/hrmorganization/hrmresource/deleteSearchTemplate', {
+ method: 'POST',
+ mode: 'cors',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify(params)
+ })
+}
+
+export const getSearchTemplate = (id) => {
+ return WeaTools.callApi(`/api/bs/hrmorganization/hrmresource/getSearchTemplate?templateId=${id}`, 'GET');
+}
+
+export const getTemplateSelectKeys = (id) => {
+ return WeaTools.callApi(`/api/bs/hrmorganization/hrmresource/getTemplateSelectKeys?templateId=${id}`, 'GET');
+}
\ No newline at end of file
diff --git a/pc4mobx/organization/components/resource/SearchCustomDialog.js b/pc4mobx/organization/components/resource/SearchCustomDialog.js
index cd8b39b..ed9e5d2 100644
--- a/pc4mobx/organization/components/resource/SearchCustomDialog.js
+++ b/pc4mobx/organization/components/resource/SearchCustomDialog.js
@@ -5,6 +5,10 @@ import {
WeaDialog,
} from 'ecCom';
import Customization from './Customization';
+import {
+ Spin,
+ Button,
+} from 'antd'
@observer
export default class SearchCustomDialog extends React.Component {
@@ -17,14 +21,23 @@ export default class SearchCustomDialog extends React.Component {
store
} = this.props, {
SEARCHDIALOG,
- searchDialog
+ searchDialog,
+ search
} = store;
+ const buttons = [
+ ,
+ ,
+
+ ]
+
return (