Commit 374df58d authored by 李苏's avatar 李苏 💬

履职管理 跳转 调整

parent d7eeee42
...@@ -102,6 +102,10 @@ ...@@ -102,6 +102,10 @@
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.queryParams={
...this.queryParams,
...this.$route.query
}
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
......
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
</div> </div>
<div class="flex1" @click="$router.push('/dailyc/duty')"> <div class="flex1" >
<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>
...@@ -385,6 +385,20 @@ ...@@ -385,6 +385,20 @@
} }
}, },
async mounted() { async mounted() {
this.pcMap = await this.$match({
url: "aqgl/rcgl/lzbg/init/pc",
match:{
label:'id',
value:'name'
}
})
this.pcZtMap = await this.$match({
url: "aqgl/rcgl/lzbg/init/zt",
match:{
label:'id',
value:'name'
}
})
this.yhlxMap = await this.$match({ this.yhlxMap = await this.$match({
url: "aqgl/yhgl/yhfl/query" url: "aqgl/yhgl/yhfl/query"
}) })
...@@ -529,9 +543,29 @@ ...@@ -529,9 +543,29 @@
this.$router.push({ this.$router.push({
path: '/dangerManagement/queryDangerRecords', path: '/dangerManagement/queryDangerRecords',
query: queryParams query: queryParams
}); })
})
/* 履职管理*/
this.elzgl.on('click', (params) => {
let pcMap=this.pcMap||{}
let pcZtMap=this.pcZtMap||{}
let pc=pcMap[params.name]
let zt=pcZtMap[params.seriesName]
let queryParams = {
ksrq: this.lzglKsrq,
jsrq: this.lzglJsrq,
pc,zt
}
this.$router.push({
path: '/dailyc/duty',
query: queryParams,
})
}) })
/* 自动 */ /* 自动 */
this.timer2 = setInterval(() => { this.timer2 = setInterval(() => {
this.resize() this.resize()
...@@ -550,6 +584,8 @@ ...@@ -550,6 +584,8 @@
return { return {
yhpcKsrq: '', yhpcKsrq: '',
yhpcJsrq: '', yhpcJsrq: '',
lzglKsrq:'',
lzglJsrq:'',
yhlxMap: {}, yhlxMap: {},
clztMap: {}, clztMap: {},
orgname: allUserInfo.orgname, orgname: allUserInfo.orgname,
...@@ -850,7 +886,15 @@ ...@@ -850,7 +886,15 @@
Object.keys(params).includes('gsId') && (delete params.gsId) Object.keys(params).includes('gsId') && (delete params.gsId)
this.$post('aqgl/homepage/lzgl', params).then(res => { this.$post('aqgl/homepage/lzgl', params).then(res => {
let records = _.cloneDeep(res.data.records || []) let records = _.cloneDeep(res.data.records || [])
let keyList = Object.keys(records) let keyList = Object.keys(records).filter(key=>{
if(key=='ksrq'){
this.lzglKsrq=records['ksrq']
}else if(key =='jsrq'){
this.lzglJsrq=records['jsrq']
}else{
return key
}
})
let ywcList = keyList.map(key => records[key]['ywcCount']) let ywcList = keyList.map(key => records[key]['ywcCount'])
let wwcList = keyList.map(key => records[key]['wccCount']) let wwcList = keyList.map(key => records[key]['wccCount'])
......
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