From 39b5b303e3be305bd0533b8066b2ac9b84346884 Mon Sep 17 00:00:00 2001 From: baoyu <102349094+Bytq@users.noreply.github.com> Date: Tue, 9 Apr 2024 19:27:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=2083404=EF=BC=8C=E6=A0=87?= =?UTF-8?q?=E5=87=86=E8=B7=9F=E8=B8=AA=E6=B8=85=E5=8D=95--=E6=96=B0?= =?UTF-8?q?=E5=A2=9E--=E6=89=8B=E5=8A=A8=E6=9F=A5=E6=89=BE--=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=B8=8D=E8=B5=B7?= =?UTF-8?q?=E4=BD=9C=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hzwlComponents/StandardListDrawer.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/hzwlComponents/StandardListDrawer.vue b/src/components/hzwlComponents/StandardListDrawer.vue index 03efe7b3e..15dc17ba0 100644 --- a/src/components/hzwlComponents/StandardListDrawer.vue +++ b/src/components/hzwlComponents/StandardListDrawer.vue @@ -593,6 +593,8 @@ export default { this.visible = false }, getData () { + this.searchForm.standType = this.searchForm.dataSource + const params = { dataSource: this.searchForm.dataSource, standType: this.searchForm.standType, page: this.searchForm.page, total: this.searchForm.total, ...this.searchForm.pageSize } const config = { _this: this, loading: 'loading' @@ -602,16 +604,21 @@ export default { case 'INLAND': case 'FOREIGN': url = this.url.INLANDFOREIGN + params.standNumber = this.searchForm.lawNumber + params.standName = this.searchForm.lawName break case 'FOREIGN_LAWS': url = this.url.FOREIGN_LAWS + params.lawsNo = this.searchForm.lawNumber + params.lawsName = this.searchForm.lawName break case 'BUSINESS_STAND': url = this.url.BUSINESS_STAND + params.standCode = this.searchForm.lawNumber + params.standName = this.searchForm.lawName break } - this.searchForm.standType = this.searchForm.dataSource - this.$http._getData(url, this.searchForm, config).then(res => { + this.$http._getData(url, params, config).then(res => { if (res.ok) { this.standardData = res.data.list this.searchForm.total = res.data.count @@ -644,6 +651,9 @@ export default { this.getData() }, onClear () { + this.searchForm.page = 1 + this.searchForm.lawNumber = '' + this.searchForm.lawName = '' this.getData() }, getDicTypeListCode () {