From 4c147d79dd4985ed324e3d5149b83541eaab91d6 Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Mon, 6 Jan 2025 15:45:25 +0800 Subject: [PATCH] =?UTF-8?q?custom-=E6=97=AD=E5=8C=96=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/index.js | 3 + pc4mobx/hrmSalary/pages/custom-pages/index.js | 10 +++ .../pages/custom-pages/xhc/conditions.js | 68 +++++++++++++++++++ .../custom-pages/xhc/departmentReport.js | 22 ++++++ .../pages/custom-pages/xhc/index.less | 0 .../hrmSalary/stores/custom-stores/index.js | 3 + .../stores/custom-stores/xhc/index.js | 6 ++ 7 files changed, 112 insertions(+) create mode 100644 pc4mobx/hrmSalary/pages/custom-pages/xhc/conditions.js create mode 100644 pc4mobx/hrmSalary/pages/custom-pages/xhc/departmentReport.js create mode 100644 pc4mobx/hrmSalary/pages/custom-pages/xhc/index.less create mode 100644 pc4mobx/hrmSalary/stores/custom-stores/xhc/index.js diff --git a/pc4mobx/hrmSalary/index.js b/pc4mobx/hrmSalary/index.js index 272bdbdd..23c9a6e9 100644 --- a/pc4mobx/hrmSalary/index.js +++ b/pc4mobx/hrmSalary/index.js @@ -54,6 +54,8 @@ import TopologyMap from "./pages/topologyMap"; import SupplementaryCalc from "./pages/supplementaryCalc"; import VariableSalary from "./pages/variableSalary"; import Layout from "./layout"; + +import CustomRoutes from "./pages/custom-pages"; import stores from "./stores"; import "./style/index"; // 读取系统多语言配置 @@ -118,6 +120,7 @@ const Routes = ( + {CustomRoutes} ); diff --git a/pc4mobx/hrmSalary/pages/custom-pages/index.js b/pc4mobx/hrmSalary/pages/custom-pages/index.js index e69de29b..5d0bf6c2 100644 --- a/pc4mobx/hrmSalary/pages/custom-pages/index.js +++ b/pc4mobx/hrmSalary/pages/custom-pages/index.js @@ -0,0 +1,10 @@ +import React from "react"; +import Route from "react-router/lib/Route"; +import DepartmentReport from "./xhc/departmentReport"; + +const CustomRoutes = [ + +]; + +export default CustomRoutes; diff --git a/pc4mobx/hrmSalary/pages/custom-pages/xhc/conditions.js b/pc4mobx/hrmSalary/pages/custom-pages/xhc/conditions.js new file mode 100644 index 00000000..e7dcf93f --- /dev/null +++ b/pc4mobx/hrmSalary/pages/custom-pages/xhc/conditions.js @@ -0,0 +1,68 @@ +export const xhcConditions = [ + { + items: [ + { + browserConditionParam: { + completeParams: {}, + conditionDataParams: {}, + dataParams: {}, + destDataParams: {}, + hasAddBtn: false, + hasAdvanceSerach: true, + idSeparator: ",", + isAutoComplete: 1, + isDetail: 0, + isMultCheckbox: false, + isSingle: false, + linkUrl: "", + pageSize: 10, + quickSearchName: "", + replaceDatas: [], + title: getLabel(111, "分部"), + type: "164", + viewAttr: 2 + }, + colSpan: 2, + conditionType: "BROWSER", + domkey: ["subCompany"], + fieldcol: 18, + isQuickSearch: false, + label: "所属公司", + labelcol: 6, + viewAttr: 2 + }, + { + browserConditionParam: { + completeParams: {}, + conditionDataParams: {}, + dataParams: {}, + destDataParams: {}, + hasAddBtn: false, + hasAdvanceSerach: true, + idSeparator: ",", + isAutoComplete: 1, + isDetail: 0, + isMultCheckbox: false, + isSingle: false, + linkUrl: "", + pageSize: 10, + quickSearchName: "", + replaceDatas: [], + title: getLabel(111, "部门"), + type: "57", + viewAttr: 2 + }, + colSpan: 2, + conditionType: "BROWSER", + domkey: ["department"], + fieldcol: 18, + isQuickSearch: false, + label: "所属部门", + labelcol: 6, + viewAttr: 2 + } + ], + title: "", + defaultshow: true + } +]; diff --git a/pc4mobx/hrmSalary/pages/custom-pages/xhc/departmentReport.js b/pc4mobx/hrmSalary/pages/custom-pages/xhc/departmentReport.js new file mode 100644 index 00000000..790bab41 --- /dev/null +++ b/pc4mobx/hrmSalary/pages/custom-pages/xhc/departmentReport.js @@ -0,0 +1,22 @@ +import React, { Component } from "react"; +import { inject, observer } from "mobx-react"; +import { WeaLocaleProvider, WeaSearchGroup, WeaTop } from "ecCom"; +import { Button } from "antd"; +import "./index.less"; + +const getLabel = WeaLocaleProvider.getLabel; + +@inject("XHCStore") +@observer +class DepartmentReport extends Component { + render() { + return (} iconBgcolor="#F14A2D" + buttons={[]}> + + ); + } +} + +export default DepartmentReport; diff --git a/pc4mobx/hrmSalary/pages/custom-pages/xhc/index.less b/pc4mobx/hrmSalary/pages/custom-pages/xhc/index.less new file mode 100644 index 00000000..e69de29b diff --git a/pc4mobx/hrmSalary/stores/custom-stores/index.js b/pc4mobx/hrmSalary/stores/custom-stores/index.js index 7be35b6b..c18d5a58 100644 --- a/pc4mobx/hrmSalary/stores/custom-stores/index.js +++ b/pc4mobx/hrmSalary/stores/custom-stores/index.js @@ -1,2 +1,5 @@ +import { XHCStore } from "./xhc"; + module.exports = { + XHCStore: new XHCStore() //旭化成 }; diff --git a/pc4mobx/hrmSalary/stores/custom-stores/xhc/index.js b/pc4mobx/hrmSalary/stores/custom-stores/xhc/index.js new file mode 100644 index 00000000..94df946a --- /dev/null +++ b/pc4mobx/hrmSalary/stores/custom-stores/xhc/index.js @@ -0,0 +1,6 @@ +import { observable } from "mobx"; +import { WeaForm } from "comsMobx"; + +export class XHCStore { + @observable form = new WeaForm(); +}