diff --git a/pc4mobx/hrmSalary/apis/datapush.js b/pc4mobx/hrmSalary/apis/datapush.js
index 3b2adc5c..82b56587 100644
--- a/pc4mobx/hrmSalary/apis/datapush.js
+++ b/pc4mobx/hrmSalary/apis/datapush.js
@@ -24,3 +24,7 @@ export const savePushItemList = (params) => {
export const deletePushItemList = (params) => {
return WeaTools.callApi("/api/bs/hrmsalary/push/item/delete", "GET", params);
};
+// 推送记录列表
+export const getPushRecordList = (params) => {
+ return postFetch("/api/bs/hrmsalary/push/record/list", params);
+};
diff --git a/pc4mobx/hrmSalary/pages/datapush/components/pushRecord/index.js b/pc4mobx/hrmSalary/pages/datapush/components/pushRecord/index.js
new file mode 100644
index 00000000..f73e220b
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/datapush/components/pushRecord/index.js
@@ -0,0 +1,86 @@
+/*
+ * 数据推送
+ * 推送记录
+ * @Author: 黎永顺
+ * @Date: 2025/4/1
+ * @Wechat:
+ * @Email: 971387674@qq.com
+ * @description:
+*/
+import React, { Component } from "react";
+import { WeaLocaleProvider, WeaTable } from "ecCom";
+import * as API from "../../../../apis/datapush";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class Index extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ columns: [], dataSource: [], loading: false, pageInfo: { current: 1, pageSize: 10, total: 0 },
+ selectedRowKeys: []
+ };
+ }
+
+ componentDidMount() {
+ this.getPushRecordList();
+ }
+
+ componentWillUnmount() {
+ this.setState({ selectedRowKeys: [] });
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.isQuery !== this.props.isQuery) this.setState({
+ pageInfo: { ...this.state.pageInfo, current: 1 }
+ }, () => this.getPushRecordList(nextProps));
+ }
+
+ getPushRecordList = (props) => {
+ const { pageInfo } = this.state, { query } = props || this.props;
+ const payload = { ...pageInfo, ...query };
+ this.setState({ loading: true });
+ API.getPushRecordList(payload).then(({ status, data }) => {
+ this.setState({ loading: false });
+ if (status) {
+ const { columns, list: dataSource, pageNum: current, pageSize, total } = data;
+ this.setState({
+ pageInfo: { ...pageInfo, current, pageSize, total }, dataSource,
+ columns: [...columns, {
+ title: getLabel(111, "操作"), dataIndex: "opts", width: 120, render: (__, record) => (
+ this.props.onChange("push", record)}>{getLabel(111, "推送")}
+ this.props.onChange("view", record)}>{getLabel(111, "查看详情")}
+ )
+ }]
+ });
+ }
+ });
+ };
+
+ render() {
+ const { columns, dataSource, loading, pageInfo, selectedRowKeys } = this.state;
+ const pagination = {
+ ...pageInfo,
+ showTotal: total => `${getLabel(18609, "共")} ${total} ${getLabel(18256, "条")}`,
+ showQuickJumper: true,
+ showSizeChanger: true,
+ pageSizeOptions: ["10", "20", "50", "100"],
+ onShowSizeChange: (current, pageSize) => {
+ this.setState({ pageInfo: { ...pageInfo, current, pageSize } }, () => this.getPushRecordList());
+ },
+ onChange: current => {
+ this.setState({ pageInfo: { ...pageInfo, current } }, () => this.getPushRecordList());
+ }
+ };
+ const rowSelection = {
+ selectedRowKeys,
+ onChange: v => this.setState({ selectedRowKeys: v })
+ };
+ return ();
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/pages/datapush/index.js b/pc4mobx/hrmSalary/pages/datapush/index.js
index 1bbf5add..20602a52 100644
--- a/pc4mobx/hrmSalary/pages/datapush/index.js
+++ b/pc4mobx/hrmSalary/pages/datapush/index.js
@@ -12,6 +12,7 @@ import { inject, observer } from "mobx-react";
import { WeaInputSearch, WeaLocaleProvider, WeaReqTop } from "ecCom";
import * as API from "../../apis/datapush";
import DatapushList from "./components/datapushList";
+import PushRecord from "./components/pushRecord";
import DatapushDialog from "./components/DPDialog";
import { Button, message, Modal } from "antd";
import "./index.less";
@@ -72,6 +73,16 @@ class Index extends Component {
] : [ this.setState({ query: { ...query, name: v } })}/>],
children:
+ },
+ {
+ title: getLabel(111, "推送记录"), key: "pushRecord", showDropIcon: false, dropMenuDatas: [],
+ buttons: showOperateBtn ? [
+ ,
+ this.setState({ query: { ...query, name: v } })}/>
+ ] : [ this.setState({ query: { ...query, name: v } })}/>],
+ children:
}
];
return (