diff --git a/jero-boot/db/蔚来标准sql/dev_third_record.sql b/jero-boot/db/蔚来标准sql/dev_third_record.sql
index 481865b1d..a5292221a 100644
--- a/jero-boot/db/蔚来标准sql/dev_third_record.sql
+++ b/jero-boot/db/蔚来标准sql/dev_third_record.sql
@@ -973,4 +973,29 @@ ALTER TABLE `laws_weilai`.`laws_technology_evaluation_item_result`
ADD COLUMN `feedback_time` datetime NULL COMMENT '反馈时间' AFTER `laws_technology_evaluation_id`;
-- 表字段 英文修改 2022-08-31
-UPDATE `laws_weilai`.`onl_cgform_field` SET `db_field_en_name` = 'Sort Number' WHERE `id` = '1529373706885799937';
\ No newline at end of file
+UPDATE `laws_weilai`.`onl_cgform_field` SET `db_field_en_name` = 'Sort Number' WHERE `id` = '1529373706885799937';
+
+-- 增加角色,countryCard管理员。 2022-08-31
+INSERT INTO `laws_weilai`.`sys_role` (`id`, `role_name`, `role_code`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `parent_code`, `role_order`) VALUES ('1564916346120916993', 'countryCard管理员', 'countryCardManage', 'countryCard最大权限', 'admin', '2022-08-31 18:01:46', NULL, NULL, NULL, NULL);
+
+-- 清单确认,拒绝原因表 2022-09-01
+CREATE TABLE `laws_weilai`.`project_laws_inventory_reject_cause` (
+ `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL ,
+ `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人' ,
+ `create_time` datetime NULL DEFAULT NULL COMMENT '创建日期' ,
+ `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人' ,
+ `update_time` datetime NULL DEFAULT NULL COMMENT '更新日期' ,
+ `sys_org_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属部门' ,
+ `reject_user_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '拒绝人id' ,
+ `reject_time` datetime NULL DEFAULT NULL COMMENT '拒绝时间' ,
+ `reject_cause` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '拒绝原因' ,
+ `project_laws_inventory_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '法规清单id' ,
+ `reject_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '拒绝类型' ,
+ PRIMARY KEY (`id`)
+)
+ENGINE=InnoDB
+DEFAULT CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci
+COMMENT='清单确认-拒绝原因表'
+ROW_FORMAT=DYNAMIC
+;
+
diff --git a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/constant/enums/MessageTypeEnum.java b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/constant/enums/MessageTypeEnum.java
index ec408861a..3181758a0 100644
--- a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/constant/enums/MessageTypeEnum.java
+++ b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/constant/enums/MessageTypeEnum.java
@@ -25,6 +25,8 @@ public enum MessageTypeEnum {
LIST_CONFIRMATION("List Confirmation", "17"), // 清单确认
TASK_CONFIRMATION("Task Confirmation", "18"), // 任务确认
COMPLIANCE_CONFIRMATION("Compliance Confirmation", "19"), // 符合性确认
+ COLLECTION_OF_LEGISLATIVE_COMMENTS("Collection of Legislative Comments", "20"), // 法规意见收集
+ REGULATORY_AND_TECHNICAL_ASSESSMENT("Regulatory and technical assessment", "21"), // 法规技术评估
;
String name;
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/docTranslation/entity/DocTranslationEO.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/docTranslation/entity/DocTranslationEO.java
index dd63d984e..41a793654 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/docTranslation/entity/DocTranslationEO.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/docTranslation/entity/DocTranslationEO.java
@@ -105,9 +105,9 @@ public class DocTranslationEO implements Serializable {
private java.lang.String translationResult;
/**转换时间*/
- @Excel(name = "转换时间", width = 15, format = "yyyy-MM-dd")
- @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
- @DateTimeFormat(pattern="yyyy-MM-dd")
+ @Excel(name = "转换时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "转换时间")
private java.util.Date translationTime;
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ExtRepoData.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ExtRepoData.java
index d83dc65a2..bb44aab7e 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ExtRepoData.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/extRepo/entity/ExtRepoData.java
@@ -40,7 +40,7 @@ public class ExtRepoData implements Serializable {
private java.lang.String createBy;
/**创建日期*/
- @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private java.util.Date createTime;
@@ -50,7 +50,7 @@ public class ExtRepoData implements Serializable {
private java.lang.String updateBy;
/**更新日期*/
- @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期")
private java.util.Date updateTime;
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/job/LawsOpinionGatherRemindJob.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/job/LawsOpinionGatherRemindJob.java
new file mode 100644
index 000000000..9bbfc9b96
--- /dev/null
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/job/LawsOpinionGatherRemindJob.java
@@ -0,0 +1,70 @@
+package com.jero.modules.lawsOpinionGather.job;
+
+import com.alibaba.fastjson.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.jero.modules.lawsOpinionGather.entity.LawsOpinionGatherEO;
+import com.jero.modules.lawsOpinionGather.enums.GatherResultEnum;
+import com.jero.modules.lawsOpinionGather.service.ILawsOpinionGatherEOService;
+import com.jero.modules.project.enums.MsgTypeEnum;
+import com.jero.modules.wkflow.feginClient.WorkFlowFeignClient;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.quartz.Job;
+import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
+import org.springframework.beans.factory.annotation.Autowired;
+
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+/**
+ * 法规意见收集表 - 定时器
+ * 作用:数据还有一天过期时,给代办人发消息
+ */
+@Slf4j
+public class LawsOpinionGatherRemindJob implements Job {
+ @Autowired
+ private ILawsOpinionGatherEOService lawsOpinionGatherEOService;
+ @Autowired
+ private WorkFlowFeignClient workFlowFeignClient;
+
+ @Override
+ public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
+ //查询出收集结果为未完成的数据。
+ QueryWrapper queryWrapper = new QueryWrapper<>();
+ queryWrapper.lambda().eq(LawsOpinionGatherEO::getGatherResult, GatherResultEnum.UNDERWAY.getValue());
+ List lawsOpinionGatherEOList = this.lawsOpinionGatherEOService.list(queryWrapper);
+ if(CollectionUtils.isNotEmpty(lawsOpinionGatherEOList)){
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+
+ Date currentDate = new Date();
+
+ //获取后一天的时间
+ Calendar calendar=new GregorianCalendar();
+ calendar.setTime(new Date());
+ calendar.add(Calendar.DATE,1);
+ Date nextDay = calendar.getTime();
+
+ String nextDayStr = sdf.format(nextDay);
+
+ lawsOpinionGatherEOList.forEach(lawsOpinionGatherEO -> {
+ if(StringUtils.equals(nextDayStr,sdf.format(lawsOpinionGatherEO.getEndTime()))){
+ List userIdList = this.workFlowFeignClient.getLawsOpinionGatherFlowAssigneeList(lawsOpinionGatherEO.getId());
+ if(CollectionUtils.isNotEmpty(userIdList)){
+ JSONObject sendJsonObject = new JSONObject();
+ sendJsonObject.put("msgType", MsgTypeEnum.LAWS_OPOMOPM_GATHER_ENALUATOR_EXPIRE_REMIND_MSG.getValue());
+ sendJsonObject.put("lawsOpinionGatherId",lawsOpinionGatherEO.getId());
+ sendJsonObject.put("serialNumber",lawsOpinionGatherEO.getSerialNumber());
+ sendJsonObject.put("userIdList",userIdList);
+ this.lawsOpinionGatherEOService.workFlowSendMsg(sendJsonObject);
+ }
+ }
+ });
+
+ }
+ }
+}
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/service/ILawsOpinionGatherEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/service/ILawsOpinionGatherEOService.java
index d3a492c06..710e61bf2 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/service/ILawsOpinionGatherEOService.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/service/ILawsOpinionGatherEOService.java
@@ -73,4 +73,6 @@ public interface ILawsOpinionGatherEOService extends IService lawsOpinionGatherEOList,String cut);
+
+ void workFlowSendMsg(JSONObject jsonObject);
}
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/service/impl/LawsOpinionGatherEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/service/impl/LawsOpinionGatherEOServiceImpl.java
index d966397cb..ef780296c 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/service/impl/LawsOpinionGatherEOServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/service/impl/LawsOpinionGatherEOServiceImpl.java
@@ -1,25 +1,39 @@
package com.jero.modules.lawsOpinionGather.service.impl;
import com.alibaba.fastjson.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jero.common.api.vo.Result;
import com.jero.common.constant.enums.CutEnum;
+import com.jero.common.constant.enums.MessageTypeEnum;
import com.jero.common.exception.JeroBootException;
+import com.jero.modules.feishu.vo.FeishuMsgVo;
import com.jero.modules.lawsOpinionGather.entity.LawsOpinionGatherEO;
import com.jero.modules.lawsOpinionGather.enums.GatherResultEnum;
import com.jero.modules.lawsOpinionGather.mapper.LawsOpinionGatherEOMapper;
import com.jero.modules.lawsOpinionGather.service.ILawsOpinionGatherEOService;
import com.jero.modules.oss.entity.OSSFile;
import com.jero.modules.oss.service.IOSSFileService;
+import com.jero.modules.project.entity.ProjectLawsInventoryEO;
+import com.jero.modules.project.entity.ProjectLibraryBase;
+import com.jero.modules.project.entity.ProjectNameInfoEO;
+import com.jero.modules.project.entity.ProjectYearNameInfoEO;
+import com.jero.modules.project.enums.JumpLinkEnum;
+import com.jero.modules.project.enums.MsgTypeEnum;
import com.jero.modules.project.enums.OperatorTypeEnum;
import com.jero.modules.project.enums.RequestSourceEnum;
+import com.jero.modules.project.util.SendMessageUtils;
import com.jero.modules.system.entity.SysCategory;
+import com.jero.modules.system.entity.SysUser;
+import com.jero.modules.system.service.ISysUserService;
import com.jero.modules.system.service.impl.SysCategoryServiceImpl;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
-import java.util.List;
-import java.util.Date;
+
+import java.text.SimpleDateFormat;
+import java.util.*;
import java.util.stream.Collectors;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@@ -40,6 +54,11 @@ public class LawsOpinionGatherEOServiceImpl extends ServiceImpl().success("调用成功!");
}
@@ -192,4 +216,63 @@ public class LawsOpinionGatherEOServiceImpl extends ServiceImpl userIdList = new ArrayList<>();
+
+ String msgContentEN = "";
+ String msgTitle = "";
+ String initiator = "";
+ if(StringUtils.equals(msgType,MsgTypeEnum.LAWS_OPOMOPM_GATHER_START_MSG.getValue())){
+ userIdList.addAll(Arrays.asList(jsonObject.getString("evaluatorIds").split(",")));
+ String endTime = jsonObject.getString("endTime"); //截止日期
+ msgContentEN = "You recieved the Collection of Legislative Comments of "+serialNumber+" . The due date is "+endTime+". Please check and address it in a timely manner.";
+ msgTitle = "You have a Collection of Legislative Comments task to complete";
+
+ String currentUserId = jsonObject.getString("currentUserId"); //当前操作用户id
+ SysUser currentUser = sysUserService.getBaseMapper().selectOne(new QueryWrapper().lambda().eq(SysUser::getId, currentUserId));
+
+ initiator = currentUser.getUsername();
+ }else if(StringUtils.equals(msgType,MsgTypeEnum.LAWS_OPOMOPM_GATHER_ENALUATOR_SUBMIT_MSG.getValue())){
+ String currentUserId = jsonObject.getString("currentUserId"); //当前操作用户id
+ SysUser currentUser = sysUserService.getBaseMapper().selectOne(new QueryWrapper().lambda().eq(SysUser::getId, currentUserId));
+
+ userIdList.add(jsonObject.getString("initiatorUserId"));
+ msgContentEN = currentUser.getUsername() + " has submitted the collection process of Collection of Legislative Comments of "+serialNumber+", please check it in time.";
+ msgTitle = "You have a Collection of Legislative Comments task completed";
+
+ initiator = MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName();
+ }else if(StringUtils.equals(msgType, MsgTypeEnum.LAWS_OPOMOPM_GATHER_ENALUATOR_EXPIRE_REMIND_MSG.getValue())){
+ userIdList = (List) jsonObject.get("userIdList");
+ msgContentEN = "The the Collection of Legislative Comments of "+serialNumber+" will expire tomorrow . Please check and address it in time.";
+ msgTitle = "You have a Collection of Legislative Comments task to complete";
+
+ initiator = MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName();
+ }
+
+ //飞书跳转链接
+ String hrefFeishu = backUrl + JumpLinkEnum.TASK_AFFIRM_LINK.getLink();
+ //系统内部跳转链接
+ String href = "" + " View details" + "";
+ String contentInfo = msgContentEN + " " + href;
+
+ Map sendMessageMap = new HashMap<>();
+ sendMessageMap.put("hrefFeishu",hrefFeishu);
+ sendMessageMap.put("contentInfo",contentInfo);
+
+ SendMessageUtils.sendMessage(msgTitle,msgContentEN,userIdList,lawsOpinionGatherId,sendMessageMap,null,MessageTypeEnum.COLLECTION_OF_LEGISLATIVE_COMMENTS,initiator);
+ }
}
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsTechnologyEvaluation/job/LawsTechnologyEvaluationRemindJob.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsTechnologyEvaluation/job/LawsTechnologyEvaluationRemindJob.java
new file mode 100644
index 000000000..66cc0531d
--- /dev/null
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsTechnologyEvaluation/job/LawsTechnologyEvaluationRemindJob.java
@@ -0,0 +1,87 @@
+package com.jero.modules.lawsTechnologyEvaluation.job;
+
+import com.alibaba.fastjson.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.jero.modules.lawsOpinionGather.enums.GatherResultEnum;
+import com.jero.modules.lawsTechnologyEvaluation.entity.LawsTechnologyEvaluationEO;
+import com.jero.modules.lawsTechnologyEvaluation.entity.LawsTechnologyEvaluationFlowDetailEO;
+import com.jero.modules.lawsTechnologyEvaluation.service.ILawsTechnologyEvaluationEOService;
+import com.jero.modules.lawsTechnologyEvaluation.service.ILawsTechnologyEvaluationFlowDetailEOService;
+import com.jero.modules.project.enums.MsgTypeEnum;
+import com.jero.modules.wkflow.feginClient.WorkFlowFeignClient;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.quartz.Job;
+import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
+import org.springframework.beans.factory.annotation.Autowired;
+
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+import java.util.stream.Collectors;
+
+/**
+ * 法规技术评估 - 定时器
+ * 作用:数据还有一天过期时,给代办人发消息
+ */
+@Slf4j
+public class LawsTechnologyEvaluationRemindJob implements Job {
+ @Autowired
+ private WorkFlowFeignClient workFlowFeignClient;
+ @Autowired
+ private ILawsTechnologyEvaluationEOService lawsTechnologyEvaluationEOService;
+ @Autowired
+ private ILawsTechnologyEvaluationFlowDetailEOService lawsTechnologyEvaluationFlowDetail;
+
+ @Override
+ public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
+ QueryWrapper queryWrapper = new QueryWrapper<>();
+ queryWrapper.lambda().eq(LawsTechnologyEvaluationEO::getFlowStatus, GatherResultEnum.UNDERWAY.getValue());
+ List LawsTechnologyEvaluationEOList = this.lawsTechnologyEvaluationEOService.list(queryWrapper);
+ if(CollectionUtils.isNotEmpty(LawsTechnologyEvaluationEOList)){
+ List LawsTechnologyEvaluationIdList = LawsTechnologyEvaluationEOList.stream().map(LawsTechnologyEvaluationEO::getId).distinct().collect(Collectors.toList());
+
+ QueryWrapper detailQueryWrapper = new QueryWrapper<>();
+ detailQueryWrapper.lambda().in(LawsTechnologyEvaluationFlowDetailEO::getLawsTechnologyEvaluationId,LawsTechnologyEvaluationIdList);
+ List flowDetailList = this.lawsTechnologyEvaluationFlowDetail.list(detailQueryWrapper);
+
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+
+ //获取后一天的时间
+ Calendar calendar=new GregorianCalendar();
+ calendar.setTime(new Date());
+ calendar.add(Calendar.DATE,1);
+ Date nextDay = calendar.getTime();
+
+ String nextDayStr = sdf.format(nextDay);
+ LawsTechnologyEvaluationEOList.forEach(lawsTechnologyEvaluationEO -> {
+ if(StringUtils.equals(nextDayStr,sdf.format(lawsTechnologyEvaluationEO.getEndTime()))){
+
+ String actiProcInstIds = flowDetailList.stream().filter(flowDetail -> {
+ boolean flag = false;
+ if (StringUtils.equals(lawsTechnologyEvaluationEO.getId(), flowDetail.getLawsTechnologyEvaluationId())) {
+ flag = true;
+ }
+ return flag;
+ }).map(LawsTechnologyEvaluationFlowDetailEO::getActiProcInstId).distinct().collect(Collectors.joining(","));
+
+ if(StringUtils.isNotEmpty(actiProcInstIds)){
+ List userIdList = this.workFlowFeignClient.getTaskAssigneeListByPrcIds(actiProcInstIds);
+ if(CollectionUtils.isNotEmpty(userIdList)){
+ JSONObject sendJsonObject = new JSONObject();
+ sendJsonObject.put("msgType", MsgTypeEnum.LAWS_TECHNOLOGY_EVALUATION_EXPIRE_REMIND_MSG.getValue());
+ sendJsonObject.put("lawsTechnologyEvaluationId",lawsTechnologyEvaluationEO.getId());
+ sendJsonObject.put("serialNumber",lawsTechnologyEvaluationEO.getSerialNumber());
+ sendJsonObject.put("userIdList",userIdList);
+ this.lawsTechnologyEvaluationEOService.workFlowSendMsg(sendJsonObject);
+ }
+ }
+ }
+ });
+ }
+ }
+}
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsTechnologyEvaluation/service/ILawsTechnologyEvaluationEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsTechnologyEvaluation/service/ILawsTechnologyEvaluationEOService.java
index bac8a0c3c..f13cde5ca 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsTechnologyEvaluation/service/ILawsTechnologyEvaluationEOService.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsTechnologyEvaluation/service/ILawsTechnologyEvaluationEOService.java
@@ -88,4 +88,6 @@ public interface ILawsTechnologyEvaluationEOService extends IService importItemExcel(MultipartFile file, String cut, HttpServletRequest request)throws Exception;
List
";
} else if ("IMG".equals(valEO.getType())) {
- valContent += "
";
+ valContent += "
";
// valContent += valEO.getItemContent();
} else if ("TABLE".equals(valEO.getType())) {
valContent += valEO.getItemContent();
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/warn/controller/LawsWarnController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/warn/controller/LawsWarnController.java
index b1dba1d41..ef7064226 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/warn/controller/LawsWarnController.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/warn/controller/LawsWarnController.java
@@ -64,8 +64,8 @@ public class LawsWarnController {
@ApiOperation(value = "推送")
@GetMapping(value = "/warnPullMessage")
// @RequiresPermissions("document:pullMessage")
- public Result> pullMessage(String departIds,String userIds,String documentIds) {
- lawsWarnService.warnPullMessage(departIds,userIds,documentIds);
+ public Result> pullMessage(String departIds,String userIds,String documentIds,String flag) {
+ lawsWarnService.warnPullMessage(departIds,userIds,documentIds,flag);
return Result.OK("推送成功");
}
}
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/warn/service/LawsWarnService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/warn/service/LawsWarnService.java
index 302b9a27f..beab9d1eb 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/warn/service/LawsWarnService.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/warn/service/LawsWarnService.java
@@ -338,7 +338,7 @@ public class LawsWarnService {
}
- public String warnPullMessage(String departIds, String userIds, String documentIds) {
+ public String warnPullMessage(String departIds, String userIds, String documentIds,String flag) {
Set allDepartIds = new HashSet<>();
//查询当前部门下所有部门
if (StringUtils.isNotEmpty(departIds)) {
@@ -379,6 +379,25 @@ public class LawsWarnService {
List urlList = new ArrayList<>();
List hrefList = new ArrayList<>();
for (Map map : mapList) {
+ //1-->新车型实施日期, 2-->在产车实施日期
+ String timeContent = "";
+ if("1".equals(flag)){
+ String value = StringUtils.valueOf(map.get("xin1_che1_xing2_shi2_shi1_ri4_qi1"));
+ if(StringUtils.isNotBlank(value)){
+ if(value.contains(" ")){
+ value = value.split(" ")[0];
+ }
+ timeContent =" to you as the implementation date of the new model is " +value;
+ }
+ }else if("2".equals(flag)){
+ String value = StringUtils.valueOf(map.get("implement_time"));
+ if(StringUtils.isNotBlank(value)){
+ if(value.contains(" ")){
+ value = value.split(" ")[0];
+ }
+ timeContent =" to you as the implementation date of vehicle production is " +value;
+ }
+ }
serialNumberList.add(StringUtils.valueOf(map.get("serial_number")));
String url = backUrl + "/docManage/library/detail?id=" + map.get("id") +
"&title=" + map.get("title") +
@@ -388,13 +407,16 @@ public class LawsWarnService {
"&title=" + map.get("title") +
"&serial_number=" + map.get("serial_number") + "'" + " target='_blank'>" + map.get("serial_number") + "";
urlList.add(url);
- hrefList.add(href);
+ hrefList.add(href+timeContent);
}
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
- String content = sysUser.getUsername() + " pushed " + StringUtils.join(serialNumberList, ",") + " to you. Please be reminded to check it out.";
- String contentInfo = sysUser.getUsername() + " pushed " + StringUtils.join(hrefList, ",") + " to you. Please be reminded to check it out.";
+ String content = StringUtils.join(serialNumberList, ",") + " has been shared with you, please check.";
+ //消息详情模板
+ // XXX has pushed GB 7258 to you as the implementation date of vehicle production is XXXX-XX-XX,
+ // GB 7258 to you as the implementation date of vehicle production is XXXX-XX-XX, Please be reminded to check it out.
+ String contentInfo = sysUser.getUsername() + " has pushed " + StringUtils.join(hrefList, ",") + ", Please be reminded to check it out.";
String title = content;
//封装消息的实体类
@@ -409,10 +431,28 @@ public class LawsWarnService {
mapList.stream().forEach(e->{
if(s.contains((String)e.get("id"))){
String serialNumber = StringUtils.valueOf(e.get("serial_number"));
- list.add(serialNumber);
+ String timeContent = "";
+ if("1".equals(flag)){
+ String value = StringUtils.valueOf(e.get("xin1_che1_xing2_shi2_shi1_ri4_qi1"));
+ if(StringUtils.isNotBlank(value)){
+ if(value.contains(" ")){
+ value = value.split(" ")[0];
+ }
+ timeContent =" to you as the implementation date of the new model is " +value;
+ }
+ }else if("2".equals(flag)){
+ String value = StringUtils.valueOf(e.get("implement_time"));
+ if(StringUtils.isNotBlank(value)){
+ if(value.contains(" ")){
+ value = value.split(" ")[0];
+ }
+ timeContent =" to you as the implementation date of vehicle production is " +value;
+ }
+ }
+ list.add(serialNumber + timeContent);
}
});
- String contentTemp = sysUser.getUsername() + " pushed " + StringUtils.join(list, ",") + " to you. Please be reminded to check it out.";
+ String contentTemp = sysUser.getUsername() + " has pushed " + StringUtils.join(list, ",") + ", Please be reminded to check it out.";
iFeishuService.batchSendMessage(thirdIdList.toArray(new String[]{}), contentTemp, MessageTypeEnum.PUSH.getName(), encode);
}
} catch (IOException e) {
@@ -421,4 +461,87 @@ public class LawsWarnService {
bussDocumentLibraryEOService.sendWebsocket(documentIds, contentInfo);
return "推送成功";
}
+// public String warnPullMessage(String departIds, String userIds, String documentIds,String flag) {
+// Set allDepartIds = new HashSet<>();
+// //查询当前部门下所有部门
+// if (StringUtils.isNotEmpty(departIds)) {
+// String[] departIdArr = departIds.split(",");
+// for (String departId : departIdArr) {
+// List subDepIdsByDepId = sysDepartService.getSubDepIdsByDepId(departId);
+// allDepartIds.addAll(subDepIdsByDepId);
+// }
+// }
+//
+// List userIdList = new ArrayList<>();
+// List thirdIdList = new ArrayList<>();
+// if (StringUtils.isNotBlank(departIds)) {
+// //查询部门下的人员
+// List userList = new ArrayList<>();
+// if(allDepartIds.size() != 0){
+// userList = sysUserService.getUserListByDepIds(new ArrayList<>(allDepartIds));
+// }
+//
+// if (userList.size() != 0) {
+// userIdList = userList.stream().map(SysUser::getId).distinct().collect(Collectors.toList());
+// thirdIdList = userList.stream().map(SysUser::getThirdId).distinct().collect(Collectors.toList());
+// }
+// }
+// if(userIdList.size() == 0 && StringUtils.isNotBlank(userIds)){
+// List sysUsers = sysUserService.listByIds(Arrays.asList(userIds.split(",")));
+// if(sysUsers.size() != 0){
+// List userId = sysUsers.stream().map(SysUser::getId).collect(Collectors.toList());
+// List thirdId = sysUsers.stream().map(SysUser::getThirdId).collect(Collectors.toList());
+// userIdList.addAll(userId);
+// thirdIdList.addAll(thirdId);
+// }
+// }
+//
+// //查询文档
+// List> mapList = bussDocumentLibraryEOMapper.selectMapsAll(documentIds);
+// List serialNumberList = new ArrayList<>();
+// List urlList = new ArrayList<>();
+// List hrefList = new ArrayList<>();
+// for (Map map : mapList) {
+// serialNumberList.add(StringUtils.valueOf(map.get("serial_number")));
+// String url = backUrl + "/docManage/library/detail?id=" + map.get("id") +
+// "&title=" + map.get("title") +
+// "&serial_number=" + map.get("serial_number");
+//
+// String href = "" + map.get("serial_number") + "";
+// urlList.add(url);
+// hrefList.add(href);
+// }
+//
+//
+// LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
+// String content = sysUser.getUsername() + " pushed " + StringUtils.join(serialNumberList, ",") + " to you. Please be reminded to check it out.";
+// String contentInfo = sysUser.getUsername() + " pushed " + StringUtils.join(hrefList, ",") + " to you. Please be reminded to check it out.";
+// String title = content;
+//
+// //封装消息的实体类
+// SysAnnouncement sysAnnouncement = bussDocumentLibraryEOService.getSysAnnouncement(userIdList, title, content, contentInfo,MessageTypeEnum.PUSH.getValue(),MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName());
+// sysAnnouncementService.saveAnnouncement(sysAnnouncement);
+// bussDocumentLibraryEOService.sendWebsocket(StringUtils.join(thirdIdList, ","), contentInfo);
+// //飞书
+// try {
+// for (String s : urlList) {
+// String encode = UriEncoder.encode(s);
+// List list = new ArrayList<>();
+// mapList.stream().forEach(e->{
+// if(s.contains((String)e.get("id"))){
+// String serialNumber = StringUtils.valueOf(e.get("serial_number"));
+// list.add(serialNumber);
+// }
+// });
+// String contentTemp = sysUser.getUsername() + " pushed " + StringUtils.join(list, ",") + " to you. Please be reminded to check it out.";
+// iFeishuService.batchSendMessage(thirdIdList.toArray(new String[]{}), contentTemp, MessageTypeEnum.PUSH.getName(), encode);
+// }
+// } catch (IOException e) {
+// e.printStackTrace();
+// }
+// bussDocumentLibraryEOService.sendWebsocket(documentIds, contentInfo);
+// return "推送成功";
+// }
}
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/feginClient/WorkFlowFeignClient.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/feginClient/WorkFlowFeignClient.java
index aa9bdd61b..5cf557492 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/feginClient/WorkFlowFeignClient.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/feginClient/WorkFlowFeignClient.java
@@ -164,4 +164,10 @@ public interface WorkFlowFeignClient {
*/
@RequestMapping(value = "/bat-wkflow/deleteProcessInstanceByTaskId",method = RequestMethod.GET)
Result deleteProcessInstanceByTaskId(@RequestParam("taskId") String taskId);
+
+ @RequestMapping(value = "/bat-wkflow/task/getLawsOpinionGatherFlowAssigneeList",method = RequestMethod.GET)
+ List getLawsOpinionGatherFlowAssigneeList(@RequestParam("lawsOpinionGatherId") String lawsOpinionGatherId);
+
+ @RequestMapping(value = "/bat-wkflow/task/getTaskAssigneeListByPrcIds",method = RequestMethod.GET)
+ List getTaskAssigneeListByPrcIds(@RequestParam("actiProcInstIds") String actiProcInstIds);
}
diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js
index 9a1c1fede..0f184b54f 100644
--- a/jero-web/src/common/lang/en-us.js
+++ b/jero-web/src/common/lang/en-us.js
@@ -1281,4 +1281,6 @@ module.exports = {
rejectedBy:'Rejected By',
rejectionTime:'Rejection Time',
rejectReason:'Reject Reason',
+ collectionLegislativeComments:'Collection of Legislative Comments',
+ regulatoryAndTechnicalAssessment:'Regulatory and technical assessment',
}
\ 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 7d4e9abe7..45c33af9a 100644
--- a/jero-web/src/common/lang/zh-cn.js
+++ b/jero-web/src/common/lang/zh-cn.js
@@ -1383,4 +1383,7 @@ module.exports = {
rejectedBy:'拒绝人',
rejectionTime:'拒绝时间',
rejectReason:'拒绝原因',
+ collectionLegislativeComments:'法规意见收集',
+ regulatoryAndTechnicalAssessment:'法规技术评估',
+
}
\ No newline at end of file
diff --git a/jero-web/src/components/CollectionType/index.vue b/jero-web/src/components/CollectionType/index.vue
index 411eef23b..2f8d6386c 100644
--- a/jero-web/src/components/CollectionType/index.vue
+++ b/jero-web/src/components/CollectionType/index.vue
@@ -125,7 +125,7 @@
-
@@ -690,6 +690,17 @@
})
},
methods: {
+ selectChange(val){
+ this.$nextTick(() => {
+ let element = document.querySelectorAll(
+ ".tableclassname .ant-table-expanded-row"
+ );
+ let len = element.length / 2;
+ for (let i = 0; i < len; i++) {
+ element[i + len].style.height = element[i].offsetHeight + "px";
+ }
+ });
+ },
onInput(r) {
let value = r.target.value
r.target.value = value.replace(/[^\u4e00-\u9fa5]/g, '')
@@ -770,7 +781,9 @@
height: 38px !important;
line-height: 38px !important;
}
-
+ .ant-select-selection-selected-value{
+ height:100%;
+ }
.selectWid .ant-select-selection__rendered {
line-height: 36px !important;
}
@@ -781,9 +794,12 @@
height: calc(100% - 100px);
overflow: auto;
}
-/deep/ .ant-select-allow-clear{
- height: 30px;
-}
+///deep/ .ant-select-allow-clear{
+// height: 30px;
+//}
+ /deep/.ant-table-row{
+ height:69px;
+ }
.text {
margin-right: 10px;
}
diff --git a/jero-web/src/components/ImportFile/index.vue b/jero-web/src/components/ImportFile/index.vue
index 43ea9932a..44710eaad 100644
--- a/jero-web/src/components/ImportFile/index.vue
+++ b/jero-web/src/components/ImportFile/index.vue
@@ -122,7 +122,7 @@
if (this.isTrue) {
this.$emit('getList',info.file.response.result)
} else {
- eventBUs.$emit('searchReset')
+ eventBUs.$emit('searchGetData')
}
this.$message.success(this.$t('OperationSuccessful'))
}
diff --git a/jero-web/src/components/OcrAddForm/index.vue b/jero-web/src/components/OcrAddForm/index.vue
index e687fcaf9..c49a84c67 100644
--- a/jero-web/src/components/OcrAddForm/index.vue
+++ b/jero-web/src/components/OcrAddForm/index.vue
@@ -296,7 +296,7 @@
postAction(url, this.formInline).then((res) => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
- eventBUs.$emit('searchReset')
+ eventBUs.$emit('searchGetData')
this.$emit('addFormClick')
} else {
this.$message.warning(this.$t(res.message))
diff --git a/jero-web/src/components/OcrTable/index.vue b/jero-web/src/components/OcrTable/index.vue
index eca906c74..ab2772555 100644
--- a/jero-web/src/components/OcrTable/index.vue
+++ b/jero-web/src/components/OcrTable/index.vue
@@ -124,6 +124,10 @@
this.getData()
this.getTableList()
})
+ eventBUs.$on('searchGetData', target => {
+ this.getData()
+ this.getTableList()
+ })
this.getData()
this.getTableList()
this.userData = this.userInfo()
diff --git a/jero-web/src/components/PersonnelSelectionAll/index.vue b/jero-web/src/components/PersonnelSelectionAll/index.vue
new file mode 100644
index 000000000..9a050d228
--- /dev/null
+++ b/jero-web/src/components/PersonnelSelectionAll/index.vue
@@ -0,0 +1,318 @@
+
+
+
+
+
+ {{this.$t('PersonnelSelection')}}
+
+
+ {{this.$t('delete')}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jero-web/src/components/SplitDetailTable/index.vue b/jero-web/src/components/SplitDetailTable/index.vue
index 6d2e41c15..ea4f0014d 100644
--- a/jero-web/src/components/SplitDetailTable/index.vue
+++ b/jero-web/src/components/SplitDetailTable/index.vue
@@ -136,12 +136,18 @@
this.getData()
this.getTableList()
})
+ eventBUs.$on('searchGetData', target => {
+ this.selectedRowKeys = []
+ this.getData()
+ this.getTableList()
+ })
this.getData()
this.getTableList()
},
beforeDestroy(){
eventBUs.$off('searchQuery')
eventBUs.$off('searchReset')
+ eventBUs.$off('searchGetData')
},
methods: {
diff --git a/jero-web/src/components/SplitTable/DocTable.vue b/jero-web/src/components/SplitTable/DocTable.vue
index dc12b047b..a6746e610 100644
--- a/jero-web/src/components/SplitTable/DocTable.vue
+++ b/jero-web/src/components/SplitTable/DocTable.vue
@@ -106,7 +106,7 @@
}
},
mounted() {
- eventBUs.$on('searchQuery', search => {
+ eventBUs.$on('searchQueryOne', search => {
Object.keys(search).forEach(res => {
if (search[res] instanceof Array) {
search[res] = search[res].join(',')
@@ -116,7 +116,7 @@
this.getData()
this.getTableList()
})
- eventBUs.$on('searchReset', target => {
+ eventBUs.$on('searchResetOne', target => {
this.searchParmes = {}
this.selectedRowKeys = []
this.getData()
@@ -126,8 +126,8 @@
this.getTableList()
},
beforeDestroy(){
- eventBUs.$off('searchQuery')
- eventBUs.$off('searchReset')
+ eventBUs.$off('searchQueryOne')
+ eventBUs.$off('searchResetOne')
},
methods: {
diff --git a/jero-web/src/components/SplitTable/index.vue b/jero-web/src/components/SplitTable/index.vue
index 10b6a4a38..5b4fbcdeb 100644
--- a/jero-web/src/components/SplitTable/index.vue
+++ b/jero-web/src/components/SplitTable/index.vue
@@ -129,6 +129,11 @@
this.getData()
this.getTableList()
})
+ eventBUs.$on('searchGetData', target => {
+ this.selectedRowKeys = []
+ this.getData()
+ this.getTableList()
+ })
this.getData()
this.getTableList()
this.userData = this.userInfo()
@@ -136,6 +141,7 @@
beforeDestroy(){
eventBUs.$off('searchQuery')
eventBUs.$off('searchReset')
+ eventBUs.$off('searchGetData')
},
methods: {
...mapGetters(['userInfo']),
diff --git a/jero-web/src/components/libraryAddForm/index.vue b/jero-web/src/components/libraryAddForm/index.vue
index 90f7add64..73fae7f9f 100644
--- a/jero-web/src/components/libraryAddForm/index.vue
+++ b/jero-web/src/components/libraryAddForm/index.vue
@@ -335,7 +335,7 @@
if (this.formInline.id) {
eventBUs.$emit('searchGetData')
} else {
- eventBUs.$emit('searchReset')
+ eventBUs.$emit('searchGetData')
}
this.$emit('addFormClick')
diff --git a/jero-web/src/components/libraryPush/index.vue b/jero-web/src/components/libraryPush/index.vue
index 05d1e547f..b07315fdd 100644
--- a/jero-web/src/components/libraryPush/index.vue
+++ b/jero-web/src/components/libraryPush/index.vue
@@ -63,15 +63,17 @@
departId: '',
defaultExpandedKeys: [],
submitLoading: false,
- visibleTree: false
+ visibleTree: false,
+ flag: ''
}
},
mounted() {
},
methods: {
- getPush(data) {
+ getPush(data, flag) {
this.tableKey = data
+ this.flag = flag
this.searchModel = ''
this.visible = true
this.visibleTree = false
@@ -99,10 +101,20 @@
this.visibleTree = false
},
handleSubmit() {
- let query = {
- documentIds: this.tableKey.join(','),
- userIds: this.userIds.join(','),
- departIds: this.userIds.join(',')
+ let query = {}
+ if (this.flag) {
+ query = {
+ documentIds: this.tableKey.join(','),
+ userIds: this.userIds.join(','),
+ departIds: this.userIds.join(','),
+ flag: this.flag
+ }
+ } else {
+ query = {
+ documentIds: this.tableKey.join(','),
+ userIds: this.userIds.join(','),
+ departIds: this.userIds.join(',')
+ }
}
this.submitLoading = true
this.confirmLoading = true
diff --git a/jero-web/src/components/search/index.vue b/jero-web/src/components/search/index.vue
index cf5a34acc..6184eda9e 100644
--- a/jero-web/src/components/search/index.vue
+++ b/jero-web/src/components/search/index.vue
@@ -191,7 +191,7 @@
searchQuery() {
if (this.isDefault) {
let startTime = moment(new Date()).format('YYYY-MM-DD')
- let endTime = this.haflYear()
+ let endTime = this.getNowdate()
if (this.queryParam['WarnTime'].length == 0) {
this.queryParam['WarnTime'] = [startTime, endTime]
}
@@ -203,7 +203,8 @@
this.queryParam = {}
if (this.isDefault) {
let startTime = moment(new Date()).format('YYYY-MM-DD')
- let endTime = this.haflYear()
+ let endTime = this.getNowdate()
+ console.log(endTime)
this.queryParam['WarnTime'] = [startTime, endTime]
this.queryParam = { ...this.queryParam }
}
@@ -225,26 +226,30 @@
}
})
},
- haflYear() {
- // 先获取当前时间
- var curDate = (new Date()).getTime()
- // 将半年的时间单位换算成毫秒
- var halfYear = 365 / 2 * 24 * 3600 * 1000
- // 半年前的时间(毫秒单位)
- var pastResult = curDate + halfYear
- // 日期函数,定义起点为半年前
- var pastDate = new Date(pastResult)
- var pastYear = pastDate.getFullYear()
- var pastMonth = pastDate.getMonth() + 1
- var pastDay = pastDate.getDate()
- if (pastMonth >= 1 && pastMonth <= 9) {
- pastMonth = '0' + pastMonth
+ getNowdate(){
+ var date_now = new Date()//获取当前时间
+ var year = date_now.getFullYear()//获取当前时间的年份
+ var month = date_now.getMonth()//获取当前时间的月份
+ var day = date_now.getDate()//获取当前时间的日
+ var days = new Date(year,month,0)//将获取到的年月赋值给days
+ days = days.getDate()//获取当前年月的日
+ var year2 = year
+ var month2 = parseInt(month+7)//获取当前月份的1一个月以后的月份
+ if(month2 > 12){
+ year2 = parseInt(year2) + 1
+ month2 = parseInt(month2) % 12
+ }//考虑到12月要是获取一个月以后,就是一月,年份需要加一 ,一年没有13月,所以%12,取得来年1月
+ var day2 = day
+ var days2 = new Date(year2,month2,0)
+ days2 = days2.getDate()
+ if(day2>days2){
+ day2 = days2
+ }//获取了当前年份的日和6个月以后的日,为的就是判断如果前一个月是有31号,后一个月没有,就将一个月以后的日期取到,赋值给day2
+ if(month2 < 10){
+ month2 = '0' + month2
}
- if (pastDay >= 0 && pastDay <= 9) {
- pastDay = '0' + pastDay
- }
- var endDate = pastYear + '-' + pastMonth + '-' + (pastDay + 1)
- return endDate
+ var time = year2 + '-' + month2 + '-' + day2
+ return time
},
dateChange(item) {
this.queryParam[item] = moment(this.queryParam[item]).format('YYYY-MM-DD')
diff --git a/jero-web/src/components/searchalonetext/index.vue b/jero-web/src/components/searchalonetext/index.vue
index 323765aa6..fe5d71cf0 100644
--- a/jero-web/src/components/searchalonetext/index.vue
+++ b/jero-web/src/components/searchalonetext/index.vue
@@ -179,11 +179,11 @@ export default {
},
methods: {
searchQuery() {
- eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(this.queryParam)))
+ eventBUs.$emit('searchQueryOne', JSON.parse(JSON.stringify(this.queryParam)))
},
searchReset() {
this.queryParam = {}
- eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(this.queryParam)))
+ eventBUs.$emit('searchQueryOne', JSON.parse(JSON.stringify(this.queryParam)))
},
getSeach() {
let params = {
diff --git a/jero-web/src/components/tableDate/index.vue b/jero-web/src/components/tableDate/index.vue
index 8234abf2b..ceb4c999a 100644
--- a/jero-web/src/components/tableDate/index.vue
+++ b/jero-web/src/components/tableDate/index.vue
@@ -132,6 +132,7 @@
beforeDestroy() {
eventBUs.$off('searchQuery')
eventBUs.$off('searchReset')
+ eventBUs.$off('searchGetData')
},
methods: {
rowClassName(record) {
diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardRelease.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardRelease.vue
index 99ee4012a..5d123152c 100644
--- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardRelease.vue
+++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardRelease.vue
@@ -96,10 +96,10 @@
{{!record.releaseStatus || record.releaseStatus == 'Draft' ? $t('release') :$t('withdraw')}}
{{$t('edit')}}
{{$t('delete')}}
@@ -279,8 +279,7 @@
let idList = []
let selectedRowKeysRecord = JSON.parse(JSON.stringify(_this.selectedRowKeysRecord))
for (let i = 0; i < selectedRowKeysRecord.length; i++) {
- if (selectedRowKeysRecord[i].createBy == _this.userInfo().username &&
- selectedRowKeysRecord[i].releaseStatus == 'Draft') {
+ if (selectedRowKeysRecord[i].releaseStatus == 'Draft') {
idList.push(selectedRowKeysRecord[i].id)
}
}
diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue
index 50b3336ed..4252096b5 100644
--- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue
+++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue
@@ -228,6 +228,9 @@
id: this.queryForm.praiseEO ? this.queryForm.praiseEO.id : undefined
}
putAction('/problemKnowledgeBase/problemKnowledgeBasePraiseEO/edit', query).then((res) => {
+ if (!this.queryForm.collectEO || !this.queryForm.collectEO.id) {
+ this.queryById()
+ }
})
},
starClick() {
@@ -247,6 +250,9 @@
id: this.queryForm.collectEO ? this.queryForm.collectEO.id : undefined
}
putAction('/problemKnowledgeBase/problemKnowledgeBaseCollectEO/edit', query).then((res) => {
+ if (!this.queryForm.collectEO || !this.queryForm.collectEO.id) {
+ this.queryById()
+ }
})
},
clickButtonToUpload(item) {
diff --git a/jero-web/src/views/dashboard/components/myList.vue b/jero-web/src/views/dashboard/components/myList.vue
index 2ee3cfc6c..48c345398 100644
--- a/jero-web/src/views/dashboard/components/myList.vue
+++ b/jero-web/src/views/dashboard/components/myList.vue
@@ -10,7 +10,7 @@
- {{item.prcNum}}
+ {{item.prcName}}
{{prcTypeName[item.prcType]}}