Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
+10
-5
@@ -54,12 +54,16 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
|||||||
@AutoLog(value = "文档对比信息表-分页列表查询")
|
@AutoLog(value = "文档对比信息表-分页列表查询")
|
||||||
@ApiOperation(value = "文档对比信息表-分页列表查询", notes = "文档对比信息表-分页列表查询")
|
@ApiOperation(value = "文档对比信息表-分页列表查询", notes = "文档对比信息表-分页列表查询")
|
||||||
@GetMapping(value = "/page")
|
@GetMapping(value = "/page")
|
||||||
public Result<?> queryPageList(SarFileCompareInfo sarFileCompareInfo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
public Result<?> queryPageList(SarFileCompareInfo sarFileCompareInfo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||||
|
@RequestParam(name = "cut", defaultValue = "cn") String cut, HttpServletRequest req) {
|
||||||
QueryWrapper<SarFileCompareInfo> queryWrapper = QueryGenerator.initQueryWrapper(sarFileCompareInfo, req.getParameterMap());
|
QueryWrapper<SarFileCompareInfo> queryWrapper = QueryGenerator.initQueryWrapper(sarFileCompareInfo, req.getParameterMap());
|
||||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
queryWrapper.eq("create_by", sysUser.getUsername()).or().eq("release_state", ReleaseConditionEnum.DRAFT.getValue());
|
queryWrapper.eq("create_by", sysUser.getUsername()).or().eq("release_state", ReleaseConditionEnum.DRAFT.getValue());
|
||||||
Page<SarFileCompareInfo> page = new Page<SarFileCompareInfo>(pageNo, pageSize);
|
Page<SarFileCompareInfo> page = new Page<SarFileCompareInfo>(pageNo, pageSize);
|
||||||
IPage<SarFileCompareInfo> pageList = sarFileCompareInfoService.page(page, queryWrapper);
|
IPage<SarFileCompareInfo> pageList = sarFileCompareInfoService.page(page, queryWrapper);
|
||||||
|
for (SarFileCompareInfo info : pageList.getRecords()) {
|
||||||
|
info.setReleaseStateTitle(ReleaseConditionEnum.getTextByValue(info.getReleaseState(), cut));
|
||||||
|
}
|
||||||
return Result.OK(pageList);
|
return Result.OK(pageList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -208,12 +212,13 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
|||||||
@ApiOperation(value = "文档对比信息表-更改发布状态", notes = "文档对比信息表-更改发布状态")
|
@ApiOperation(value = "文档对比信息表-更改发布状态", notes = "文档对比信息表-更改发布状态")
|
||||||
@RequestMapping(value = "/changeState", method = RequestMethod.POST)
|
@RequestMapping(value = "/changeState", method = RequestMethod.POST)
|
||||||
public Result<?> changeState(@Validated @RequestBody SarFileCompareInfo sarFileCompareInfo) {
|
public Result<?> changeState(@Validated @RequestBody SarFileCompareInfo sarFileCompareInfo) {
|
||||||
if (sarFileCompareInfo.getReleaseState().equals(ReleaseConditionEnum.DRAFT.getValue())) {
|
SarFileCompareInfo info = sarFileCompareInfoService.queryById(sarFileCompareInfo.getId());
|
||||||
sarFileCompareInfo.setReleaseState(ReleaseConditionEnum.PUBLISHED.getValue());
|
if (ReleaseConditionEnum.DRAFT.getValue().equals(sarFileCompareInfo.getReleaseState())) {
|
||||||
|
info.setReleaseState(ReleaseConditionEnum.PUBLISHED.getValue());
|
||||||
} else {
|
} else {
|
||||||
sarFileCompareInfo.setReleaseState(ReleaseConditionEnum.DRAFT.getValue());
|
info.setReleaseState(ReleaseConditionEnum.DRAFT.getValue());
|
||||||
}
|
}
|
||||||
sarFileCompareInfoService.editById(sarFileCompareInfo);
|
sarFileCompareInfoService.editById(info);
|
||||||
return Result.OK("更改成功!");
|
return Result.OK("更改成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
@@ -4,6 +4,7 @@ import java.io.Serializable;
|
|||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -126,6 +127,10 @@ public class SarFileCompareInfo implements Serializable {
|
|||||||
@ApiModelProperty(value = "发布状态")
|
@ApiModelProperty(value = "发布状态")
|
||||||
private String releaseState;
|
private String releaseState;
|
||||||
|
|
||||||
|
/**发布状态-翻译后*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String releaseStateTitle;
|
||||||
|
|
||||||
/**备注*/
|
/**备注*/
|
||||||
@Excel(name = "备注", width = 15)
|
@Excel(name = "备注", width = 15)
|
||||||
@ApiModelProperty(value = "备注")
|
@ApiModelProperty(value = "备注")
|
||||||
|
|||||||
-24
@@ -1,24 +0,0 @@
|
|||||||
package com.jero.modules.compare.enums;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 对比信息发布状态
|
|
||||||
*/
|
|
||||||
public enum ComparesInfoStateEnum {
|
|
||||||
DRAFT(0, "草稿"), RELEASE(1, "发布");
|
|
||||||
|
|
||||||
private int value;
|
|
||||||
private String lable;
|
|
||||||
|
|
||||||
private ComparesInfoStateEnum(int value, String lable) {
|
|
||||||
this.value = value;
|
|
||||||
this.lable = lable;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLable() {
|
|
||||||
return lable;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -95,7 +95,7 @@ module.exports = {
|
|||||||
newUser: 'New User',
|
newUser: 'New User',
|
||||||
ExistingUsers: 'Existing Users',
|
ExistingUsers: 'Existing Users',
|
||||||
total: 'Total',
|
total: 'Total',
|
||||||
strip: 'Data',
|
strip: 'Items',
|
||||||
RoleCode: 'Role Code',
|
RoleCode: 'Role Code',
|
||||||
createTime: 'Creation Time',
|
createTime: 'Creation Time',
|
||||||
userName: 'User Name',
|
userName: 'User Name',
|
||||||
@@ -276,7 +276,7 @@ module.exports = {
|
|||||||
AggregateRouting: 'Aggregated Route',
|
AggregateRouting: 'Aggregated Route',
|
||||||
OpenMode: 'Open Mode',
|
OpenMode: 'Open Mode',
|
||||||
external: 'External',
|
external: 'External',
|
||||||
inside: 'Inside',
|
inside: 'Internal',
|
||||||
enterMenuTitle: 'Please enter the menu title',
|
enterMenuTitle: 'Please enter the menu title',
|
||||||
enterAuthorizationPolicy: 'Please enter authorization policy',
|
enterAuthorizationPolicy: 'Please enter authorization policy',
|
||||||
AuthorizationIDExists: 'Authorization ID already exists',
|
AuthorizationIDExists: 'Authorization ID already exists',
|
||||||
@@ -610,7 +610,7 @@ module.exports = {
|
|||||||
deliverableTemplate: 'Deliverable Template',
|
deliverableTemplate: 'Deliverable Template',
|
||||||
entryName: 'Project',
|
entryName: 'Project',
|
||||||
targetMarket: 'Target Market',
|
targetMarket: 'Target Market',
|
||||||
projectStatus: 'Status',
|
projectStatus: 'Development',
|
||||||
StudioEngineer: 'R&H Studio',
|
StudioEngineer: 'R&H Studio',
|
||||||
CertificationTime: 'Certification Time',
|
CertificationTime: 'Certification Time',
|
||||||
NTplatform: 'NT Platform',
|
NTplatform: 'NT Platform',
|
||||||
@@ -686,12 +686,12 @@ module.exports = {
|
|||||||
confirmOverrule: 'Confirm Overrule',
|
confirmOverrule: 'Confirm Overrule',
|
||||||
The: 'The',
|
The: 'The',
|
||||||
submitted: 'Data has been submitted and cannot be submitted again',
|
submitted: 'Data has been submitted and cannot be submitted again',
|
||||||
basicInformationOfParameters: 'Project Basic Information',
|
basicInformationOfParameters: 'General Info',
|
||||||
regulatoryCertificationTaskPlan: 'Regulation/Homologation Task Plan',
|
regulatoryCertificationTaskPlan: 'Regulation/Homologation Task Plan',
|
||||||
bringInRelevantPersonnel: 'Bring In Relevant Personnel',
|
bringInRelevantPersonnel: 'Bring In Relevant Personnel',
|
||||||
confirmBringInRelevantPersonnel: 'Confirm Bring in relevant personnel',
|
confirmBringInRelevantPersonnel: 'Confirm Bring in relevant personnel',
|
||||||
problemType: 'Issue Type',
|
problemType: 'Issue Type',
|
||||||
projectDetails: 'Project Info',
|
projectDetails: 'Project Details',
|
||||||
listOfRegulations: 'Regulation List',
|
listOfRegulations: 'Regulation List',
|
||||||
taskList: 'Task List',
|
taskList: 'Task List',
|
||||||
TaskParameterCollection: 'Task Parameter Collection',
|
TaskParameterCollection: 'Task Parameter Collection',
|
||||||
@@ -1241,4 +1241,5 @@ module.exports = {
|
|||||||
turnOnAutoMatch:'Turn on auto match',
|
turnOnAutoMatch:'Turn on auto match',
|
||||||
Adjustareasofresponsibility:'Adjust areas of responsibility',
|
Adjustareasofresponsibility:'Adjust areas of responsibility',
|
||||||
regulatoryTechnicalAssessment:'Regulatory Technical Assessment',
|
regulatoryTechnicalAssessment:'Regulatory Technical Assessment',
|
||||||
|
punctuationmark:'Only English punctuation marks other than the # sign can be entered',
|
||||||
}
|
}
|
||||||
@@ -1344,4 +1344,5 @@ module.exports = {
|
|||||||
turnOnAutoMatch:'打开自动匹配',
|
turnOnAutoMatch:'打开自动匹配',
|
||||||
Adjustareasofresponsibility:'调整责任领域',
|
Adjustareasofresponsibility:'调整责任领域',
|
||||||
regulatoryTechnicalAssessment:'法规技术评估',
|
regulatoryTechnicalAssessment:'法规技术评估',
|
||||||
|
punctuationmark:'只能输入除#号外的英文标点符号',
|
||||||
}
|
}
|
||||||
@@ -78,15 +78,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24" v-if='!required'>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="Required" v-if='!required'>*</span>
|
<span class="Required" >*</span>
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('MergeSeparator')">{{$t('MergeSeparator')}}</span>
|
:title="$t('MergeSeparator')">{{$t('MergeSeparator')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" :prop="!required?'separator':''">
|
<a-form-model-item class="itemModel" prop="separator">
|
||||||
<!-- :disabled="disabled"-->
|
<!-- :disabled="disabled"-->
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
v-model="formInline.separator"
|
v-model="formInline.separator"
|
||||||
|
|||||||
Reference in New Issue
Block a user