diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java index 704c077f0..3e3cb5a99 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java @@ -152,10 +152,11 @@ public class ProjectLawsInventoryEOController extends JeroController deleteBatch(@RequestParam(name="ids",required=true) String ids, - @RequestParam(name="projectLibraryId",required=true) String projectLibraryId, - @RequestParam(name="cut",required=true) String cut) { + @PostMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestBody JSONObject json) { + String ids = json.getString("ids"); + String projectLibraryId = json.getString("projectLibraryId"); + String cut = json.getString("cut"); this.projectLawsInventoryEOService.deleteByIds(Arrays.asList(ids.split(",")),projectLibraryId,cut); return Result.OK("批量删除成功!"); } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index 910f78f95..0736144aa 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -1060,7 +1060,14 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { if (res.success) { diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue index d4318782f..1a0963aaa 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -1241,7 +1241,7 @@ content: _this.$t('ConfirmBatchDeletion'), onOk() { let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys)) - deleteAction(_this.url.deleteBatch, { + postAction(_this.url.deleteBatch, { ids: idList.join(','), projectLibraryId: _this.$route.query.id }).then((res) => { @@ -1615,7 +1615,7 @@ }) }, - getRowKeys(value, callBack) { + getRowKeys(value,num, callBack) { let isTrue = true let dataSource = [] for (let i = 0; i < this.dataSource.length; i++) { @@ -1651,35 +1651,36 @@ // this.$message.warning(dataSource[i].serialNumber + this.$t('submitted')) // return } - if((dataSource[i].designInitiatorId == dataSource[i].regulationOwnerId - && dataSource[i].designInitiatorId == this.userInfo().id) || - (dataSource[i].designInitiatorId == dataSource[i].homologationEngineerId - && dataSource[i].designInitiatorId == this.userInfo().id)){ - if(!dataSource[i].designDutyId || !dataSource[i].designDueDate){ - this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('confirmationOfDesignConformity') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) - continue - } - } - if((dataSource[i].prehomoInitiatorId == dataSource[i].regulationOwnerId - && dataSource[i].prehomoInitiatorId == this.userInfo().id) || - (dataSource[i].prehomoInitiatorId == dataSource[i].homologationEngineerId - && dataSource[i].prehomoInitiatorId == this.userInfo().id)){ - if(!dataSource[i].prehomoDutyId || !dataSource[i].prehomoDueDate){ - this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('PrehomoConfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) - continue + if(num == 1){ + if((dataSource[i].designInitiatorId == dataSource[i].regulationOwnerId + && dataSource[i].designInitiatorId == this.userInfo().id) || + (dataSource[i].designInitiatorId == dataSource[i].homologationEngineerId + && dataSource[i].designInitiatorId == this.userInfo().id)){ + if(!dataSource[i].designDutyId || !dataSource[i].designDueDate){ + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('confirmationOfDesignConformity') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) + continue + } } - } - if((dataSource[i].verifyInitiatorId == dataSource[i].regulationOwnerId - && dataSource[i].verifyInitiatorId == this.userInfo().id) || - (dataSource[i].verifyInitiatorId == dataSource[i].homologationEngineerId - && dataSource[i].verifyInitiatorId == this.userInfo().id)){ - if(!dataSource[i].verifyDutyId || !dataSource[i].verifyDueDate){ - this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('verificationAndConformityconfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) - continue + if((dataSource[i].prehomoInitiatorId == dataSource[i].regulationOwnerId + && dataSource[i].prehomoInitiatorId == this.userInfo().id) || + (dataSource[i].prehomoInitiatorId == dataSource[i].homologationEngineerId + && dataSource[i].prehomoInitiatorId == this.userInfo().id)){ + if(!dataSource[i].prehomoDutyId || !dataSource[i].prehomoDueDate){ + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('PrehomoConfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) + continue + } + } + if((dataSource[i].verifyInitiatorId == dataSource[i].regulationOwnerId + && dataSource[i].verifyInitiatorId == this.userInfo().id) || + (dataSource[i].verifyInitiatorId == dataSource[i].homologationEngineerId + && dataSource[i].verifyInitiatorId == this.userInfo().id)){ + if(!dataSource[i].verifyDutyId || !dataSource[i].verifyDueDate){ + this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber+this.$t('verificationAndConformityconfirmation') + this.$t('theResponsiblePersonAndDeadlineClank') } < /div>) + continue + } } } this.rowKeysSuccessList.push(dataSource[i]) - } else { this.rowKeysWarningList.push( < div > { dataSource[i].serialNumber + this.$t('incorrectsubmitted') } < /div>) // isTrue = false @@ -1760,12 +1761,12 @@ onOk() { if (num == 0) { let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys)) - _this.getRowKeys(selectedRowKeys, function() { + _this.getRowKeys(selectedRowKeys, 1,function() { _this.updateStatusBatch(num, selectedRowKeys) }) } else { let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys)) - _this.getRowKeys(selectedRowKeys, function() { + _this.getRowKeys(selectedRowKeys, 2,function() { _this.visibleComment = true }) } diff --git a/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue b/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue index 08986ea69..a77144c4f 100644 --- a/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue +++ b/jero-web/src/views/projectManagement/components/listOfRelevantPersonnel.vue @@ -113,6 +113,17 @@ {{$t('edit')}} + + + {{$t('regulatoryEngineer')}} + + + + {{$t('engineeringInterfacePerson')}} + + + {{$t('certifiedEngineer')}} + @@ -267,20 +278,20 @@ ellipsis: true }, { - title: this.$t('regulatoryEngineer'), align: 'center', dataIndex: 'lawEngineerName', + slots:{title:'regulatoryEngineer'}, ellipsis: true }, { - title: this.$t('engineeringInterfacePerson'), align: 'center', + slots:{title:'engineeringInterfacePerson'}, dataIndex: 'engineeringInterfacePersonName', ellipsis: true }, { - title: this.$t('certifiedEngineer'), align: 'center', + slots:{title:'certifiedEngineer'}, dataIndex: 'certificationEngineerName', ellipsis: true }, @@ -293,7 +304,7 @@ { title: this.$t('operation'), align: 'center', - width: 100, + width: 110, fixed: 'right', scopedSlots: { customRender: 'operation' } } diff --git a/jero-web/src/views/system/RoleUserList.vue b/jero-web/src/views/system/RoleUserList.vue index 55b0e85ed..b86fe23e8 100644 --- a/jero-web/src/views/system/RoleUserList.vue +++ b/jero-web/src/views/system/RoleUserList.vue @@ -130,7 +130,7 @@ title: this.$t('serialNumber'), dataIndex: '', key: 'rowIndex', - width: 20, + width: 90, align: 'center', customRender: function(t, r, index) { return parseInt(index) + 1 @@ -160,7 +160,7 @@ }, { title: this.$t('operation'), - width: 100, + width: 200, dataIndex: 'action', align: 'center', scopedSlots: { customRender: 'action' }