风险模块可能用到的表添加json.Parameter22 = this.props.data.ORG_ID_HV;

This commit is contained in:
何美荣 2025-12-22 17:01:46 +08:00
parent c02396c64d
commit 910767398c
6 changed files with 23 additions and 17 deletions

View File

@ -36,6 +36,7 @@ class HM040ShowPrint extends React.Component {
loadData = (id) => {
var orgId = this.props.login ? this.props.login.OrgId : ''; //登录后有存储登录信息
let json = initFilter(orgId);
json.Parameter22 = this.props.data.ORG_ID_HV;
extendRule(json, 'ID', 1, id); //ID=‘’,字段,等于,条件值, 1代表=2代表不等于3小于4小于等于5大于6大于等于7以开始的Like,8以结束的Like9包含
// extendInclude(json, 'Nav_OperationStep');
// extendInclude(json, 'Nav_EvaluateRisk.Nav_EvaluateRiskWorkduty.Nav_Post');
@ -56,7 +57,7 @@ class HM040ShowPrint extends React.Component {
//渲染页面
render() {
const { data } = this.state;
const enums=this.props.app.enums;
const enums = this.props.app.enums;
return <div>
<div style={{ padding: '10px' }}>
<table>
@ -69,7 +70,7 @@ class HM040ShowPrint extends React.Component {
<div ref={el => (this.componentRef = el)} style={{ padding: '20px', paddingTop: '20px' }} id={'tableId' + this.props.id}>
<h1 style={{ textAlign: 'center', margin: '15px' }}>作业任务库</h1>
{
data ? <div style={{ width: '95%'}}>
data ? <div style={{ width: '95%' }}>
{/* <table style={{ width: '100%', textAlign: 'center', borderTop: '1px solid #333', borderLeft: '1px solid #333' }}>
<tr>
<td colSpan={5} rowSpan={1}>通知名称</td>
@ -79,7 +80,7 @@ class HM040ShowPrint extends React.Component {
<Descriptions title="" size="middle" bordered>
<Descriptions.Item label="编号">{data.CODE}</Descriptions.Item>
{/* <Descriptions.Item label="名称">{data.NAME}</Descriptions.Item> */}
<Descriptions.Item label="作业环节">{data.Nav_OperationStep ?data.Nav_OperationStep.NAME: ''}</Descriptions.Item>
<Descriptions.Item label="作业环节">{data.Nav_OperationStep ? data.Nav_OperationStep.NAME : ''}</Descriptions.Item>
{/* <Descriptions.Item label="/">
{
data.Nav_OperationLinkEvaluateRisk && data.Nav_OperationLinkEvaluateRisk.map((item, i) => {
@ -107,18 +108,18 @@ class HM040ShowPrint extends React.Component {
<Descriptions.Item label="作业前安全确认">
{
data.Nav_SafeConfirms && data.Nav_SafeConfirms.map((item, i) => {
return <tr><label> {(i+1)+"."+item.NAME}</label></tr>
return <tr><label> {(i + 1) + "." + item.NAME}</label></tr>
})
}
</Descriptions.Item>
<Descriptions.Item label="作业流程及安全措施">{
data.Nav_SafeMeasures && data.Nav_SafeMeasures.map((item, i) => {
return <tr><label> {(i+1)+"."+item.NAME}</label></tr>
return <tr><label> {(i + 1) + "." + item.NAME}</label></tr>
})
}</Descriptions.Item>
<Descriptions.Item label="作业后处理措施">{
data.Nav_DealMeasures && data.Nav_DealMeasures.map((item, i) => {
return <tr><label> {(i+1)+"."+item.NAME}</label></tr>
return <tr><label> {(i + 1) + "." + item.NAME}</label></tr>
})
}</Descriptions.Item>
<Descriptions.Item label="添加时间">{data.CREATE_TIME}</Descriptions.Item>
@ -131,4 +132,4 @@ class HM040ShowPrint extends React.Component {
</div>
}
}
export default connect(({ login,app }) => ({ login,app }))(HM040ShowPrint)
export default connect(({ login, app }) => ({ login, app }))(HM040ShowPrint)

View File

@ -60,6 +60,7 @@ class HM104ShowPrint extends React.Component {
loadData = (dataId) => {
let that = this;
let json = initFilter(that.props.login.OrgId);
json.Parameter22 = this.props.data.ORG_ID_HV;
extendRule(json, 'ID', 1, dataId);
extendIgnoreDataRule(json)
that.props.dispatch({

View File

@ -59,6 +59,7 @@ class HM107ShowPrint extends React.Component {
loadData = (dataId) => {
let json = initFilter(this.props.login.OrgId);
json.Parameter22 = this.props.data.ORG_ID_HV;
extendRule(json, 'ID', 1, dataId);
extendIgnoreDataRule(json)
this.props.dispatch({

View File

@ -59,6 +59,7 @@ class HM109ShowPrint extends React.Component {
loadData = (dataId) => {
let json = initFilter(this.props.login.OrgId);
json.Parameter22 = this.props.data.ORG_ID_HV;
extendRule(json, 'ID', 1, dataId);
extendIgnoreDataRule(json)
this.props.dispatch({

View File

@ -59,6 +59,7 @@ class HM111ShowPrint extends React.Component {
loadData = (dataId) => {
let json = initFilter(this.props.login.OrgId);
json.Parameter22 = this.props.data.ORG_ID_HV;
extendRule(json, 'ID', 1, dataId);
extendIgnoreDataRule(json)
this.props.dispatch({

View File

@ -57,6 +57,7 @@ class HM123ShowPrint extends React.Component {
loadData = (dataId) => {
let that = this;
let json = initFilter(that.props.login.OrgId);
json.Parameter22 = this.props.data.ORG_ID_HV;
extendRule(json, 'ID', 1, dataId);
extendIgnoreDataRule(json)
that.props.dispatch({