增加了安全承诺书查询时的日期范围查询功能

20240528Test
water_xu 2024-04-22 17:37:11 +08:00
parent 4a2a2969a0
commit 12dc2f87e7
1 changed files with 23 additions and 2 deletions

View File

@ -50,6 +50,20 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="7">
<el-form-item label="添加时间">
<el-date-picker
v-model="ADDTIME"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
class="filter-item"/>
</el-form-item>
</el-col>
</el-row>
</el-form> </el-form>
<el-table <el-table
v-loading="listLoading" v-loading="listLoading"
@ -131,7 +145,8 @@ export default {
stateList: [ stateList: [
{ ID: '0', NAME: '启用' }, { ID: '0', NAME: '启用' },
{ ID: '1', NAME: '禁用' } { ID: '1', NAME: '禁用' }
] ],
ADDTIME: []
} }
}, },
created() { created() {
@ -174,6 +189,9 @@ export default {
}, },
// //
getQuery() { getQuery() {
if (this.ADDTIME == null | this.ADDTIME == undefined ){
this.ADDTIME = []
}
this.getList() this.getList()
}, },
// //
@ -182,6 +200,7 @@ export default {
this.LEVEL = '' this.LEVEL = ''
this.DEPARTMENT_ID = [] this.DEPARTMENT_ID = []
this.STATUS = '' this.STATUS = ''
this.ADDTIME = []
this.listQuery = { this.listQuery = {
page: 1, page: 1,
limit: 20 limit: 20
@ -198,7 +217,9 @@ export default {
KEYWORDS: this.KEYWORDS, KEYWORDS: this.KEYWORDS,
DEPARTMENT_IDS: this.DEPARTMENT_ID.join(','), DEPARTMENT_IDS: this.DEPARTMENT_ID.join(','),
LEVEL: this.LEVEL, LEVEL: this.LEVEL,
STATUS: this.STATUS STATUS: this.STATUS,
ADDSTART: this.ADDTIME==undefined?'':this.ADDTIME[0],
ADDEND: this.ADDTIME==undefined?'':this.ADDTIME[1]
} }
).then((data) => { ).then((data) => {
this.listLoading = false this.listLoading = false