党员积分

This commit is contained in:
shijingjing
2022-06-29 18:50:57 +08:00
parent 39f5bcbd5a
commit 47ce4ba424

View File

@@ -18,9 +18,8 @@
<ai-search-bar> <ai-search-bar>
<template #left> <template #left>
<div>统计周期</div> <div>统计周期</div>
<el-date-picker type="daterange" placeholder="日期" size="small" clearable v-model="createTime" <el-date-picker size="small" v-model="searchDotime" type="daterange" range-separator="至" @change="timeChange"
@change="handleSearchTime" start-placeholder="开始时间" end-placeholder="结束时间" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd"></el-date-picker>
value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00','23:59:59']"/>
</template> </template>
<template #right> <template #right>
<el-input size="small" placeholder="党员姓名" v-model="search.partyName" clearable <el-input size="small" placeholder="党员姓名" v-model="search.partyName" clearable
@@ -66,8 +65,10 @@ export default {
}, },
data() { data() {
return { return {
searchDotime: [],
search: { search: {
createTime: '', startTime: '',
endTime: '',
}, },
page: {current: 1, size: 10, total: 0}, page: {current: 1, size: 10, total: 0},
tableData: [], tableData: [],
@@ -88,7 +89,7 @@ export default {
this.$router.push({}) this.$router.push({})
}, },
getTableData() { getTableData() {
this.instance.post("/app/appparty/listByPartyIntegral", null, { this.instance.post("/app/apppartyintegralinfo/listByOrg", null, {
params: {...this.page, ...this.search} params: {...this.page, ...this.search}
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
@@ -98,6 +99,18 @@ export default {
}) })
}, },
timeChange() {
if (this.searchDotime) {
this.search.startTime = this.searchDotime[0]
this.search.endTime = this.searchDotime[1]
} else {
this.search.startTime = null
this.search.endTime = null
}
this.search.current = 1
this.getTableData()
},
onSearch(v) { onSearch(v) {
this.orgTree.filter(v) this.orgTree.filter(v)
}, },