diff --git a/pc4mobx/hrmSalary/pages/datapush/components/pushRecord/index.js b/pc4mobx/hrmSalary/pages/datapush/components/pushRecord/index.js index f73e220b..7bcb8bd5 100644 --- a/pc4mobx/hrmSalary/pages/datapush/components/pushRecord/index.js +++ b/pc4mobx/hrmSalary/pages/datapush/components/pushRecord/index.js @@ -47,9 +47,11 @@ class Index extends Component { this.setState({ pageInfo: { ...pageInfo, current, pageSize, total }, dataSource, columns: [...columns, { - title: getLabel(111, "操作"), dataIndex: "opts", width: 120, render: (__, record) => ( + title: getLabel(111, "操作"), dataIndex: "opts", width: 140, render: (__, record) => ( this.props.onChange("push", record)}>{getLabel(111, "推送")} + onClick={() => _.debounce(this.props.onChange("push", record), 300)}>{getLabel(111, "推送")} + this.props.onChange("withdraw", record)}>{getLabel(111, "撤回")} this.props.onChange("view", record)}>{getLabel(111, "查看详情")} ) diff --git a/pc4mobx/hrmSalary/pages/datapush/index.js b/pc4mobx/hrmSalary/pages/datapush/index.js index bdabd479..17f23fab 100644 --- a/pc4mobx/hrmSalary/pages/datapush/index.js +++ b/pc4mobx/hrmSalary/pages/datapush/index.js @@ -27,7 +27,7 @@ class Index extends Component { constructor(props) { super(props); this.state = { - selectedKey: "datapush", isQuery: false, query: { name: "" }, + selectedKey: "pushRecord", isQuery: false, query: { name: "" }, DPDialog: { visible: false, title: "", detail: {} }, //数据推送弹框 pushDetailDialog: { visible: false, recordId: "" } //数据推送记录查看推送详情弹框 }; @@ -60,6 +60,9 @@ class Index extends Component { case "view": this.setState({ pushDetailDialog: { visible: true, recordId: detail.id } }); break; + case "push": + console.log(detail) + break; default: break; } @@ -70,16 +73,6 @@ class Index extends Component { const { taxAgentStore: { PageAndOptAuth } } = this.props; const showOperateBtn = PageAndOptAuth.opts.includes("admin"); const tabs = [ - { - title: getLabel(111, "数据推送"), key: "datapush", showDropIcon: false, dropMenuDatas: [], - buttons: showOperateBtn ? [ - , - this.setState({ query: { ...query, name: v } })}/> - ] : [ this.setState({ query: { ...query, name: v } })}/>], - children: - }, { title: getLabel(111, "推送记录"), key: "pushRecord", showDropIcon: false, dropMenuDatas: [], buttons: showOperateBtn ? [ @@ -89,6 +82,16 @@ class Index extends Component { ] : [ this.setState({ query: { ...query, name: v } })}/>], children: + }, + { + title: getLabel(111, "数据推送"), key: "datapush", showDropIcon: false, dropMenuDatas: [], + buttons: showOperateBtn ? [ + , + this.setState({ query: { ...query, name: v } })}/> + ] : [ this.setState({ query: { ...query, name: v } })}/>], + children: } ]; return (