Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
+2
@@ -11,6 +11,7 @@ import com.jero.common.system.query.QueryGenerator;
|
|||||||
import com.jero.common.system.vo.LoginUser;
|
import com.jero.common.system.vo.LoginUser;
|
||||||
import com.jero.modules.problemKnowledgeBase.entity.ProblemKnowledgeBaseCollectEO;
|
import com.jero.modules.problemKnowledgeBase.entity.ProblemKnowledgeBaseCollectEO;
|
||||||
import com.jero.modules.problemKnowledgeBase.entity.ProblemKnowledgeBaseEO;
|
import com.jero.modules.problemKnowledgeBase.entity.ProblemKnowledgeBaseEO;
|
||||||
|
import com.jero.modules.problemKnowledgeBase.enums.CollectStatusEnum;
|
||||||
import com.jero.modules.problemKnowledgeBase.service.IProblemKnowledgeBaseCollectEOService;
|
import com.jero.modules.problemKnowledgeBase.service.IProblemKnowledgeBaseCollectEOService;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
@@ -192,6 +193,7 @@ public class ProblemKnowledgeBaseCollectEOController extends JeroController<Prob
|
|||||||
|
|
||||||
QueryWrapper<ProblemKnowledgeBaseCollectEO> collectEOQueryWrapper = new QueryWrapper<>();
|
QueryWrapper<ProblemKnowledgeBaseCollectEO> collectEOQueryWrapper = new QueryWrapper<>();
|
||||||
collectEOQueryWrapper.lambda().eq(ProblemKnowledgeBaseCollectEO::getCollectUserId,currentUser.getId());
|
collectEOQueryWrapper.lambda().eq(ProblemKnowledgeBaseCollectEO::getCollectUserId,currentUser.getId());
|
||||||
|
collectEOQueryWrapper.lambda().eq(ProblemKnowledgeBaseCollectEO::getCollectStatus, CollectStatusEnum.COLLECT.getValue());
|
||||||
List<ProblemKnowledgeBaseCollectEO> collectEOList = this.problemKnowledgeBaseCollectEOService.list(collectEOQueryWrapper);
|
List<ProblemKnowledgeBaseCollectEO> collectEOList = this.problemKnowledgeBaseCollectEOService.list(collectEOQueryWrapper);
|
||||||
|
|
||||||
if(CollectionUtils.isNotEmpty(collectEOList)){
|
if(CollectionUtils.isNotEmpty(collectEOList)){
|
||||||
|
|||||||
+2
@@ -463,6 +463,7 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
|||||||
Map<String, Object> map25 = new HashMap<>();
|
Map<String, Object> map25 = new HashMap<>();
|
||||||
Map<String, Object> map45 = new HashMap<>();
|
Map<String, Object> map45 = new HashMap<>();
|
||||||
map25.put("query", selectValue);
|
map25.put("query", selectValue);
|
||||||
|
map25.put("fields", fieldList.toArray());
|
||||||
map25.put("allow_leading_wildcard", false); //禁用了前置通配符
|
map25.put("allow_leading_wildcard", false); //禁用了前置通配符
|
||||||
map45.put("query_string", map25);
|
map45.put("query_string", map25);
|
||||||
queryMapJson.add(map45);
|
queryMapJson.add(map45);
|
||||||
@@ -490,6 +491,7 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
|||||||
Map<String, Object> map25 = new HashMap<>();
|
Map<String, Object> map25 = new HashMap<>();
|
||||||
Map<String, Object> map45 = new HashMap<>();
|
Map<String, Object> map45 = new HashMap<>();
|
||||||
map25.put("query", selectValue);
|
map25.put("query", selectValue);
|
||||||
|
map25.put("fields", fieldList.toArray());
|
||||||
map25.put("allow_leading_wildcard", false); //禁用了前置通配符
|
map25.put("allow_leading_wildcard", false); //禁用了前置通配符
|
||||||
map45.put("query_string", map25);
|
map45.put("query_string", map25);
|
||||||
queryMapJson.add(map45);
|
queryMapJson.add(map45);
|
||||||
|
|||||||
+13
-4
@@ -118,6 +118,7 @@ public class LawsMonthlyReportSearchServiceImpl implements ILawsMonthlyReportSea
|
|||||||
Map<String, Object> map25 = new HashMap<>();
|
Map<String, Object> map25 = new HashMap<>();
|
||||||
Map<String, Object> map45 = new HashMap<>();
|
Map<String, Object> map45 = new HashMap<>();
|
||||||
map25.put("query", selectValue);
|
map25.put("query", selectValue);
|
||||||
|
map25.put("fields", fieldList.toArray());
|
||||||
map25.put("allow_leading_wildcard", false);
|
map25.put("allow_leading_wildcard", false);
|
||||||
map45.put("query_string", map25);
|
map45.put("query_string", map25);
|
||||||
queryMapJsonTwo.add(map45);
|
queryMapJsonTwo.add(map45);
|
||||||
@@ -248,9 +249,9 @@ public class LawsMonthlyReportSearchServiceImpl implements ILawsMonthlyReportSea
|
|||||||
Map<String, Object> map31 = new HashMap<>();
|
Map<String, Object> map31 = new HashMap<>();
|
||||||
Map<String, Object> map41 = new HashMap<>();
|
Map<String, Object> map41 = new HashMap<>();
|
||||||
if("title".equals(field)){
|
if("title".equals(field)){
|
||||||
map31.put("boost",1);
|
map31.put("boost",10);
|
||||||
}else if("content".equals(field)){
|
}else if("content".equals(field)){
|
||||||
map31.put("boost",0.01);
|
map31.put("boost",2);
|
||||||
}
|
}
|
||||||
map31.put("value", selectValue);
|
map31.put("value", selectValue);
|
||||||
map21.put(field + ".keyword", map31);
|
map21.put(field + ".keyword", map31);
|
||||||
@@ -262,9 +263,9 @@ public class LawsMonthlyReportSearchServiceImpl implements ILawsMonthlyReportSea
|
|||||||
Map<String, Object> map32 = new HashMap<>();
|
Map<String, Object> map32 = new HashMap<>();
|
||||||
Map<String, Object> map42 = new HashMap<>();
|
Map<String, Object> map42 = new HashMap<>();
|
||||||
if("title".equals(field)){
|
if("title".equals(field)){
|
||||||
map32.put("boost",1);
|
map32.put("boost",10);
|
||||||
}else if("content".equals(field)){
|
}else if("content".equals(field)){
|
||||||
map32.put("boost",0.01);
|
map32.put("boost",2);
|
||||||
}
|
}
|
||||||
map32.put("query", selectValue);
|
map32.put("query", selectValue);
|
||||||
map22.put(field, map32);
|
map22.put(field, map32);
|
||||||
@@ -274,7 +275,15 @@ public class LawsMonthlyReportSearchServiceImpl implements ILawsMonthlyReportSea
|
|||||||
// match分词匹配查询
|
// match分词匹配查询
|
||||||
// 情况举例:用户可能他知道开头的前缀几个字,知道中间的几个字
|
// 情况举例:用户可能他知道开头的前缀几个字,知道中间的几个字
|
||||||
Map<String, Object> map23 = new HashMap<>();
|
Map<String, Object> map23 = new HashMap<>();
|
||||||
|
Map<String, Object> map33 = new HashMap<>();
|
||||||
Map<String, Object> map43 = new HashMap<>();
|
Map<String, Object> map43 = new HashMap<>();
|
||||||
|
if("title".equals(field)){
|
||||||
|
map33.put("boost",10);
|
||||||
|
}else if("content".equals(field)){
|
||||||
|
map33.put("boost",2);
|
||||||
|
}
|
||||||
|
map33.put("query", selectValue);
|
||||||
|
map23.put(field, map33);
|
||||||
map23.put(field, selectValue);
|
map23.put(field, selectValue);
|
||||||
map43.put("match", map23);
|
map43.put("match", map23);
|
||||||
queryMapJson.add(map43);
|
queryMapJson.add(map43);
|
||||||
|
|||||||
+60
@@ -165,12 +165,22 @@ public class FileSpiltService {
|
|||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
}
|
}
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
paragraphString = paragraphString.replaceAll("\r\n","");
|
paragraphString = paragraphString.replaceAll("\r\n","");
|
||||||
paragraphString = paragraphString.replaceAll("\n","");
|
paragraphString = paragraphString.replaceAll("\n","");
|
||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotEmpty(p.getNumLevelText()) && p.getNumLevelText().indexOf(".") > 0) {
|
if (StringUtils.isNotEmpty(p.getNumLevelText()) && p.getNumLevelText().indexOf(".") > 0) {
|
||||||
@@ -682,12 +692,22 @@ public class FileSpiltService {
|
|||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
}
|
}
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
paragraphString = paragraphString.replaceAll("\r\n","");
|
paragraphString = paragraphString.replaceAll("\r\n","");
|
||||||
paragraphString = paragraphString.replaceAll("\n","");
|
paragraphString = paragraphString.replaceAll("\n","");
|
||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// if (StringUtils.isNotEmpty(p.getNumLevelText())&& p.getNumLevelText().indexOf(".")>0) {
|
// if (StringUtils.isNotEmpty(p.getNumLevelText())&& p.getNumLevelText().indexOf(".")>0) {
|
||||||
@@ -864,12 +884,22 @@ public class FileSpiltService {
|
|||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
}
|
}
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
paragraphString = paragraphString.replaceAll("\r\n","");
|
paragraphString = paragraphString.replaceAll("\r\n","");
|
||||||
paragraphString = paragraphString.replaceAll("\n","");
|
paragraphString = paragraphString.replaceAll("\n","");
|
||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// if (StringUtils.isNotEmpty(p.getNumLevelText())&& p.getNumLevelText().indexOf(".")>0) {
|
// if (StringUtils.isNotEmpty(p.getNumLevelText())&& p.getNumLevelText().indexOf(".")>0) {
|
||||||
@@ -1056,12 +1086,22 @@ public class FileSpiltService {
|
|||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
}
|
}
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
paragraphString = paragraphString.replaceAll("\r\n","");
|
paragraphString = paragraphString.replaceAll("\r\n","");
|
||||||
paragraphString = paragraphString.replaceAll("\n","");
|
paragraphString = paragraphString.replaceAll("\n","");
|
||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// if (StringUtils.isNotEmpty(p.getNumLevelText())&& p.getNumLevelText().indexOf(".")>0) {
|
// if (StringUtils.isNotEmpty(p.getNumLevelText())&& p.getNumLevelText().indexOf(".")>0) {
|
||||||
@@ -1418,12 +1458,22 @@ public class FileSpiltService {
|
|||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
}
|
}
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
paragraphString = paragraphString.replaceAll("\r\n","");
|
paragraphString = paragraphString.replaceAll("\r\n","");
|
||||||
paragraphString = paragraphString.replaceAll("\n","");
|
paragraphString = paragraphString.replaceAll("\n","");
|
||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// if (StringUtils.isNotEmpty(p.getNumLevelText())&& p.getNumLevelText().indexOf(".")>0) {
|
// if (StringUtils.isNotEmpty(p.getNumLevelText())&& p.getNumLevelText().indexOf(".")>0) {
|
||||||
@@ -1613,12 +1663,22 @@ public class FileSpiltService {
|
|||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
}
|
}
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
paragraphString = paragraphString.replaceAll("\r\n","");
|
paragraphString = paragraphString.replaceAll("\r\n","");
|
||||||
paragraphString = paragraphString.replaceAll("\n","");
|
paragraphString = paragraphString.replaceAll("\n","");
|
||||||
paragraphString = paragraphString.trim();
|
paragraphString = paragraphString.trim();
|
||||||
if(StringUtils.isEmpty(paragraphString)){
|
if(StringUtils.isEmpty(paragraphString)){
|
||||||
|
// 处理当前段落仅为图片的情况
|
||||||
|
List<String> imageBundleList = readImageInParagraph((XWPFParagraph) p);
|
||||||
|
if (CollectionUtils.isNotEmpty(imageBundleList)) {
|
||||||
|
addItermsConditionsImage(messageList.get(messageList.size() - 1), itemValList, p, imageBundleList);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+7
-1
@@ -1702,8 +1702,14 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
|
|||||||
InputStream is = new FileInputStream(file);
|
InputStream is = new FileInputStream(file);
|
||||||
String name = file.getName().toLowerCase();
|
String name = file.getName().toLowerCase();
|
||||||
// 创建excel操作对象
|
// 创建excel操作对象
|
||||||
if (name.contains(".xlsx") || name.contains(".xls")) {
|
if (name.contains(".xlsx")) {
|
||||||
workbook = WorkbookFactory.create(is);
|
workbook = WorkbookFactory.create(is);
|
||||||
|
} else {
|
||||||
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
|
throw new JeroBootException("请导入正确模板!");
|
||||||
|
} else {
|
||||||
|
throw new JeroBootException("Please import the correct template");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//得到一个工作表
|
//得到一个工作表
|
||||||
Sheet sheet = workbook.getSheetAt(0);
|
Sheet sheet = workbook.getSheetAt(0);
|
||||||
|
|||||||
@@ -1281,4 +1281,6 @@ module.exports = {
|
|||||||
rejectedBy:'Rejected By',
|
rejectedBy:'Rejected By',
|
||||||
rejectionTime:'Rejection Time',
|
rejectionTime:'Rejection Time',
|
||||||
rejectReason:'Reject Reason',
|
rejectReason:'Reject Reason',
|
||||||
|
collectionLegislativeComments:'Collection of Legislative Comments',
|
||||||
|
regulatoryAndTechnicalAssessment:'Regulatory and technical assessment',
|
||||||
}
|
}
|
||||||
@@ -1383,4 +1383,7 @@ module.exports = {
|
|||||||
rejectedBy:'拒绝人',
|
rejectedBy:'拒绝人',
|
||||||
rejectionTime:'拒绝时间',
|
rejectionTime:'拒绝时间',
|
||||||
rejectReason:'拒绝原因',
|
rejectReason:'拒绝原因',
|
||||||
|
collectionLegislativeComments:'法规意见收集',
|
||||||
|
regulatoryAndTechnicalAssessment:'法规技术评估',
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
if (this.isTrue) {
|
if (this.isTrue) {
|
||||||
this.$emit('getList',info.file.response.result)
|
this.$emit('getList',info.file.response.result)
|
||||||
} else {
|
} else {
|
||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchGetData')
|
||||||
}
|
}
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -296,7 +296,7 @@
|
|||||||
postAction(url, this.formInline).then((res) => {
|
postAction(url, this.formInline).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchGetData')
|
||||||
this.$emit('addFormClick')
|
this.$emit('addFormClick')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t(res.message))
|
this.$message.warning(this.$t(res.message))
|
||||||
|
|||||||
@@ -147,6 +147,7 @@
|
|||||||
beforeDestroy(){
|
beforeDestroy(){
|
||||||
eventBUs.$off('searchQuery')
|
eventBUs.$off('searchQuery')
|
||||||
eventBUs.$off('searchReset')
|
eventBUs.$off('searchReset')
|
||||||
|
eventBUs.$off('searchGetData')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
|||||||
@@ -141,6 +141,7 @@
|
|||||||
beforeDestroy(){
|
beforeDestroy(){
|
||||||
eventBUs.$off('searchQuery')
|
eventBUs.$off('searchQuery')
|
||||||
eventBUs.$off('searchReset')
|
eventBUs.$off('searchReset')
|
||||||
|
eventBUs.$off('searchGetData')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
|
|||||||
@@ -335,7 +335,7 @@
|
|||||||
if (this.formInline.id) {
|
if (this.formInline.id) {
|
||||||
eventBUs.$emit('searchGetData')
|
eventBUs.$emit('searchGetData')
|
||||||
} else {
|
} else {
|
||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchGetData')
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$emit('addFormClick')
|
this.$emit('addFormClick')
|
||||||
|
|||||||
@@ -132,6 +132,7 @@
|
|||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
eventBUs.$off('searchQuery')
|
eventBUs.$off('searchQuery')
|
||||||
eventBUs.$off('searchReset')
|
eventBUs.$off('searchReset')
|
||||||
|
eventBUs.$off('searchGetData')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
rowClassName(record) {
|
rowClassName(record) {
|
||||||
|
|||||||
+6
@@ -228,6 +228,9 @@
|
|||||||
id: this.queryForm.praiseEO ? this.queryForm.praiseEO.id : undefined
|
id: this.queryForm.praiseEO ? this.queryForm.praiseEO.id : undefined
|
||||||
}
|
}
|
||||||
putAction('/problemKnowledgeBase/problemKnowledgeBasePraiseEO/edit', query).then((res) => {
|
putAction('/problemKnowledgeBase/problemKnowledgeBasePraiseEO/edit', query).then((res) => {
|
||||||
|
if (!this.queryForm.collectEO || !this.queryForm.collectEO.id) {
|
||||||
|
this.queryById()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
starClick() {
|
starClick() {
|
||||||
@@ -247,6 +250,9 @@
|
|||||||
id: this.queryForm.collectEO ? this.queryForm.collectEO.id : undefined
|
id: this.queryForm.collectEO ? this.queryForm.collectEO.id : undefined
|
||||||
}
|
}
|
||||||
putAction('/problemKnowledgeBase/problemKnowledgeBaseCollectEO/edit', query).then((res) => {
|
putAction('/problemKnowledgeBase/problemKnowledgeBaseCollectEO/edit', query).then((res) => {
|
||||||
|
if (!this.queryForm.collectEO || !this.queryForm.collectEO.id) {
|
||||||
|
this.queryById()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
clickButtonToUpload(item) {
|
clickButtonToUpload(item) {
|
||||||
|
|||||||
+7
-7
@@ -35,9 +35,9 @@
|
|||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
<a-checkbox-group style="width: 100%" :defaultChecked="checkboxText"
|
<a-checkbox-group style="width: 100%" :defaultChecked="checkboxText"
|
||||||
@change="checkboxTextChange" v-model="checkboxText">
|
@change="checkboxTextChange" v-model="checkboxText">
|
||||||
<div v-for="item in conList" :key="item.id">
|
<div v-for="item in conList" :key="item.collectEO.id">
|
||||||
<div style="margin-bottom: 10px;position: relative">
|
<div style="margin-bottom: 10px;position: relative">
|
||||||
<a-checkbox :value="item.id" class="checkbox-left"></a-checkbox>
|
<a-checkbox :value="item.collectEO.id" class="checkbox-left"></a-checkbox>
|
||||||
<div class="text-text-right"
|
<div class="text-text-right"
|
||||||
@click="checkedClick(item)"
|
@click="checkedClick(item)"
|
||||||
:class="{ 'null-input':item.checked }">
|
:class="{ 'null-input':item.checked }">
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
if (value.length > 0) {
|
if (value.length > 0) {
|
||||||
this.conList.forEach(val => {
|
this.conList.forEach(val => {
|
||||||
value.forEach(res => {
|
value.forEach(res => {
|
||||||
if (res === val.id) {
|
if (res === val.collectEO.id) {
|
||||||
val.checked = true
|
val.checked = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
this.$confirm({
|
this.$confirm({
|
||||||
content: _this.$t('confirmCancelCollection'),
|
content: _this.$t('confirmCancelCollection'),
|
||||||
onOk() {
|
onOk() {
|
||||||
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
|
deleteAction(_this.url.deleteBatch, { ids: val.collectEO.id }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
_this.getList()
|
_this.getList()
|
||||||
@@ -216,13 +216,13 @@
|
|||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.getInfoList, query).then((res) => {
|
getAction(this.url.getInfoList, query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success && res.result) {
|
||||||
if (res.result.current > 1 && res.result.records.length == 0) {
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.conList = res.result.records
|
this.conList = res.result ? res.result.records : []
|
||||||
if (this.conList && this.conList.length > 0) {
|
if (this.conList && this.conList.length > 0) {
|
||||||
this.conList.forEach(val => {
|
this.conList.forEach(val => {
|
||||||
if (val.content) {
|
if (val.content) {
|
||||||
@@ -233,7 +233,7 @@
|
|||||||
if (this.checkboxList && this.checkboxList.length > 0) {
|
if (this.checkboxList && this.checkboxList.length > 0) {
|
||||||
let contentList = []
|
let contentList = []
|
||||||
for (let j = 0; j < this.conList.length; j++) {
|
for (let j = 0; j < this.conList.length; j++) {
|
||||||
contentList.push(this.conList[j].id)
|
contentList.push(this.conList[j].collectEO.id)
|
||||||
}
|
}
|
||||||
this.checkboxList = this.checkboxList.filter(val => {
|
this.checkboxList = this.checkboxList.filter(val => {
|
||||||
return !contentList.join(',').includes(val)
|
return !contentList.join(',').includes(val)
|
||||||
|
|||||||
@@ -225,7 +225,7 @@
|
|||||||
postAction(`ocr/OcrRestful/addOcrRecord`, params).then(res => {
|
postAction(`ocr/OcrRestful/addOcrRecord`, params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchGetData')
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
this.$emit('visible',false)
|
this.$emit('visible',false)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -302,7 +302,7 @@
|
|||||||
// console.log('res,res',res)
|
// console.log('res,res',res)
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchGetData')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.data.message)
|
this.$message.warning(res.data.message)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -283,7 +283,7 @@
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchGetData')
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
this.$emit('visible',false)
|
this.$emit('visible',false)
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -775,7 +775,7 @@
|
|||||||
info_id: this.infoId,
|
info_id: this.infoId,
|
||||||
|
|
||||||
}
|
}
|
||||||
eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(queryParam)))
|
eventBUs.$emit('searchGetData', JSON.parse(JSON.stringify(queryParam)))
|
||||||
// eventBUs.$emit('searchReset')
|
// eventBUs.$emit('searchReset')
|
||||||
this.$emit('sumber')
|
this.$emit('sumber')
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -723,7 +723,7 @@
|
|||||||
info_id: this.infoId
|
info_id: this.infoId
|
||||||
|
|
||||||
}
|
}
|
||||||
eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(queryParam)))
|
eventBUs.$emit('searchGetData', JSON.parse(JSON.stringify(queryParam)))
|
||||||
// eventBUs.$emit('searchReset')
|
// eventBUs.$emit('searchReset')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
@@ -771,7 +771,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
this.loadMenuData()
|
this.loadMenuData()
|
||||||
eventBUs.$emit('searchQuery', JSON.parse(JSON.stringify(queryParam)))
|
eventBUs.$emit('searchGetData', JSON.parse(JSON.stringify(queryParam)))
|
||||||
}
|
}
|
||||||
let attIdList = []
|
let attIdList = []
|
||||||
if (data && data.length > 0) {
|
if (data && data.length > 0) {
|
||||||
|
|||||||
@@ -238,7 +238,7 @@
|
|||||||
postAction(`split/sarFileSplitInfo/add`, params).then(res => {
|
postAction(`split/sarFileSplitInfo/add`, params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
eventBUs.$emit('searchReset')
|
eventBUs.$emit('searchGetData')
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
this.$emit('visible', false)
|
this.$emit('visible', false)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -206,7 +206,7 @@
|
|||||||
:title="$t('Administrativeprivileges')">{{$t('Administrativeprivileges')}}</span>
|
:title="$t('Administrativeprivileges')">{{$t('Administrativeprivileges')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="authManageIdsName">
|
<a-form-model-item class="itemModel" prop="authManageIdsName">
|
||||||
<PersonnelSelectionAll class="box-input add-input"
|
<PersonnelSelection class="box-input add-input"
|
||||||
:personneQuery="form"
|
:personneQuery="form"
|
||||||
:query="{db_field_name:'authManageIds',db_field_txt:$t('Administrativeprivileges')}"
|
:query="{db_field_name:'authManageIds',db_field_txt:$t('Administrativeprivileges')}"
|
||||||
@change="PersonnelSelectionChange"
|
@change="PersonnelSelectionChange"
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
:title="$t('Checkthepermissions')">{{$t('Checkthepermissions')}}</span>
|
:title="$t('Checkthepermissions')">{{$t('Checkthepermissions')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="authViewIdsName">
|
<a-form-model-item class="itemModel" prop="authViewIdsName">
|
||||||
<PersonnelSelectionAll
|
<PersonnelSelection
|
||||||
class="box-input add-input"
|
class="box-input add-input"
|
||||||
:personneQuery="form"
|
:personneQuery="form"
|
||||||
:query="{db_field_name:'authViewIds',db_field_txt:$t('Checkthepermissions')}"
|
:query="{db_field_name:'authViewIds',db_field_txt:$t('Checkthepermissions')}"
|
||||||
@@ -274,14 +274,14 @@ import Vue from 'vue'
|
|||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import eventBUs from '@/common/event'
|
import eventBUs from '@/common/event'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import PersonnelSelectionAll from '@/components/PersonnelSelectionAll/index'
|
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SplitDetail',
|
name: 'SplitDetail',
|
||||||
components: {
|
components: {
|
||||||
addModel,
|
addModel,
|
||||||
handleModel,
|
handleModel,
|
||||||
PersonnelSelectionAll,
|
PersonnelSelection,
|
||||||
globalAdvancedQuery
|
globalAdvancedQuery
|
||||||
// ImportFile
|
// ImportFile
|
||||||
},
|
},
|
||||||
@@ -733,11 +733,11 @@ export default {
|
|||||||
// console.log('parms',params)
|
// console.log('parms',params)
|
||||||
putAction(`extRepo/extRepoFolder/edit`, params).then(res => {
|
putAction(`extRepo/extRepoFolder/edit`, params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(res.message)
|
||||||
this.form = {}
|
this.form = {}
|
||||||
this.loadMenuData()
|
this.loadMenuData()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.flag = false
|
this.flag = false
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: true}"
|
:scroll="{x: '100%'}"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
>
|
>
|
||||||
@@ -41,31 +41,36 @@
|
|||||||
title: this.$t('OperationContent'),
|
title: this.$t('OperationContent'),
|
||||||
dataIndex: 'taskDefinitionKeyName',
|
dataIndex: 'taskDefinitionKeyName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '20%'
|
width: '20%',
|
||||||
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('opinion'),
|
title: this.$t('opinion'),
|
||||||
dataIndex: 'approvalOpinion',
|
dataIndex: 'approvalOpinion',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '20%'
|
width: '20%',
|
||||||
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('Operator'),
|
title: this.$t('Operator'),
|
||||||
dataIndex: 'createBy',
|
dataIndex: 'createBy',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '20%'
|
width: '20%',
|
||||||
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('role'),
|
title: this.$t('role'),
|
||||||
dataIndex: 'operatorRoleName',
|
dataIndex: 'operatorRoleName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '20%'
|
width: '20%',
|
||||||
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('OperationTime'),
|
title: this.$t('OperationTime'),
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '20%',
|
width: '20%',
|
||||||
|
ellipsis: true,
|
||||||
customRender: function(t, r, index) {
|
customRender: function(t, r, index) {
|
||||||
return moment(t).format('YYYY-MM-DD HH:mm:ss')
|
return moment(t).format('YYYY-MM-DD HH:mm:ss')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -187,7 +187,7 @@
|
|||||||
let json = Object.assign(this.queryBy, { handlingTime: handlingTime }, value)
|
let json = Object.assign(this.queryBy, { handlingTime: handlingTime }, value)
|
||||||
let data = JSON.stringify(json).replace(/\"/g, '\'')
|
let data = JSON.stringify(json).replace(/\"/g, '\'')
|
||||||
Object.keys(data).forEach(res => {
|
Object.keys(data).forEach(res => {
|
||||||
if (data[res] && data[res] instanceof String) {
|
if (data[res] && typeof data[res] == 'string') {
|
||||||
data[res] = data[res].replace(/\"/g, '“')
|
data[res] = data[res].replace(/\"/g, '“')
|
||||||
data[res] = data[res].replace(/\'/g, '‘')
|
data[res] = data[res].replace(/\'/g, '‘')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="action-bar">
|
<div class="action-bar">
|
||||||
</div>
|
</div>
|
||||||
<regulatoryCirculationHistory v-if="$route.query.prcType == '5' || $route.query.prcType == '6'"/>
|
<regulatoryCirculationHistory :isTrue="isTrue"
|
||||||
|
v-if="$route.query.prcType == '5' || $route.query.prcType == '6'"/>
|
||||||
<circulationHistory v-else/>
|
<circulationHistory v-else/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -33,7 +34,8 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
processStep: null
|
processStep: null,
|
||||||
|
isTrue: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -41,6 +43,11 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.processNum()
|
this.processNum()
|
||||||
|
if (this.$route.query.prcType == '6') {
|
||||||
|
this.isTrue = true
|
||||||
|
} else {
|
||||||
|
this.isTrue = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
back() {
|
back() {
|
||||||
|
|||||||
@@ -804,6 +804,49 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
<div class="header-text" v-if="rejectCauseList && rejectCauseList.length > 0">
|
||||||
|
{{$t('reasonsForRejection')}}
|
||||||
|
</div>
|
||||||
|
<div v-if="rejectCauseList && rejectCauseList.length > 0"
|
||||||
|
v-for="(item,index) in rejectCauseList">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('rejectedBy')">{{$t('rejectedBy')}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="itemModel-reject">
|
||||||
|
{{item.createBy ? item.createBy : '--'}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('rejectionTime')">{{$t('rejectionTime')}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="itemModel-reject">
|
||||||
|
{{item.rejectTime ? item.rejectTime : '--'}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('rejectReason')">{{$t('rejectReason')}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="itemModel-reject">
|
||||||
|
{{item.rejectCause ? item.rejectCause : '--'}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</div>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<div class="drawer-bootom-button">
|
<div class="drawer-bootom-button">
|
||||||
@@ -907,7 +950,8 @@
|
|||||||
verifyDutyIdDisabled: false,
|
verifyDutyIdDisabled: false,
|
||||||
verifyInitiatorIdDisabled: false,
|
verifyInitiatorIdDisabled: false,
|
||||||
DeliverableTreeList: [],
|
DeliverableTreeList: [],
|
||||||
userInfoQuery: {}
|
userInfoQuery: {},
|
||||||
|
rejectCauseList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -916,6 +960,18 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
|
getRejectCause(id) {
|
||||||
|
let query = {
|
||||||
|
projectLawsInventoryId: id
|
||||||
|
}
|
||||||
|
getAction('/project/projectLawsInventoryRejectCauseEO/list', query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.rejectCauseList = res.result
|
||||||
|
} else {
|
||||||
|
this.rejectCauseList = []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getDeliverableTree() {
|
getDeliverableTree() {
|
||||||
getAction('/sys/category/getDeliverableTree', {}).then((res) => {
|
getAction('/sys/category/getDeliverableTree', {}).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
@@ -1110,6 +1166,7 @@
|
|||||||
item.designDeliverableType = item.designDeliverableType ? item.designDeliverableType.split(',') : []
|
item.designDeliverableType = item.designDeliverableType ? item.designDeliverableType.split(',') : []
|
||||||
item.prehomoDeliverableType = item.prehomoDeliverableType ? item.prehomoDeliverableType.split(',') : []
|
item.prehomoDeliverableType = item.prehomoDeliverableType ? item.prehomoDeliverableType.split(',') : []
|
||||||
item.verifyDeliverableType = item.verifyDeliverableType ? item.verifyDeliverableType.split(',') : []
|
item.verifyDeliverableType = item.verifyDeliverableType ? item.verifyDeliverableType.split(',') : []
|
||||||
|
this.getRejectCause(item.id)
|
||||||
if (item.dutyTerritory) {
|
if (item.dutyTerritory) {
|
||||||
this.queryPersonByProject(item)
|
this.queryPersonByProject(item)
|
||||||
} else {
|
} else {
|
||||||
@@ -1400,6 +1457,15 @@
|
|||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.itemModel-reject {
|
||||||
|
width: calc(100% - 130px);
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 16px;
|
||||||
|
word-break: break-all;
|
||||||
|
color: #040B29;
|
||||||
|
padding-top: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
.Required {
|
.Required {
|
||||||
color: red;
|
color: red;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
|
|||||||
@@ -220,6 +220,11 @@
|
|||||||
@click="edit(record)">
|
@click="edit(record)">
|
||||||
{{ $t('edit') }}
|
{{ $t('edit') }}
|
||||||
</a>
|
</a>
|
||||||
|
<a class="text-operation"
|
||||||
|
v-else
|
||||||
|
@click="viewClick(record)">
|
||||||
|
{{$t('view')}}
|
||||||
|
</a>
|
||||||
<a class="text-operation"
|
<a class="text-operation"
|
||||||
v-if="(record.inventoryAffirmStatus == 'Not started' || record.inventoryAffirmStatus == 'Rejected') && record.roleCode == 0"
|
v-if="(record.inventoryAffirmStatus == 'Not started' || record.inventoryAffirmStatus == 'Rejected') && record.roleCode == 0"
|
||||||
@click="deleteLib(record)">
|
@click="deleteLib(record)">
|
||||||
@@ -229,10 +234,13 @@
|
|||||||
@click="resultReportedClick(record)">
|
@click="resultReportedClick(record)">
|
||||||
{{$t('resultReported')}}
|
{{$t('resultReported')}}
|
||||||
</a>
|
</a>
|
||||||
<a class="text-operation"
|
|
||||||
@click="viewClick(record)">
|
</span>
|
||||||
|
<span slot="operationOne" slot-scope="text,record">
|
||||||
|
<a class="text-operation"
|
||||||
|
@click="viewClick(record)">
|
||||||
{{$t('view')}}
|
{{$t('view')}}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span slot="titleName" slot-scope="text,record" :title="text">
|
<span slot="titleName" slot-scope="text,record" :title="text">
|
||||||
<span class="textName">
|
<span class="textName">
|
||||||
@@ -745,6 +753,13 @@
|
|||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 240,
|
width: 240,
|
||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'operation' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('operation'),
|
||||||
|
align: 'center',
|
||||||
|
fixed: 'right',
|
||||||
|
width: 140,
|
||||||
|
scopedSlots: { customRender: 'operationOne' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
columnsFileAll: [
|
columnsFileAll: [
|
||||||
@@ -1014,7 +1029,14 @@
|
|||||||
let columnResult = JSON.parse(JSON.stringify(this.columnsAll))
|
let columnResult = JSON.parse(JSON.stringify(this.columnsAll))
|
||||||
if (!this.isRoleSwitching) {
|
if (!this.isRoleSwitching) {
|
||||||
for (var i = 0; i < columnResult.length; i++) {
|
for (var i = 0; i < columnResult.length; i++) {
|
||||||
if (columnResult[i].title === this.$t('operation')) {
|
if (columnResult[i].title === this.$t('operation') && columnResult[i].width == 240) {
|
||||||
|
columnResult.splice(i, 1)
|
||||||
|
i--
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (this.isRoleSwitching) {
|
||||||
|
for (var i = 0; i < columnResult.length; i++) {
|
||||||
|
if (columnResult[i].title === this.$t('operation') && columnResult[i].width == 140) {
|
||||||
columnResult.splice(i, 1)
|
columnResult.splice(i, 1)
|
||||||
i--
|
i--
|
||||||
}
|
}
|
||||||
@@ -2019,15 +2041,18 @@
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
let url = '/project/projectCommentEO/add'
|
let url = '/project/projectCommentEO/add'
|
||||||
let content = []
|
let content = []
|
||||||
|
let ids = []
|
||||||
if (this.rowKeysSuccessList && this.rowKeysSuccessList.length > 0) {
|
if (this.rowKeysSuccessList && this.rowKeysSuccessList.length > 0) {
|
||||||
this.rowKeysSuccessList.forEach(res => {
|
this.rowKeysSuccessList.forEach(res => {
|
||||||
content.push(res.serialNumber)
|
content.push(res.serialNumber)
|
||||||
|
ids.push(res.id)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
let query = {
|
let query = {
|
||||||
commentContent: this.$t('For') + content.join(',') + this.$t('markedRejection') + ':' + this.formInlineComment.commentContent,
|
commentContent: this.$t('For') + content.join(',') + this.$t('markedRejection') + ':' + this.formInlineComment.commentContent,
|
||||||
projectLibraryId: this.$route.query.id
|
projectLibraryId: this.$route.query.id
|
||||||
}
|
}
|
||||||
|
this.rejectCauseAdd(this.formInlineComment.commentContent,ids)
|
||||||
this.confirmLoadingComment = true
|
this.confirmLoadingComment = true
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
this.updateStatusBatch(1, selectedRowKeys)
|
this.updateStatusBatch(1, selectedRowKeys)
|
||||||
@@ -2042,6 +2067,19 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
rejectCauseAdd(rejectCause,ids) {
|
||||||
|
let rejectTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
|
let query = {
|
||||||
|
rejectUserId:this.userInfo().id,
|
||||||
|
rejectTime:rejectTime,
|
||||||
|
rejectCause:rejectCause,
|
||||||
|
projectLawsInventoryId:ids.join(','),
|
||||||
|
rejectType:'0',
|
||||||
|
}
|
||||||
|
postAction('/project/projectLawsInventoryRejectCauseEO/add', query).then((res) => {
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
handleCancelComment() {
|
handleCancelComment() {
|
||||||
this.visibleComment = false
|
this.visibleComment = false
|
||||||
},
|
},
|
||||||
@@ -2368,7 +2406,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .ant-table-row:first-child {
|
::v-deep .ant-table-row:first-child {
|
||||||
background: #fff!important;
|
background: #fff !important;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -433,46 +433,49 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<!-- <div class="header-text">-->
|
<div class="header-text" v-if="rejectCauseList && rejectCauseList.length > 0">
|
||||||
<!-- {{$t('reasonsForRejection')}}-->
|
{{$t('reasonsForRejection')}}
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<!-- <a-row :gutter="24">-->
|
<div v-if="rejectCauseList && rejectCauseList.length > 0"
|
||||||
<!-- <a-col :span="12">-->
|
v-for="(item,index) in rejectCauseList">
|
||||||
<!-- <div class="box-title-text">-->
|
<a-row :gutter="24">
|
||||||
<!-- <div class="title-text">-->
|
<a-col :span="12">
|
||||||
<!-- <span class="title-text-text"-->
|
<div class="box-title-text">
|
||||||
<!-- :title="$t('rejectedBy')">{{$t('rejectedBy')}}</span>-->
|
<div class="title-text">
|
||||||
<!-- </div>-->
|
<span class="title-text-text"
|
||||||
<!-- <div class="itemModel">-->
|
:title="$t('rejectedBy')">{{$t('rejectedBy')}}</span>
|
||||||
<!-- {{formInline.verifyRemark ? formInline.verifyRemark : '--'}}-->
|
</div>
|
||||||
<!-- </div>-->
|
<div class="itemModel">
|
||||||
<!-- </div>-->
|
{{item.createBy ? item.createBy : '--'}}
|
||||||
<!-- </a-col>-->
|
</div>
|
||||||
<!-- <a-col :span="12">-->
|
</div>
|
||||||
<!-- <div class="box-title-text">-->
|
</a-col>
|
||||||
<!-- <div class="title-text">-->
|
<a-col :span="12">
|
||||||
<!-- <span class="title-text-text"-->
|
<div class="box-title-text">
|
||||||
<!-- :title="$t('rejectionTime')">{{$t('rejectionTime')}}</span>-->
|
<div class="title-text">
|
||||||
<!-- </div>-->
|
<span class="title-text-text"
|
||||||
<!-- <div class="itemModel">-->
|
:title="$t('rejectionTime')">{{$t('rejectionTime')}}</span>
|
||||||
<!-- {{formInline.verifyRemark ? formInline.verifyRemark : '--'}}-->
|
</div>
|
||||||
<!-- </div>-->
|
<div class="itemModel">
|
||||||
<!-- </div>-->
|
{{item.rejectTime ? item.rejectTime : '--'}}
|
||||||
<!-- </a-col>-->
|
</div>
|
||||||
<!-- </a-row>-->
|
</div>
|
||||||
<!-- <a-row :gutter="24">-->
|
</a-col>
|
||||||
<!-- <a-col :span="12">-->
|
</a-row>
|
||||||
<!-- <div class="box-title-text">-->
|
<a-row :gutter="24">
|
||||||
<!-- <div class="title-text">-->
|
<a-col :span="24">
|
||||||
<!-- <span class="title-text-text"-->
|
<div class="box-title-text">
|
||||||
<!-- :title="$t('rejectReason')">{{$t('rejectReason')}}</span>-->
|
<div class="title-text">
|
||||||
<!-- </div>-->
|
<span class="title-text-text"
|
||||||
<!-- <div class="itemModel">-->
|
:title="$t('rejectReason')">{{$t('rejectReason')}}</span>
|
||||||
<!-- {{formInline.verifyRemark ? formInline.verifyRemark : '--'}}-->
|
</div>
|
||||||
<!-- </div>-->
|
<div class="itemModel">
|
||||||
<!-- </div>-->
|
{{item.rejectCause ? item.rejectCause : '--'}}
|
||||||
<!-- </a-col>-->
|
</div>
|
||||||
<!-- </a-row>-->
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</div>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<div class="drawer-bootom-button">
|
<div class="drawer-bootom-button">
|
||||||
@@ -486,7 +489,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import viewFileModel from '@/components/viewFileModel/index'
|
import viewFileModel from '@/components/viewFileModel/index'
|
||||||
|
import { getAction, postAction, putAction } from '@/api/manage'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -503,7 +506,8 @@
|
|||||||
rulesData: {},
|
rulesData: {},
|
||||||
formInline: {},
|
formInline: {},
|
||||||
disabled: false,
|
disabled: false,
|
||||||
userInfoQuery: {}
|
userInfoQuery: {},
|
||||||
|
rejectCauseList:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -514,8 +518,21 @@
|
|||||||
editModel(item) {
|
editModel(item) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.formInline = item
|
this.formInline = item
|
||||||
|
this.getRejectCause(item.id)
|
||||||
this.formInline = { ...this.formInline }
|
this.formInline = { ...this.formInline }
|
||||||
},
|
},
|
||||||
|
getRejectCause(id) {
|
||||||
|
let query = {
|
||||||
|
projectLawsInventoryId: id
|
||||||
|
}
|
||||||
|
getAction('/project/projectLawsInventoryRejectCauseEO/list', query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.rejectCauseList = res.result
|
||||||
|
} else {
|
||||||
|
this.rejectCauseList = []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
@@ -550,7 +567,7 @@
|
|||||||
width: calc(100% - 130px);
|
width: calc(100% - 130px);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
word-break: break-word;
|
word-break: break-all;
|
||||||
color: #040B29;
|
color: #040B29;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -119,6 +119,8 @@
|
|||||||
'17':this.$t('listConfirmation'),
|
'17':this.$t('listConfirmation'),
|
||||||
'18':this.$t('taskAffirm'),
|
'18':this.$t('taskAffirm'),
|
||||||
'19':this.$t('complianceConfirmation'),
|
'19':this.$t('complianceConfirmation'),
|
||||||
|
'20':this.$t('collectionLegislativeComments'),
|
||||||
|
'21':this.$t('regulatoryAndTechnicalAssessment'),
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user