From 8e90efefa09de14419ce1933376d4eded1e58441 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Mon, 23 May 2022 16:05:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E9=AB=98=E7=BA=A7=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../virtualList/components/addModel.vue | 42 +++++++++++--- .../components/virtualListDetails.vue | 3 +- .../components/certificationDirectory.vue | 22 ++++++-- .../components/listAddModel.vue | 56 ++++++++++++++++--- .../components/listOfRegulations.vue | 3 +- 5 files changed, 104 insertions(+), 22 deletions(-) diff --git a/jero-web/src/views/documentTools/virtualList/components/addModel.vue b/jero-web/src/views/documentTools/virtualList/components/addModel.vue index c7c8133ff..425c51539 100644 --- a/jero-web/src/views/documentTools/virtualList/components/addModel.vue +++ b/jero-web/src/views/documentTools/virtualList/components/addModel.vue @@ -159,7 +159,10 @@ loading: false, pageNo: 1, pageSize: 10, - total: 0 + total: 0, + fieldList: [], + queryParamQuery: {}, + queryConditionVOList: [], } }, mounted() { @@ -170,7 +173,9 @@ this.visible = true this.queryParam = {} this.selectedRowKeys = [] + this.queryConditionVOList = [] this.replacePage() + this.queryConditionInventory() }, searchQuery() { this.pageNo = 1 @@ -179,6 +184,9 @@ searchReset() { this.pageNo = 1 this.queryParam = {} + this.queryConditionVOList = [] + this.$refs.globalAdvancedQueryRef.resetLine() + this.$refs.globalAdvancedQueryRef.emitCallback() this.replacePage() }, onChange(page, pageSize) { @@ -194,7 +202,8 @@ let query = { pageNo: this.pageNo, pageSize: this.pageSize, - ...this.queryParam + ...this.queryParam, + queryConditionVOList: this.queryConditionVOList, } this.loading = true postAction(this.url.addModelList, query).then((res) => { @@ -203,10 +212,24 @@ this.total = res.result.total this.loading = false } else { + this.dataList = [] + this.total = 0 this.loading = false } }) }, + queryConditionInventory() { + let query = { + flag: 1 + } + getAction(this.url.queryConditionInventory, query).then((res) => { + if (res.success) { + this.fieldList = res.result || [] + } else { + this.fieldList = [] + } + }) + }, onSelectChange(value) { this.selectedRowKeys = value }, @@ -240,16 +263,17 @@ handleSuperQuery(params, matchType) { let sqp = {} if (!params || (params && params.length == 0)) { - sqp['superQueryParams'] = '' + this.queryConditionVOList = [] this.$refs.globalAdvancedQueryRef.superQueryFlag = false } else { this.$refs.globalAdvancedQueryRef.superQueryFlag = true - sqp['superQueryParams'] = encodeURI(JSON.stringify(params)) - sqp['superQueryMatchType'] = matchType + this.queryConditionVOList = params + this.queryConditionVOList.forEach(res=>{ + res.type = matchType + }) } - this.queryParamQuery = sqp - this.getList() - }, + this.replacePage() + } } } @@ -264,7 +288,7 @@ position: absolute; bottom: 0; width: 100%; - z-index:100; + z-index: 100; border-top: 1px solid #e8e8e8; padding: 10px 16px; text-align: right; diff --git a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue index 8a14878c9..a7f5e7097 100644 --- a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue +++ b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue @@ -260,7 +260,8 @@ } ], url: { - addModelList: '/project/projectLawsInventoryEO/queryPageInfoBussDocument', + addModelList: '/dummy/dummyInventoryInfoEO/queryPageDummy', + queryConditionInventory:'/dummy/dummyInventoryInfoEO/queryConditionInventory', list: '/dummy/dummyInventoryInfoEO/list', addModel: '/dummy/dummyInventoryInfoEO/add', editModel: '/dummy/dummyInventoryInfoEO/edit', diff --git a/jero-web/src/views/projectManagement/components/certificationDirectory.vue b/jero-web/src/views/projectManagement/components/certificationDirectory.vue index 2da1bde94..fdcb2c933 100644 --- a/jero-web/src/views/projectManagement/components/certificationDirectory.vue +++ b/jero-web/src/views/projectManagement/components/certificationDirectory.vue @@ -30,6 +30,12 @@ {{ $t('delete') }} + + + {{$t('viewFile')}} + + -- +