From 426cad0dd0eef1aefb59c6aaa2e2a2448773dc0b Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期一, 24 七月 2023 17:29:24 +0800 Subject: [PATCH] 1、修改查询按钮时的条件,使用编码来查询。 2、增加申请编码时增加设置默认的租户编码。 3、对传入in('条件sql拼接报错问题进行了修改。 4、模板的启用前进行了对分类启用状态的一个判断工作。 --- Source/UBCS-WEB/src/views/integration/applicationForm.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Source/UBCS-WEB/src/views/integration/applicationForm.vue b/Source/UBCS-WEB/src/views/integration/applicationForm.vue index db577fa..6cd1ac7 100644 --- a/Source/UBCS-WEB/src/views/integration/applicationForm.vue +++ b/Source/UBCS-WEB/src/views/integration/applicationForm.vue @@ -117,9 +117,13 @@ }, async getDataList() { this.loading = true - console.log(this.searchParam) const { pageSize, currentPage, total } = this.page let param = { size: pageSize, current: currentPage } + console.log(this.searchParam) + this.searchParam = Object.keys(this.searchParam) + .filter((key) => this.searchParam[key] !== null && this.searchParam[key] !== undefined && this.searchParam[key] !== "") + .reduce((acc, key) => ({ ...acc, [key]: this.searchParam[key] }), {}); + console.log(this.searchParam) const response = await getList({ ...param, ...this.searchParam }) if (response.status === 200) { this.loading = false @@ -137,8 +141,10 @@ }, handleReset() { this.searchParam = {} + this.getDataList() }, handleSearch(form, done) { + console.log(form) const { id, groupCode, operationType } = form let dataTime = { id, groupCode, operationType } if (form.hasOwnProperty('createTime')) { @@ -147,7 +153,6 @@ if (form.hasOwnProperty('lastModifyTime')) { dataTime = { lastModifyTime: dateFormat(form.lastModifyTime), ...dataTime } } - console.log(dataTime) this.searchParam = dataTime this.page.currentPage = 1 this.getDataList() -- Gitblit v1.9.3