Commit c45c45c6 authored by 李苏's avatar 李苏 💬

隐患排查跳转

parent 53e17b5c
...@@ -109,6 +109,10 @@ ...@@ -109,6 +109,10 @@
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.queryParams={
...this.queryParams,
...this.$route.query
}
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</div> </div>
<div class="hpbodyItem flex flex1" style="flex-direction: row;margin-top: 15px;margin-bottom: 15px;gap:10px"> <div class="hpbodyItem flex flex1" style="flex-direction: row;margin-top: 15px;margin-bottom: 15px;gap:10px">
<div style="width: 32.5%;height: 100%;" @click="$router.push('/dangerManagement/queryDangerRecords')"> <div style="width: 32.5%;height: 100%;">
<div class="full data-box1"> <div class="full data-box1">
<i class="topL"></i> <i class="topL"></i>
<i class="topR"></i> <i class="topR"></i>
...@@ -502,6 +502,35 @@ ...@@ -502,6 +502,35 @@
query: queryParams query: queryParams
}); });
}) })
/* 隐患排查跳转 */
this.eyhpc.on('click', (params) => {
let flid = ''
let flName = params.name
Object.keys(this.yhlxMap).forEach(key => {
if (this.yhlxMap[key] == flName) {
flid = key
}
})
let ztMap = {
'待分配': 'I',
'待整改': 'Z',
'待复查': 'F',
'完成': 'C',
}
let zt = ztMap[params.seriesName]
let queryParams = {
ksrq: this.yhpcKsrq,
jsrq: this.yhpcJsrq,
flid,
zt
}
this.$router.push({
path: '/dangerManagement/queryDangerRecords',
query: queryParams
});
})
/* 自动 */ /* 自动 */
this.timer2 = setInterval(() => { this.timer2 = setInterval(() => {
...@@ -519,8 +548,8 @@ ...@@ -519,8 +548,8 @@
}, },
data() { data() {
return { return {
yhpcKsrq:'', yhpcKsrq: '',
yhpcJsrq:'', yhpcJsrq: '',
yhlxMap: {}, yhlxMap: {},
clztMap: {}, clztMap: {},
orgname: allUserInfo.orgname, orgname: allUserInfo.orgname,
...@@ -1024,8 +1053,8 @@ ...@@ -1024,8 +1053,8 @@
let zList = [] let zList = []
let cList = [] let cList = []
let fList = [] let fList = []
this.yhpcJsrq=records['jsrq'] this.yhpcJsrq = records['jsrq']
this.yhpcKsrq=records['ksrq'] this.yhpcKsrq = records['ksrq']
Object.keys(records).forEach(key => { Object.keys(records).forEach(key => {
if (key != 'jsrq' && key != 'ksrq') { if (key != 'jsrq' && key != 'ksrq') {
...@@ -1055,7 +1084,7 @@ ...@@ -1055,7 +1084,7 @@
} }
}, },
color: [ '#ffb56b','#FF7474','#ffae6b','#91cc75'], color: ['#ffb56b', '#FF7474', '#ffae6b', '#91cc75'],
grid: { grid: {
top: '10%', top: '10%',
left: '3%', left: '3%',
...@@ -1099,49 +1128,50 @@ ...@@ -1099,49 +1128,50 @@
}], }],
series: [{ series: [{
name: '待分配', name: '待分配',
type: 'bar', type: 'bar',
data: iList, data: iList,
label: { label: {
show: true, show: true,
position: 'top', // 数字显示在柱子上方 position: 'top', // 数字显示在柱子上方
color: '#fff' color: '#fff'
},
barWidth: '15px'
}, },
barWidth: '15px' {
}, name: '待整改',
{ type: 'bar',
name: '待整改', data: zList,
type: 'bar', label: {
data: zList, show: true,
label: { position: 'top', // 数字显示在柱子上方
show: true, color: '#fff'
position: 'top', // 数字显示在柱子上方 },
color: '#fff' barWidth: '15px'
}, },
barWidth: '15px' {
}, name: '待复查',
{ type: 'bar',
name: '待复查', data: fList,
type: 'bar', label: {
data: fList, show: true,
label: { position: 'top', // 数字显示在柱子上方
show: true, color: '#fff'
position: 'top', // 数字显示在柱子上方 },
color: '#fff' barWidth: '15px'
}, },
barWidth: '15px' {
}, name: '完成',
{ type: 'bar',
name: '完成', data: cList,
type: 'bar', label: {
data: cList, show: true,
label: { position: 'top', // 数字显示在柱子上方
show: true, color: '#fff'
position: 'top', // 数字显示在柱子上方 },
color: '#fff' barWidth: '15px'
}, }
barWidth: '15px' ]
}]
}; };
this.eyhpc.setOption(option); this.eyhpc.setOption(option);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment