风险模块可能用到的表添加json.Parameter22 = this.props.data.ORG_ID_HV;
This commit is contained in:
parent
c02396c64d
commit
910767398c
@ -36,6 +36,7 @@ class HM040ShowPrint extends React.Component {
|
|||||||
loadData = (id) => {
|
loadData = (id) => {
|
||||||
var orgId = this.props.login ? this.props.login.OrgId : ''; //登录后有存储登录信息
|
var orgId = this.props.login ? this.props.login.OrgId : ''; //登录后有存储登录信息
|
||||||
let json = initFilter(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以结束的Like,9包含
|
extendRule(json, 'ID', 1, id); //ID=‘’,字段,等于,条件值, 1代表=,2代表不等于,3小于,4小于等于,5大于,6大于等于,7以开始的Like,8以结束的Like,9包含
|
||||||
// extendInclude(json, 'Nav_OperationStep');
|
// extendInclude(json, 'Nav_OperationStep');
|
||||||
// extendInclude(json, 'Nav_EvaluateRisk.Nav_EvaluateRiskWorkduty.Nav_Post');
|
// extendInclude(json, 'Nav_EvaluateRisk.Nav_EvaluateRiskWorkduty.Nav_Post');
|
||||||
@ -56,7 +57,7 @@ class HM040ShowPrint extends React.Component {
|
|||||||
//渲染页面
|
//渲染页面
|
||||||
render() {
|
render() {
|
||||||
const { data } = this.state;
|
const { data } = this.state;
|
||||||
const enums=this.props.app.enums;
|
const enums = this.props.app.enums;
|
||||||
return <div>
|
return <div>
|
||||||
<div style={{ padding: '10px' }}>
|
<div style={{ padding: '10px' }}>
|
||||||
<table>
|
<table>
|
||||||
@ -64,12 +65,12 @@ class HM040ShowPrint extends React.Component {
|
|||||||
<td><ReactToPrint trigger={() => <Button type={'default'} icon={'printer'} >打印</Button>} content={() => this.componentRef} /></td>
|
<td><ReactToPrint trigger={() => <Button type={'default'} icon={'printer'} >打印</Button>} content={() => this.componentRef} /></td>
|
||||||
{/* <td><ExportToExcel fileName='班组安全记录活动表' tableId='table1' /></td> */}
|
{/* <td><ExportToExcel fileName='班组安全记录活动表' tableId='table1' /></td> */}
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div ref={el => (this.componentRef = el)} style={{ padding: '20px', paddingTop: '20px' }} id={'tableId' + this.props.id}>
|
<div ref={el => (this.componentRef = el)} style={{ padding: '20px', paddingTop: '20px' }} id={'tableId' + this.props.id}>
|
||||||
<h1 style={{ textAlign: 'center', margin: '15px' }}>作业任务库</h1>
|
<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' }}>
|
{/* <table style={{ width: '100%', textAlign: 'center', borderTop: '1px solid #333', borderLeft: '1px solid #333' }}>
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={5} rowSpan={1}>通知名称</td>
|
<td colSpan={5} rowSpan={1}>通知名称</td>
|
||||||
@ -79,7 +80,7 @@ class HM040ShowPrint extends React.Component {
|
|||||||
<Descriptions title="" size="middle" bordered>
|
<Descriptions title="" size="middle" bordered>
|
||||||
<Descriptions.Item label="编号">{data.CODE}</Descriptions.Item>
|
<Descriptions.Item label="编号">{data.CODE}</Descriptions.Item>
|
||||||
{/* <Descriptions.Item label="名称">{data.NAME}</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="危险源/风险名称">
|
{/* <Descriptions.Item label="危险源/风险名称">
|
||||||
{
|
{
|
||||||
data.Nav_OperationLinkEvaluateRisk && data.Nav_OperationLinkEvaluateRisk.map((item, i) => {
|
data.Nav_OperationLinkEvaluateRisk && data.Nav_OperationLinkEvaluateRisk.map((item, i) => {
|
||||||
@ -87,10 +88,10 @@ class HM040ShowPrint extends React.Component {
|
|||||||
})
|
})
|
||||||
}</Descriptions.Item> */}
|
}</Descriptions.Item> */}
|
||||||
<Descriptions.Item label="相关岗位">
|
<Descriptions.Item label="相关岗位">
|
||||||
{
|
{
|
||||||
data.POST
|
data.POST
|
||||||
}
|
}
|
||||||
{/* {
|
{/* {
|
||||||
data.Nav_OperationLinkEvaluateRisk.Nav_EvaluateRisk && data.Nav_OperationLinkEvaluateRisk.Nav_EvaluateRisk.Nav_EvaluateRiskWorkduty && data.Nav_OperationLinkEvaluateRisk.Nav_EvaluateRisk.Nav_EvaluateRiskWorkduty.map((item, i) => {
|
data.Nav_OperationLinkEvaluateRisk.Nav_EvaluateRisk && data.Nav_OperationLinkEvaluateRisk.Nav_EvaluateRisk.Nav_EvaluateRiskWorkduty && data.Nav_OperationLinkEvaluateRisk.Nav_EvaluateRisk.Nav_EvaluateRiskWorkduty.map((item, i) => {
|
||||||
console.log(item)
|
console.log(item)
|
||||||
if (i == (data.Nav_OperationLinkEvaluateRisk.Nav_EvaluateRisk.Nav_EvaluateRiskWorkduty.length - 1)) {
|
if (i == (data.Nav_OperationLinkEvaluateRisk.Nav_EvaluateRisk.Nav_EvaluateRiskWorkduty.length - 1)) {
|
||||||
@ -105,22 +106,22 @@ class HM040ShowPrint extends React.Component {
|
|||||||
<Descriptions.Item label="作业许可类别">{data.Nav_WorkPermitType?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="作业许可类别">{data.Nav_WorkPermitType?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="许可作业审批层级">{enums.HMOperationTaskAuditEnum.enums[data.AUDIT_LEVEL]}</Descriptions.Item>
|
<Descriptions.Item label="许可作业审批层级">{enums.HMOperationTaskAuditEnum.enums[data.AUDIT_LEVEL]}</Descriptions.Item>
|
||||||
<Descriptions.Item label="作业前安全确认">
|
<Descriptions.Item label="作业前安全确认">
|
||||||
{
|
{
|
||||||
data.Nav_SafeConfirms && data.Nav_SafeConfirms.map((item, i) => {
|
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>
|
||||||
<Descriptions.Item label="作业流程及安全措施">{
|
<Descriptions.Item label="作业流程及安全措施">{
|
||||||
data.Nav_SafeMeasures && data.Nav_SafeMeasures.map((item, i) => {
|
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>
|
||||||
<Descriptions.Item label="作业后处理措施">{
|
<Descriptions.Item label="作业后处理措施">{
|
||||||
data.Nav_DealMeasures && data.Nav_DealMeasures.map((item, i) => {
|
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>
|
||||||
<Descriptions.Item label="添加时间">{data.CREATE_TIME}</Descriptions.Item>
|
<Descriptions.Item label="添加时间">{data.CREATE_TIME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="状态">{enums.STATUSEnum.enums[data.STATUS]}</Descriptions.Item>
|
<Descriptions.Item label="状态">{enums.STATUSEnum.enums[data.STATUS]}</Descriptions.Item>
|
||||||
{/* {data.SafeConfirmsStr?.replaceAll("|","\r\n")} */}
|
{/* {data.SafeConfirmsStr?.replaceAll("|","\r\n")} */}
|
||||||
@ -131,4 +132,4 @@ class HM040ShowPrint extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default connect(({ login,app }) => ({ login,app }))(HM040ShowPrint)
|
export default connect(({ login, app }) => ({ login, app }))(HM040ShowPrint)
|
||||||
|
|||||||
@ -60,6 +60,7 @@ class HM104ShowPrint extends React.Component {
|
|||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let that = this;
|
let that = this;
|
||||||
let json = initFilter(that.props.login.OrgId);
|
let json = initFilter(that.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
that.props.dispatch({
|
that.props.dispatch({
|
||||||
|
|||||||
@ -59,6 +59,7 @@ class HM107ShowPrint extends React.Component {
|
|||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
|
|||||||
@ -59,6 +59,7 @@ class HM109ShowPrint extends React.Component {
|
|||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
|
|||||||
@ -59,6 +59,7 @@ class HM111ShowPrint extends React.Component {
|
|||||||
|
|
||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
|
|||||||
@ -57,6 +57,7 @@ class HM123ShowPrint extends React.Component {
|
|||||||
loadData = (dataId) => {
|
loadData = (dataId) => {
|
||||||
let that = this;
|
let that = this;
|
||||||
let json = initFilter(that.props.login.OrgId);
|
let json = initFilter(that.props.login.OrgId);
|
||||||
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
extendIgnoreDataRule(json)
|
extendIgnoreDataRule(json)
|
||||||
that.props.dispatch({
|
that.props.dispatch({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user