党员积分

This commit is contained in:
shijingjing
2022-06-30 11:41:57 +08:00
parent 0e15dca25b
commit 392ba406bc

View File

@@ -22,9 +22,9 @@
start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd"></el-date-picker> start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd"></el-date-picker>
</template> </template>
<template #right> <template #right>
<el-input size="small" placeholder="党员姓名" v-model="search.partyName" clearable <el-input size="small" placeholder="党员姓名" v-model="search.name" clearable
@change="page.current=1,getTableData()" suffix-icon="iconfont iconSearch"/> @change="page.current=1,getTableData()" suffix-icon="iconfont iconSearch"/>
<ai-download :instance="instance" url="/app/apppartyintegralinfo/downloadTemplate" :params="search" fileName="党员积分" :disabled="tableData.length == 0"> <ai-download :instance="instance" url="/app/apppartyintegralinfo/exportListByOrg" :params="search" fileName="党员积分" :disabled="tableData.length == 0">
<el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button> <el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button>
</ai-download> </ai-download>
</template> </template>
@@ -69,6 +69,7 @@ export default {
search: { search: {
startTime: '', startTime: '',
endTime: '', endTime: '',
name: '',
}, },
page: {current: 1, size: 10, total: 0}, page: {current: 1, size: 10, total: 0},
tableData: [], tableData: [],
@@ -91,7 +92,7 @@ export default {
}, },
getTableData() { getTableData() {
this.instance.post("/app/apppartyintegralinfo/listByOrg", null, { this.instance.post("/app/apppartyintegralinfo/listByOrg", null, {
params: {...this.page, ...this.search, partyOrgId: this.partyOrgId } // partyOrgId: params: {...this.page, ...this.search, partyOrgId: this.partyOrgId }
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.tableData = res.data?.records this.tableData = res.data?.records
@@ -117,8 +118,8 @@ export default {
}, },
onTreeChange(e) { onTreeChange(e) {
console.log(e);
this.partyOrgId = e.id this.partyOrgId = e.id
this.$nextTick(() => { this.$nextTick(() => {
this.getTableData() this.getTableData()
}) })