diff --git a/jero-boot/db/蔚来标准sql/dev_2nd_period.sql b/jero-boot/db/蔚来标准sql/dev_2nd_period.sql index 600ac10d6..3acdcb933 100644 --- a/jero-boot/db/蔚来标准sql/dev_2nd_period.sql +++ b/jero-boot/db/蔚来标准sql/dev_2nd_period.sql @@ -662,3 +662,8 @@ CREATE TABLE `recent_browse` ( ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '最近浏览' ROW_FORMAT = Dynamic; -- 菜单增加 上报库详情-一般导出权限 2023-06-16 已同步生产环境 INSERT INTO `sys_permission` (`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`, `menu_en`) VALUES ('1669532516277075970', '1552487412749369345', '一般导出', NULL, NULL, NULL, NULL, 2, 'report:detail:export:general', '1', 1.00, 0, NULL, 1, 1, 0, 0, NULL, 'admin', '2023-06-16 10:29:05', NULL, NULL, 0, 0, '1', 0, 'General export'); + + +-- 认证清单表 交付物字段扩大 2023-06-21 未同步生产环境 +ALTER TABLE `project_certification_inventory` + MODIFY COLUMN `deliverable` varchar(1500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交付物' AFTER `duty_territory`; \ No newline at end of file diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/phone/service/impl/TaskStatisticsServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/phone/service/impl/TaskStatisticsServiceImpl.java index 94e4ddba0..a6f174a13 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/phone/service/impl/TaskStatisticsServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/phone/service/impl/TaskStatisticsServiceImpl.java @@ -71,9 +71,10 @@ public class TaskStatisticsServiceImpl implements ITaskStatisticsService { List preHomoList = piEoList.stream().filter(piEo -> { return StringUtils.equals(piEo.getFlowType(), FlowTypeEnum.CERTIFICATION_LC.getValue()); }).collect(Collectors.toList()); - if (CollectionUtils.isNotEmpty(preHomoList)) { - preHomoCount = this.getPreHomoCount(pidEoList, preHomoList); - } + preHomoCount = preHomoList.size(); +// if (CollectionUtils.isNotEmpty(preHomoList)) { +// preHomoCount = this.getPreHomoCount(pidEoList, preHomoList); +// } List technologyEvaluationList = piEoList.stream().filter(piEo -> { return StringUtils.equals(piEo.getFlowType(), FlowTypeEnum.FGJSPG.getValue()); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/problemKnowledgeBase/service/impl/ProblemKnowledgeBaseEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/problemKnowledgeBase/service/impl/ProblemKnowledgeBaseEOServiceImpl.java index 1efb0c122..8c4854ed3 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/problemKnowledgeBase/service/impl/ProblemKnowledgeBaseEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/problemKnowledgeBase/service/impl/ProblemKnowledgeBaseEOServiceImpl.java @@ -436,6 +436,13 @@ public class ProblemKnowledgeBaseEOServiceImpl extends ServiceImpl accessoryFileList = this.iOSSFileService.getFileInfos(problemKnowledgeBaseEO.getAccessoryFile()); + accessoryFileName = accessoryFileList.stream().map(OSSFile::getFileName).distinct().collect(Collectors.joining(",")); + } + convertAfterMap.put("file_name",accessoryFileName); } } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java index e8b43edfa..2a53d7390 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java @@ -310,4 +310,11 @@ public interface IProjectCertificationInventoryEOService extends IService groupByCertificationProgress(List pciEos); + + /** + * 同步待办中心明细数据-认证清单 截止日期 + * @param endTime + * @param editEndTimeCertificationInventoryEOS + */ + void syncProcessInfoDetailEndTime(Date endTime, List editEndTimeCertificationInventoryEOS); } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java index c30153d4e..10fbe7d78 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java @@ -213,6 +213,9 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl userIdList = Arrays.asList(projectLibraryBase.getCertificationEngineer().split(",")); @@ -610,28 +613,30 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl certificationQueryWrap = new QueryWrapper<>(); certificationQueryWrap.lambda().in(ProjectCertificationInventoryEO::getId,idList); - certificationQueryWrap.lambda().in(ProjectCertificationInventoryEO::getFlowStatus,flowStatusList); +// certificationQueryWrap.lambda().in(ProjectCertificationInventoryEO::getFlowStatus,flowStatusList); List projectCertificationInventoryEOS = this.list(certificationQueryWrap); if(CollectionUtils.isNotEmpty(projectCertificationInventoryEOS)){ - projectCertificationInventoryEOS = projectCertificationInventoryEOS.stream().filter(certificationInventory -> { + List pciEoListTemp = projectCertificationInventoryEOS.stream().filter(certificationInventory -> { boolean flag = false; - if(projectCertificationInventoryEO.getEndTime() != null && certificationInventory.getEndTime() != null){ - if(!projectCertificationInventoryEO.getEndTime().equals(certificationInventory.getEndTime())){ - flag = true; + if(StringUtils.equals(certificationInventory.getFlowStatus(),CertificationInventoryFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())){ + if(projectCertificationInventoryEO.getEndTime() != null && certificationInventory.getEndTime() != null){ + if(!projectCertificationInventoryEO.getEndTime().equals(certificationInventory.getEndTime())){ + flag = true; + } } } return flag; }).collect(Collectors.toList()); - if (CollectionUtils.isNotEmpty(projectCertificationInventoryEOS)) { - ProjectLibraryBase projectLibraryBase = this.projectLibraryBaseService.selectById(projectCertificationInventoryEOS.get(0).getProjectLibraryId()); + if (CollectionUtils.isNotEmpty(pciEoListTemp)) { + ProjectLibraryBase projectLibraryBase = this.projectLibraryBaseService.selectById(pciEoListTemp.get(0).getProjectLibraryId()); if(ObjectUtils.isNotEmpty(projectLibraryBase)){ List userIdList = Arrays.asList(projectLibraryBase.getCertificationEngineer().split(",")); List userInfoList = this.sysUserService.querySysUserListByIdList(userIdList); this.sendMessageByTemplateId( - projectCertificationInventoryEOS, + pciEoListTemp, TemplateInfoEnum2.CERTIFICATION_MESSAGE14.getValue(), userIdList, userInfoList, @@ -639,6 +644,8 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl pciEoList) { + pciEoList = pciEoList.stream().filter(pciEo -> { + boolean flag = false; + if(!newEndTime.equals(pciEo.getEndTime())){ + flag = true; + } + return flag; + }).collect(Collectors.toList()); + + if(CollectionUtils.isNotEmpty(pciEoList)){ + List pciIdList = pciEoList.stream().map(ProjectCertificationInventoryEO::getId).distinct().collect(Collectors.toList()); + + QueryWrapper pidQueryWrap = new QueryWrapper<>(); + pidQueryWrap.lambda().eq(ProcessInfoDetailEO::getFlowType,FlowTypeEnum.CERTIFICATION_LC.getValue()); + pidQueryWrap.lambda().in(ProcessInfoDetailEO::getProjectLawsInventoryId,pciIdList); + List pidEoList = this.processInfoDetailEOService.list(pidQueryWrap); + + if(CollectionUtils.isNotEmpty(pidEoList)){ + List updatePidEoList = new ArrayList<>(); + for (ProjectCertificationInventoryEO pciEo : pciEoList) { + String pciEoId = pciEo.getId(); + String flowStatus = pciEo.getFlowStatus(); + // 如果该数据为 结果待提交或审查退回的时候 + if (StringUtils.equals(flowStatus,CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) + || StringUtils.equals(flowStatus,CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) ) { + List pidEoListTemp = pidEoList.stream().filter(pidEo -> { + boolean flag = ( + StringUtils.equals(pidEo.getProjectLawsInventoryId(),pciEoId) + && StringUtils.equals(pidEo.getStatus(),TaskStatusEnum.NOT_DONE.getValue()) + && StringUtils.equals(pidEo.getTaskDefinitionKey(),CertificationFlowNodeEnum.ZRRTJRW.getKey()) + ); + return flag; + }).collect(Collectors.toList()); + updatePidEoList.addAll(pidEoListTemp); + }else if(StringUtils.equals(flowStatus,CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue())){ + List pidEoListTemp = pidEoList.stream().filter(pidEo -> { + boolean flag = ( + StringUtils.equals(pidEo.getProjectLawsInventoryId(),pciEoId) + && StringUtils.equals(flowStatus,TaskStatusEnum.NOT_DONE.getValue()) + && StringUtils.equals(pidEo.getTaskDefinitionKey(),CertificationFlowNodeEnum.RZGCSSC.getKey()) + ); + return flag; + }).collect(Collectors.toList()); + updatePidEoList.addAll(pidEoListTemp); + } + } + + if(CollectionUtils.isNotEmpty(updatePidEoList)){ + updatePidEoList.forEach(pidEo -> pidEo.setEndTime(newEndTime)); + this.processInfoDetailEOService.updateBatchById(updatePidEoList); + } + } + } + } + @Override public Map>> queryDutyPersonByProjectId(Map params) { Map>> result = new HashMap<>(); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java index dc822d1be..4d6a50463 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java @@ -1252,6 +1252,7 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService { List fieldList = new ArrayList<>(); fieldList.add("title");//权重5 fieldList.add("content");//权重4 + fieldList.add("file_name");//权重3 //fieldList.add("module_type"); //fieldList.add("id"); //fieldList.add("flag"); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/todoCenter/mapper/xml/ProcessInfoEOMapper.xml b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/todoCenter/mapper/xml/ProcessInfoEOMapper.xml index 5024555f4..af0a76db1 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/todoCenter/mapper/xml/ProcessInfoEOMapper.xml +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/todoCenter/mapper/xml/ProcessInfoEOMapper.xml @@ -537,6 +537,38 @@ #{item} + + union + SELECT + pi.id, + '' as project_library_id, + '' as project_laws_inventory_id, + pi.buss_document_library_id, + pi.acti_proc_inst_id, + '--' AS project_name, + '' as year_name, + bdl.serial_number, + bdl.title, + bdl.title_en, + concat( bdl.serial_number, ' ', bdl.title ) AS standard_info, + pi.flow_type, + pi.create_by, + pi.end_time, + pi.STATUS, + pi.prc_num, + pi.prc_name, + '' as project_name_id, + '' as target_market, + '' as studio_engineer, + '' as project_version, + '' as parent_id + FROM + process_info pi + LEFT JOIN buss_document_library bdl ON pi.buss_document_library_id = bdl.id + WHERE + pi.flow_type IN ( '5', '6' ) + AND ( pi.id IN ( SELECT pid.process_info_id FROM process_info_detail pid WHERE pid.user_id = #{params.currentUserId} AND pid.STATUS = #{params.taskStatus} ) ) + )temp order by diff --git a/jero-web/public/index.html b/jero-web/public/index.html index 37f7a397c..63ed7250c 100644 --- a/jero-web/public/index.html +++ b/jero-web/public/index.html @@ -19,12 +19,14 @@ margin: 0px; padding: 0px; } + .chromeframe { margin: 0.2em 0; background: #ccc; color: #000; padding: 0.2em 0; } + #loader-wrapper { position: fixed; top: 0; @@ -33,6 +35,7 @@ height: 100%; z-index: 999999; } + #loader { display: block; position: relative; @@ -57,6 +60,7 @@ /* Chrome, Firefox 16+, IE 10+, Opera */ z-index: 1001; } + #loader:before { content: ""; position: absolute; @@ -79,6 +83,7 @@ animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ } + #loader:after { content: ""; position: absolute; @@ -101,6 +106,7 @@ animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ } + @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); @@ -119,6 +125,7 @@ /* Firefox 16+, IE 10+, Opera */ } } + @keyframes spin { 0% { -webkit-transform: rotate(0deg); @@ -137,6 +144,7 @@ /* Firefox 16+, IE 10+, Opera */ } } + #loader-wrapper .loader-section { position: fixed; top: 0; @@ -152,12 +160,15 @@ transform: translateX(0); /* Firefox 16+, IE 10+, Opera */ } + #loader-wrapper .loader-section.section-left { left: 0; } + #loader-wrapper .loader-section.section-right { right: 0; } + /* Loaded */ .loaded #loader-wrapper .loader-section.section-left { -webkit-transform: translateX(-100%); @@ -169,6 +180,7 @@ -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); } + .loaded #loader-wrapper .loader-section.section-right { -webkit-transform: translateX(100%); /* Chrome, Opera 15+, Safari 3.1+ */ @@ -179,11 +191,13 @@ -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); } + .loaded #loader { opacity: 0; -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; } + .loaded #loader-wrapper { visibility: hidden; -webkit-transform: translateY(-100%); @@ -195,13 +209,16 @@ -webkit-transition: all 0.3s 1s ease-out; transition: all 0.3s 1s ease-out; } + /* JavaScript Turned Off */ .no-js #loader-wrapper { display: none; } + .no-js h1 { color: #222222; } + #loader-wrapper .load_title { font-family: 'Open Sans'; color: #FFF; @@ -214,6 +231,7 @@ opacity: 1; line-height: 30px; } + #loader-wrapper .load_title span { font-weight: normal; font-style: italic; @@ -221,28 +239,66 @@ color: #FFF; opacity: 0.5; } + /* 滚动条优化 start */ - ::-webkit-scrollbar{ - width:8px; - height:8px; + ::-webkit-scrollbar { + width: 8px; + height: 8px; } - ::-webkit-scrollbar-track{ + + ::-webkit-scrollbar-track { background: #f6f6f6; - border-radius:2px; + border-radius: 2px; } - ::-webkit-scrollbar-thumb{ + + ::-webkit-scrollbar-thumb { background: #cdcdcd; - border-radius:2px; + border-radius: 2px; } - ::-webkit-scrollbar-thumb:hover{ + + ::-webkit-scrollbar-thumb:hover { background: #747474; } + ::-webkit-scrollbar-corner { background: #f6f6f6; } + /* 滚动条优化 end */ + diff --git a/jero-web/src/App.vue b/jero-web/src/App.vue index d4bd69fbf..1caee63ae 100644 --- a/jero-web/src/App.vue +++ b/jero-web/src/App.vue @@ -211,7 +211,8 @@ height: 32px !important; line-height: 32px !important; } - .page .ant-select-selection__rendered{ + + .page .ant-select-selection__rendered { height: 32px !important; line-height: 32px !important; } diff --git a/jero-web/src/permission.js b/jero-web/src/permission.js index 9c15d3171..75510d21d 100644 --- a/jero-web/src/permission.js +++ b/jero-web/src/permission.js @@ -119,7 +119,7 @@ router.beforeEach((to, from, next) => { router.addRoutes(store.getters.addRouters) let redirect = decodeURIComponent(from.query.redirect || to.path) if (mobile) { - if (redirect == '/'){ + if (redirect == '/' || redirect == '/dashboard/analysis'){ redirect = '/phoneSearch' } } diff --git a/jero-web/src/views/phoneView/handlingPage.vue b/jero-web/src/views/phoneView/handlingPage.vue index 36423dc24..57e39178a 100644 --- a/jero-web/src/views/phoneView/handlingPage.vue +++ b/jero-web/src/views/phoneView/handlingPage.vue @@ -51,7 +51,7 @@ pageSize: 10, loading: false, finished: false, - isDisplay:false, + isDisplay: false } }, mounted() { @@ -65,7 +65,10 @@ path: this.$route.query.goRouter, query: { searchValue: this.$route.query.searchValue, - activeTab: this.$route.query.activeTab + activeTab: this.$route.query.activeTab, + searchFlowType: this.$route.query.searchFlowType, + checked: this.$route.query.checked, + selectModel: this.$route.query.selectModel } }) } else { @@ -77,9 +80,9 @@ path: '/phonePreHomoMangement', query: { taskDefinitionKey: this.$route.query.taskDefinitionKey, - projectName:this.$route.query.projectName, + projectName: this.$route.query.projectName, id: item.id, - isDisplay:this.isDisplay + isDisplay: this.isDisplay } }) }, diff --git a/jero-web/src/views/phoneView/preHomoMangement.vue b/jero-web/src/views/phoneView/preHomoMangement.vue index d477cd5c6..fe589e752 100644 --- a/jero-web/src/views/phoneView/preHomoMangement.vue +++ b/jero-web/src/views/phoneView/preHomoMangement.vue @@ -97,9 +97,7 @@
{{$t('resultofhandling')}} + + + {{$t('DeliverablesResult')}} - * + *
{ if (res.success) { @@ -333,6 +336,7 @@ } }) }, + disposeResultChange(value) { if (value == 'rzgcssc_tg') { this.form.reasonForReturn = '' @@ -349,6 +353,7 @@ this.form = { ...this.form } }) }, + onSubmit() { this.$refs.form.validate().then(() => { this.textLoading = this.$t('Submitting') @@ -419,7 +424,15 @@ //保存 preservationClick() { let content = [] - content[0] = Object.assign(this.queryForm, this.form) + let fileListId = [] + let form = JSON.parse(JSON.stringify(this.form)) + if (this.queryForm.valueType == 'file') { + this.fileList.forEach(res => { + fileListId.push(res.id) + }) + form.deliveryResult = fileListId.join(',') + } + content[0] = Object.assign(this.queryForm, form) postAction(this.url.saveBatch, { 'dataList': content }).then((res) => { if (res.success) { this.ApprovedClick() diff --git a/jero-web/src/views/phoneView/processManagement.vue b/jero-web/src/views/phoneView/processManagement.vue index 68d8fabae..3eb70bd54 100644 --- a/jero-web/src/views/phoneView/processManagement.vue +++ b/jero-web/src/views/phoneView/processManagement.vue @@ -270,7 +270,10 @@ path: this.$route.query.goRouter, query: { searchValue: this.$route.query.searchValue, - activeTab: this.$route.query.activeTab + activeTab: this.$route.query.activeTab, + searchFlowType: this.$route.query.searchFlowType, + checked: this.$route.query.checked, + selectModel: this.$route.query.selectModel } }) } else { @@ -455,7 +458,20 @@ if (res.success) { this.$message.success(this.$t('OperationSuccessful')) this.show = false - this.$router.go(-1) + if (this.$route.query.goRouter) { + this.$router.push({ + path: this.$route.query.goRouter, + query: { + searchValue: this.$route.query.searchValue, + activeTab: this.$route.query.activeTab, + searchFlowType: this.$route.query.searchFlowType, + checked: this.$route.query.checked, + selectModel: this.$route.query.selectModel + } + }) + } else { + this.$router.go(-1) + } } else { this.show = false this.$message.warning(res.message) diff --git a/jero-web/src/views/phoneView/taskData.vue b/jero-web/src/views/phoneView/taskData.vue index fde6d12c4..784274adc 100644 --- a/jero-web/src/views/phoneView/taskData.vue +++ b/jero-web/src/views/phoneView/taskData.vue @@ -198,7 +198,7 @@ this.$router.push({ path: '/phoneToDoCenter', query: { - flowType: num + searchFlowType: num } }) }, diff --git a/jero-web/src/views/phoneView/toDoCenter.vue b/jero-web/src/views/phoneView/toDoCenter.vue index ff0bdbc17..e415ff460 100644 --- a/jero-web/src/views/phoneView/toDoCenter.vue +++ b/jero-web/src/views/phoneView/toDoCenter.vue @@ -278,17 +278,21 @@ }, mounted() { document.title = 'NIO GRP' - if (this.$route.query.flowType) { + if (this.$route.query.searchFlowType) { + let flowType = this.$route.query.searchFlowType + flowType = flowType.split(',') this.form.flowType = [] - this.form.flowType.push(this.$route.query.flowType) - this.form = { ...this.form } + this.form.flowType = this.form.flowType.concat(flowType) } - if (this.$route.query.searchValue){ - this.phoneQueryValue = this.$route.query.searchValue + if (this.$route.query.searchValue) { + this.phoneQueryValue = this.$route.query.searchValue } if (this.$route.query.activeTab) { this.activeTab = this.$route.query.activeTab + this.form.checked = JSON.parse(this.$route.query.checked) + this.form.selectModel = this.$route.query.selectModel } + this.form = { ...this.form } // this.toDoProcessPageNo = 1 // this.getToDoProcess() }, @@ -476,8 +480,11 @@ DueDate: 'designDueDate', remarks: 'designRemark', goRouter: '/phoneToDoCenter', - searchValue:this.phoneQueryValue, - activeTab:this.activeTab + searchValue: this.phoneQueryValue, + activeTab: this.activeTab, + checked: this.form.checked, + selectModel: this.form.selectModel, + searchFlowType: this.form.flowType.join(','), } this.$router.push({ path: '/phoneProcessManagement', @@ -499,8 +506,11 @@ DueDate: 'verifyDueDate', remarks: 'verifyRemark', goRouter: '/phoneToDoCenter', - searchValue:this.phoneQueryValue, - activeTab:this.activeTab + searchValue: this.phoneQueryValue, + activeTab: this.activeTab, + searchFlowType: this.form.flowType.join(','), + checked: this.form.checked, + selectModel: this.form.selectModel } this.$router.push({ path: '/phoneProcessManagement', @@ -518,8 +528,11 @@ isDisplay: isTrue, projectName: row.projectName, goRouter: '/phoneToDoCenter', - searchValue:this.phoneQueryValue, - activeTab:this.activeTab + searchValue: this.phoneQueryValue, + activeTab: this.activeTab, + searchFlowType: this.form.flowType.join(','), + checked: this.form.checked, + selectModel: this.form.selectModel } }) } else { @@ -597,6 +610,7 @@ } }) }, + getProcessDone() { let form = JSON.parse(JSON.stringify(this.form)) if (form.flowType && form.flowType instanceof Array) { @@ -623,6 +637,7 @@ } }) }, + getSentProcess() { let form = JSON.parse(JSON.stringify(this.form)) if (form.flowType && form.flowType instanceof Array) { @@ -649,6 +664,7 @@ } }) }, + processClick(type) { if (!this.form.flowType) { this.form.flowType = [] @@ -670,6 +686,7 @@ } this.form = { ...this.form } }, + checkboxGroupColor(type) { if (this.form.flowType && this.form.flowType.length > 0) { for (let i = 0; i < this.form.flowType.length; i++) { diff --git a/jero-web/src/views/user/third/JeroThirdLoginMixin.js b/jero-web/src/views/user/third/JeroThirdLoginMixin.js index ff4f1736b..2b0fc5cd9 100644 --- a/jero-web/src/views/user/third/JeroThirdLoginMixin.js +++ b/jero-web/src/views/user/third/JeroThirdLoginMixin.js @@ -74,9 +74,9 @@ export const JeroThirdLoginMixin = { doThirdLogin(token) { if (this.thirdLoginState === false) { this.thirdLoginState = true - let param={}; - param.thirdType=this.thirdType - param.token=token + let param = {} + param.thirdType = this.thirdType + param.token = token this.ThirdLogin(param).then(res => { if (res.success) { this.loginSuccess() @@ -179,33 +179,63 @@ export const JeroThirdLoginMixin = { } }) }, - loginSuccess () { + // 判断当前设备 + isMobile() { + var userAgentInfo = navigator.userAgent + + var mobileAgents = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod'] + + var mobile_flag = false + + //根据userAgent判断是否是手机 + for (var v = 0; v < mobileAgents.length; v++) { + if (userAgentInfo.indexOf(mobileAgents[v]) > 0) { + mobile_flag = true + break + } + } + var screen_width = window.screen.width + var screen_height = window.screen.height + + //根据屏幕分辨率判断是否是手机 + if (screen_width < 500 && screen_height < 800) { + mobile_flag = true + } + return mobile_flag + }, + loginSuccess() { // update-begin- author:sunjianlei --- date:20190812 --- for: 登录成功后不解除禁用按钮,防止多次点击 // this.loginBtn = false // update-end- author:sunjianlei --- date:20190812 --- for: 登录成功后不解除禁用按钮,防止多次点击 - this.$router.push({ path: "/dashboard/analysis" }).catch(()=>{ + let fullPath = '' + if (isMobile()) { + fullPath = '/phoneSearch' + } else { + fullPath = '/dashboard/analysis' + } + this.$router.push({ path: fullPath }).catch(() => { console.log('登录跳转首页出错,这个错误从哪里来的') }) this.$notification.success({ message: '欢迎', - description: `${timeFix()},欢迎回来`, - }); + description: `${timeFix()},欢迎回来` + }) }, - cmsFailed(err){ - this.$notification[ 'error' ]({ - message: "登录失败", - description:err, - duration: 4, - }); - }, - requestFailed (err) { - this.$notification[ 'error' ]({ + cmsFailed(err) { + this.$notification['error']({ message: '登录失败', - description: ((err.response || {}).data || {}).message || err.message || "请求出现错误,请稍后再试", - duration: 4, - }); - this.loginBtn = false; + description: err, + duration: 4 + }) }, + requestFailed(err) { + this.$notification['error']({ + message: '登录失败', + description: ((err.response || {}).data || {}).message || err.message || '请求出现错误,请稍后再试', + duration: 4 + }) + this.loginBtn = false + } } } \ No newline at end of file