This commit is contained in:
shijingjing
2022-06-30 11:57:34 +08:00
parent 392ba406bc
commit fbd7680927
2 changed files with 21 additions and 39 deletions

View File

@@ -7,7 +7,6 @@
isShowBottomBorder isShowBottomBorder
:instance="instance" :instance="instance"
:disabledLevel="disabledLevel" :disabledLevel="disabledLevel"
isShowArea
v-model="search.areaId" v-model="search.areaId"
@change="changeArea"> @change="changeArea">
</ai-title> </ai-title>
@@ -15,37 +14,15 @@
<div class="content"> <div class="content">
<ai-search-bar> <ai-search-bar>
<template #left> <template #left>
<!-- <ai-select
v-model="search.applyIntegralType"
clearable
placeholder="请选择积分类型"
:selectList="dict.getDict('atWillReportType')"
@change="search.current = 1, getList()">
</ai-select> -->
<ai-select <ai-select
v-model="search.auditStatus" v-model="search.auditStatus"
clearable clearable
placeholder="请选择审核状态" placeholder="请选择审核状态"
:selectList="dict.getDict('auditStatus')" :selectList="dict.getDict('integralDeclareStatus')"
@change="search.current = 1, getList()"> @change="search.current = 1, getList()">
</ai-select> </ai-select>
<el-date-picker <el-date-picker size="small" v-model="searchDotime" type="daterange" range-separator="至" @change="timeChange"
value-format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd"></el-date-picker>
v-model="search.createTimeStart"
type="date"
size="small"
unlink-panels
placeholder="选择开始日期"
@change="search.current = 1, getList()" />
<el-date-picker
value-format="yyyy-MM-dd"
v-model="search.createTimeEnd"
type="date"
size="small"
unlink-panels
placeholder="选择结束日期"
:picker-options="{start: search.createTimeStart, minTime: search.createTimeStart}"
@change="search.current = 1, getList()" />
</template> </template>
<template #right> <template #right>
<el-input <el-input
@@ -95,13 +72,13 @@
search: { search: {
current: 1, current: 1,
size: 10, size: 10,
residentName: '',
applyIntegralType: '',
areaId: '', areaId: '',
auditStatus: '', auditStatus: '', //审核状态
createTimeStart: '', createTimeStart: '',
createTimeEnd: '' createTimeEnd: '',
partyName: '', // 模糊查询
}, },
searchDotime: [],
dictList: [{ dictList: [{
dictName: '否', dictName: '否',
dictValue: '0' dictValue: '0'
@@ -164,6 +141,18 @@
}) })
}, },
timeChange() {
if (this.searchDotime) {
this.search.createTimeStart = this.searchDotime[0]
this.search.createTimeEnd = this.searchDotime[1]
} else {
this.search.createTimeStart = null
this.search.createTimeEnd = null
}
this.search.current = 1
this.getList()
},
toDetail (id) { toDetail (id) {
this.$emit('change', { this.$emit('change', {
type: 'Detail', type: 'Detail',
@@ -172,14 +161,6 @@
} }
}) })
}, },
changeArea () {
this.search.current = 1
this.$nextTick(() => {
this.getList()
})
}
} }
} }
</script> </script>

View File

@@ -241,6 +241,7 @@ export default {
close() { close() {
this.form = { this.form = {
classify: '0',
eventName: '', eventName: '',
eventDesc: '', eventDesc: '',
ruleType: '', ruleType: '',
@@ -314,7 +315,7 @@ export default {
...this.form, ...this.form,
id: this.form.id || '' id: this.form.id || ''
}).then((res) => { }).then((res) => {
if (res.code == 0) { if (res?.code == 0) {
this.$message.success(`${this.isEdit ? '编辑成功' : '添加成功'}`) this.$message.success(`${this.isEdit ? '编辑成功' : '添加成功'}`)
this.dialog = false; this.dialog = false;
this.getList() this.getList()