feature/2.15.2.2411.01业务线-数据推送

This commit is contained in:
lys 2024-11-19 13:28:04 +08:00
parent 4473d8dad5
commit da79b1b7ff
4 changed files with 64 additions and 1 deletions

View File

@ -0,0 +1,5 @@
import { postFetch } from "../util/request";
// 推送配置列表
export const getPushSettingList = (params) => {
return postFetch("/api/bs/hrmsalary/push/setting/list", params);
};

View File

@ -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 (
<div>
</div>
);
}
}
export default Index;

View File

@ -10,6 +10,7 @@
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { WeaLocaleProvider, WeaReqTop } from "ecCom";
import DatapushList from "./components/datapushList";
import { Button } from "antd";
import "./index.less";
@ -38,7 +39,7 @@ class Index extends Component {
buttons: showOperateBtn ? [
<Button type="primary" onClick={() => this.handleOperate("create")}>{getLabel(111, "新建")}</Button>
] : [],
children: null
children: <DatapushList/>
}
];
return (

View File

@ -0,0 +1,18 @@
.datapush_wrapper {
.wea-new-top-req-title > div:last-child {
right: 16px !important;
}
.wea-new-top-req-content {
padding: 8px 16px 0 16px;
.wea-new-table {
background: #FFF;
}
.ant-spin-nested-loading, .ant-spin-container {
height: 100% !important;
}
}
}