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

pet_li_6.6
water_xu 2024-04-22 17:54:50 +08:00
parent 01edc5f766
commit d46de638dc
1 changed files with 23 additions and 2 deletions

View File

@ -59,6 +59,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"
@ -136,7 +150,8 @@ export default {
varList: [], varList: [],
levelList: [], levelList: [],
treeData: [], treeData: [],
treeData1: [] treeData1: [],
ADDTIME: []
} }
}, },
created() { created() {
@ -180,6 +195,9 @@ export default {
}, },
// //
getQuery() { getQuery() {
if (this.ADDTIME == null | this.ADDTIME == undefined ){
this.ADDTIME = []
}
this.getList() this.getList()
}, },
// //
@ -188,6 +206,7 @@ export default {
this.LEVEL = '' this.LEVEL = ''
this.DEPARTMENT_ID = [] this.DEPARTMENT_ID = []
this.CORPDEPARTMENT_ID = [] this.CORPDEPARTMENT_ID = []
this.ADDTIME = []
this.listQuery = { this.listQuery = {
page: 1, page: 1,
limit: 20 limit: 20
@ -204,7 +223,9 @@ export default {
KEYWORDS: this.KEYWORDS, KEYWORDS: this.KEYWORDS,
DEPARTMENT_ID: this.DEPARTMENT_ID.join(','), DEPARTMENT_ID: this.DEPARTMENT_ID.join(','),
CORPDEPARTMENT_ID: this.CORPDEPARTMENT_ID.join(','), CORPDEPARTMENT_ID: this.CORPDEPARTMENT_ID.join(','),
LEVEL: this.LEVEL LEVEL: this.LEVEL,
ADDSTART: this.ADDTIME==undefined?'':this.ADDTIME[0],
ADDEND: this.ADDTIME==undefined?'':this.ADDTIME[1]
} }
).then((data) => { ).then((data) => {
this.listLoading = false this.listLoading = false