安全检查扩展
This commit is contained in:
parent
6457df4fc2
commit
c6c83a4a48
@ -91,12 +91,62 @@ class BI056Dilg1_1 extends React.Component {
|
||||
// extendOrder(json, "CREATE_TIME", 1);
|
||||
json.Parameter1 = mineType;
|
||||
json.Keyword = (seasonIndex == undefined ? this.state.seasonIndex : seasonIndex)
|
||||
this.props.dispatch({
|
||||
type: "app/getDataByPost",
|
||||
url: "BI/BISafe/GetBI056_1_1",
|
||||
payload: json,
|
||||
onlyData: false,
|
||||
onComplete: (ret) => {
|
||||
// this.props.dispatch({
|
||||
// type: "app/getDataByPost",
|
||||
// url: "BI/BISafe/GetBI056_1_1",
|
||||
// payload: json,
|
||||
// onlyData: false,
|
||||
// onComplete: (ret) => {
|
||||
let ret = {
|
||||
"IsSuccessful": true,
|
||||
"Data": {
|
||||
"lisMineTypeOrder": [
|
||||
"全公司",
|
||||
"选矿厂",
|
||||
"尾矿库",
|
||||
"露天矿",
|
||||
"地下矿"
|
||||
],
|
||||
"lisLevelOrder": [
|
||||
"公司级",
|
||||
"部门级",
|
||||
"车间级",
|
||||
"班组级"
|
||||
],
|
||||
"Count": [
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
[
|
||||
0,
|
||||
18,
|
||||
4,
|
||||
8,
|
||||
0
|
||||
],
|
||||
[
|
||||
0,
|
||||
259,
|
||||
0,
|
||||
90,
|
||||
0
|
||||
]
|
||||
]
|
||||
},
|
||||
"TotalCount": 0,
|
||||
"MessageType": 0
|
||||
}
|
||||
if (ret && ret.IsSuccessful) {
|
||||
this.setState({ //设置setState全局变量
|
||||
Data: {
|
||||
@ -105,13 +155,15 @@ class BI056Dilg1_1 extends React.Component {
|
||||
mineTypeName: ret.Data.lisMineTypeOrder,//["露天矿", "选矿厂", "尾矿库", "职能部门"],
|
||||
checkCountMonth: ret.Data.Count,// [
|
||||
}, //将ret对象赋值给data, data供页面调用
|
||||
},()=>{
|
||||
this.CheckCount(this.state.Data, this.state.seasonIndex - 1);
|
||||
})
|
||||
this.CheckCount(this.state.Data, this.state.seasonIndex - 1);
|
||||
|
||||
} else {
|
||||
message.error("获取信息失败,请刷新后再试!");
|
||||
}
|
||||
},
|
||||
});
|
||||
// },
|
||||
// });
|
||||
};
|
||||
|
||||
getBaseInfoData = (mineType) => {
|
||||
|
||||
@ -45,22 +45,55 @@ class BI056Dilg1_2 extends React.Component {
|
||||
const json = initFilter(this.props.login.OrgId);
|
||||
extendOrder(json, "CREATE_TIME", 1);
|
||||
json.Parameter1 = mineType;
|
||||
this.props.dispatch({
|
||||
type: "app/getDataByPost",
|
||||
url: "BI/BISafe/GetBI056_1_2",
|
||||
payload: json,
|
||||
onlyData: false,
|
||||
onComplete: (ret) => {
|
||||
// this.props.dispatch({
|
||||
// type: "app/getDataByPost",
|
||||
// url: "BI/BISafe/GetBI056_1_2",
|
||||
// payload: json,
|
||||
// onlyData: false,
|
||||
// onComplete: (ret) => {
|
||||
let ret = {
|
||||
"IsSuccessful": true,
|
||||
"Data": {
|
||||
"lisMineTypeOrder": [
|
||||
"全公司",
|
||||
"选矿厂",
|
||||
"尾矿库",
|
||||
"露天矿",
|
||||
"地下矿"
|
||||
],
|
||||
"ListCount": [
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
8
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
},
|
||||
"TotalCount": 0,
|
||||
"MessageType": 0
|
||||
}
|
||||
if (ret && ret.IsSuccessful) {
|
||||
this.setState({
|
||||
Data: Object.assign({}, this.state.Data, { "legendName": ret.Data.lisMineTypeOrder, "checkrisk": ret.Data.ListCount })
|
||||
},()=>{
|
||||
this.CheckCount(this.state.Data)
|
||||
})
|
||||
this.CheckCount(this.state.Data)
|
||||
|
||||
} else {
|
||||
message.error("获取信息失败,请刷新后再试!");
|
||||
}
|
||||
},
|
||||
});
|
||||
// },
|
||||
// });
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -48,30 +48,89 @@ class BI056Dilg2_1 extends React.Component {
|
||||
const json = initFilter(this.props.login.OrgId);
|
||||
extendOrder(json, "CREATE_TIME", 1);
|
||||
json.Parameter1 = mineType;
|
||||
this.props.dispatch({
|
||||
type: "app/getDataByPost",
|
||||
url: "BI/BISafe/GetBI056_2_1",
|
||||
payload: json,
|
||||
onlyData: false,
|
||||
onComplete: (ret) => {
|
||||
// this.props.dispatch({
|
||||
// type: "app/getDataByPost",
|
||||
// url: "BI/BISafe/GetBI056_2_1",
|
||||
// payload: json,
|
||||
// onlyData: false,
|
||||
// onComplete: (ret) => {
|
||||
let ret = {
|
||||
"IsSuccessful": true,
|
||||
"Data": {
|
||||
"lisMineTypeOrder": [
|
||||
"全公司",
|
||||
"选矿厂",
|
||||
"尾矿库",
|
||||
"露天矿",
|
||||
"地下矿"
|
||||
],
|
||||
"listFinish2_1": [
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
5
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
"listNotFinish2_1": [
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
3
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
"listFinish2_1Percent": [
|
||||
[
|
||||
100
|
||||
],
|
||||
[
|
||||
62.5
|
||||
],
|
||||
[
|
||||
100
|
||||
],
|
||||
[
|
||||
100
|
||||
],
|
||||
[
|
||||
100
|
||||
]
|
||||
]
|
||||
},
|
||||
"TotalCount": 0,
|
||||
"MessageType": 0
|
||||
}
|
||||
if (ret && ret.IsSuccessful) {
|
||||
this.setState({
|
||||
Data: Object.assign({}, this.state.Data, { "titleMineType": ret.Data.lisMineTypeOrder, "countDeal": ret.Data.listFinish2_1, "countNotDeal": ret.Data.listNotFinish2_1, "linePercent": ret.Data.listFinish2_1Percent })
|
||||
},()=>{
|
||||
this.getBaseInfoData()
|
||||
})
|
||||
this.getBaseInfoData()
|
||||
|
||||
} else {
|
||||
message.error("获取信息失败,请刷新后再试!");
|
||||
}
|
||||
// Data: {
|
||||
// legendName: ['已整改', '未整改', '整改率'],
|
||||
// xAxisName: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
|
||||
// titleMineType: ["露天矿", "选矿厂", "尾矿库", "职能部门"],
|
||||
// countDeal: [[5, 10, 8, 5, 12, 15, 10, 9, 8, 10, 11, 6], [7, 10, 8, 5, 12, 15, 10, 9, 8, 10, 11, 6], [13, 10, 8, 5, 12, 15, 10, 9, 8, 10, 11, 6], [15, 10, 8, 5, 12, 15, 10, 9, 8, 10, 11, 6]],
|
||||
// countNotDeal: [[1, 1, 1, 2, 3, 2, 0, 1, 3, 3, 3, 2], [2, 1, 1, 2, 3, 2, 0, 1, 3, 3, 3, 2], [3, 1, 1, 2, 3, 2, 0, 1, 3, 3, 3, 2], [4, 1, 1, 2, 3, 2, 0, 1, 3, 3, 3, 2]],
|
||||
// linePercent: [[100.00, 90.00, 87.5, 60.00, 75.00, 86.67, 100.00, 88.89, 62.50, 70.00, 72.73, 66.67], [70.00, 90.00, 87.5, 60.00, 75.00, 86.67, 100.00, 88.89, 62.50, 70.00, 72.73, 66.67], [80.00, 90.00, 87.5, 60.00, 75.00, 86.67, 100.00, 88.89, 62.50, 70.00, 72.73, 90], [90.00, 90.00, 87.5, 60.00, 75.00, 86.67, 100.00, 88.89, 62.50, 70.00, 72.73, 80]],
|
||||
// }
|
||||
},
|
||||
});
|
||||
// },
|
||||
// });
|
||||
};
|
||||
|
||||
getBaseInfoData = (mineType) => {
|
||||
|
||||
@ -133,12 +133,54 @@ class BI056Dilg2_2 extends React.Component {
|
||||
const json = initFilter(this.props.login.OrgId);
|
||||
extendOrder(json, "CREATE_TIME", 1);
|
||||
json.Parameter1 = mineType;
|
||||
this.props.dispatch({
|
||||
type: "app/getDataByPost",
|
||||
url: "BI/BISafe/GetBI056_2_2",
|
||||
payload: json,
|
||||
onlyData: false,
|
||||
onComplete: (ret) => {
|
||||
// this.props.dispatch({
|
||||
// type: "app/getDataByPost",
|
||||
// url: "BI/BISafe/GetBI056_2_2",
|
||||
// payload: json,
|
||||
// onlyData: false,
|
||||
// onComplete: (ret) => {
|
||||
let ret = {
|
||||
"IsSuccessful": true,
|
||||
"Data": {
|
||||
"lisMineTypeOrder": [
|
||||
"全公司",
|
||||
"选矿厂",
|
||||
"尾矿库",
|
||||
"露天矿",
|
||||
"地下矿"
|
||||
],
|
||||
"ListCount": [
|
||||
[],
|
||||
[
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
],
|
||||
"ListDescreption": [
|
||||
[],
|
||||
[
|
||||
"水泵漏水",
|
||||
"皮带轮无防护罩",
|
||||
"现场未设置明显的警示标识",
|
||||
"电开关损坏",
|
||||
"电机车刹车闸瓦磨损",
|
||||
"支架脱焊,断裂,磨损,老化"
|
||||
],
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
},
|
||||
"TotalCount": 0,
|
||||
"MessageType": 0
|
||||
}
|
||||
if (ret && ret.IsSuccessful) {
|
||||
this.setState({ //设置setState全局变量
|
||||
Data: {
|
||||
@ -146,16 +188,18 @@ class BI056Dilg2_2 extends React.Component {
|
||||
yAxisName: ret.Data.ListDescreption,//["露天矿", "选矿厂", "尾矿库", "职能部门"],
|
||||
count: ret.Data.ListCount
|
||||
}, //将ret对象赋值给data, data供页面调用
|
||||
})
|
||||
this.RiskTop(this.state.Data, 0);
|
||||
},()=>{
|
||||
this.RiskTop(this.state.Data, 0);
|
||||
this.RiskTop(this.state.Data, 1);
|
||||
this.RiskTop(this.state.Data, 2);
|
||||
this.RiskTop(this.state.Data, 3);
|
||||
})
|
||||
|
||||
} else {
|
||||
message.error("获取信息失败,请刷新后再试!");
|
||||
}
|
||||
},
|
||||
});
|
||||
// },
|
||||
// });
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -57,12 +57,132 @@ class BI056Dilg3_1 extends React.Component {
|
||||
const json = initFilter(this.props.login.OrgId);
|
||||
extendOrder(json, "CREATE_TIME", 1);
|
||||
json.Parameter1 = mineType;
|
||||
this.props.dispatch({
|
||||
type: "app/getDataByPost",
|
||||
url: "BI/BISafe/GetBI056_3_1",
|
||||
payload: json,
|
||||
onlyData: false,
|
||||
onComplete: (ret) => {
|
||||
// this.props.dispatch({
|
||||
// type: "app/getDataByPost",
|
||||
// url: "BI/BISafe/GetBI056_3_1",
|
||||
// payload: json,
|
||||
// onlyData: false,
|
||||
// onComplete: (ret) => {
|
||||
let ret = {
|
||||
"IsSuccessful": true,
|
||||
"Data": {
|
||||
"lisMineTypeOrder": [
|
||||
"全公司",
|
||||
"选矿厂",
|
||||
"尾矿库",
|
||||
"露天矿",
|
||||
"地下矿"
|
||||
],
|
||||
"lisMineCheckTypeOrder": [
|
||||
[
|
||||
"重大事故隐患专项排查"
|
||||
],
|
||||
[
|
||||
"巡回检查",
|
||||
"例行检查",
|
||||
"专业检查",
|
||||
"综合检查",
|
||||
"季节性检查",
|
||||
"节假日前检查",
|
||||
"复产前检查",
|
||||
"上级布置检查"
|
||||
],
|
||||
[
|
||||
"日常巡检",
|
||||
"防洪安全检查",
|
||||
"坝体安全检查",
|
||||
"库区安全检查"
|
||||
],
|
||||
[
|
||||
"巡回检查",
|
||||
"例行检查",
|
||||
"专业检查",
|
||||
"综合检查",
|
||||
"季节性检查",
|
||||
"节假日前检查",
|
||||
"复产前检查",
|
||||
"上级布置检查"
|
||||
],
|
||||
[]
|
||||
],
|
||||
"Count3_1": [
|
||||
[
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
6
|
||||
],
|
||||
[
|
||||
265
|
||||
],
|
||||
[
|
||||
6
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
1
|
||||
],
|
||||
[
|
||||
1
|
||||
],
|
||||
[
|
||||
1
|
||||
],
|
||||
[
|
||||
1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
4
|
||||
],
|
||||
[
|
||||
94
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
[]
|
||||
]
|
||||
},
|
||||
"TotalCount": 0,
|
||||
"MessageType": 0
|
||||
}
|
||||
if (ret && ret.IsSuccessful) {
|
||||
this.setState({ //设置setState全局变量
|
||||
Data: {
|
||||
@ -74,17 +194,19 @@ class BI056Dilg3_1 extends React.Component {
|
||||
checkTypeCount3: ret.Data.Count3_1.length >= 3 ? ret.Data.Count3_1[2] : null, //[[30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4], [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],
|
||||
checkTypeCount4: ret.Data.Count3_1.length >= 4 ? ret.Data.Count3_1[3] : null,//[[4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4], [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],
|
||||
}, //将ret对象赋值给data, data供页面调用
|
||||
})
|
||||
|
||||
this.CheckCount(this.state.Data, "div1", 1);
|
||||
},()=>{
|
||||
this.CheckCount(this.state.Data, "div1", 1);
|
||||
this.CheckCount(this.state.Data, "div2", 2);
|
||||
this.CheckCount(this.state.Data, "div3", 3);
|
||||
this.CheckCount(this.state.Data, "div4", 4);
|
||||
})
|
||||
|
||||
|
||||
} else {
|
||||
message.error("获取信息失败,请刷新后再试!");
|
||||
}
|
||||
},
|
||||
});
|
||||
// },
|
||||
// });
|
||||
};
|
||||
|
||||
getBaseInfoData = (mineType) => {
|
||||
|
||||
@ -56,12 +56,132 @@ class BI056Dilg3_2 extends React.Component {
|
||||
const json = initFilter(this.props.login.OrgId);
|
||||
extendOrder(json, "CREATE_TIME", 1);
|
||||
json.Parameter1 = mineType;
|
||||
this.props.dispatch({
|
||||
type: "app/getDataByPost",
|
||||
url: "BI/BISafe/GetBI056_3_2",
|
||||
payload: json,
|
||||
onlyData: false,
|
||||
onComplete: (ret) => {
|
||||
// this.props.dispatch({
|
||||
// type: "app/getDataByPost",
|
||||
// url: "BI/BISafe/GetBI056_3_2",
|
||||
// payload: json,
|
||||
// onlyData: false,
|
||||
// onComplete: (ret) => {
|
||||
let ret = {
|
||||
"IsSuccessful": true,
|
||||
"Data": {
|
||||
"lisMineTypeOrder": [
|
||||
"全公司",
|
||||
"选矿厂",
|
||||
"尾矿库",
|
||||
"露天矿",
|
||||
"地下矿"
|
||||
],
|
||||
"lisMineCheckType": [
|
||||
[
|
||||
"重大事故隐患专项排查"
|
||||
],
|
||||
[
|
||||
"巡回检查",
|
||||
"例行检查",
|
||||
"专业检查",
|
||||
"综合检查",
|
||||
"季节性检查",
|
||||
"节假日前检查",
|
||||
"复产前检查",
|
||||
"上级布置检查"
|
||||
],
|
||||
[
|
||||
"日常巡检",
|
||||
"防洪安全检查",
|
||||
"坝体安全检查",
|
||||
"库区安全检查"
|
||||
],
|
||||
[
|
||||
"巡回检查",
|
||||
"例行检查",
|
||||
"专业检查",
|
||||
"综合检查",
|
||||
"季节性检查",
|
||||
"节假日前检查",
|
||||
"复产前检查",
|
||||
"上级布置检查"
|
||||
],
|
||||
[]
|
||||
],
|
||||
"Count3_1": [
|
||||
[
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
8
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
],
|
||||
[]
|
||||
]
|
||||
},
|
||||
"TotalCount": 0,
|
||||
"MessageType": 0
|
||||
}
|
||||
if (ret && ret.IsSuccessful) {
|
||||
this.setState({
|
||||
Data: Object.assign({}, this.state.Data, {
|
||||
@ -72,13 +192,15 @@ class BI056Dilg3_2 extends React.Component {
|
||||
"checkTypeCount3": ret.Data.Count3_1.length >= 3 ? ret.Data.Count3_1[2] : null,
|
||||
"checkTypeCount4": ret.Data.Count3_1.length >= 4 ? ret.Data.Count3_1[3] : null
|
||||
})
|
||||
},()=>{
|
||||
this.getBaseInfoData();
|
||||
})
|
||||
this.getBaseInfoData();
|
||||
|
||||
} else {
|
||||
message.error("获取信息失败,请刷新后再试!");
|
||||
}
|
||||
}
|
||||
});
|
||||
// }
|
||||
// });
|
||||
};
|
||||
|
||||
getBaseInfoData = (mineType) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user