diff --git a/pc4mobx/hrmSalary/pages/variableSalary/components/salaryFileList/index.js b/pc4mobx/hrmSalary/pages/variableSalary/components/salaryFileList/index.js index f924adff..6634dbd8 100644 --- a/pc4mobx/hrmSalary/pages/variableSalary/components/salaryFileList/index.js +++ b/pc4mobx/hrmSalary/pages/variableSalary/components/salaryFileList/index.js @@ -17,6 +17,7 @@ import { getSearchs } from "../../../../util"; import { extraConditions } from "../../conditions"; import AdvanceInputBtn from "../advanceInputBtn"; import SearchPannel from "../searchPannel"; +import { postFetch } from "../../../../util/request"; import { toJS } from "mobx"; import cs from "classnames"; @@ -36,7 +37,7 @@ class Index extends Component { } async componentDidMount() { - const { data: taxAgentOption } = await API.getAdminTaxAgentList(); + const { data: taxAgentOption } = await postFetch("/api/bs/hrmsalary/taxAgent/listAuth", { filterType: "QUERY_DATA" }); this.setState({ condtions: _.map(extraConditions, item => { return { @@ -44,7 +45,7 @@ class Index extends Component { if (getKey(child) === "taxAgentIds") { return { ...child, label: getLabel(child.lanId, child.label), - options: _.map(taxAgentOption, o => ({ key: o.id, showname: o.content })) + options: _.map(taxAgentOption, o => ({ key: String(o.id), showname: o.name })) }; } return { ...child, label: getLabel(child.lanId, child.label) }; @@ -100,7 +101,8 @@ class Index extends Component { getVariableSalaryList = () => { const { baseTableStore: { VSalryForm, VExtraSalryForm, getVariableSalaryList } } = this.props; const { pageInfo } = this.state; - const { taxAgentIds } = VExtraSalryForm.getFormParams(), { departmentIds } = VSalryForm.getFormParams();this.setState({ loading: true }); + const { taxAgentIds } = VExtraSalryForm.getFormParams(), { departmentIds } = VSalryForm.getFormParams(); + this.setState({ loading: true }); getVariableSalaryList({ ...pageInfo, ...VSalryForm.getFormParams(), ...VExtraSalryForm.getFormParams(), departmentIds: !_.isEmpty(departmentIds) ? departmentIds.split(",") : [],