Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
+6
-4
@@ -100,7 +100,7 @@ public class SysDepartController {
|
||||
@ApiOperation(value = "部门管理-查询树状结构")
|
||||
@RequiresPermissions("sys:depart:list")
|
||||
@RequestMapping(value = "/queryTreeList", method = RequestMethod.GET)
|
||||
public Result<List<SysDepartTreeModel>> queryTreeList() {
|
||||
public Result<List<SysDepartTreeModel>> queryTreeList(@RequestParam(name = "cut", required = false) String cut) {
|
||||
Result<List<SysDepartTreeModel>> result = new Result<>();
|
||||
try {
|
||||
// 从内存中读取
|
||||
@@ -108,7 +108,7 @@ public class SysDepartController {
|
||||
// if (CollectionUtils.isEmpty(list)) {
|
||||
// list = sysDepartService.queryTreeList();
|
||||
// }
|
||||
List<SysDepartTreeModel> list = sysDepartService.queryTreeList();
|
||||
List<SysDepartTreeModel> list = sysDepartService.queryTreeList(cut);
|
||||
result.setResult(list);
|
||||
result.setSuccess(true);
|
||||
} catch (Exception e) {
|
||||
@@ -272,7 +272,9 @@ public class SysDepartController {
|
||||
*/
|
||||
@RequiresPermissions("sys:depart:list")
|
||||
@RequestMapping(value = "/searchBy", method = RequestMethod.GET)
|
||||
public Result<List<SysDepartTreeModel>> searchBy(@RequestParam(name = "keyWord", required = true) String keyWord,@RequestParam(name = "myDeptSearch", required = false) String myDeptSearch) {
|
||||
public Result<List<SysDepartTreeModel>> searchBy(@RequestParam(name = "keyWord", required = true) String keyWord,
|
||||
@RequestParam(name = "myDeptSearch", required = false) String myDeptSearch,
|
||||
@RequestParam(name = "cut", required = false) String cut) {
|
||||
Result<List<SysDepartTreeModel>> result = new Result<List<SysDepartTreeModel>>();
|
||||
//部门查询,myDeptSearch为1时为我的部门查询,登录用户为上级时查只查负责部门下数据
|
||||
LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
@@ -280,7 +282,7 @@ public class SysDepartController {
|
||||
if(oConvertUtils.isNotEmpty(user.getUserIdentity()) && user.getUserIdentity().equals( CommonConstant.USER_IDENTITY_2 )){
|
||||
departIds = user.getDepartIds();
|
||||
}
|
||||
List<SysDepartTreeModel> treeList = this.sysDepartService.searhBy(keyWord,myDeptSearch,departIds);
|
||||
List<SysDepartTreeModel> treeList = this.sysDepartService.searhBy(keyWord,myDeptSearch,departIds,cut);
|
||||
if (treeList == null || treeList.size() == 0) {
|
||||
result.setSuccess(false);
|
||||
result.setMessage("未查询匹配数据!");
|
||||
|
||||
+13
-4
@@ -14,6 +14,7 @@ import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.aspect.annotation.PermissionData;
|
||||
import com.jero.common.constant.CommonConstant;
|
||||
import com.jero.common.constant.enums.CutEnum;
|
||||
import com.jero.common.system.api.ISysBaseAPI;
|
||||
import com.jero.common.system.query.QueryGenerator;
|
||||
import com.jero.common.system.util.JwtUtil;
|
||||
@@ -1486,7 +1487,7 @@ public class SysUserController {
|
||||
Result<List<SysDepartUserTreeModel>> result = new Result<>();
|
||||
|
||||
//获取当前组织下数据
|
||||
List<SysDepartTreeModel> departTreeModelList = sysDepartService.queryTreeListByDepartId(departId);
|
||||
List<SysDepartTreeModel> departTreeModelList = sysDepartService.queryTreeListByDepartId(departId, sysPushVO.getCut());
|
||||
if (StringUtils.isNotEmpty(departId)) {
|
||||
List<String> departIds = new ArrayList<>();
|
||||
departIds.add(departId);
|
||||
@@ -1537,7 +1538,7 @@ public class SysUserController {
|
||||
@AutoLog(value = "文档库推送部门和人员的模糊搜索")
|
||||
@ApiOperation(value="文档库推送部门和人员的模糊搜索", notes="文档库推送部门和人员的模糊搜索")
|
||||
@GetMapping(value = "/getUserAndDepart")
|
||||
public List<SysUserDepartVO> getUserAndDepart(String name){
|
||||
public List<SysUserDepartVO> getUserAndDepart(String name, String cut){
|
||||
if("%".equals(name)){
|
||||
name = "/%";
|
||||
}
|
||||
@@ -1546,7 +1547,11 @@ public class SysUserController {
|
||||
List<SysUser> sysUserList = sysUserService.list(lambdaQueryWrapper);
|
||||
|
||||
LambdaQueryWrapper<SysDepart> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.like(SysDepart::getDepartName,name);
|
||||
if (CutEnum.EN.getValue().equals(cut)) {
|
||||
wrapper.like(SysDepart::getDepartNameEn, name);
|
||||
} else {
|
||||
wrapper.like(SysDepart::getDepartName, name);
|
||||
}
|
||||
List<SysDepart> sysDepartList = sysDepartService.list(wrapper);
|
||||
|
||||
List<SysUserDepartVO> list = new LinkedList<>();
|
||||
@@ -1554,7 +1559,11 @@ public class SysUserController {
|
||||
for (SysDepart sysDepart : sysDepartList) {
|
||||
SysUserDepartVO sysUserDepartVO = new SysUserDepartVO();
|
||||
sysUserDepartVO.setKey(sysDepart.getId());
|
||||
sysUserDepartVO.setTitle(sysDepart.getDepartName());
|
||||
if (CutEnum.EN.getValue().equals(cut)) {
|
||||
sysUserDepartVO.setTitle(sysDepart.getDepartNameEn());
|
||||
} else {
|
||||
sysUserDepartVO.setTitle(sysDepart.getDepartName());
|
||||
}
|
||||
sysUserDepartVO.setFlag(UserOrDepartEnum.USER.getValue());
|
||||
list.add(sysUserDepartVO);
|
||||
}
|
||||
|
||||
+3
-3
@@ -27,9 +27,9 @@ public interface ISysDepartService extends IService<SysDepart>{
|
||||
* 查询所有部门信息,并分节点进行显示
|
||||
* @return
|
||||
*/
|
||||
List<SysDepartTreeModel> queryTreeList();
|
||||
List<SysDepartTreeModel> queryTreeList(String cut);
|
||||
|
||||
List<SysDepartTreeModel> queryTreeListByDepartId(String departId);
|
||||
List<SysDepartTreeModel> queryTreeListByDepartId(String departId, String cut);
|
||||
|
||||
/**
|
||||
* 查询所有部门DepartId信息,并分节点进行显示
|
||||
@@ -62,7 +62,7 @@ public interface ISysDepartService extends IService<SysDepart>{
|
||||
* @param keyWord
|
||||
* @return
|
||||
*/
|
||||
List<SysDepartTreeModel> searhBy(String keyWord,String myDeptSearch,String departIds);
|
||||
List<SysDepartTreeModel> searhBy(String keyWord,String myDeptSearch,String departIds,String cut);
|
||||
|
||||
/**
|
||||
* 根据部门id删除并删除其可能存在的子级部门
|
||||
|
||||
+17
-11
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.common.constant.CacheConstant;
|
||||
import com.jero.common.constant.CommonConstant;
|
||||
import com.jero.common.constant.FillRuleConstant;
|
||||
import com.jero.common.constant.enums.CutEnum;
|
||||
import com.jero.common.system.vo.SysDepartTreeModel;
|
||||
import com.jero.common.util.FillRuleUtil;
|
||||
import com.jero.common.util.YouBianCodeUtil;
|
||||
@@ -70,7 +71,7 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
||||
}
|
||||
}
|
||||
// 调用wrapTreeDataToTreeList方法生成树状数据
|
||||
List<SysDepartTreeModel> listResult = FindsDepartsChildrenUtil.wrapTreeDataToTreeList(listDepts);
|
||||
List<SysDepartTreeModel> listResult = FindsDepartsChildrenUtil.wrapTreeDataToTreeList(listDepts, null);
|
||||
return listResult;
|
||||
}
|
||||
|
||||
@@ -79,20 +80,20 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
||||
*/
|
||||
@Cacheable(value = CacheConstant.SYS_DEPARTS_CACHE)
|
||||
@Override
|
||||
public List<SysDepartTreeModel> queryTreeList() {
|
||||
public List<SysDepartTreeModel> queryTreeList(String cut) {
|
||||
LambdaQueryWrapper<SysDepart> query = new LambdaQueryWrapper<SysDepart>();
|
||||
query.eq(SysDepart::getDelFlag, CommonConstant.DEL_FLAG_0.toString());
|
||||
query.last("order by depart_order is null, depart_order asc");
|
||||
List<SysDepart> list = this.list(query);
|
||||
// 调用wrapTreeDataToTreeList方法生成树状数据
|
||||
List<SysDepartTreeModel> listResult = FindsDepartsChildrenUtil.wrapTreeDataToTreeList(list);
|
||||
List<SysDepartTreeModel> listResult = FindsDepartsChildrenUtil.wrapTreeDataToTreeList(list, cut);
|
||||
return listResult;
|
||||
}
|
||||
|
||||
|
||||
// @Cacheable(value = CacheConstant.SYS_DEPARTS_CACHE)
|
||||
@Override
|
||||
public List<SysDepartTreeModel> queryTreeListByDepartId(String departId) {
|
||||
public List<SysDepartTreeModel> queryTreeListByDepartId(String departId, String cut) {
|
||||
LambdaQueryWrapper<SysDepart> query = new LambdaQueryWrapper<SysDepart>();
|
||||
if (StringUtils.isBlank(departId)) {
|
||||
query.isNull(SysDepart::getParentId);
|
||||
@@ -108,7 +109,7 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
||||
SysDepart depart = list.get(i);
|
||||
SysDepartTreeModel sysDepartTreeModel = new SysDepartTreeModel();
|
||||
// 将sysDepart转换为sysDepartTreeModel
|
||||
convertSysDepartToSysDepartTreeModel(depart, sysDepartTreeModel);
|
||||
convertSysDepartToSysDepartTreeModel(depart, sysDepartTreeModel, cut);
|
||||
listResult.add(sysDepartTreeModel);
|
||||
}
|
||||
return listResult;
|
||||
@@ -301,7 +302,7 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
||||
* </p>
|
||||
*/
|
||||
@Override
|
||||
public List<SysDepartTreeModel> searhBy(String keyWord,String myDeptSearch,String departIds) {
|
||||
public List<SysDepartTreeModel> searhBy(String keyWord,String myDeptSearch,String departIds,String cut) {
|
||||
LambdaQueryWrapper<SysDepart> query = new LambdaQueryWrapper<SysDepart>();
|
||||
List<SysDepartTreeModel> newList = new ArrayList<>();
|
||||
//myDeptSearch不为空时为我的部门搜索,只搜索所负责部门
|
||||
@@ -317,7 +318,12 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
||||
}
|
||||
query.eq(SysDepart::getDelFlag, CommonConstant.DEL_FLAG_0.toString());
|
||||
}
|
||||
query.like(SysDepart::getDepartName, keyWord);
|
||||
|
||||
if (CutEnum.EN.getValue().equals(cut)) {
|
||||
query.like(SysDepart::getDepartNameEn, keyWord);
|
||||
} else {
|
||||
query.like(SysDepart::getDepartName, keyWord);
|
||||
}
|
||||
//update-begin--Author:huangzhilin Date:20140417 for:[bugfree号]组织机构搜索回显优化--------------------
|
||||
SysDepartTreeModel model = new SysDepartTreeModel();
|
||||
List<SysDepart> departList = this.list(query);
|
||||
@@ -325,7 +331,7 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
||||
for(SysDepart depart : departList) {
|
||||
SysDepartTreeModel sysDepartTreeModel = new SysDepartTreeModel();
|
||||
// 将sysDepart转换为sysDepartTreeModel
|
||||
convertSysDepartToSysDepartTreeModel(depart, sysDepartTreeModel);
|
||||
convertSysDepartToSysDepartTreeModel(depart, sysDepartTreeModel, cut);
|
||||
model = sysDepartTreeModel;
|
||||
model.setChildren(null);
|
||||
//update-end--Author:huangzhilin Date:20140417 for:[bugfree号]组织机构搜索功回显优化----------------------
|
||||
@@ -473,7 +479,7 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
||||
query.orderByAsc(SysDepart::getDepartOrder);
|
||||
List<SysDepart> list = this.list(query);
|
||||
// 调用wrapTreeDataToTreeList方法生成树状数据
|
||||
List<SysDepartTreeModel> listResult = FindsDepartsChildrenUtil.wrapTreeDataToTreeList(list);
|
||||
List<SysDepartTreeModel> listResult = FindsDepartsChildrenUtil.wrapTreeDataToTreeList(list, null);
|
||||
List<SysDepartTreeModel> treelist =new ArrayList<>();
|
||||
if(StringUtils.isNotBlank(keyWord)){
|
||||
this.getTreeByKeyWord(keyWord,listResult,treelist);
|
||||
@@ -519,7 +525,7 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
||||
}
|
||||
Collections.reverse(list);
|
||||
// 调用wrapTreeDataToTreeList方法生成树状数据
|
||||
return FindsDepartsChildrenUtil.wrapTreeDataToTreeList(list);
|
||||
return FindsDepartsChildrenUtil.wrapTreeDataToTreeList(list, null);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -547,7 +553,7 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
||||
SysDepart sysDepartTemp = this.getById(id);
|
||||
listResult.add(sysDepartTemp);
|
||||
});
|
||||
List<SysDepartTreeModel> sysDepartTreeModels = FindsDepartsChildrenUtil.wrapTreeDataToTreeList(listResult);
|
||||
List<SysDepartTreeModel> sysDepartTreeModels = FindsDepartsChildrenUtil.wrapTreeDataToTreeList(listResult, null);
|
||||
realResult.addAll(sysDepartTreeModels);
|
||||
}
|
||||
|
||||
|
||||
+11
-8
@@ -1,12 +1,10 @@
|
||||
package com.jero.modules.system.util;
|
||||
|
||||
import com.jero.common.constant.CommonConstant;
|
||||
import com.jero.common.constant.enums.CutEnum;
|
||||
import com.jero.common.system.vo.SysDepartTreeModel;
|
||||
import com.jero.common.util.RedisUtil;
|
||||
import com.jero.common.util.oConvertUtils;
|
||||
import com.jero.modules.system.entity.SysDepart;
|
||||
import com.jero.modules.system.model.DepartIdModel;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -32,7 +30,7 @@ public class FindsDepartsChildrenUtil {
|
||||
* queryTreeList的子方法 ====1=====
|
||||
* 该方法是s将SysDepart类型的list集合转换成SysDepartTreeModel类型的集合
|
||||
*/
|
||||
public static List<SysDepartTreeModel> wrapTreeDataToTreeList(List<SysDepart> recordList) {
|
||||
public static List<SysDepartTreeModel> wrapTreeDataToTreeList(List<SysDepart> recordList, String cut) {
|
||||
// 在该方法每请求一次,都要对全局list集合进行一次清理
|
||||
//idList.clear();
|
||||
List<DepartIdModel> idList = new ArrayList<DepartIdModel>();
|
||||
@@ -41,7 +39,7 @@ public class FindsDepartsChildrenUtil {
|
||||
SysDepart depart = recordList.get(i);
|
||||
SysDepartTreeModel sysDepartTreeModel = new SysDepartTreeModel();
|
||||
// 将sysDepart转换为sysDepartTreeModel
|
||||
convertSysDepartToSysDepartTreeModel(depart, sysDepartTreeModel);
|
||||
convertSysDepartToSysDepartTreeModel(depart, sysDepartTreeModel, cut);
|
||||
records.add(sysDepartTreeModel);
|
||||
}
|
||||
List<SysDepartTreeModel> tree = findChildren(records, idList);
|
||||
@@ -63,7 +61,7 @@ public class FindsDepartsChildrenUtil {
|
||||
SysDepart depart = recordList.get(i);
|
||||
SysDepartTreeModel sysDepartTreeModel = new SysDepartTreeModel();
|
||||
// 将sysDepart转换为sysDepartTreeModel
|
||||
convertSysDepartToSysDepartTreeModel(depart, sysDepartTreeModel);
|
||||
convertSysDepartToSysDepartTreeModel(depart, sysDepartTreeModel, null);
|
||||
records.add(sysDepartTreeModel);
|
||||
}
|
||||
findChildren(records, idList);
|
||||
@@ -144,10 +142,14 @@ public class FindsDepartsChildrenUtil {
|
||||
* @param sysDepartTreeModel 转换的结果对象
|
||||
* @return
|
||||
*/
|
||||
public static void convertSysDepartToSysDepartTreeModel(SysDepart sysDepart, SysDepartTreeModel sysDepartTreeModel){
|
||||
public static void convertSysDepartToSysDepartTreeModel(SysDepart sysDepart, SysDepartTreeModel sysDepartTreeModel, String cut){
|
||||
sysDepartTreeModel.setKey( sysDepart.getId());
|
||||
sysDepartTreeModel.setValue( sysDepart.getId());
|
||||
sysDepartTreeModel.setTitle(sysDepart.getDepartName());
|
||||
if (CutEnum.EN.getValue().equals(cut)) { // 部门名称中英文处理
|
||||
sysDepartTreeModel.setTitle(sysDepart.getDepartNameEn());
|
||||
} else {
|
||||
sysDepartTreeModel.setTitle(sysDepart.getDepartName());
|
||||
}
|
||||
sysDepartTreeModel.setId(sysDepart.getId());
|
||||
sysDepartTreeModel.setParentId(sysDepart.getParentId());
|
||||
sysDepartTreeModel.setDepartName(sysDepart.getDepartName());
|
||||
@@ -169,4 +171,5 @@ public class FindsDepartsChildrenUtil {
|
||||
sysDepartTreeModel.setUpdateBy(sysDepart.getUpdateBy());
|
||||
sysDepartTreeModel.setUpdateTime(sysDepart.getUpdateTime());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+3
@@ -37,10 +37,13 @@
|
||||
pni.project_name as "projectName",
|
||||
pyni.year_name as "yearName",
|
||||
pti.design_status as "designStatus",
|
||||
pti.design_flow_task_status as "designFlowTaskStatus",
|
||||
pti.design_p_id as "designPId",
|
||||
pti.prehomo_status as "prehomoStatus",
|
||||
pti.prehomo_flow_task_status as "prehomoFlowTaskStatus",
|
||||
pti.prehomo_p_id as "prehomoPId",
|
||||
pti.verify_status as "verifyStatus",
|
||||
pti.verify_flow_task_status as "verifyFlowTaskStatus",
|
||||
pti.verify_p_id as "verifyPId",
|
||||
pli.duty_territory as "dutyTerritory"
|
||||
FROM
|
||||
|
||||
+21
-6
@@ -15,6 +15,7 @@ import com.jero.modules.lawsOpinionGather.service.ILawsOpinionGatherEOService;
|
||||
import com.jero.modules.lawsTechnologyEvaluation.entity.LawsTechnologyEvaluationEO;
|
||||
import com.jero.modules.lawsTechnologyEvaluation.service.ILawsTechnologyEvaluationEOService;
|
||||
import com.jero.modules.project.enums.DesignComplianceStatusEnum;
|
||||
import com.jero.modules.project.enums.ReviewResultEnum;
|
||||
import com.jero.modules.project.mapper.LawsComplianceBoardMapper;
|
||||
import com.jero.modules.project.service.ILawsComplianceBoardService;
|
||||
import com.jero.modules.system.entity.SysCategory;
|
||||
@@ -172,6 +173,20 @@ public class LawsComplianceBoardServiceImpl implements ILawsComplianceBoardServi
|
||||
String textByValue = DesignComplianceStatusEnum.getTextByValue(complianceResult.get("verifyStatus").toString(), cut);
|
||||
complianceResult.put("verifyStatus_dicText",textByValue);
|
||||
}
|
||||
|
||||
if (complianceResult.get("designFlowTaskStatus") != null) {
|
||||
String textByValue = ReviewResultEnum.getTextByValue(complianceResult.get("designFlowTaskStatus").toString(), cut);
|
||||
complianceResult.put("designFlowTaskStatus_dicText",textByValue);
|
||||
}
|
||||
if (complianceResult.get("prehomoFlowTaskStatus") != null && complianceResult.get("prehomoFlowTaskStatus") != "") {
|
||||
String textByValue = ReviewResultEnum.getTextByValue(complianceResult.get("prehomoFlowTaskStatus").toString(), cut);
|
||||
complianceResult.put("prehomoFlowTaskStatus_dicText",textByValue);
|
||||
}
|
||||
if (complianceResult.get("verifyFlowTaskStatus") != null) {
|
||||
String textByValue = ReviewResultEnum.getTextByValue(complianceResult.get("verifyFlowTaskStatus").toString(), cut);
|
||||
complianceResult.put("verifyFlowTaskStatus_dicText",textByValue);
|
||||
}
|
||||
|
||||
if (complianceResult.get("dutyTerritory") != null) {
|
||||
String dutyTerritory_dicText = "";
|
||||
if (CutEnum.EN.getValue().equals(cut)) {
|
||||
@@ -297,9 +312,9 @@ public class LawsComplianceBoardServiceImpl implements ILawsComplianceBoardServi
|
||||
dataRow.createCell(4).setCellValue(checkValueIsNotNull(byStandIdcomplianceResultList.get(i).get("dutyTerritory_dicText")));
|
||||
String projectName = checkValueIsNotNull(byStandIdcomplianceResultList.get(i).get("projectName")) + "-" + checkValueIsNotNull(byStandIdcomplianceResultList.get(i).get("yearName"));
|
||||
dataRow.createCell(5).setCellValue(projectName);
|
||||
dataRow.createCell(6).setCellValue(checkValueIsNotNull(byStandIdcomplianceResultList.get(i).get("designStatus_dicText")));
|
||||
dataRow.createCell(7).setCellValue(checkValueIsNotNull(byStandIdcomplianceResultList.get(i).get("prehomoStatus_dicText")));
|
||||
dataRow.createCell(8).setCellValue(checkValueIsNotNull(byStandIdcomplianceResultList.get(i).get("verifyStatus_dicText")));
|
||||
dataRow.createCell(6).setCellValue(checkValueIsNotNull(byStandIdcomplianceResultList.get(i).get("designFlowTaskStatus_dicText")));
|
||||
dataRow.createCell(7).setCellValue(checkValueIsNotNull(byStandIdcomplianceResultList.get(i).get("prehomoFlowTaskStatus_dicText")));
|
||||
dataRow.createCell(8).setCellValue(checkValueIsNotNull(byStandIdcomplianceResultList.get(i).get("verifyFlowTaskStatus_dicText")));
|
||||
if(byStandIdComlianceResultSize > 1 && i != (byStandIdComlianceResultSize - 1)){
|
||||
rowIndex ++;
|
||||
}
|
||||
@@ -389,9 +404,9 @@ public class LawsComplianceBoardServiceImpl implements ILawsComplianceBoardServi
|
||||
Row dataRow = sheet.createRow(rowIndex);
|
||||
dataRow.createCell(0).setCellValue(checkValueIsNotNull(exportData.get(dataIndex).get("dutyTerritory_dicText")));
|
||||
dataRow.createCell(1).setCellValue(checkValueIsNotNull(exportData.get(dataIndex).get("projectName")));
|
||||
dataRow.createCell(2).setCellValue(checkValueIsNotNull(exportData.get(dataIndex).get("designStatus_dicText")));
|
||||
dataRow.createCell(3).setCellValue(checkValueIsNotNull(exportData.get(dataIndex).get("prehomoStatus_dicText")));
|
||||
dataRow.createCell(4).setCellValue(checkValueIsNotNull(exportData.get(dataIndex).get("verifyStatus_dicText")));
|
||||
dataRow.createCell(2).setCellValue(checkValueIsNotNull(exportData.get(dataIndex).get("designFlowTaskStatus_dicText")));
|
||||
dataRow.createCell(3).setCellValue(checkValueIsNotNull(exportData.get(dataIndex).get("prehomoFlowTaskStatus_dicText")));
|
||||
dataRow.createCell(4).setCellValue(checkValueIsNotNull(exportData.get(dataIndex).get("verifyFlowTaskStatus_dicText")));
|
||||
rowIndex ++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1257,4 +1257,6 @@ module.exports = {
|
||||
forward:'Forward',
|
||||
issuedBy:'Issued by',
|
||||
pleaseDecompositionStandardOrder:'Please import or bring in at least one decomposition standard order',
|
||||
currentlyTheFirstOneThatCannotMovedUp:'Currently the first one that cannot be moved up',
|
||||
currentlyTheLastOneCannotmovedDown:'Currently the last one cannot be moved down',
|
||||
}
|
||||
@@ -1359,4 +1359,6 @@ module.exports = {
|
||||
forward:'转发',
|
||||
issuedBy:'发布人',
|
||||
pleaseDecompositionStandardOrder:'请导入或带入至少一条分解标准单',
|
||||
currentlyTheFirstOneThatCannotMovedUp:'当前已是第一个无法进行上移',
|
||||
currentlyTheLastOneCannotmovedDown:'当前已是最后一个无法进行下移',
|
||||
}
|
||||
+10
-2
@@ -163,7 +163,11 @@
|
||||
this.sortList.push(this.dataSource[index - 1])
|
||||
}
|
||||
}
|
||||
this.move()
|
||||
if (this.sortList.length > 1) {
|
||||
this.move()
|
||||
} else {
|
||||
this.$message.warning(this.$t('currentlyTheFirstOneThatCannotMovedUp'))
|
||||
}
|
||||
},
|
||||
moveDownClick(row, index) {
|
||||
this.sortList = []
|
||||
@@ -180,7 +184,11 @@
|
||||
this.sortList.push(this.dataSource[index + 1])
|
||||
}
|
||||
}
|
||||
this.move()
|
||||
if (this.sortList.length > 1) {
|
||||
this.move()
|
||||
} else {
|
||||
this.$message.warning(this.$t('currentlyTheLastOneCannotmovedDown'))
|
||||
}
|
||||
},
|
||||
move() {
|
||||
postAction('/report/lawsMonthlyReportTitleTemplateEO/move', { lawsMonthlyReportTitleTemplateEOS: this.sortList }).then((res) => {
|
||||
|
||||
@@ -88,6 +88,7 @@
|
||||
prcClick(row) {
|
||||
// let index = row.taskIds.lastIndexOf(',')
|
||||
// row.taskIds = row.taskIds.slice(0, index)
|
||||
row.router = this.$route.path
|
||||
if (row.prcType == '1') {
|
||||
let newUrl = this.$router.resolve({
|
||||
path: '/handshakeProcess',
|
||||
@@ -100,7 +101,7 @@
|
||||
query: row
|
||||
})
|
||||
window.open(newUrl.href, '_blank')
|
||||
}else if (row.prcType == '6') {
|
||||
} else if (row.prcType == '6') {
|
||||
let newUrl = this.$router.resolve({
|
||||
path: '/evaluationProcess',
|
||||
query: row
|
||||
|
||||
@@ -327,7 +327,7 @@
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.loading = false
|
||||
this.$router.push({
|
||||
path: '/technologyAssessment'
|
||||
path: this.$route.query.router
|
||||
})
|
||||
} else {
|
||||
this.loading = false
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.loading = false
|
||||
this.$router.push({
|
||||
path: '/collectionOfRegulatoryOpinions'
|
||||
path: this.$route.query.router
|
||||
})
|
||||
} else {
|
||||
this.loading = false
|
||||
|
||||
@@ -154,6 +154,7 @@
|
||||
dealWith(row) {
|
||||
// let index = row.taskIds.lastIndexOf(',')
|
||||
// row.taskIds = row.taskIds.slice(0, index)
|
||||
row.router = this.$route.path
|
||||
if (row.prcType == '1') {
|
||||
let newUrl = this.$router.resolve({
|
||||
path: '/handshakeProcess',
|
||||
|
||||
Reference in New Issue
Block a user