From c0bcff2954a2460b045dd624489b757ed4436332 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Thu, 30 Jun 2022 16:19:58 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=9C=8B=E6=9D=BF=E6=97=B6=E9=97=B4=E8=BD=B4--=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/service/impl/ProjectStatusBoardServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectStatusBoardServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectStatusBoardServiceImpl.java index f10228fbd..e0f426b3f 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectStatusBoardServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectStatusBoardServiceImpl.java @@ -111,8 +111,9 @@ public class ProjectStatusBoardServiceImpl implements IProjectStatusBoardService } } } - + List dictItemList = sysDictItemServiceImpl.selectItemsByDictCode("region"); for (ProjectLibraryBase libraryBase : projectLibraryBaseList) { + targetMarket(projectLibraryBase, dictItemList, libraryBase); Map mapList = new HashMap<>(); List> collect = new ArrayList<>(); if(ObjectUtils.isNotEmpty(startTime) && ObjectUtils.isNotEmpty(endTime)){ @@ -124,7 +125,7 @@ public class ProjectStatusBoardServiceImpl implements IProjectStatusBoardService if(collect.size() != 0){ index ++; mapList.put("index",index); - mapList.put("projectName",libraryBase.getProjectName()); + mapList.put("projectName",libraryBase.getProjectName()+" "+libraryBase.getYearName()+"-"+libraryBase.getTargetMarket()); mapList.put("data",collect); result.add(mapList); } From f6542b56e82c91e3ad11af61648f39dd6dc2d2c9 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Thu, 30 Jun 2022 16:24:35 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?= =?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/globalAdvancedQuery/index.vue | 12 +- .../components/TaskPlanList.vue | 103 +++++++++++++++--- .../projectStatusBoard/index.vue | 70 +++++++++++- 3 files changed, 160 insertions(+), 25 deletions(-) diff --git a/jero-web/src/components/globalAdvancedQuery/index.vue b/jero-web/src/components/globalAdvancedQuery/index.vue index d7058e9d1..45dbc9e1b 100644 --- a/jero-web/src/components/globalAdvancedQuery/index.vue +++ b/jero-web/src/components/globalAdvancedQuery/index.vue @@ -387,7 +387,7 @@ return str }, handleOk() { - if (!this.isNullArray(this.queryParamsModel)) { + // if (!this.isNullArray(this.queryParamsModel)) { let event = { matchType: this.matchType, params: this.removeEmptyObject(this.queryParamsModel) @@ -397,9 +397,9 @@ this.visible = false } this.emitCallback(event) - } else { - this.$message.warn(this.$t('CannotQueryEmpty')) - } + // } else { + // this.$message.warn(this.$t('CannotQueryEmpty')) + // } }, emitCallback(event = {}) { let { params = [], matchType = this.matchType } = event @@ -408,6 +408,9 @@ if (Array.isArray(param.val)) { param.val = param.val.join(',') } + if (param.type == "Personnel" && !param.val){ + param.val = ' is null ' + } } console.debug('---高级查询参数--->', { params, matchType }) this.$emit(this.callback, params, matchType) @@ -614,7 +617,6 @@ item.val = values[item.popup['destFields']] }, PersonnelSelectionChange(value, id,index){ - console.log(index) this.queryParamsModel[index].val = id this.queryParamsModel[index].valueId = id console.log(this.queryParamsModel) diff --git a/jero-web/src/views/projectManagement/projectStatusBoard/components/TaskPlanList.vue b/jero-web/src/views/projectManagement/projectStatusBoard/components/TaskPlanList.vue index 788dc4dd3..6f84b8023 100644 --- a/jero-web/src/views/projectManagement/projectStatusBoard/components/TaskPlanList.vue +++ b/jero-web/src/views/projectManagement/projectStatusBoard/components/TaskPlanList.vue @@ -45,11 +45,12 @@
+ +
{{val.name}}
-
{{val.name}}
12 ? 1 : month + 1 + + } + + thirtyDays.includes(month) ? (countDays += 30) : thirtyOneDays.includes(month) ? (countDays += 31) : isLeapYear ? (countDays += 29) : (countDays += 28) + } + + targetDateMilli = currDate.setDate( + currDate.getDate() - (flag === 'before' ? countDays : countDays * -1) + ) + + GMTDate = new Date(targetDateMilli) + + targetYear = GMTDate.getFullYear() + + targetMonth = GMTDate.getMonth() + 1 + + targetDate = GMTDate.getDate() + + targetMonth = targetMonth.toString().padStart(2, '0') + + targetDate = targetDate.toString().padStart(2, '0') + + dealTargetDays = `${targetYear}-${targetMonth}` + + return dealTargetDays + }, getTimeline() { let query = { - startTime: this.startTime, - endTime: this.endTime + startTime: this.startTime || this.getNewDate('before', 6), + endTime: this.endTime || this.getNewDate('after', 5) } this.loadingMain = true getAction(this.url.timeline, query).then((res) => { @@ -143,8 +207,8 @@ }, getTimelineList(time) { let query = { - startTime: this.startTime, - endTime: this.endTime + startTime: this.startTime || this.getNewDate('before', 6), + endTime: this.endTime || this.getNewDate('after', 5) } getAction(this.url.timelineList, query).then((res) => { if (res.success) { @@ -355,7 +419,7 @@ } .box-top-content-left { - width: 160px; + width: 140px; float: left; padding-top: 100px; margin-right: 20px; @@ -364,8 +428,8 @@ .box-top-content-left-text { color: #191E29; font-weight: bold; - font-size: 14px; - height: 104px; + font-size: 12px; + height: 84px; letter-spacing: 0px; text-align: left; text-overflow: ellipsis; @@ -374,7 +438,7 @@ } .box-top-content-right { - width: calc(100% - 180px); + width: calc(100% - 160px); float: left; } @@ -392,7 +456,7 @@ height: 36px; color: #54565A; font-weight: bold; - font-size: 14px; + font-size: 13px; line-height: 36px; letter-spacing: 0px; text-align: center; @@ -409,7 +473,7 @@ .process-content { position: relative; - height: 104px; + height: 84px; .process-content-content { background: #fff; @@ -430,15 +494,22 @@ } .process-content-right-top { - font-size: 14px; + font-size: 12px; color: #040B29; - max-width: 155px; - text-overflow: ellipsis; - white-space: nowrap; + width: 50px; overflow: hidden; position: absolute; - top: -8px; + top: -14px; left: 50%; + line-height: 1.2; + display: -webkit-box; + text-overflow: ellipsis; + /*! autoprefixer: off */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + /*! autoprefixer: on;*/ + text-justify: inter-ideograph; + word-break: break-all; transform: translate(-50%, -50%); } diff --git a/jero-web/src/views/projectManagement/projectStatusBoard/index.vue b/jero-web/src/views/projectManagement/projectStatusBoard/index.vue index e81f5dc9f..b979eed10 100644 --- a/jero-web/src/views/projectManagement/projectStatusBoard/index.vue +++ b/jero-web/src/views/projectManagement/projectStatusBoard/index.vue @@ -242,11 +242,73 @@ this.handlingTime = moment(new Date()).format('YYYY-MM-DD') }, methods: { + getNewDate(flag, many) { + const thirtyDays = [4, 6, 9, 11] // 30天的月份 + + const thirtyOneDays = [1, 3, 5, 7, 8, 10, 12] // 31天的月份 + + const currDate = new Date() // 今天日期 + + const year = currDate.getFullYear() + + let month = currDate.getMonth() + 1 + + let targetDateMilli = 0 + + let GMTDate = '' // 中国标准时间 + + let targetYear = '' // 年 + + let targetMonth = '' // 月 + + let targetDate = '' // 日 + + let dealTargetDays = '' // 目标日期 + + const isLeapYear = !!((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) // 是否是闰年 + + let countDays = 0 // 累计天数 + + for (let i = 0; i < many; i++) { + + if (flag === 'before') { + + month = month - 1 <= 0 ? 12 : month - 1 + + } else { + + month = month + 1 > 12 ? 1 : month + 1 + + } + + thirtyDays.includes(month) ? (countDays += 30) : thirtyOneDays.includes(month) ? (countDays += 31) : isLeapYear ? (countDays += 29) : (countDays += 28) + } + + targetDateMilli = currDate.setDate( + currDate.getDate() - (flag === 'before' ? countDays : countDays * -1) + ) + + GMTDate = new Date(targetDateMilli) + + targetYear = GMTDate.getFullYear() + + targetMonth = GMTDate.getMonth() + 1 + + targetDate = GMTDate.getDate() + + targetMonth = targetMonth.toString().padStart(2, '0') + + targetDate = targetDate.toString().padStart(2, '0') + + dealTargetDays = `${targetYear}-${targetMonth}` + + return dealTargetDays + }, getTimeline() { let query = { - startTime: this.startTime, - endTime: this.endTime, + startTime: this.startTime || this.getNewDate('before',6), + endTime: this.endTime || this.getNewDate('after',5), ...this.queryParam } this.loadingMain = true @@ -278,8 +340,8 @@ }, getTimelineList(time) { let query = { - startTime: this.startTime, - endTime: this.endTime, + startTime: this.startTime || this.getNewDate('before',6), + endTime: this.endTime || this.getNewDate('after',5), ...this.queryParam } getAction(this.url.timelineList, query).then((res) => { From 080c6b14c7cd3770d34dc8d7f2ef6df83ffff16c Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Thu, 30 Jun 2022 16:58:19 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93?= =?UTF-8?q?=E5=B7=B2=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/uploadFile/file.vue | 4 +++- jero-web/src/components/uploadFileChange/file.vue | 4 +++- jero-web/src/components/uploadFileChangeDown/file.vue | 4 +++- jero-web/src/components/viewFileModel/index.vue | 6 ++++-- .../src/views/documentManage/library/docDetail/index.vue | 6 ++++-- jero-web/src/views/documentManage/ocr/index.vue | 4 +++- .../searchCenter/components/DocumentLibrary.vue | 4 +++- .../views/documentTools/searchCenter/components/whole.vue | 4 +++- .../virtualList/components/virtualListDetails.vue | 8 +++++--- .../processCenter/components/standardContentList.vue | 8 +++++--- .../projectManagement/components/listOfRegulations.vue | 8 ++++---- .../projectManagement/components/resultReportedUpload.vue | 6 ++++-- .../views/projectManagement/historicalVersion/index.vue | 6 +++--- 13 files changed, 47 insertions(+), 25 deletions(-) diff --git a/jero-web/src/components/uploadFile/file.vue b/jero-web/src/components/uploadFile/file.vue index cf346c6fd..c2ea1df03 100644 --- a/jero-web/src/components/uploadFile/file.vue +++ b/jero-web/src/components/uploadFile/file.vue @@ -30,6 +30,7 @@ import { ACCESS_TOKEN } from '@/store/mutation-types' import { getAction, postAction, downFile, downloadFile } from '@/api/manage' import { Base64 } from 'js-base64' + import { mapGetters } from 'vuex' export default { name: 'file', @@ -65,6 +66,7 @@ // console.log(this.thisFileType,this.thisFileSize,this.thisFileUploadUrl); }, methods: { + ...mapGetters(['userInfo']), perentHandleFunc(data) { this.myfileList = data if (data && data.length > 0) { @@ -182,7 +184,7 @@ let index2 = fileName.length let fileSuffix = fileName.substring(index1, index2) if (fileSuffix === '.pdf') { - window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id)) + window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username)) } else if (fileSuffix === '.docx') { let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix) window.open(url, '_blank') diff --git a/jero-web/src/components/uploadFileChange/file.vue b/jero-web/src/components/uploadFileChange/file.vue index 58e6ef07f..1a29bf328 100644 --- a/jero-web/src/components/uploadFileChange/file.vue +++ b/jero-web/src/components/uploadFileChange/file.vue @@ -30,6 +30,7 @@ import Vue from 'vue' import { ACCESS_TOKEN } from '@/store/mutation-types' import { getAction, postAction, downFile, downloadFile } from '@/api/manage' import { Base64 } from 'js-base64' +import { mapGetters } from 'vuex' export default { name: 'file', @@ -66,6 +67,7 @@ export default { // console.log(this.thisFileType,this.thisFileSize,this.thisFileUploadUrl); }, methods: { + ...mapGetters(['userInfo']), perentHandleFunc(data) { this.myfileList = data if (data && data.length > 0) { @@ -187,7 +189,7 @@ export default { let index2 = fileName.length let fileSuffix = fileName.substring(index1, index2) if (fileSuffix === '.pdf') { - window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id)) + window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username)) } else if (fileSuffix === '.docx') { let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix) window.open(url, '_blank') diff --git a/jero-web/src/components/uploadFileChangeDown/file.vue b/jero-web/src/components/uploadFileChangeDown/file.vue index 5a930d60f..17e836819 100644 --- a/jero-web/src/components/uploadFileChangeDown/file.vue +++ b/jero-web/src/components/uploadFileChangeDown/file.vue @@ -38,6 +38,7 @@ import Vue from 'vue' import { ACCESS_TOKEN } from '@/store/mutation-types' import { getAction, postAction, downFile, downloadFile } from '@/api/manage' import { Base64 } from 'js-base64' +import { mapGetters } from 'vuex' export default { name: 'file', @@ -87,6 +88,7 @@ export default { // console.log(this.thisFileType,this.thisFileSize,this.thisFileUploadUrl); }, methods: { + ...mapGetters(['userInfo']), download() { downloadFile('/sys/common/downLoadFile', this.template.templateName, { id: this.template.templateId }) }, @@ -209,7 +211,7 @@ export default { let index2 = fileName.length let fileSuffix = fileName.substring(index1, index2) if (fileSuffix === '.pdf') { - window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id)) + window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username)) } else if (fileSuffix === '.docx') { let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix) window.open(url, '_blank') diff --git a/jero-web/src/components/viewFileModel/index.vue b/jero-web/src/components/viewFileModel/index.vue index 7fd43152b..945838eee 100644 --- a/jero-web/src/components/viewFileModel/index.vue +++ b/jero-web/src/components/viewFileModel/index.vue @@ -36,6 +36,7 @@