统计导出参数

This commit is contained in:
zhaoxiao
2021-09-24 18:04:47 +08:00
parent 0708c190be
commit 5f875243aa
2 changed files with 8 additions and 4 deletions
@@ -139,11 +139,14 @@ export default {
}, },
// 给定当年作为来款年份默认查询条件 // 给定当年作为来款年份默认查询条件
queryParam: { queryParam: {
year: new Date().getFullYear().toString() year: new Date().getFullYear().toString(),
}, },
lastQueryParam: { lastQueryParam: {
year: new Date().getFullYear().toString() year: new Date().getFullYear().toString()
}, },
filters: {
principalNameId: this.$route.query.principalId
},
columns: [ columns: [
{ {
title: '序号', title: '序号',
@@ -248,8 +251,6 @@ export default {
this.ipagination.current = 1 this.ipagination.current = 1
} }
let params = this.getQueryParams()//查询条件 let params = this.getQueryParams()//查询条件
// 负责人id
params.principalNameId = this.$route.query.principalId
this.loading = true this.loading = true
getAction(this.url.list, params).then((res) => { getAction(this.url.list, params).then((res) => {
if (res.success) { if (res.success) {
@@ -226,6 +226,9 @@ export default {
lastQueryParam: { lastQueryParam: {
year: new Date().getFullYear().toString() year: new Date().getFullYear().toString()
}, },
filters: {
chargeCompanyId: this.$route.query.chargeCompanyId
}
} }
}, },
mounted() { mounted() {
@@ -302,7 +305,7 @@ export default {
year: new Date().getFullYear().toString() year: new Date().getFullYear().toString()
} }
this.loadData(1) this.loadData(1)
}, }
} }
} }
</script> </script>