diff --git a/pc4mobx/hrmSalary/apis/datapush.js b/pc4mobx/hrmSalary/apis/datapush.js new file mode 100644 index 00000000..8287005c --- /dev/null +++ b/pc4mobx/hrmSalary/apis/datapush.js @@ -0,0 +1,5 @@ +import { postFetch } from "../util/request"; +// 推送配置列表 +export const getPushSettingList = (params) => { + return postFetch("/api/bs/hrmsalary/push/setting/list", params); +}; diff --git a/pc4mobx/hrmSalary/pages/datapush/components/datapushList/index.js b/pc4mobx/hrmSalary/pages/datapush/components/datapushList/index.js new file mode 100644 index 00000000..bcb3eb68 --- /dev/null +++ b/pc4mobx/hrmSalary/pages/datapush/components/datapushList/index.js @@ -0,0 +1,39 @@ +/* + * 数据推送列表 + * + * @Author: 黎永顺 + * @Date: 2024/11/19 + * @Wechat: + * @Email: 971387674@qq.com + * @description: +*/ +import React, { Component } from "react"; +import { WeaLocaleProvider } from "ecCom"; +import * as API from "../../../../apis/datapush"; + +const getLabel = WeaLocaleProvider.getLabel; + +class Index extends Component { + componentDidMount() { + this.getPushSettingList(); + } + + getPushSettingList = () => { + const payload = {}; + API.getPushSettingList(payload).then(({ status, data }) => { + if (status) { + console.log(data); + } + }); + }; + + render() { + return ( +