From bd987ab53fc203ef6bb47b503c283cdbae425e46 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Tue, 10 May 2022 18:05:26 +0800 Subject: [PATCH 1/7] =?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/common/lang/en-us.js | 6 +- jero-web/src/common/lang/zh-cn.js | 2 + jero-web/src/components/UpdateLog/index.vue | 15 ++- .../components/virtualListDetails.vue | 5 +- .../projectManagement/components/TaskList.vue | 108 +++++++++++++++--- 5 files changed, 108 insertions(+), 28 deletions(-) diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 59e69521d..6b58bafed 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -613,8 +613,8 @@ module.exports = { Transfer: 'Transfer', CertificationDirectory: 'Certification directory', TaskRequirements: 'Task requirements', - CertificationProgress: 'Certification progress', - CurrentProjectStatusEvaluation: 'Current project status evaluation', + CertificationProgress: 'Homo Progress', + CurrentProjectStatusEvaluation: 'Current State', NiONumber: 'NiO number', ParameterName: 'Parameter name', ParameterDescription: 'Parameter description', @@ -790,4 +790,6 @@ module.exports = { resultReported:'Result Reported', TheDoesNotContainData:'The maintenance list of the virtual list does not contain data', number:'No', + Deadline:'Deadline', + toBeConfirmed:'To be confirmed', } \ No newline at end of file diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index 5a0153b86..f23b64a57 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -483,6 +483,7 @@ module.exports = { nonConformity: '不符合', Tracked: '待追踪', notInvolved: '不涉及', + toBeConfirmed:'待确认', Operator: '操作人', role: '角色', operationContent: '操作内容', @@ -795,4 +796,5 @@ module.exports = { resultReported:'结果报告', TheDoesNotContainData:'该虚拟清单的维护清单中没有数据,是否需要添加', number:'序号', + Deadline:'截止时间', } \ No newline at end of file diff --git a/jero-web/src/components/UpdateLog/index.vue b/jero-web/src/components/UpdateLog/index.vue index 123e1c951..2035ca5a8 100644 --- a/jero-web/src/components/UpdateLog/index.vue +++ b/jero-web/src/components/UpdateLog/index.vue @@ -16,7 +16,7 @@ class="table" :columns="columns" :pagination="false" - :scroll="{y: 400}" + :scroll="{y: 420}" :data-source="dataSource" :loading="loading" > @@ -56,11 +56,12 @@ loading:false, pageNo: 1, pageSize: 10, + queryId:{}, total: 0, columns: [ { title: this.$t('OperationDetails'), - dataIndex: 'content', + dataIndex: 'logContent', align: 'center', ellipsis: true, scopedSlots: { customRender: 'content' } @@ -78,9 +79,10 @@ mounted() { }, methods:{ - getList(){ + getList(data){ this.visible = true this.pageNo = 1 + this.queryId = data this.bussLogList() }, onChange(page, pageSize) { @@ -96,7 +98,7 @@ let query = { pageNo: this.pageNo, pageSize: this.pageSize, - documentId: this.$route.query.id + ...this.queryId } this.loading = true getAction(this.url.logList, query).then((res) => { @@ -114,5 +116,8 @@ \ No newline at end of file diff --git a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue index 116e3e610..15c4addf6 100644 --- a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue +++ b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue @@ -270,7 +270,8 @@ importZipUrl: '/dummy/dummyInventoryInfoEO/importData', exportData: '/dummy/dummyInventoryInfoEO/exportData', exportTemplate: '/dummy/dummyInventoryInfoEO/exportTemplate', - getSysCategoryTree: '/sys/category/getSysCategoryTree' + getSysCategoryTree: '/sys/category/getSysCategoryTree', + logList:'/dummy/dummyLogEO/page', }, loading: false, dataSource: [], @@ -589,7 +590,7 @@ this.getList() }, UpdateLogClick() { - this.$refs.UpdateLogRef.getList() + this.$refs.UpdateLogRef.getList({dummyInventoryBaseId:this.$route.query.id}) }, searchQuery() { this.getList() diff --git a/jero-web/src/views/projectManagement/components/TaskList.vue b/jero-web/src/views/projectManagement/components/TaskList.vue index c58d93a70..acf55b009 100644 --- a/jero-web/src/views/projectManagement/components/TaskList.vue +++ b/jero-web/src/views/projectManagement/components/TaskList.vue @@ -52,21 +52,23 @@ >
- {{result.serialNumber}}
+ {{result.serialNumber}}
{{result.title}}
- 1212sdfdsf
- 责任领土 + 1212sdfdsf
+ hahahaha
- {{$t('cutoffTime')}}: {{result.designDueDate}}
- {{$t('ProcessStatus')}}: {{result.designFlowTaskStatus}}
- {{result.designStatus}} + {{$t('Deadline')}}: {{result.designDueDate}}
+ {{$t('ProcessStatus')}}: {{result.designStatus}}
+ + {{statusText[result.designFlowTaskStatus]}} +
@@ -74,9 +76,11 @@
- {{$t('cutoffTime')}}: {{result.prehomoDueDate}}
- {{$t('ProcessStatus')}}: {{result.prehomoFlowTaskStatus}}
- {{result.prehomoTaskStatus}} + {{$t('Deadline')}}: {{result.prehomoDueDate}}
+ {{$t('ProcessStatus')}}: {{result.prehomoTaskStatus}}
+ + {{statusText[result.prehomoFlowTaskStatus]}} +
@@ -84,9 +88,11 @@
- {{$t('cutoffTime')}}: {{result.verifyDueDate}}
- {{$t('ProcessStatus')}}: {{result.verifyFlowTaskStatus}}
- {{result.verifyStatus}} + {{$t('Deadline')}}: {{result.verifyDueDate}}
+ {{$t('ProcessStatus')}}: {{result.verifyStatus}}
+ + {{statusText[result.verifyFlowTaskStatus]}} +
@@ -136,6 +142,7 @@ title: this.$t('standardInformation'), align: 'center', dataIndex: 'standard', + width: 200, scopedSlots: { customRender: 'standardInformation' } }, { @@ -183,6 +190,21 @@ 'haveDone': '已办', 'showData': '展示数据' }, + color: { + 'conformity': 'accordColor', + 'inconformity': 'nonConformityColor', + 'to track': 'TrackedColor', + 'uninvolved': 'notInvolvedColor', + 'to be confirmed': 'submittedColor' + }, + statusText: { + 'conformity': this.$t('accord'), + 'inconformity': this.$t('nonConformity'), + 'to track': this.$t('Tracked'), + 'uninvolved': this.$t('notInvolved'), + 'to be confirmed': this.$t('toBeConfirmed') + }, + queryParam: {}, url: { list: '/project/projectTaskInventoryEO/list' @@ -379,7 +401,7 @@ height: calc(100% + 32px); top: -16px; left: -16px; - border: 1px seagreen solid; + border: 1px #00B3BE solid; } .content-box-jiao { @@ -387,22 +409,70 @@ right: 0; width: 0; height: 0; - border-right: 30px solid red; - border-bottom: 30px solid transparent + border-right: 14px solid #00B3BE; + border-bottom: 14px solid transparent } .box-content { margin-bottom: 8px; display: inline-block; text-align: left; + font-weight: 400; + color: #040B29; + } + + .box-content-a { + margin-bottom: 8px; + display: inline-block; + text-align: left; + font-weight: 400; + } + + .box-content-index { + margin-bottom: 8px; + display: inline-block; + text-align: left; + font-weight: 400; + color: #040B29; + } + + .box-content-index:last-child { + margin-bottom: 0; } .box-content-color { - padding: 6px 14px; - box-sizing: border-box; - background: #1ABBC4; - color: #2F8DF3; + width: 78px; + height: 32px; + display: inline-block; border-radius: 4px; + text-align: center; + font-size: 14px; + line-height: 32px; + } + + .accordColor { + background: #96ecad; + color: #26BD4B; + } + + .nonConformityColor { + background: #eeaeae; + color: #E83030; + } + + .TrackedColor { + background: #f0d7b1; + color: #FDA71C; + } + + .notInvolvedColor { + background: #e2edf8; + color: #707486; + } + + .submittedColor { + color: #00B3BE; + background: #94e0e4; } .Current-color { From 3d5d2c27a0a3c51e21d5d896252a2a7d9c96be26 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Tue, 10 May 2022 18:15:35 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=BA=93--=E5=AF=BC?= =?UTF-8?q?=E5=87=BA(=E6=A0=87=E5=87=86=E7=B1=BB=E5=9E=8B=E5=AD=97?= =?UTF-8?q?=E6=AE=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BussDocumentLibraryEOServiceImpl.java | 73 ++++++++++++------- 1 file changed, 48 insertions(+), 25 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java index 04fa1b709..fd965da4b 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java @@ -3271,7 +3271,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl> datas = bussDocumentLibraryEOMapper.getInfoList(" " + StringUtils.join(conditionFieldList, ","), condition); - //处理对应标准,代替标准,被代替标准(由id转中文) + //处理被代替标准(由id转中文) getStandard(datas); //部分导出 String partId = (String) map.get("id"); @@ -3380,44 +3380,67 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl data : datas) { - String idTemp = (String) data.get("id"); - String correspondingStandard = (String) data.get("corresponding_standard"); - String replaceStandard = (String) data.get("replace_standard"); - StringBuilder correspondingStandardSb = new StringBuilder(); - StringBuilder replaceStandardSb = new StringBuilder(); + String idTemp = (String) data.get("serial_number"); StringBuilder replacedStandardSb = new StringBuilder(); datasTemp.forEach(entry -> { - String id = (String) entry.get("id"); String replaceStandardTemp = (String) entry.get("replace_standard"); - //对应标准 - if (StringUtils.isNotBlank(correspondingStandard) && correspondingStandard.contains(id)) { - correspondingStandardSb.append((String) entry.get("serial_number") + ","); - } - //代替标准 - if (StringUtils.isNotBlank(replaceStandard) && replaceStandard.contains(id)) { - replaceStandardSb.append((String) entry.get("serial_number") + ","); - } //被代替标准 if (StringUtils.isNotBlank(replaceStandardTemp) && replaceStandardTemp.contains(idTemp)) { replacedStandardSb.append((String) entry.get("serial_number") + ","); } }); - //对应标准 - if (StringUtils.isNotBlank(correspondingStandardSb)) { - String correspondingStandardStr = correspondingStandardSb.substring(0, correspondingStandardSb.length() - 1); - data.put("corresponding_standard", correspondingStandardStr); - } - //代替标准 - if (StringUtils.isNotBlank(replaceStandardSb)) { - String replaceStandardStr = replaceStandardSb.substring(0, replaceStandardSb.length() - 1); - data.put("replace_standard", replaceStandardStr); - } if (StringUtils.isNotBlank(replacedStandardSb)) { String replacedStandardStr = replacedStandardSb.substring(0, replacedStandardSb.length() - 1); data.put("replaced_standard", replacedStandardStr); } } } +// private void getStandard(List> datas) { +// List> datasTemp = new ArrayList<>(); +// for (Map data : datas) { +// Map mapTemp = new HashMap<>(); +// mapCopy(data, mapTemp); +// datasTemp.add(mapTemp); +// } +// for (Map data : datas) { +// String idTemp = (String) data.get("id"); +// String correspondingStandard = (String) data.get("corresponding_standard"); +// String replaceStandard = (String) data.get("replace_standard"); +// StringBuilder correspondingStandardSb = new StringBuilder(); +// StringBuilder replaceStandardSb = new StringBuilder(); +// StringBuilder replacedStandardSb = new StringBuilder(); +// datasTemp.forEach(entry -> { +// String id = (String) entry.get("id"); +// String replaceStandardTemp = (String) entry.get("replace_standard"); +// //对应标准 +// if (StringUtils.isNotBlank(correspondingStandard) && correspondingStandard.contains(id)) { +// correspondingStandardSb.append((String) entry.get("serial_number") + ","); +// } +// //代替标准 +// if (StringUtils.isNotBlank(replaceStandard) && replaceStandard.contains(id)) { +// replaceStandardSb.append((String) entry.get("serial_number") + ","); +// } +// //被代替标准 +// if (StringUtils.isNotBlank(replaceStandardTemp) && replaceStandardTemp.contains(idTemp)) { +// replacedStandardSb.append((String) entry.get("serial_number") + ","); +// } +// }); +// //对应标准 +// if (StringUtils.isNotBlank(correspondingStandardSb)) { +// String correspondingStandardStr = correspondingStandardSb.substring(0, correspondingStandardSb.length() - 1); +// data.put("corresponding_standard", correspondingStandardStr); +// } +// //代替标准 +// if (StringUtils.isNotBlank(replaceStandardSb)) { +// String replaceStandardStr = replaceStandardSb.substring(0, replaceStandardSb.length() - 1); +// data.put("replace_standard", replaceStandardStr); +// } +// if (StringUtils.isNotBlank(replacedStandardSb)) { +// String replacedStandardStr = replacedStandardSb.substring(0, replacedStandardSb.length() - 1); +// data.put("replaced_standard", replacedStandardStr); +// } +// } +// } public void createDatas(Workbook workbook, Sheet sheet, List> datas, String header, List fieldList, String cut) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); From 56d4f62da7e5772c1688b7014181f3f2eda55fa2 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Tue, 10 May 2022 18:15:42 +0800 Subject: [PATCH 3/7] =?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 --- .../processCenter/processForm/taskListProcess/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jero-web/src/views/processCenter/processForm/taskListProcess/index.vue b/jero-web/src/views/processCenter/processForm/taskListProcess/index.vue index 26f9c325c..53c28a1dd 100644 --- a/jero-web/src/views/processCenter/processForm/taskListProcess/index.vue +++ b/jero-web/src/views/processCenter/processForm/taskListProcess/index.vue @@ -225,6 +225,7 @@ terminationProcess() { this.textLoading = this.$t('terminationProcessing') this.loading = true + this.queryBy.reviewResult = 'termination of task' this.completeTask({ flag: 2 }) }, adopt() { @@ -238,6 +239,11 @@ sendBack() { this.textLoading = this.$t('Returning') this.loading = true + if (this.queryBy.reviewResult == 'inconformity' || this.queryBy.reviewResult == 'to track'){ + + }else{ + this.queryBy.reviewResult = 'to be confirmed' + } this.completeTask({ flag: 1 }) }, submit() { From c541ed6caeb47be1735ddcaca65443ac8847c446 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Tue, 10 May 2022 18:25:36 +0800 Subject: [PATCH 4/7] =?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 --- .../projectManagement/components/TaskList.vue | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/TaskList.vue b/jero-web/src/views/projectManagement/components/TaskList.vue index acf55b009..273e6a4da 100644 --- a/jero-web/src/views/projectManagement/components/TaskList.vue +++ b/jero-web/src/views/projectManagement/components/TaskList.vue @@ -63,38 +63,38 @@
-
+
{{$t('Deadline')}}: {{result.designDueDate}}
{{$t('ProcessStatus')}}: {{result.designStatus}}
{{statusText[result.designFlowTaskStatus]}}
-
+
-
+
{{$t('Deadline')}}: {{result.prehomoDueDate}}
{{$t('ProcessStatus')}}: {{result.prehomoTaskStatus}}
{{statusText[result.prehomoFlowTaskStatus]}}
-
+
-
+
{{$t('Deadline')}}: {{result.verifyDueDate}}
{{$t('ProcessStatus')}}: {{result.verifyStatus}}
{{statusText[result.verifyFlowTaskStatus]}}
-
+
@@ -231,7 +231,7 @@ handleExport() { }, - verifyTaskClick(val, num) { + verifyTaskClick(val, num,isTrue) { let query = {} switch (num) { case 1: @@ -243,7 +243,7 @@ id: this.$route.query.id, studioEngineer: this.$route.query.studioEngineer, serialNumber: val.serialNumber, - TaskKey: val.designTaskDefinitionKey, + TaskKey: isTrue ? val.designTaskDefinitionKey : 'hhhhh', flowType: 2, Sponsor: 'designInitiatorName', personLiable: 'designDutyName', @@ -251,7 +251,7 @@ deliverableTemplate: 'designDeliverableTemplate', projectName: this.$route.query.projectName, projectNameId: this.$route.query.projectNameId, - primaryKeyId: val.designTaskDetailId + primaryKeyId: val.designTaskDetailId, } break case 2: @@ -262,7 +262,7 @@ studioEngineer: this.$route.query.studioEngineer, projectLibraryId: this.$route.query.id, serialNumber: val.serialNumber, - TaskKey: val.prehomoTaskDefinitionKey, + TaskKey: isTrue ? val.prehomoTaskDefinitionKey : 'hhhh', flowType: 3, id: this.$route.query.id, Sponsor: 'prehomoInitiatorName', @@ -271,7 +271,7 @@ deliverableTemplate: 'prehomoDeliverableTemplate', projectName: this.$route.query.projectName, projectNameId: this.$route.query.projectNameId, - primaryKeyId: val.prehomoTaskDetailId + primaryKeyId: val.prehomoTaskDetailId, } break case 3: @@ -283,7 +283,7 @@ studioEngineer: this.$route.query.studioEngineer, serialNumber: val.serialNumber, projectTaskInventoryId: val.projectLawsInventoryId, - TaskKey: val.verifyTaskDefinitionKey, + TaskKey: isTrue ? val.verifyTaskDefinitionKey : 'hhhhh', flowType: 4, Sponsor: 'verifyInitiatorName', personLiable: 'verifyDutyName', @@ -291,7 +291,7 @@ deliverableTemplate: 'verifyDeliverableTemplate', projectName: this.$route.query.projectName, projectNameId: this.$route.query.projectNameId, - primaryKeyId: val.verifyTaskDetailId + primaryKeyId: val.verifyTaskDetailId, } break } From 72182adfa3ac2508350d1d04acf79a03278152b0 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Tue, 10 May 2022 18:29:52 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=BA=93-=E5=AF=BC?= =?UTF-8?q?=E5=85=A5(=E6=A0=87=E5=87=86=E7=B1=BB=E5=9E=8B=E5=AD=97?= =?UTF-8?q?=E6=AE=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BussDocumentLibraryEOServiceImpl.java | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java index fd965da4b..73953ca9e 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java @@ -4667,28 +4667,28 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl> listBySerialNumber = getListBySerialNumber(value); - String serialNumberStr = ""; - StringBuilder sb = new StringBuilder(); - List list = new ArrayList<>(); - for (Map stringObjectMap : listBySerialNumber) { - sb.append((String) stringObjectMap.get("id") + ","); - list.add((String) stringObjectMap.get("serial_number")); - } - if (StringUtils.isNotBlank(value)) { - for (String s : value.split(",")) { - if (!list.contains(s)) { - sb.append(s); - } - } - } - if (ObjectUtils.isNotEmpty(sb)) { - String substring = sb.toString(); - if (substring.endsWith(",") || substring.endsWith(",")){ - substring = substring.substring(0, substring.length() - 1); - } - value = substring; - } +// List> listBySerialNumber = getListBySerialNumber(value); +// String serialNumberStr = ""; +// StringBuilder sb = new StringBuilder(); +// List list = new ArrayList<>(); +// for (Map stringObjectMap : listBySerialNumber) { +// sb.append((String) stringObjectMap.get("id") + ","); +// list.add((String) stringObjectMap.get("serial_number")); +// } +// if (StringUtils.isNotBlank(value)) { +// for (String s : value.split(",")) { +// if (!list.contains(s)) { +// sb.append(s); +// } +// } +// } +// if (ObjectUtils.isNotEmpty(sb)) { +// String substring = sb.toString(); +// if (substring.endsWith(",") || substring.endsWith(",")){ +// substring = substring.substring(0, substring.length() - 1); +// } +// value = substring; +// } } } } From 17fd92a13accdb1eac886336e272d4f6488de6f3 Mon Sep 17 00:00:00 2001 From: liyawei Date: Tue, 10 May 2022 18:33:21 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E8=AE=A4=E8=AF=81-=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=A1=B9=E6=94=B6=E9=9B=86-=E6=9F=A5=E8=AF=A2=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=A0=BC=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ParamsCollectManifestEOServiceImpl.java | 136 ++++++++++-------- .../impl/ParamsConfigEOServiceImpl.java | 11 +- .../impl/ParamsManifestEOServiceImpl.java | 37 +++++ .../cert/collect/vo/ParamsConfigDataVO.java | 6 +- 4 files changed, 123 insertions(+), 67 deletions(-) diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java index 871fe2b5b..60aa2e40d 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java @@ -187,67 +187,66 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl> listMap = new ArrayList<>(); - if (CollectionUtil.isNotEmpty(paramsConfigEOList)) { - list.forEach(collectManifestEO -> { // 参数收集清单 - // 处理数据字典字段 中英文切换 认证类型,责任领域 - List certCategory = Arrays.asList(collectManifestEO.getCertCategory().split(",")); - List dutyTerritory = Arrays.asList(collectManifestEO.getDutyTerritory().split(",")); - String certCategoryName = ""; - String dutyTerritoryName = ""; - if (CutEnum.CN.getValue().equals(cut)) { - certCategoryName = dictItemList.stream() - .filter(e -> certCategory.contains(e.getItemValue())) - .map(SysDictItem::getItemText) - .collect(Collectors.joining(",")); + list.forEach(collectManifestEO -> { // 参数收集清单 + // 处理数据字典字段 中英文切换 认证类型,责任领域 + List certCategory = Arrays.asList(collectManifestEO.getCertCategory().split(",")); + List dutyTerritory = Arrays.asList(collectManifestEO.getDutyTerritory().split(",")); + String certCategoryName = ""; + String dutyTerritoryName = ""; + if (CutEnum.CN.getValue().equals(cut)) { + certCategoryName = dictItemList.stream() + .filter(e -> certCategory.contains(e.getItemValue())) + .map(SysDictItem::getItemText) + .collect(Collectors.joining(",")); - dutyTerritoryName = dictItemList.stream() - .filter(e -> dutyTerritory.contains(e.getItemValue())) - .map(SysDictItem::getItemText) - .collect(Collectors.joining(",")); + dutyTerritoryName = dictItemList.stream() + .filter(e -> dutyTerritory.contains(e.getItemValue())) + .map(SysDictItem::getItemText) + .collect(Collectors.joining(",")); - } else if (CutEnum.EN.getValue().equals(cut)) { - certCategoryName = dictItemList.stream() - .filter(e -> certCategory.contains(e.getItemValue())) - .map(SysDictItem::getEnName) - .collect(Collectors.joining(",")); + } else if (CutEnum.EN.getValue().equals(cut)) { + certCategoryName = dictItemList.stream() + .filter(e -> certCategory.contains(e.getItemValue())) + .map(SysDictItem::getEnName) + .collect(Collectors.joining(",")); - dutyTerritoryName = dictItemList.stream() - .filter(e -> dutyTerritory.contains(e.getItemValue())) - .map(SysDictItem::getEnName) - .collect(Collectors.joining(",")); + dutyTerritoryName = dictItemList.stream() + .filter(e -> dutyTerritory.contains(e.getItemValue())) + .map(SysDictItem::getEnName) + .collect(Collectors.joining(",")); - } + } // String certCategoryName = sysDictService.queryDictItemByValue("cert_category", collectManifestEO.getCertCategory(), cut); - collectManifestEO.setCertCategory(certCategoryName); + collectManifestEO.setCertCategory(certCategoryName); // String dutyTerritoryName = sysDictService.queryDictItemByValue("duty_territory", collectManifestEO.getDutyTerritory(), cut); - collectManifestEO.setDutyTerritory(dutyTerritoryName); + collectManifestEO.setDutyTerritory(dutyTerritoryName); - // 处理状态字段 - Map collectManifestStateMap = CollectManifestStateEnum.toMap(cut); - String stateName = collectManifestStateMap.get(collectManifestEO.getState()); - collectManifestEO.setState(stateName); + // 处理状态字段 + Map collectManifestStateMap = CollectManifestStateEnum.toMap(cut); + String stateName = collectManifestStateMap.get(collectManifestEO.getState()); + collectManifestEO.setState(stateName); - Map manifestMap = objectToMap(collectManifestEO); // 对象转map - String controlType = collectManifestEO.getControlType(); - String paramsCollectManifestId = collectManifestEO.getId(); + Map manifestMap = objectToMap(collectManifestEO); // 对象转map + String controlType = collectManifestEO.getControlType(); + String paramsCollectManifestId = collectManifestEO.getId(); - if (CollectionUtil.isNotEmpty(paramsConfigEOList)) { - paramsConfigEOList.forEach(paramsConfigEO -> { // 参数配置 - Map configMap = new HashMap<>(); - String paramsConfigId = paramsConfigEO.getId(); - ParamsConfigDataEO paramsConfigDataEO = paramsConfigDataEOService.queryByConfigIdAndCollectManifestId(paramsConfigId, paramsCollectManifestId); // 参数配置数据 - List paramsConfigDataVOList = getConfigDataVOList(controlType, paramsConfigDataEO, collectManifestEO); // 重新组合配置数据 - configMap.put("controlType", controlType); - configMap.put("list", paramsConfigDataVOList); - manifestMap.put(paramsConfigEO.getId(), configMap); - }); - } + if (CollectionUtil.isNotEmpty(paramsConfigEOList)) { + paramsConfigEOList.forEach(paramsConfigEO -> { // 参数配置 + Map configMap = new HashMap<>(); + String paramsConfigId = paramsConfigEO.getId(); + ParamsConfigDataEO paramsConfigDataEO = paramsConfigDataEOService.queryByConfigIdAndCollectManifestId(paramsConfigId, paramsCollectManifestId); // 参数配置数据 + List paramsConfigDataVOList = getConfigDataVOList(controlType, paramsConfigDataEO, collectManifestEO); // 重新组合配置数据 + configMap.put("controlType", controlType); + configMap.put("list", paramsConfigDataVOList); + manifestMap.put(paramsConfigEO.getId(), configMap); + }); + } + + listMap.add(manifestMap); + }); - listMap.add(manifestMap); - }); - } return listMap; } @@ -266,7 +265,7 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl> getControlValueMapList(String controlValue) { + List> controlValueMapList = new ArrayList<>(); + if (StringUtils.isNotEmpty(controlValue)) { + controlValue = controlValue.replace(",", ","); + String[] controlValueStr = controlValue.split(","); + for (int i = 0; i < controlValueStr.length; i++) { + Map controlValueMap = new HashMap<>(); + controlValueMap.put("lable", controlValueStr[i]); + controlValueMap.put("value", controlValueStr[i]); + controlValueMapList.add(controlValueMap); + } + } + return controlValueMapList; + } + /** * 列表表头中英文切换 * diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsConfigEOServiceImpl.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsConfigEOServiceImpl.java index 1964bf891..0626bf4f9 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsConfigEOServiceImpl.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsConfigEOServiceImpl.java @@ -52,18 +52,18 @@ public class ParamsConfigEOServiceImpl extends ServiceImpl paramsConfigEOList = paramsConfigVO.getParamsConfigEOList(); -// int ind = 1; + int ind = 1; List addConfigList = new ArrayList<>(); // 新增的配置 List updateConfigList = new ArrayList<>(); // 修改的配置 for (ParamsConfigEO paramsConfigEO : paramsConfigEOList) { paramsConfigEO.setParamsManifestId(paramsManifestId); -// paramsConfigEO.setDisplaySeq(ind); + paramsConfigEO.setDisplaySeq(ind); if (StringUtils.isEmpty(paramsConfigEO.getId())) { addConfigList.add(paramsConfigEO); } else { updateConfigList.add(paramsConfigEO); } -// ind++; + ind++; } // 删除的配置 @@ -96,10 +96,11 @@ public class ParamsConfigEOServiceImpl extends ServiceImpl configEOQueryWrapper = new LambdaQueryWrapper<>(); + configEOQueryWrapper.eq(ParamsConfigEO::getParamsManifestId, id); + paramsConfigEOMapper.delete(configEOQueryWrapper); + + // 关联删除收集的参数项(包含配置数据) + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.eq(ParamsCollectManifestEO::getParamsManifestId, id); + List paramsCollectManifestEOList = paramsCollectManifestEOService.list(queryWrapper); + if (CollectionUtil.isNotEmpty(paramsCollectManifestEOList)) { + List paramsCollectManifestIdList = paramsCollectManifestEOList.stream().map(ParamsCollectManifestEO::getId).collect(Collectors.toList()); + paramsCollectManifestEOService.deleteByIds(paramsCollectManifestIdList); + + } + removeById(id); } @@ -139,6 +161,21 @@ public class ParamsManifestEOServiceImpl extends ServiceImpl ids) { + + // 关联删除配置 + LambdaQueryWrapper configEOQueryWrapper = new LambdaQueryWrapper<>(); + configEOQueryWrapper.in(ParamsConfigEO::getParamsManifestId, ids); + paramsConfigEOMapper.delete(configEOQueryWrapper); + + // 关联删除收集的参数项(包含配置数据) + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.in(ParamsCollectManifestEO::getParamsManifestId, ids); + List paramsCollectManifestEOList = paramsCollectManifestEOService.list(queryWrapper); + if (CollectionUtil.isNotEmpty(paramsCollectManifestEOList)) { + List paramsCollectManifestIdList = paramsCollectManifestEOList.stream().map(ParamsCollectManifestEO::getId).collect(Collectors.toList()); + paramsCollectManifestEOService.deleteByIds(paramsCollectManifestIdList); + + } removeByIds(ids); } diff --git a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/vo/ParamsConfigDataVO.java b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/vo/ParamsConfigDataVO.java index a2495d85f..a21291b8e 100644 --- a/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/vo/ParamsConfigDataVO.java +++ b/jero-boot/jero-boot-module-certification/src/main/java/com/jero/modules/cert/collect/vo/ParamsConfigDataVO.java @@ -2,6 +2,9 @@ package com.jero.modules.cert.collect.vo; import lombok.Data; +import java.util.List; +import java.util.Map; + /** * @Author: liyawei * @Description: @@ -11,6 +14,7 @@ import lombok.Data; public class ParamsConfigDataVO { private String type; // 类型:文本,单选,多选,附件 private String isMust; // 是否必填 1-必填 0-非必填 - private String controlValue; // 控件备选值,控件校验 + private String controlVerify; // 控件校验 + private List> controlValue; // 控件备选值 private String dataValue; // 配置具体数据 } From 700e3bda62e9e0d616f49600a9e14f81a68074d6 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Tue, 10 May 2022 18:35:36 +0800 Subject: [PATCH 7/7] =?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 --- .../views/projectManagement/components/fixedPlateForm.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jero-web/src/views/projectManagement/components/fixedPlateForm.vue b/jero-web/src/views/projectManagement/components/fixedPlateForm.vue index 26fc25c51..7be6ec98d 100644 --- a/jero-web/src/views/projectManagement/components/fixedPlateForm.vue +++ b/jero-web/src/views/projectManagement/components/fixedPlateForm.vue @@ -46,7 +46,12 @@ versionsName: [ { required: true, - message: this.$t('publishComment') + this.$t('cannotEmpty'), + message: this.$t('versionName') + this.$t('cannotEmpty'), + trigger: 'blur' + }, + { + max: 200, + message: this.$t('versionName') + this.$t('cannotExceed') + 200 + this.$t('Characters'), trigger: 'blur' } ]