党员积分

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