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 () {