Merge remote-tracking branch 'origin/dev_20230526_Mobile'
# Conflicts: # jero-boot/db/蔚来标准sql/dev_2nd_period.sql
This commit is contained in:
@@ -662,3 +662,8 @@ CREATE TABLE `recent_browse` (
|
|||||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '最近浏览' ROW_FORMAT = Dynamic;
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '最近浏览' ROW_FORMAT = Dynamic;
|
||||||
-- 菜单增加 上报库详情-一般导出权限 2023-06-16 已同步生产环境
|
-- 菜单增加 上报库详情-一般导出权限 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');
|
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`;
|
||||||
+4
-3
@@ -71,9 +71,10 @@ public class TaskStatisticsServiceImpl implements ITaskStatisticsService {
|
|||||||
List<ProcessInfoEO> preHomoList = piEoList.stream().filter(piEo -> {
|
List<ProcessInfoEO> preHomoList = piEoList.stream().filter(piEo -> {
|
||||||
return StringUtils.equals(piEo.getFlowType(), FlowTypeEnum.CERTIFICATION_LC.getValue());
|
return StringUtils.equals(piEo.getFlowType(), FlowTypeEnum.CERTIFICATION_LC.getValue());
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
if (CollectionUtils.isNotEmpty(preHomoList)) {
|
preHomoCount = preHomoList.size();
|
||||||
preHomoCount = this.getPreHomoCount(pidEoList, preHomoList);
|
// if (CollectionUtils.isNotEmpty(preHomoList)) {
|
||||||
}
|
// preHomoCount = this.getPreHomoCount(pidEoList, preHomoList);
|
||||||
|
// }
|
||||||
|
|
||||||
List<ProcessInfoEO> technologyEvaluationList = piEoList.stream().filter(piEo -> {
|
List<ProcessInfoEO> technologyEvaluationList = piEoList.stream().filter(piEo -> {
|
||||||
return StringUtils.equals(piEo.getFlowType(), FlowTypeEnum.FGJSPG.getValue());
|
return StringUtils.equals(piEo.getFlowType(), FlowTypeEnum.FGJSPG.getValue());
|
||||||
|
|||||||
+7
@@ -436,6 +436,13 @@ public class ProblemKnowledgeBaseEOServiceImpl extends ServiceImpl<ProblemKnowle
|
|||||||
convertAfterMap.put("create_time",new Date());
|
convertAfterMap.put("create_time",new Date());
|
||||||
convertAfterMap.put("create_by",problemKnowledgeBaseEO.getCreateBy());
|
convertAfterMap.put("create_by",problemKnowledgeBaseEO.getCreateBy());
|
||||||
convertAfterMap.put("show_permissions",problemKnowledgeBaseEO.getShowPermissions());
|
convertAfterMap.put("show_permissions",problemKnowledgeBaseEO.getShowPermissions());
|
||||||
|
|
||||||
|
String accessoryFileName = "";
|
||||||
|
if(StringUtils.isNotEmpty(problemKnowledgeBaseEO.getAccessoryFile())){
|
||||||
|
List<OSSFile> accessoryFileList = this.iOSSFileService.getFileInfos(problemKnowledgeBaseEO.getAccessoryFile());
|
||||||
|
accessoryFileName = accessoryFileList.stream().map(OSSFile::getFileName).distinct().collect(Collectors.joining(","));
|
||||||
|
}
|
||||||
|
convertAfterMap.put("file_name",accessoryFileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+7
@@ -310,4 +310,11 @@ public interface IProjectCertificationInventoryEOService extends IService<Projec
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Map<String, Object> groupByCertificationProgress(List<ProjectCertificationInventoryEO> pciEos);
|
Map<String, Object> groupByCertificationProgress(List<ProjectCertificationInventoryEO> pciEos);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 同步待办中心明细数据-认证清单 截止日期
|
||||||
|
* @param endTime
|
||||||
|
* @param editEndTimeCertificationInventoryEOS
|
||||||
|
*/
|
||||||
|
void syncProcessInfoDetailEndTime(Date endTime, List<ProjectCertificationInventoryEO> editEndTimeCertificationInventoryEOS);
|
||||||
}
|
}
|
||||||
|
|||||||
+71
-8
@@ -213,6 +213,9 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
|
|
||||||
if(CollectionUtils.isNotEmpty(editEndTimeCertificationInventoryEOS)){
|
if(CollectionUtils.isNotEmpty(editEndTimeCertificationInventoryEOS)){
|
||||||
|
|
||||||
|
// 同步更新待办中心-流程明细截止日期
|
||||||
|
this.syncProcessInfoDetailEndTime(projectCertificationInventoryEO.getEndTime(),editEndTimeCertificationInventoryEOS);
|
||||||
|
|
||||||
ProjectLibraryBase projectLibraryBase = this.projectLibraryBaseService.selectById(editEndTimeCertificationInventoryEOS.get(0).getProjectLibraryId());
|
ProjectLibraryBase projectLibraryBase = this.projectLibraryBaseService.selectById(editEndTimeCertificationInventoryEOS.get(0).getProjectLibraryId());
|
||||||
if(ObjectUtils.isNotEmpty(projectLibraryBase)){
|
if(ObjectUtils.isNotEmpty(projectLibraryBase)){
|
||||||
List<String> userIdList = Arrays.asList(projectLibraryBase.getCertificationEngineer().split(","));
|
List<String> userIdList = Arrays.asList(projectLibraryBase.getCertificationEngineer().split(","));
|
||||||
@@ -610,28 +613,30 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
|
|
||||||
QueryWrapper<ProjectCertificationInventoryEO> certificationQueryWrap = new QueryWrapper<>();
|
QueryWrapper<ProjectCertificationInventoryEO> certificationQueryWrap = new QueryWrapper<>();
|
||||||
certificationQueryWrap.lambda().in(ProjectCertificationInventoryEO::getId,idList);
|
certificationQueryWrap.lambda().in(ProjectCertificationInventoryEO::getId,idList);
|
||||||
certificationQueryWrap.lambda().in(ProjectCertificationInventoryEO::getFlowStatus,flowStatusList);
|
// certificationQueryWrap.lambda().in(ProjectCertificationInventoryEO::getFlowStatus,flowStatusList);
|
||||||
List<ProjectCertificationInventoryEO> projectCertificationInventoryEOS = this.list(certificationQueryWrap);
|
List<ProjectCertificationInventoryEO> projectCertificationInventoryEOS = this.list(certificationQueryWrap);
|
||||||
|
|
||||||
if(CollectionUtils.isNotEmpty(projectCertificationInventoryEOS)){
|
if(CollectionUtils.isNotEmpty(projectCertificationInventoryEOS)){
|
||||||
projectCertificationInventoryEOS = projectCertificationInventoryEOS.stream().filter(certificationInventory -> {
|
List<ProjectCertificationInventoryEO> pciEoListTemp = projectCertificationInventoryEOS.stream().filter(certificationInventory -> {
|
||||||
boolean flag = false;
|
boolean flag = false;
|
||||||
if(projectCertificationInventoryEO.getEndTime() != null && certificationInventory.getEndTime() != null){
|
if(StringUtils.equals(certificationInventory.getFlowStatus(),CertificationInventoryFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue())){
|
||||||
if(!projectCertificationInventoryEO.getEndTime().equals(certificationInventory.getEndTime())){
|
if(projectCertificationInventoryEO.getEndTime() != null && certificationInventory.getEndTime() != null){
|
||||||
flag = true;
|
if(!projectCertificationInventoryEO.getEndTime().equals(certificationInventory.getEndTime())){
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return flag;
|
return flag;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
|
|
||||||
if (CollectionUtils.isNotEmpty(projectCertificationInventoryEOS)) {
|
if (CollectionUtils.isNotEmpty(pciEoListTemp)) {
|
||||||
ProjectLibraryBase projectLibraryBase = this.projectLibraryBaseService.selectById(projectCertificationInventoryEOS.get(0).getProjectLibraryId());
|
ProjectLibraryBase projectLibraryBase = this.projectLibraryBaseService.selectById(pciEoListTemp.get(0).getProjectLibraryId());
|
||||||
if(ObjectUtils.isNotEmpty(projectLibraryBase)){
|
if(ObjectUtils.isNotEmpty(projectLibraryBase)){
|
||||||
List<String> userIdList = Arrays.asList(projectLibraryBase.getCertificationEngineer().split(","));
|
List<String> userIdList = Arrays.asList(projectLibraryBase.getCertificationEngineer().split(","));
|
||||||
List<SysUser> userInfoList = this.sysUserService.querySysUserListByIdList(userIdList);
|
List<SysUser> userInfoList = this.sysUserService.querySysUserListByIdList(userIdList);
|
||||||
|
|
||||||
this.sendMessageByTemplateId(
|
this.sendMessageByTemplateId(
|
||||||
projectCertificationInventoryEOS,
|
pciEoListTemp,
|
||||||
TemplateInfoEnum2.CERTIFICATION_MESSAGE14.getValue(),
|
TemplateInfoEnum2.CERTIFICATION_MESSAGE14.getValue(),
|
||||||
userIdList,
|
userIdList,
|
||||||
userInfoList,
|
userInfoList,
|
||||||
@@ -639,6 +644,8 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.syncProcessInfoDetailEndTime(projectCertificationInventoryEO.getEndTime(),projectCertificationInventoryEOS);
|
||||||
}
|
}
|
||||||
if(CollectionUtils.isNotEmpty(updateList)){
|
if(CollectionUtils.isNotEmpty(updateList)){
|
||||||
this.updateBatchById(updateList);
|
this.updateBatchById(updateList);
|
||||||
@@ -5925,6 +5932,62 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void syncProcessInfoDetailEndTime(Date newEndTime, List<ProjectCertificationInventoryEO> 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<String> pciIdList = pciEoList.stream().map(ProjectCertificationInventoryEO::getId).distinct().collect(Collectors.toList());
|
||||||
|
|
||||||
|
QueryWrapper<ProcessInfoDetailEO> pidQueryWrap = new QueryWrapper<>();
|
||||||
|
pidQueryWrap.lambda().eq(ProcessInfoDetailEO::getFlowType,FlowTypeEnum.CERTIFICATION_LC.getValue());
|
||||||
|
pidQueryWrap.lambda().in(ProcessInfoDetailEO::getProjectLawsInventoryId,pciIdList);
|
||||||
|
List<ProcessInfoDetailEO> pidEoList = this.processInfoDetailEOService.list(pidQueryWrap);
|
||||||
|
|
||||||
|
if(CollectionUtils.isNotEmpty(pidEoList)){
|
||||||
|
List<ProcessInfoDetailEO> 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<ProcessInfoDetailEO> 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<ProcessInfoDetailEO> 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
|
@Override
|
||||||
public Map<String, List<Map<String, Object>>> queryDutyPersonByProjectId(Map<String, Object> params) {
|
public Map<String, List<Map<String, Object>>> queryDutyPersonByProjectId(Map<String, Object> params) {
|
||||||
Map<String, List<Map<String, Object>>> result = new HashMap<>();
|
Map<String, List<Map<String, Object>>> result = new HashMap<>();
|
||||||
|
|||||||
+1
@@ -1252,6 +1252,7 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
|||||||
List<String> fieldList = new ArrayList<>();
|
List<String> fieldList = new ArrayList<>();
|
||||||
fieldList.add("title");//权重5
|
fieldList.add("title");//权重5
|
||||||
fieldList.add("content");//权重4
|
fieldList.add("content");//权重4
|
||||||
|
fieldList.add("file_name");//权重3
|
||||||
//fieldList.add("module_type");
|
//fieldList.add("module_type");
|
||||||
//fieldList.add("id");
|
//fieldList.add("id");
|
||||||
//fieldList.add("flag");
|
//fieldList.add("flag");
|
||||||
|
|||||||
+32
@@ -537,6 +537,38 @@
|
|||||||
<foreach collection="params.qdqrFlowTypeValue" index="index" item="item" open="(" separator="," close=")">
|
<foreach collection="params.qdqrFlowTypeValue" index="index" item="item" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
<if test="params.mobileProcessing == 0">
|
||||||
|
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} ) )
|
||||||
|
</if>
|
||||||
)temp
|
)temp
|
||||||
<include refid="BaseQuerySql"/>
|
<include refid="BaseQuerySql"/>
|
||||||
order by
|
order by
|
||||||
|
|||||||
Vendored
+64
-8
@@ -19,12 +19,14 @@
|
|||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chromeframe {
|
.chromeframe {
|
||||||
margin: 0.2em 0;
|
margin: 0.2em 0;
|
||||||
background: #ccc;
|
background: #ccc;
|
||||||
color: #000;
|
color: #000;
|
||||||
padding: 0.2em 0;
|
padding: 0.2em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loader-wrapper {
|
#loader-wrapper {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -33,6 +35,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: 999999;
|
z-index: 999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loader {
|
#loader {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -57,6 +60,7 @@
|
|||||||
/* Chrome, Firefox 16+, IE 10+, Opera */
|
/* Chrome, Firefox 16+, IE 10+, Opera */
|
||||||
z-index: 1001;
|
z-index: 1001;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loader:before {
|
#loader:before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -79,6 +83,7 @@
|
|||||||
animation: spin 3s linear infinite;
|
animation: spin 3s linear infinite;
|
||||||
/* Chrome, Firefox 16+, IE 10+, Opera */
|
/* Chrome, Firefox 16+, IE 10+, Opera */
|
||||||
}
|
}
|
||||||
|
|
||||||
#loader:after {
|
#loader:after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -101,6 +106,7 @@
|
|||||||
animation: spin 1.5s linear infinite;
|
animation: spin 1.5s linear infinite;
|
||||||
/* Chrome, Firefox 16+, IE 10+, Opera */
|
/* Chrome, Firefox 16+, IE 10+, Opera */
|
||||||
}
|
}
|
||||||
|
|
||||||
@-webkit-keyframes spin {
|
@-webkit-keyframes spin {
|
||||||
0% {
|
0% {
|
||||||
-webkit-transform: rotate(0deg);
|
-webkit-transform: rotate(0deg);
|
||||||
@@ -119,6 +125,7 @@
|
|||||||
/* Firefox 16+, IE 10+, Opera */
|
/* Firefox 16+, IE 10+, Opera */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes spin {
|
@keyframes spin {
|
||||||
0% {
|
0% {
|
||||||
-webkit-transform: rotate(0deg);
|
-webkit-transform: rotate(0deg);
|
||||||
@@ -137,6 +144,7 @@
|
|||||||
/* Firefox 16+, IE 10+, Opera */
|
/* Firefox 16+, IE 10+, Opera */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#loader-wrapper .loader-section {
|
#loader-wrapper .loader-section {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -152,12 +160,15 @@
|
|||||||
transform: translateX(0);
|
transform: translateX(0);
|
||||||
/* Firefox 16+, IE 10+, Opera */
|
/* Firefox 16+, IE 10+, Opera */
|
||||||
}
|
}
|
||||||
|
|
||||||
#loader-wrapper .loader-section.section-left {
|
#loader-wrapper .loader-section.section-left {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loader-wrapper .loader-section.section-right {
|
#loader-wrapper .loader-section.section-right {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Loaded */
|
/* Loaded */
|
||||||
.loaded #loader-wrapper .loader-section.section-left {
|
.loaded #loader-wrapper .loader-section.section-left {
|
||||||
-webkit-transform: translateX(-100%);
|
-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);
|
-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);
|
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||||
}
|
}
|
||||||
|
|
||||||
.loaded #loader-wrapper .loader-section.section-right {
|
.loaded #loader-wrapper .loader-section.section-right {
|
||||||
-webkit-transform: translateX(100%);
|
-webkit-transform: translateX(100%);
|
||||||
/* Chrome, Opera 15+, Safari 3.1+ */
|
/* 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);
|
-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);
|
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||||
}
|
}
|
||||||
|
|
||||||
.loaded #loader {
|
.loaded #loader {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
-webkit-transition: all 0.3s ease-out;
|
-webkit-transition: all 0.3s ease-out;
|
||||||
transition: all 0.3s ease-out;
|
transition: all 0.3s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loaded #loader-wrapper {
|
.loaded #loader-wrapper {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
-webkit-transform: translateY(-100%);
|
-webkit-transform: translateY(-100%);
|
||||||
@@ -195,13 +209,16 @@
|
|||||||
-webkit-transition: all 0.3s 1s ease-out;
|
-webkit-transition: all 0.3s 1s ease-out;
|
||||||
transition: all 0.3s 1s ease-out;
|
transition: all 0.3s 1s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* JavaScript Turned Off */
|
/* JavaScript Turned Off */
|
||||||
.no-js #loader-wrapper {
|
.no-js #loader-wrapper {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-js h1 {
|
.no-js h1 {
|
||||||
color: #222222;
|
color: #222222;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loader-wrapper .load_title {
|
#loader-wrapper .load_title {
|
||||||
font-family: 'Open Sans';
|
font-family: 'Open Sans';
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
@@ -214,6 +231,7 @@
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loader-wrapper .load_title span {
|
#loader-wrapper .load_title span {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
@@ -221,28 +239,66 @@
|
|||||||
color: #FFF;
|
color: #FFF;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 滚动条优化 start */
|
/* 滚动条优化 start */
|
||||||
::-webkit-scrollbar{
|
::-webkit-scrollbar {
|
||||||
width:8px;
|
width: 8px;
|
||||||
height:8px;
|
height: 8px;
|
||||||
}
|
}
|
||||||
::-webkit-scrollbar-track{
|
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
background: #f6f6f6;
|
background: #f6f6f6;
|
||||||
border-radius:2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
::-webkit-scrollbar-thumb{
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
background: #cdcdcd;
|
background: #cdcdcd;
|
||||||
border-radius:2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
::-webkit-scrollbar-thumb:hover{
|
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
background: #747474;
|
background: #747474;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-corner {
|
::-webkit-scrollbar-corner {
|
||||||
background: #f6f6f6;
|
background: #f6f6f6;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 滚动条优化 end */
|
/* 滚动条优化 end */
|
||||||
</style>
|
</style>
|
||||||
<!-- 全局配置 -->
|
<!-- 全局配置 -->
|
||||||
|
<script>
|
||||||
|
// 判断当前设备
|
||||||
|
function 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
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isMobile()) {
|
||||||
|
if (location.pathname == '/dashboard/analysis' || location.pathname == '/') {
|
||||||
|
window.location.href = 'http://10.10.10.46:8102/phoneSearch'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -211,7 +211,8 @@
|
|||||||
height: 32px !important;
|
height: 32px !important;
|
||||||
line-height: 32px !important;
|
line-height: 32px !important;
|
||||||
}
|
}
|
||||||
.page .ant-select-selection__rendered{
|
|
||||||
|
.page .ant-select-selection__rendered {
|
||||||
height: 32px !important;
|
height: 32px !important;
|
||||||
line-height: 32px !important;
|
line-height: 32px !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
router.addRoutes(store.getters.addRouters)
|
router.addRoutes(store.getters.addRouters)
|
||||||
let redirect = decodeURIComponent(from.query.redirect || to.path)
|
let redirect = decodeURIComponent(from.query.redirect || to.path)
|
||||||
if (mobile) {
|
if (mobile) {
|
||||||
if (redirect == '/'){
|
if (redirect == '/' || redirect == '/dashboard/analysis'){
|
||||||
redirect = '/phoneSearch'
|
redirect = '/phoneSearch'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
loading: false,
|
loading: false,
|
||||||
finished: false,
|
finished: false,
|
||||||
isDisplay:false,
|
isDisplay: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -65,7 +65,10 @@
|
|||||||
path: this.$route.query.goRouter,
|
path: this.$route.query.goRouter,
|
||||||
query: {
|
query: {
|
||||||
searchValue: this.$route.query.searchValue,
|
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 {
|
} else {
|
||||||
@@ -77,9 +80,9 @@
|
|||||||
path: '/phonePreHomoMangement',
|
path: '/phonePreHomoMangement',
|
||||||
query: {
|
query: {
|
||||||
taskDefinitionKey: this.$route.query.taskDefinitionKey,
|
taskDefinitionKey: this.$route.query.taskDefinitionKey,
|
||||||
projectName:this.$route.query.projectName,
|
projectName: this.$route.query.projectName,
|
||||||
id: item.id,
|
id: item.id,
|
||||||
isDisplay:this.isDisplay
|
isDisplay: this.isDisplay
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -97,9 +97,7 @@
|
|||||||
<van-form @submit="onSubmit" ref="form">
|
<van-form @submit="onSubmit" ref="form">
|
||||||
<div class="resultofhandlingClass"
|
<div class="resultofhandlingClass"
|
||||||
v-if="$route.query.taskDefinitionKey == 'Task Review' ||
|
v-if="$route.query.taskDefinitionKey == 'Task Review' ||
|
||||||
$route.query.taskDefinitionKey == 'Task responsibility confirmation' ||
|
$route.query.taskDefinitionKey == 'Task responsibility confirmation'"
|
||||||
($route.query.taskDefinitionKey == 'Task handling' && (queryForm.valueType == 'file' ||
|
|
||||||
queryForm.valueType == 'text' || queryForm.valueType == 'select'))"
|
|
||||||
style="margin-bottom: 0.1rem">
|
style="margin-bottom: 0.1rem">
|
||||||
<span>{{$t('resultofhandling')}}</span>
|
<span>{{$t('resultofhandling')}}</span>
|
||||||
<span class="requiredClass"
|
<span class="requiredClass"
|
||||||
@@ -129,6 +127,7 @@
|
|||||||
</van-radio-group>
|
</van-radio-group>
|
||||||
</template>
|
</template>
|
||||||
</van-field>
|
</van-field>
|
||||||
|
|
||||||
<van-field
|
<van-field
|
||||||
v-if="form.disposeResult == 'rzgcssc_tg'"
|
v-if="form.disposeResult == 'rzgcssc_tg'"
|
||||||
v-model.trim="form.reportNumber"
|
v-model.trim="form.reportNumber"
|
||||||
@@ -140,6 +139,7 @@
|
|||||||
maxlength="200"
|
maxlength="200"
|
||||||
:placeholder="$t('pleaseEnter')+$t('reportNo')"
|
:placeholder="$t('pleaseEnter')+$t('reportNo')"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<van-field
|
<van-field
|
||||||
v-if="form.disposeResult == 'rzgcssc_tg'"
|
v-if="form.disposeResult == 'rzgcssc_tg'"
|
||||||
v-model.trim="form.productModel"
|
v-model.trim="form.productModel"
|
||||||
@@ -151,6 +151,7 @@
|
|||||||
maxlength="200"
|
maxlength="200"
|
||||||
:placeholder="$t('pleaseEnter')+$t('productModel')"
|
:placeholder="$t('pleaseEnter')+$t('productModel')"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<van-field
|
<van-field
|
||||||
v-if="form.disposeResult == 'rzgcssc_tg'"
|
v-if="form.disposeResult == 'rzgcssc_tg'"
|
||||||
v-model.trim="form.productionEnterpriseName"
|
v-model.trim="form.productionEnterpriseName"
|
||||||
@@ -187,7 +188,8 @@
|
|||||||
|
|
||||||
<div class="resultofhandlingClass">
|
<div class="resultofhandlingClass">
|
||||||
<span>{{$t('DeliverablesResult')}}</span>
|
<span>{{$t('DeliverablesResult')}}</span>
|
||||||
<span class="requiredClass">*</span>
|
<span class="requiredClass" v-if="queryForm.valueType == 'file' ||
|
||||||
|
queryForm.valueType == 'select' || queryForm.valueType == 'text'">*</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<van-field name="uploader" class="uploader"
|
<van-field name="uploader" class="uploader"
|
||||||
@@ -317,6 +319,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getDeliveryResult(item) {
|
getDeliveryResult(item) {
|
||||||
getAction('sys/common/getFileInfos', { id: item }).then((res) => {
|
getAction('sys/common/getFileInfos', { id: item }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
@@ -333,6 +336,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
disposeResultChange(value) {
|
disposeResultChange(value) {
|
||||||
if (value == 'rzgcssc_tg') {
|
if (value == 'rzgcssc_tg') {
|
||||||
this.form.reasonForReturn = ''
|
this.form.reasonForReturn = ''
|
||||||
@@ -349,6 +353,7 @@
|
|||||||
this.form = { ...this.form }
|
this.form = { ...this.form }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
this.$refs.form.validate().then(() => {
|
this.$refs.form.validate().then(() => {
|
||||||
this.textLoading = this.$t('Submitting')
|
this.textLoading = this.$t('Submitting')
|
||||||
@@ -419,7 +424,15 @@
|
|||||||
//保存
|
//保存
|
||||||
preservationClick() {
|
preservationClick() {
|
||||||
let content = []
|
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) => {
|
postAction(this.url.saveBatch, { 'dataList': content }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.ApprovedClick()
|
this.ApprovedClick()
|
||||||
|
|||||||
@@ -270,7 +270,10 @@
|
|||||||
path: this.$route.query.goRouter,
|
path: this.$route.query.goRouter,
|
||||||
query: {
|
query: {
|
||||||
searchValue: this.$route.query.searchValue,
|
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 {
|
} else {
|
||||||
@@ -455,7 +458,20 @@
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
this.show = false
|
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 {
|
} else {
|
||||||
this.show = false
|
this.show = false
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -198,7 +198,7 @@
|
|||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/phoneToDoCenter',
|
path: '/phoneToDoCenter',
|
||||||
query: {
|
query: {
|
||||||
flowType: num
|
searchFlowType: num
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -278,17 +278,21 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
document.title = 'NIO GRP'
|
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 = []
|
||||||
this.form.flowType.push(this.$route.query.flowType)
|
this.form.flowType = this.form.flowType.concat(flowType)
|
||||||
this.form = { ...this.form }
|
|
||||||
}
|
}
|
||||||
if (this.$route.query.searchValue){
|
if (this.$route.query.searchValue) {
|
||||||
this.phoneQueryValue = this.$route.query.searchValue
|
this.phoneQueryValue = this.$route.query.searchValue
|
||||||
}
|
}
|
||||||
if (this.$route.query.activeTab) {
|
if (this.$route.query.activeTab) {
|
||||||
this.activeTab = 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.toDoProcessPageNo = 1
|
||||||
// this.getToDoProcess()
|
// this.getToDoProcess()
|
||||||
},
|
},
|
||||||
@@ -476,8 +480,11 @@
|
|||||||
DueDate: 'designDueDate',
|
DueDate: 'designDueDate',
|
||||||
remarks: 'designRemark',
|
remarks: 'designRemark',
|
||||||
goRouter: '/phoneToDoCenter',
|
goRouter: '/phoneToDoCenter',
|
||||||
searchValue:this.phoneQueryValue,
|
searchValue: this.phoneQueryValue,
|
||||||
activeTab:this.activeTab
|
activeTab: this.activeTab,
|
||||||
|
checked: this.form.checked,
|
||||||
|
selectModel: this.form.selectModel,
|
||||||
|
searchFlowType: this.form.flowType.join(','),
|
||||||
}
|
}
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/phoneProcessManagement',
|
path: '/phoneProcessManagement',
|
||||||
@@ -499,8 +506,11 @@
|
|||||||
DueDate: 'verifyDueDate',
|
DueDate: 'verifyDueDate',
|
||||||
remarks: 'verifyRemark',
|
remarks: 'verifyRemark',
|
||||||
goRouter: '/phoneToDoCenter',
|
goRouter: '/phoneToDoCenter',
|
||||||
searchValue:this.phoneQueryValue,
|
searchValue: this.phoneQueryValue,
|
||||||
activeTab:this.activeTab
|
activeTab: this.activeTab,
|
||||||
|
searchFlowType: this.form.flowType.join(','),
|
||||||
|
checked: this.form.checked,
|
||||||
|
selectModel: this.form.selectModel
|
||||||
}
|
}
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/phoneProcessManagement',
|
path: '/phoneProcessManagement',
|
||||||
@@ -518,8 +528,11 @@
|
|||||||
isDisplay: isTrue,
|
isDisplay: isTrue,
|
||||||
projectName: row.projectName,
|
projectName: row.projectName,
|
||||||
goRouter: '/phoneToDoCenter',
|
goRouter: '/phoneToDoCenter',
|
||||||
searchValue:this.phoneQueryValue,
|
searchValue: this.phoneQueryValue,
|
||||||
activeTab:this.activeTab
|
activeTab: this.activeTab,
|
||||||
|
searchFlowType: this.form.flowType.join(','),
|
||||||
|
checked: this.form.checked,
|
||||||
|
selectModel: this.form.selectModel
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -597,6 +610,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getProcessDone() {
|
getProcessDone() {
|
||||||
let form = JSON.parse(JSON.stringify(this.form))
|
let form = JSON.parse(JSON.stringify(this.form))
|
||||||
if (form.flowType && form.flowType instanceof Array) {
|
if (form.flowType && form.flowType instanceof Array) {
|
||||||
@@ -623,6 +637,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getSentProcess() {
|
getSentProcess() {
|
||||||
let form = JSON.parse(JSON.stringify(this.form))
|
let form = JSON.parse(JSON.stringify(this.form))
|
||||||
if (form.flowType && form.flowType instanceof Array) {
|
if (form.flowType && form.flowType instanceof Array) {
|
||||||
@@ -649,6 +664,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
processClick(type) {
|
processClick(type) {
|
||||||
if (!this.form.flowType) {
|
if (!this.form.flowType) {
|
||||||
this.form.flowType = []
|
this.form.flowType = []
|
||||||
@@ -670,6 +686,7 @@
|
|||||||
}
|
}
|
||||||
this.form = { ...this.form }
|
this.form = { ...this.form }
|
||||||
},
|
},
|
||||||
|
|
||||||
checkboxGroupColor(type) {
|
checkboxGroupColor(type) {
|
||||||
if (this.form.flowType && this.form.flowType.length > 0) {
|
if (this.form.flowType && this.form.flowType.length > 0) {
|
||||||
for (let i = 0; i < this.form.flowType.length; i++) {
|
for (let i = 0; i < this.form.flowType.length; i++) {
|
||||||
|
|||||||
@@ -74,9 +74,9 @@ export const JeroThirdLoginMixin = {
|
|||||||
doThirdLogin(token) {
|
doThirdLogin(token) {
|
||||||
if (this.thirdLoginState === false) {
|
if (this.thirdLoginState === false) {
|
||||||
this.thirdLoginState = true
|
this.thirdLoginState = true
|
||||||
let param={};
|
let param = {}
|
||||||
param.thirdType=this.thirdType
|
param.thirdType = this.thirdType
|
||||||
param.token=token
|
param.token = token
|
||||||
this.ThirdLogin(param).then(res => {
|
this.ThirdLogin(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.loginSuccess()
|
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: 登录成功后不解除禁用按钮,防止多次点击
|
// update-begin- author:sunjianlei --- date:20190812 --- for: 登录成功后不解除禁用按钮,防止多次点击
|
||||||
// this.loginBtn = false
|
// this.loginBtn = false
|
||||||
// update-end- author:sunjianlei --- date:20190812 --- for: 登录成功后不解除禁用按钮,防止多次点击
|
// 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('登录跳转首页出错,这个错误从哪里来的')
|
console.log('登录跳转首页出错,这个错误从哪里来的')
|
||||||
})
|
})
|
||||||
this.$notification.success({
|
this.$notification.success({
|
||||||
message: '欢迎',
|
message: '欢迎',
|
||||||
description: `${timeFix()},欢迎回来`,
|
description: `${timeFix()},欢迎回来`
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
cmsFailed(err){
|
cmsFailed(err) {
|
||||||
this.$notification[ 'error' ]({
|
this.$notification['error']({
|
||||||
message: "登录失败",
|
|
||||||
description:err,
|
|
||||||
duration: 4,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
requestFailed (err) {
|
|
||||||
this.$notification[ 'error' ]({
|
|
||||||
message: '登录失败',
|
message: '登录失败',
|
||||||
description: ((err.response || {}).data || {}).message || err.message || "请求出现错误,请稍后再试",
|
description: err,
|
||||||
duration: 4,
|
duration: 4
|
||||||
});
|
})
|
||||||
this.loginBtn = false;
|
|
||||||
},
|
},
|
||||||
|
requestFailed(err) {
|
||||||
|
this.$notification['error']({
|
||||||
|
message: '登录失败',
|
||||||
|
description: ((err.response || {}).data || {}).message || err.message || '请求出现错误,请稍后再试',
|
||||||
|
duration: 4
|
||||||
|
})
|
||||||
|
this.loginBtn = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user