Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
+3
-2
@@ -304,8 +304,6 @@ public class ParamsManifestEOServiceImpl extends ServiceImpl<ParamsManifestEOMap
|
|||||||
updateById(updateParamsManifestEO);
|
updateById(updateParamsManifestEO);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
manifestEO.setState(ManifestStateEnum.COLLECTING.getValue());
|
|
||||||
manifestEO.setFinishTime(null);
|
|
||||||
if (ManifestStateEnum.FINISHED.getValue().equals(manifestEO.getState())) {
|
if (ManifestStateEnum.FINISHED.getValue().equals(manifestEO.getState())) {
|
||||||
// 更新清单状态和完成时间
|
// 更新清单状态和完成时间
|
||||||
ParamsManifestEO updateParamsManifestEO = new ParamsManifestEO();
|
ParamsManifestEO updateParamsManifestEO = new ParamsManifestEO();
|
||||||
@@ -314,6 +312,9 @@ public class ParamsManifestEOServiceImpl extends ServiceImpl<ParamsManifestEOMap
|
|||||||
updateParamsManifestEO.setFinishTime(null);
|
updateParamsManifestEO.setFinishTime(null);
|
||||||
updateById(updateParamsManifestEO);
|
updateById(updateParamsManifestEO);
|
||||||
}
|
}
|
||||||
|
manifestEO.setState(ManifestStateEnum.COLLECTING.getValue());
|
||||||
|
manifestEO.setFinishTime(null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 添加配置标识,清单参数项状态为 待发起、变更时,可添加配置
|
// 添加配置标识,清单参数项状态为 待发起、变更时,可添加配置
|
||||||
|
|||||||
+7
-1
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.jero.common.api.vo.Result;
|
import com.jero.common.api.vo.Result;
|
||||||
import com.jero.common.aspect.annotation.AutoLog;
|
import com.jero.common.aspect.annotation.AutoLog;
|
||||||
|
import com.jero.common.constant.enums.CutEnum;
|
||||||
import com.jero.common.system.base.controller.JeroController;
|
import com.jero.common.system.base.controller.JeroController;
|
||||||
import com.jero.modules.cert.template.entity.ParamsTemplateEO;
|
import com.jero.modules.cert.template.entity.ParamsTemplateEO;
|
||||||
import com.jero.modules.cert.template.service.IParamsTemplateEOService;
|
import com.jero.modules.cert.template.service.IParamsTemplateEOService;
|
||||||
@@ -188,10 +189,15 @@ public class ParamsTemplateEOController extends JeroController<ParamsTemplateEO,
|
|||||||
@GetMapping(value = "/copyById")
|
@GetMapping(value = "/copyById")
|
||||||
@RequiresPermissions("params:template:copy")
|
@RequiresPermissions("params:template:copy")
|
||||||
public Result<?> copyById(@RequestParam(name="id") String id,
|
public Result<?> copyById(@RequestParam(name="id") String id,
|
||||||
@RequestParam(name="paramsTemplateName") String paramsTemplateName) {
|
@RequestParam(name="paramsTemplateName") String paramsTemplateName,
|
||||||
|
@RequestParam(name="cut") String cut) {
|
||||||
ParamsTemplateEO paramsTemplateEO = paramsTemplateEOService.copyById(id, paramsTemplateName);
|
ParamsTemplateEO paramsTemplateEO = paramsTemplateEOService.copyById(id, paramsTemplateName);
|
||||||
|
if (CutEnum.EN.getValue().equals(cut)) {
|
||||||
|
return Result.OK("Copy successful", paramsTemplateEO);
|
||||||
|
} else {
|
||||||
return Result.OK("复制成功", paramsTemplateEO);
|
return Result.OK("复制成功", paramsTemplateEO);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1028,6 +1028,7 @@ module.exports = {
|
|||||||
FNumber: 'Number',
|
FNumber: 'Number',
|
||||||
NNNiONumber: 'Number',
|
NNNiONumber: 'Number',
|
||||||
NNiONumber: 'NIO Number',
|
NNiONumber: 'NIO Number',
|
||||||
|
ParameterNo: 'Number',
|
||||||
NRequired: 'Is Must',
|
NRequired: 'Is Must',
|
||||||
NParameterName: 'Params Name',
|
NParameterName: 'Params Name',
|
||||||
NtechnicalField: 'Technical Field',
|
NtechnicalField: 'Technical Field',
|
||||||
|
|||||||
@@ -1033,6 +1033,7 @@ module.exports = {
|
|||||||
FNumber: '账号',
|
FNumber: '账号',
|
||||||
NNNiONumber: 'NIO编号',
|
NNNiONumber: 'NIO编号',
|
||||||
NNiONumber: 'NIO编号',
|
NNiONumber: 'NIO编号',
|
||||||
|
ParameterNo: '编号',
|
||||||
NRequired: '是否必填',
|
NRequired: '是否必填',
|
||||||
NParameterName: '参数名称',
|
NParameterName: '参数名称',
|
||||||
NtechnicalField: '技术领域',
|
NtechnicalField: '技术领域',
|
||||||
|
|||||||
@@ -236,13 +236,13 @@
|
|||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="Required">*</span>
|
<span class="Required">*</span>
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('NNNiONumber')">{{$t('NNNiONumber')}}</span>
|
:title="$t('ParameterNo')">{{$t('ParameterNo')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel">
|
<a-form-model-item class="itemModel">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="item.paramsNumber"
|
v-model="item.paramsNumber"
|
||||||
:placeholder="$t('PleaseEnter')+$t('NNNiONumber')"/>
|
:placeholder="$t('PleaseEnter')+$t('ParameterNo')"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@@ -57,6 +57,9 @@
|
|||||||
{{ text && text.length > 50 ? text.slice(0, 49) + '...' : text }}
|
{{ text && text.length > 50 ? text.slice(0, 49) + '...' : text }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
<span slot="collectionCompletionTime" slot-scope="text,record">
|
||||||
|
{{record.finishTime ? record.finishTime : '-'}}
|
||||||
|
</span>
|
||||||
<span slot="operation" slot-scope="text,record">
|
<span slot="operation" slot-scope="text,record">
|
||||||
<a class="text-operation" @click="configure(record)">{{$t('configure')}}</a>
|
<a class="text-operation" @click="configure(record)">{{$t('configure')}}</a>
|
||||||
<a class="text-operation" @click="edit(record)">{{$t('edit')}}</a>
|
<a class="text-operation" @click="edit(record)">{{$t('edit')}}</a>
|
||||||
@@ -77,8 +80,9 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- 参数模板-->
|
<!-- 参数模板-->
|
||||||
<a-modal v-model="areaVisible" :title="$t('parameterTemplate')" width='750px' :footer="null">
|
<a-modal v-model="areaVisible" :maskClosable="false" :title="$t('parameterTemplate')" width='750px' :footer="null">
|
||||||
<parameter-template-add :url='url' ref='templateRef' v-if='areaVisible' @areaVisible='handleCancel' :version='version'
|
<parameter-template-add :url='url' ref='templateRef' v-if='areaVisible' @areaVisible='handleCancel'
|
||||||
|
:version='version'
|
||||||
:projectId='this.$route.query.id'></parameter-template-add>
|
:projectId='this.$route.query.id'></parameter-template-add>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<!-- 配置-->
|
<!-- 配置-->
|
||||||
@@ -89,7 +93,8 @@
|
|||||||
</a-modal>
|
</a-modal>
|
||||||
<!-- 复制参数模板-->
|
<!-- 复制参数模板-->
|
||||||
<a-modal class="show-drawer" :title="$t('Copyparameterlist')" width="700px" v-model="drawerVisible" :footer="null">
|
<a-modal class="show-drawer" :title="$t('Copyparameterlist')" width="700px" v-model="drawerVisible" :footer="null">
|
||||||
<project-collection-parameters v-if='drawerVisible' @areaVisible='drawerhandleCancel' :templateTitle='templatetitle' @copysubmit='copysubmit'
|
<project-collection-parameters v-if='drawerVisible' @areaVisible='drawerhandleCancel'
|
||||||
|
:templateTitle='templatetitle' @copysubmit='copysubmit'
|
||||||
:selectedRowKeyS='selectedRowKeys' :rowId='rowId' :version='version' :url='url'
|
:selectedRowKeyS='selectedRowKeys' :rowId='rowId' :version='version' :url='url'
|
||||||
:projectId='this.$route.query.id'></project-collection-parameters>
|
:projectId='this.$route.query.id'></project-collection-parameters>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
@@ -139,7 +144,8 @@
|
|||||||
{
|
{
|
||||||
title: this.$t('collectionCompletionTime'),
|
title: this.$t('collectionCompletionTime'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'finishTime'
|
dataIndex: 'finishTime',
|
||||||
|
scopedSlots: { customRender: 'collectionCompletionTime' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('Version'),
|
title: this.$t('Version'),
|
||||||
@@ -199,7 +205,7 @@
|
|||||||
drawerVisible: false,
|
drawerVisible: false,
|
||||||
drawerVisibleitem: false,
|
drawerVisibleitem: false,
|
||||||
titleTag: '',
|
titleTag: '',
|
||||||
selectedRowKeysvalArray: [],
|
selectedRowKeysvalArray: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -214,7 +220,7 @@
|
|||||||
localStorage.setItem('paramsManifest', JSON.stringify(item))
|
localStorage.setItem('paramsManifest', JSON.stringify(item))
|
||||||
let newUrl = _this.$router.resolve({
|
let newUrl = _this.$router.resolve({
|
||||||
path: '/ParameterItemCollection',
|
path: '/ParameterItemCollection',
|
||||||
query: item,
|
query: item
|
||||||
})
|
})
|
||||||
window.open(newUrl.href, '_blank')
|
window.open(newUrl.href, '_blank')
|
||||||
} else {
|
} else {
|
||||||
@@ -501,6 +507,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .add-padding {
|
/deep/ .add-padding {
|
||||||
margin-left: -89px !important;
|
margin-left: -89px !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,16 +11,16 @@
|
|||||||
>
|
>
|
||||||
<a-row :gutter='24'>
|
<a-row :gutter='24'>
|
||||||
<a-col :span='9'>
|
<a-col :span='9'>
|
||||||
<a-form-model-item :label="$t('title')" prop='title'>
|
<a-form-model-item class="itemAddAdmin" :label="$t('title')" prop='title'>
|
||||||
<a-input style='width: 420px'
|
<a-input style='width: 420px'
|
||||||
:placeholder="$t('PleaseEnter')+$t('title')"
|
:placeholder="$t('PleaseEnter')+$t('title')"
|
||||||
v-model='formData.title'/>
|
v-model='formData.title'/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span='9'>
|
<!-- <a-col :span='9'>-->
|
||||||
</a-col>
|
<!-- </a-col>-->
|
||||||
<a-col :span='6'>
|
<!-- <a-col :span='6'>-->
|
||||||
</a-col>
|
<!-- </a-col>-->
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter='24'>
|
<a-row :gutter='24'>
|
||||||
<a-col :span='9'>
|
<a-col :span='9'>
|
||||||
@@ -119,7 +119,12 @@ export default {
|
|||||||
formData: {},
|
formData: {},
|
||||||
rules: {
|
rules: {
|
||||||
title: [
|
title: [
|
||||||
{ required: true, message: this.$t('enterTitle'), trigger: 'blur' }
|
{ required: true, message: this.$t('enterTitle'), trigger: 'blur' },
|
||||||
|
{
|
||||||
|
max: 200,
|
||||||
|
message: this.$t('title') + this.$t('cannotExceed') + 200 + this.$t('Characters'),
|
||||||
|
trigger: 'blur'
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
areaTable: [],
|
areaTable: [],
|
||||||
@@ -303,7 +308,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
}
|
||||||
// 编辑
|
// 编辑
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -331,10 +336,12 @@ export default {
|
|||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer-bootom-button {
|
.drawer-bootom-button {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Required {
|
.Required {
|
||||||
color: red;
|
color: red;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
@@ -353,3 +360,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<style>
|
||||||
|
.itemAddAdmin .ant-form-item-control-wrapper .has-error .ant-form-explain {
|
||||||
|
white-space: nowrap!important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -174,7 +174,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 清单列表传出数据
|
// 清单列表传出数据
|
||||||
listVisibleRow(val) {
|
listVisibleRow(val) {
|
||||||
this.selectedRowKeys = []
|
// this.selectedRowKeys = []
|
||||||
let newAreaTable=JSON.parse(JSON.stringify(this.areaTable))
|
let newAreaTable=JSON.parse(JSON.stringify(this.areaTable))
|
||||||
newAreaTable.forEach((item, index) => {
|
newAreaTable.forEach((item, index) => {
|
||||||
if( item.id == this.listVisibleRowDate.id ) {
|
if( item.id == this.listVisibleRowDate.id ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user