diff --git a/src/baseComponents/TableBaseComponent/index.js b/src/baseComponents/TableBaseComponent/index.js index 0cdc613..bf0b1e1 100644 --- a/src/baseComponents/TableBaseComponent/index.js +++ b/src/baseComponents/TableBaseComponent/index.js @@ -164,6 +164,9 @@ class TableBaseComponent extends ComponentBase { extendParam['Start'] = 0; extendParam['IsAllLoad'] = !!customParams.IsAllLoad; const tempParamJson = this.getLoadParam({ tableCode }); + if (this.props.data && this.props.data.ORG_ID_HV && this.props.data.ORG_ID_HV.length > 0) { + tempParamJson.Parameter22 = this.props.data.ORG_ID_HV + } if (param && extendParam) { this.setSearchParam({ tableCode, diff --git a/src/components/Table/TableModal.js b/src/components/Table/TableModal.js index bb86862..e2fb511 100644 --- a/src/components/Table/TableModal.js +++ b/src/components/Table/TableModal.js @@ -90,6 +90,9 @@ class TableModal extends React.Component { customJson[this.props.customParams] = this.props.id; //console.log(params); //const isEdit=tmpData.data?!tmpData.data.isBatchEdit:true; + if (this.props.data && this.props.data.ORG_ID) { + params.ORG_ID_HV = this.props.data.ORG_ID + } return (
{this.props.children}