diff --git a/jero-web/src/views/regulatoryEarlyWarning/index.vue b/jero-web/src/views/regulatoryEarlyWarning/index.vue index 51f3a47b0..399f2b721 100644 --- a/jero-web/src/views/regulatoryEarlyWarning/index.vue +++ b/jero-web/src/views/regulatoryEarlyWarning/index.vue @@ -73,7 +73,8 @@ return { //url传参严格按照当前命名 url: { - seachList: 'document/bussDocumentLibraryEO/queryCondition' //搜索字段 + seachList: 'document/bussDocumentLibraryEO/queryCondition', //搜索字段 + list: '/LawsWarn/queryPageInfo' }, activeTab: this.$t('ImplementationDate'), loading: false, @@ -82,11 +83,12 @@ total: 0, pageSize: 10, pageNo: 1, + searchParmes: {}, searchQueryList: [ { field_show_type: 6, db_field_txt: this.$t('warningTime'), - db_field_name: 'warningTime' + db_field_name: 'WarnTime' } ], @@ -165,23 +167,27 @@ } }, mounted() { + this.getList() eventBUs.$on('searchQuery', search => { Object.keys(search).forEach(res => { if (search[res] instanceof Array) { search[res] = search[res].join(',') } }) + this.pageNo = 1 this.searchParmes = search this.getList() }) eventBUs.$on('searchReset', target => { this.searchParmes = {} + this.pageNo = 1 this.getList() }) }, methods: { callback(tab) { this.activeTab = tab + this.getList() }, onSelectChange(value) { this.selectedRowKeys = value @@ -205,7 +211,30 @@ this.getList() }, getList() { - + let flag + if (this.activeTab == this.$t('ImplementationDate')) { + flag = 0 + } else { + flag = 1 + } + let params = { + ...this.searchParmes, + pageNo: this.pageNo, + pageSize: this.pageSize, + flag: flag + } + this.loading = true + postAction(this.url.list, params).then((res) => { + if (res.success) { + this.dataSource = res.result.records + this.total = res.result.total + this.loading = false + } else { + this.loading = false + } + }).finally(() => { + this.loading = false + }) } } }