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

隐患排查跳转

parent 53e17b5c
......@@ -109,6 +109,10 @@
/* 初始额外赋值*/
async mounted() {
this.queryParams={
...this.queryParams,
...this.$route.query
}
this.$refs['TablePager'].pageQuery()
},
data() {
......
......@@ -91,7 +91,7 @@
</div>
<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">
<i class="topL"></i>
<i class="topR"></i>
......@@ -502,6 +502,35 @@
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(() => {
......@@ -519,8 +548,8 @@
},
data() {
return {
yhpcKsrq:'',
yhpcJsrq:'',
yhpcKsrq: '',
yhpcJsrq: '',
yhlxMap: {},
clztMap: {},
orgname: allUserInfo.orgname,
......@@ -1024,8 +1053,8 @@
let zList = []
let cList = []
let fList = []
this.yhpcJsrq=records['jsrq']
this.yhpcKsrq=records['ksrq']
this.yhpcJsrq = records['jsrq']
this.yhpcKsrq = records['ksrq']
Object.keys(records).forEach(key => {
if (key != 'jsrq' && key != 'ksrq') {
......@@ -1055,7 +1084,7 @@
}
},
color: [ '#ffb56b','#FF7474','#ffae6b','#91cc75'],
color: ['#ffb56b', '#FF7474', '#ffae6b', '#91cc75'],
grid: {
top: '10%',
left: '3%',
......@@ -1099,49 +1128,50 @@
}],
series: [{
name: '待分配',
type: 'bar',
data: iList,
label: {
show: true,
position: 'top', // 数字显示在柱子上方
color: '#fff'
name: '待分配',
type: 'bar',
data: iList,
label: {
show: true,
position: 'top', // 数字显示在柱子上方
color: '#fff'
},
barWidth: '15px'
},
barWidth: '15px'
},
{
name: '待整改',
type: 'bar',
data: zList,
label: {
show: true,
position: 'top', // 数字显示在柱子上方
color: '#fff'
},
barWidth: '15px'
},
{
name: '待复查',
type: 'bar',
data: fList,
label: {
show: true,
position: 'top', // 数字显示在柱子上方
color: '#fff'
},
barWidth: '15px'
},
{
name: '完成',
type: 'bar',
data: cList,
label: {
show: true,
position: 'top', // 数字显示在柱子上方
color: '#fff'
},
barWidth: '15px'
}]
{
name: '待整改',
type: 'bar',
data: zList,
label: {
show: true,
position: 'top', // 数字显示在柱子上方
color: '#fff'
},
barWidth: '15px'
},
{
name: '待复查',
type: 'bar',
data: fList,
label: {
show: true,
position: 'top', // 数字显示在柱子上方
color: '#fff'
},
barWidth: '15px'
},
{
name: '完成',
type: 'bar',
data: cList,
label: {
show: true,
position: 'top', // 数字显示在柱子上方
color: '#fff'
},
barWidth: '15px'
}
]
};
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