双控模块添加json.Parameter22 = this.props.data.ORG_ID_HV;
This commit is contained in:
parent
f685435a77
commit
c02396c64d
@ -29,6 +29,7 @@ class SK002ShowSummary extends React.Component {
|
||||
|
||||
loadData = () => {
|
||||
let json = initFilter(this.props.login.OrgId, "", "", 1, 1);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendInclude(json, 'Nav_Type');
|
||||
extendInclude(json, 'Nav_Area');
|
||||
extendInclude(json, 'Nav_Details');
|
||||
|
||||
@ -152,13 +152,11 @@ class SK004CheckList extends React.Component {
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
if (this.props.data?.btnConfig?.id)
|
||||
{this.loadData();}
|
||||
if (this.props.data?.btnConfig?.id) { this.loadData(); }
|
||||
}
|
||||
|
||||
componentWillReceiveProps(NextProps) {
|
||||
if (NextProps.data?.btnConfig?.id && this.props.data?.btnConfig?.id != NextProps.data?.btnConfig?.id)
|
||||
{this.loadData();}
|
||||
if (NextProps.data?.btnConfig?.id && this.props.data?.btnConfig?.id != NextProps.data?.btnConfig?.id) { this.loadData(); }
|
||||
}
|
||||
BtnClose = () => {
|
||||
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||
@ -167,6 +165,7 @@ class SK004CheckList extends React.Component {
|
||||
|
||||
loadData = () => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendIgnoreDataRule(json)
|
||||
this.props.dispatch({
|
||||
type: 'app/getDataByPost',
|
||||
@ -179,11 +178,9 @@ class SK004CheckList extends React.Component {
|
||||
}
|
||||
});
|
||||
}
|
||||
loadData2()
|
||||
{
|
||||
loadData2() {
|
||||
let temp = this.state.data
|
||||
if(this.state.inputText)
|
||||
{
|
||||
if (this.state.inputText) {
|
||||
// let minetype=0
|
||||
// if(this.state.inputText.includes("露天"))
|
||||
// {
|
||||
@ -211,8 +208,7 @@ class SK004CheckList extends React.Component {
|
||||
// }
|
||||
temp = temp.filter(t => t.MineType == this.state.inputText);
|
||||
}
|
||||
if(this.state.inputText2)
|
||||
{
|
||||
if (this.state.inputText2) {
|
||||
// let checktype=3
|
||||
// if(this.state.inputText2.includes("部门"))
|
||||
// {
|
||||
@ -232,8 +228,7 @@ class SK004CheckList extends React.Component {
|
||||
// }
|
||||
temp = temp.filter(t => t.CHECK_TYPE == this.state.inputText2);
|
||||
}
|
||||
if(this.state.inputText3)
|
||||
{
|
||||
if (this.state.inputText3) {
|
||||
temp = temp.filter(t => t.Nav_CheckType?.NAME.includes(this.state.inputText3));
|
||||
}
|
||||
this.setState({ dataList: temp })
|
||||
@ -279,11 +274,13 @@ class SK004CheckList extends React.Component {
|
||||
url: 'SK/SKEnterpriseLibrary/GetCheckDetailList',
|
||||
onComplete: (ret) => {
|
||||
if (ret) {
|
||||
this.setState({ Details: ret,
|
||||
this.setState({
|
||||
Details: ret,
|
||||
MineType: item.MineType,
|
||||
CHECK_CYCLE: item.CHECK_CYCLE,
|
||||
CHECK_TYPE: item.CHECK_TYPE,
|
||||
CHECK_TYPE_ID:item.CHECK_TYPE_ID, });
|
||||
CHECK_TYPE_ID: item.CHECK_TYPE_ID,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -125,13 +125,11 @@ class SK004CheckListNew extends React.Component {
|
||||
};
|
||||
};
|
||||
componentDidMount() {
|
||||
if (this.props.data?.btnConfig?.id)
|
||||
{this.loadData();}
|
||||
if (this.props.data?.btnConfig?.id) { this.loadData(); }
|
||||
}
|
||||
|
||||
componentWillReceiveProps(NextProps) {
|
||||
if (NextProps.data?.btnConfig?.id && this.props.data?.btnConfig?.id != NextProps.data?.btnConfig?.id)
|
||||
{this.loadData();}
|
||||
if (NextProps.data?.btnConfig?.id && this.props.data?.btnConfig?.id != NextProps.data?.btnConfig?.id) { this.loadData(); }
|
||||
}
|
||||
BtnClose = () => {
|
||||
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||
@ -140,6 +138,7 @@ class SK004CheckListNew extends React.Component {
|
||||
|
||||
loadData = () => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendIgnoreDataRule(json)
|
||||
this.props.dispatch({
|
||||
type: 'app/getDataByPost',
|
||||
@ -152,11 +151,9 @@ class SK004CheckListNew extends React.Component {
|
||||
}
|
||||
});
|
||||
}
|
||||
loadData2()
|
||||
{
|
||||
loadData2() {
|
||||
let temp = this.state.data
|
||||
if(this.state.productionId)
|
||||
{
|
||||
if (this.state.productionId) {
|
||||
// let minetype="全公司"
|
||||
// if(this.state.inputText === "10")
|
||||
// {
|
||||
@ -185,8 +182,7 @@ class SK004CheckListNew extends React.Component {
|
||||
|
||||
temp = temp.filter(t => t.PRODUCTION_UNIT_ID == this.state.productionId);
|
||||
}
|
||||
if(this.state.inputText2)
|
||||
{
|
||||
if (this.state.inputText2) {
|
||||
// let checktype=3
|
||||
// if(this.state.inputText2.includes("部门"))
|
||||
// {
|
||||
@ -206,20 +202,16 @@ class SK004CheckListNew extends React.Component {
|
||||
// }
|
||||
temp = temp.filter(t => t.CheckLevel == this.state.inputText2);
|
||||
}
|
||||
if(this.state.inputText6)
|
||||
{
|
||||
if (this.state.inputText6) {
|
||||
temp = temp.filter(t => t.CheckCycle == this.state.inputText6);
|
||||
}
|
||||
if(this.state.inputText3)
|
||||
{
|
||||
if (this.state.inputText3) {
|
||||
temp = temp.filter(t => t.CheckType == this.state.inputText3);
|
||||
}
|
||||
if(this.state.inputText4)
|
||||
{
|
||||
if (this.state.inputText4) {
|
||||
temp = temp.filter(t => t.CheckDepart.includes(this.state.inputText4));
|
||||
}
|
||||
if(this.state.inputText5)
|
||||
{
|
||||
if (this.state.inputText5) {
|
||||
temp = temp.filter(t => t.CheckPost != null && t.CheckPost.includes(this.state.inputText5));
|
||||
}
|
||||
this.setState({ dataList: temp })
|
||||
@ -265,11 +257,13 @@ class SK004CheckListNew extends React.Component {
|
||||
url: 'SK/SKEnterpriseLibrary/GetCheckDetailList',
|
||||
onComplete: (ret) => {
|
||||
if (ret) {
|
||||
this.setState({ Details: ret,
|
||||
this.setState({
|
||||
Details: ret,
|
||||
MineType: item.MineType,
|
||||
CHECK_CYCLE: item.CHECK_CYCLE,
|
||||
CHECK_TYPE: item.CHECK_TYPE,
|
||||
CHECK_TYPE_ID:item.CHECK_TYPE_ID, });
|
||||
CHECK_TYPE_ID: item.CHECK_TYPE_ID,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -151,13 +151,11 @@ class SK004CheckPost extends React.Component {
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
if (this.props.data?.btnConfig?.id)
|
||||
{this.loadData();}
|
||||
if (this.props.data?.btnConfig?.id) { this.loadData(); }
|
||||
}
|
||||
|
||||
componentWillReceiveProps(NextProps) {
|
||||
if (NextProps.data?.btnConfig?.id && this.props.data?.btnConfig?.id != NextProps.data?.btnConfig?.id)
|
||||
{this.loadData();}
|
||||
if (NextProps.data?.btnConfig?.id && this.props.data?.btnConfig?.id != NextProps.data?.btnConfig?.id) { this.loadData(); }
|
||||
}
|
||||
BtnClose = () => {
|
||||
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||
@ -166,6 +164,7 @@ class SK004CheckPost extends React.Component {
|
||||
|
||||
loadData = () => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendIgnoreDataRule(json)
|
||||
this.props.dispatch({
|
||||
type: 'app/getDataByPost',
|
||||
@ -178,19 +177,15 @@ class SK004CheckPost extends React.Component {
|
||||
}
|
||||
});
|
||||
}
|
||||
loadData2()
|
||||
{
|
||||
loadData2() {
|
||||
let temp = this.state.data
|
||||
if(this.state.inputText)
|
||||
{
|
||||
if (this.state.inputText) {
|
||||
temp = temp.filter(t => t.Nav_Department?.NAME.includes(this.state.inputText));
|
||||
}
|
||||
if(this.state.inputText2)
|
||||
{
|
||||
if (this.state.inputText2) {
|
||||
temp = temp.filter(t => t.POST_NAME.includes(this.state.inputText2));
|
||||
}
|
||||
if(this.state.inputText3)
|
||||
{
|
||||
if (this.state.inputText3) {
|
||||
temp = temp.filter(t => t.Nav_Library?.Nav_ProductionUnit?.NAME.includes(this.state.inputText3));
|
||||
}
|
||||
this.setState({ dataList: temp })
|
||||
@ -239,10 +234,8 @@ class SK004CheckPost extends React.Component {
|
||||
showCard: true,
|
||||
}, () => {
|
||||
let tmpData = [];
|
||||
if(record.Nav_Details)
|
||||
{
|
||||
for(var i = 0; i <record.Nav_Details.length ; i++)
|
||||
{
|
||||
if (record.Nav_Details) {
|
||||
for (var i = 0; i < record.Nav_Details.length; i++) {
|
||||
tmpData = tmpData + "\r\n" + (i + 1) + "、" + record.Nav_Details[i].MEASURES_NAME
|
||||
}
|
||||
}
|
||||
|
||||
@ -78,8 +78,7 @@ class SK004ShowPrint extends React.Component {
|
||||
title: "检查层级",
|
||||
dataIndex: "CHECK_TYPE",
|
||||
key: "CHECK_TYPE",
|
||||
render: (text, record) =>
|
||||
{
|
||||
render: (text, record) => {
|
||||
return <label>{this.props.app.enums.SKDepartmentTypeEnum.enums[record.CHECK_TYPE]}</label>
|
||||
}
|
||||
},
|
||||
@ -92,8 +91,7 @@ class SK004ShowPrint extends React.Component {
|
||||
title: "检查岗位",
|
||||
dataIndex: "Nav_DetailPosts",
|
||||
key: "Nav_DetailPosts",
|
||||
render: (text, record) =>
|
||||
{
|
||||
render: (text, record) => {
|
||||
return <label>{
|
||||
record.Nav_DetailPosts && record.Nav_DetailPosts.map((item, i) => {
|
||||
return item.Nav_Post.NAME + ' '
|
||||
@ -110,8 +108,7 @@ class SK004ShowPrint extends React.Component {
|
||||
title: "检查周期",
|
||||
dataIndex: "CHECK_CYCLE",
|
||||
key: "CHECK_CYCLE",
|
||||
render: (text, record) =>
|
||||
{
|
||||
render: (text, record) => {
|
||||
return <label>{this.props.app.enums.SKPLANCHECKFREQUENCYEnum.enums[record.CHECK_CYCLE]}</label>
|
||||
}
|
||||
},
|
||||
@ -161,6 +158,7 @@ class SK004ShowPrint 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);
|
||||
// extendInclude(json, 'Nav_Type');
|
||||
// extendInclude(json, 'Nav_Area');
|
||||
@ -187,8 +185,7 @@ class SK004ShowPrint extends React.Component {
|
||||
url: 'SK/SKEnterpriseLibrary/SKGet',
|
||||
onComplete: (ret) => {
|
||||
if (ret) {
|
||||
if(that.props.data && that.props.data.loadDataDeal)
|
||||
{
|
||||
if (that.props.data && that.props.data.loadDataDeal) {
|
||||
that.props.data.loadDataDeal(1);
|
||||
}
|
||||
that.setState({ data: ret });
|
||||
|
||||
@ -29,6 +29,7 @@ class SK004ShowSummary extends React.Component {
|
||||
|
||||
loadData = () => {
|
||||
let json = initFilter(this.props.login.OrgId, "", "", 1, 1);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendInclude(json, 'Nav_Type');
|
||||
extendInclude(json, 'Nav_Area');
|
||||
extendInclude(json, 'Nav_Details');
|
||||
|
||||
@ -63,6 +63,7 @@ class SK006ShowOperateLog extends React.Component {
|
||||
loadData = (id) => {
|
||||
var orgId = this.props.login ? this.props.login.OrgId : '';
|
||||
let json = initFilter(orgId, id);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
this.props.dispatch({
|
||||
type: 'app/getDataByPost',
|
||||
payload: json,
|
||||
|
||||
@ -85,6 +85,7 @@ class SK006ShowPrint extends React.Component {
|
||||
}
|
||||
loadDataTask = (dataId) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
extendIgnoreDataRule(json)
|
||||
// extendRule(json, 'ID', 1, dataId);
|
||||
|
||||
@ -143,13 +143,11 @@ class SK010CheckList extends React.Component {
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
if (this.props.data?.clickKey)
|
||||
{this.loadData();}
|
||||
if (this.props.data?.clickKey) { this.loadData(); }
|
||||
}
|
||||
|
||||
componentWillReceiveProps(NextProps) {
|
||||
if (NextProps.data?.clickKey && this.props.data?.clickKey != NextProps.data?.clickKey)
|
||||
{this.loadData();}
|
||||
if (NextProps.data?.clickKey && this.props.data?.clickKey != NextProps.data?.clickKey) { this.loadData(); }
|
||||
}
|
||||
BtnClose = () => {
|
||||
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||
@ -158,6 +156,7 @@ class SK010CheckList extends React.Component {
|
||||
|
||||
loadData = () => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendIgnoreDataRule(json)
|
||||
this.props.dispatch({
|
||||
type: 'app/getDataByPost',
|
||||
@ -212,11 +211,13 @@ class SK010CheckList extends React.Component {
|
||||
url: 'SK/SKEnterpriseLibrary/GetCheckDetailList',
|
||||
onComplete: (ret) => {
|
||||
if (ret) {
|
||||
this.setState({ Details: ret,
|
||||
this.setState({
|
||||
Details: ret,
|
||||
PRODUCTION_UNIT_ID: item.PRODUCTION_UNIT_ID,
|
||||
CHECK_CYCLE: item.CHECK_CYCLE,
|
||||
CHECK_TYPE: item.CHECK_TYPE,
|
||||
CHECK_TYPE_ID:item.CHECK_TYPE_ID, });
|
||||
CHECK_TYPE_ID: item.CHECK_TYPE_ID,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -257,8 +258,7 @@ class SK010CheckList extends React.Component {
|
||||
});
|
||||
if (!temps || temps.length == 0) {
|
||||
message.error('请选择要导入的内容');
|
||||
}else
|
||||
{
|
||||
} else {
|
||||
this.props.login.tempDatas = temps
|
||||
this.state.taskSelects = [];
|
||||
this.state.selectedRowKeys = [];
|
||||
@ -269,7 +269,8 @@ class SK010CheckList extends React.Component {
|
||||
}
|
||||
};
|
||||
onSelectChange = (selectedRowKeys, selectedRows) => { // 选择菜单行
|
||||
this.setState({selectedRowKeys:selectedRowKeys,
|
||||
this.setState({
|
||||
selectedRowKeys: selectedRowKeys,
|
||||
taskSelects: selectedRows
|
||||
});
|
||||
};
|
||||
|
||||
@ -60,6 +60,7 @@ class SK010ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
extendRule(json, 'TASK_ID', 1, taskID);
|
||||
extendIgnoreDataRule(json)
|
||||
|
||||
@ -61,6 +61,7 @@ class SK012ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
extendRule(json, 'TASK_ID', 1, taskID);
|
||||
extendIgnoreDataRule(json)
|
||||
@ -86,16 +87,14 @@ class SK012ShowPrint extends React.Component {
|
||||
}
|
||||
let users = []
|
||||
let uniqueUsers = []
|
||||
if(ret.Nav_CheckRecordDetails)
|
||||
{
|
||||
if (ret.Nav_CheckRecordDetails) {
|
||||
ret.Nav_CheckRecordDetails.forEach(item => {
|
||||
item.Nav_CheckRecordDetailUsers.forEach(item2 => {
|
||||
users.push(item2)
|
||||
})
|
||||
})
|
||||
}
|
||||
if(users)
|
||||
{
|
||||
if (users) {
|
||||
uniqueUsers = users.reduce((acc, user) => {
|
||||
// 如果累积数组中还没有这个 user_id,则添加
|
||||
if (!acc.some(item => item.USER_ID === user.USER_ID)) {
|
||||
|
||||
@ -60,6 +60,7 @@ class SK014ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
extendRule(json, 'TASK_ID', 1, taskID);
|
||||
extendIgnoreDataRule(json)
|
||||
|
||||
@ -41,6 +41,7 @@ class SK016ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
// extendRule(json, 'TASK_ID', 1, taskID);
|
||||
extendInclude(json, 'Nav_ApplyUser');
|
||||
|
||||
@ -57,6 +57,7 @@ class SK018ShowPrint extends React.Component {
|
||||
}
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
// extendRule(json, 'TASK_ID', 1, taskID);
|
||||
extendInclude(json, 'Nav_Report');
|
||||
|
||||
@ -60,6 +60,7 @@ class SK020ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
extendRule(json, 'TASK_ID', 1, taskID);
|
||||
extendIgnoreDataRule(json)
|
||||
|
||||
@ -57,6 +57,7 @@ class SK022ShowPrint extends React.Component {
|
||||
}
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
// extendRule(json, 'TASK_ID', 1, taskID);
|
||||
// extendInclude(json, 'Nav_ApplyUser');
|
||||
|
||||
@ -57,6 +57,7 @@ class SK024ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
// extendRule(json, 'TASK_ID', 1, taskID);
|
||||
extendInclude(json, 'Nav_ApplyUser');
|
||||
|
||||
@ -228,6 +228,7 @@ class SK026ShowPrint 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);
|
||||
// extendInclude(json, 'Nav_ApplyUser');
|
||||
// extendInclude(json, 'Nav_ApplyDepartment');
|
||||
|
||||
@ -47,6 +47,7 @@ class SK027ShowPrint 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)
|
||||
// extendRule(json, 'ID', 1, dataId);
|
||||
|
||||
@ -41,6 +41,7 @@ class SK031ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
// extendRule(json, 'TASK_ID', 1, taskID);
|
||||
// extendInclude(json, 'Nav_ApplyUser');
|
||||
|
||||
@ -42,7 +42,15 @@ class SK033ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
if (this.props.data.ORG_ID_HV) {
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
}
|
||||
else if (this.props.data?.TASK_ORGID) {
|
||||
json.Parameter22 = this.props.data?.TASK_ORGID
|
||||
}
|
||||
else {
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
}
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
// extendRule(json, 'TASK_ID', 1, taskID);
|
||||
// extendInclude(json, 'Nav_ApplyUser');
|
||||
|
||||
@ -70,8 +70,7 @@ class SK035CheckLibrary extends React.Component {
|
||||
title: "检查层级",
|
||||
dataIndex: "CHECK_TYPE",
|
||||
key: "CHECK_TYPE",
|
||||
render: (text, record) =>
|
||||
{
|
||||
render: (text, record) => {
|
||||
return <label>{this.props.app.enums.SKDepartmentTypeEnum.enums[record.CHECK_TYPE]}</label>
|
||||
}
|
||||
},
|
||||
@ -102,8 +101,7 @@ class SK035CheckLibrary extends React.Component {
|
||||
title: "检查周期",
|
||||
dataIndex: "CHECK_CYCLE",
|
||||
key: "CHECK_CYCLE",
|
||||
render: (text, record) =>
|
||||
{
|
||||
render: (text, record) => {
|
||||
return <label>{this.props.app.enums.SKPLANCHECKFREQUENCYEnum.enums[record.CHECK_CYCLE]}</label>
|
||||
}
|
||||
},
|
||||
@ -153,6 +151,7 @@ class SK035CheckLibrary extends React.Component {
|
||||
loadData = (dataId) => {
|
||||
let that = this;
|
||||
let jsonTemp = initFilter(that.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(jsonTemp, 'ID', 1, dataId);
|
||||
that.props.dispatch({
|
||||
type: 'app/getDataByPost',
|
||||
@ -189,8 +188,7 @@ class SK035CheckLibrary extends React.Component {
|
||||
url: 'SK/SKEnterpriseLibrary/SKGet',
|
||||
onComplete: (ret) => {
|
||||
if (ret) {
|
||||
if(that.props.data && that.props.data.loadDataDeal)
|
||||
{
|
||||
if (that.props.data && that.props.data.loadDataDeal) {
|
||||
that.props.data.loadDataDeal(1);
|
||||
}
|
||||
that.setState({ data: ret });
|
||||
@ -205,8 +203,7 @@ class SK035CheckLibrary extends React.Component {
|
||||
// this.setState({ isFinished: 'inline' })
|
||||
// }
|
||||
}
|
||||
else
|
||||
{ message.error('企业库无对应风险!');}
|
||||
else { message.error('企业库无对应风险!'); }
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -41,6 +41,7 @@ class SK035ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
// extendRule(json, 'TASK_ID', 1, taskID);
|
||||
// extendInclude(json, 'Nav_ApplyUser');
|
||||
|
||||
@ -42,6 +42,7 @@ class SK037ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
// extendRule(json, 'TASK_ID', 1, taskID);
|
||||
// extendInclude(json, 'Nav_ApplyUser');
|
||||
|
||||
@ -41,6 +41,7 @@ class SK039ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
// extendRule(json, 'TASK_ID', 1, taskID);
|
||||
// extendInclude(json, 'Nav_ApplyUser');
|
||||
|
||||
@ -41,6 +41,7 @@ class SK041ShowPrint extends React.Component {
|
||||
|
||||
loadData = (dataId, taskID) => {
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||
extendRule(json, 'ID', 1, dataId);
|
||||
// extendRule(json, 'TASK_ID', 1, taskID);
|
||||
// extendInclude(json, 'Nav_ApplyUser');
|
||||
|
||||
@ -38,6 +38,7 @@ class SK043ShowPrint 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);
|
||||
extendInclude(json, 'Nav_Type');
|
||||
extendInclude(json, 'Nav_Area');
|
||||
@ -51,8 +52,7 @@ class SK043ShowPrint extends React.Component {
|
||||
url: 'SK/BasicLibraryTemp/Get',
|
||||
onComplete: (ret) => {
|
||||
if (ret) {
|
||||
if(that.props.data && that.props.data.loadDataDeal)
|
||||
{
|
||||
if (that.props.data && that.props.data.loadDataDeal) {
|
||||
that.props.data.loadDataDeal(1);
|
||||
}
|
||||
that.setState({ data: ret });
|
||||
|
||||
@ -38,6 +38,7 @@ class SK045ShowPrint 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);
|
||||
// extendInclude(json, 'Nav_Type');
|
||||
// extendInclude(json, 'Nav_Area');
|
||||
@ -55,8 +56,7 @@ class SK045ShowPrint extends React.Component {
|
||||
url: 'SK/SKEnterpriseLibraryTemp/FullGet',
|
||||
onComplete: (ret) => {
|
||||
if (ret) {
|
||||
if(that.props.data && that.props.data.loadDataDeal)
|
||||
{
|
||||
if (that.props.data && that.props.data.loadDataDeal) {
|
||||
that.props.data.loadDataDeal(1);
|
||||
}
|
||||
that.setState({ data: ret });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user