From a80fc0c66c186b151bd44a7c240d9521cec77fd2 Mon Sep 17 00:00:00 2001 From: liyongshun <971387674@qq.com> Date: Tue, 12 Jul 2022 18:15:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=AA=E8=B5=84=E6=9F=A5=E7=9C=8B=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=B7=BB=E5=8A=A0=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hrmSalary/pages/mobilePayroll/index.js | 326 +++++++++--------- 1 file changed, 165 insertions(+), 161 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/mobilePayroll/index.js b/pc4mobx/hrmSalary/pages/mobilePayroll/index.js index 4bc9f127..fe3af2ac 100644 --- a/pc4mobx/hrmSalary/pages/mobilePayroll/index.js +++ b/pc4mobx/hrmSalary/pages/mobilePayroll/index.js @@ -1,168 +1,172 @@ -import React from 'react' -import { Modal, Row, Col } from 'antd' -import { inject, observer } from 'mobx-react'; -import { getQueryString } from '../../util/url' +import React from "react"; +import { Col, Row } from "antd"; +import { inject, observer } from "mobx-react"; +import { getQueryString } from "../../util/url"; +import Authority from "../mySalary/authority"; -@inject('mySalaryStore') +@inject("mySalaryStore") @observer export default class MobilePayroll extends React.Component { - constructor(props) { - super(props) - this.id = ""; - this.state = { - type: 'phone' - } - } + constructor(props) { + super(props); + this.id = ""; + this.state = { + type: "phone" + }; + } - componentWillMount() { - let id = getQueryString("id"); - let type = getQueryString("type"); - this.setState({type}) - this.id = id; - const { mySalaryStore: {getMySalaryBill}} = this.props; - getMySalaryBill(this.id) - } + componentWillMount() { + let id = getQueryString("id"); + let type = getQueryString("type"); + this.setState({ type }); + this.id = id; + const { mySalaryStore: { getMySalaryBill, init } } = this.props; + init(); + getMySalaryBill(this.id); + } - render() { - const { mySalaryStore: { mySalaryBill }} = this.props; - const { type } = this.state - return ( -