修改市场法规、认证清单的发布
This commit is contained in:
@@ -1805,4 +1805,6 @@ module.exports = {
|
||||
confirmSupplementarySubmission:'Confirm Supplementary Submission ?',
|
||||
onlyProcessStatusOfApprovedCanBeSelected:'Only data with a process status of approved can be selected',
|
||||
andTheOperatorCurrentData:' And the operator is the responsible person for the current data',
|
||||
upgradeInstructions:'Upgrade Instructions',
|
||||
upgradeOrNot:'Upgrade or not',
|
||||
}
|
||||
@@ -1907,4 +1907,6 @@ module.exports = {
|
||||
confirmSupplementarySubmission:'确认补充提交?',
|
||||
onlyProcessStatusOfApprovedCanBeSelected:'只能选择流程状态为审查通过的数据',
|
||||
andTheOperatorCurrentData:',并且登录人为当前数据的责任人',
|
||||
upgradeInstructions:'升版说明',
|
||||
upgradeOrNot:'是否升版',
|
||||
}
|
||||
@@ -128,6 +128,20 @@
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text-add">
|
||||
<div class="title-text-add">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('VersionNumber')">{{$t('VersionNumber')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="versionNum">
|
||||
<a-input class="box-input-add"
|
||||
v-model.trim="formInline.versionNum"
|
||||
:placeholder="$t('PleaseEnter')+$t('VersionNumber')"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text-add">
|
||||
<div class="title-text-add">
|
||||
@@ -150,6 +164,7 @@
|
||||
</div>
|
||||
</a-drawer>
|
||||
<setCreator ref="setCreatorRef" @clearSelected="clearSelected"/>
|
||||
<releaseForm ref="releaseFormRef" @releaseFormData="releaseFormData"/>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
@@ -160,6 +175,7 @@
|
||||
import VueDraggableResizable from 'vue-draggable-resizable'
|
||||
import tableDragResize from '@/mixins/tableDragResize'
|
||||
import setCreator from '@/components/setCreator/index'
|
||||
import releaseForm from '../../virtualAuthenticationList/components/releaseForm'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||
|
||||
@@ -167,7 +183,8 @@
|
||||
name: 'index',
|
||||
components: {
|
||||
VueDraggableResizable,
|
||||
setCreator
|
||||
setCreator,
|
||||
releaseForm
|
||||
},
|
||||
mixins: [tableDragResize, ResizeHeader, ResizeColumnProvide],
|
||||
data() {
|
||||
@@ -189,6 +206,18 @@
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
versionNum:[
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('VersionNumber') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('VersionNumber') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
useExplain: [
|
||||
{
|
||||
required: true,
|
||||
@@ -225,17 +254,24 @@
|
||||
ellipsis: true,
|
||||
scopedSlots: { customRender: 'VirtualListName' }
|
||||
},
|
||||
{
|
||||
title: this.$t('VersionNumber'),
|
||||
align: 'left',
|
||||
width: '10%',
|
||||
ellipsis: true,
|
||||
dataIndex: 'versionNum'
|
||||
},
|
||||
{
|
||||
title: this.$t('listStatus'),
|
||||
align: 'left',
|
||||
width: '20%',
|
||||
width: '15%',
|
||||
ellipsis: true,
|
||||
dataIndex: 'state_dictText'
|
||||
},
|
||||
{
|
||||
title: this.$t('creater'),
|
||||
align: 'left',
|
||||
width: '20%',
|
||||
width: '15%',
|
||||
ellipsis: true,
|
||||
dataIndex: 'createBy'
|
||||
},
|
||||
@@ -362,17 +398,40 @@
|
||||
}
|
||||
item.id = val.id
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
content: content,
|
||||
onOk() {
|
||||
postAction(_this.url.urlWithdraw, item).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
if (item.state == 1){
|
||||
this.$refs.releaseFormRef.getData(val.id)
|
||||
}else{
|
||||
this.$confirm({
|
||||
content: content,
|
||||
onOk() {
|
||||
postAction(_this.url.urlWithdraw, item).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
releaseFormData(id, val) {
|
||||
let _this = this
|
||||
let item = {
|
||||
state: 1,
|
||||
id: id,
|
||||
...val
|
||||
}
|
||||
postAction(_this.url.urlWithdraw, item).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.getList()
|
||||
_this.$refs.releaseFormRef.confirmLoading = false
|
||||
_this.$refs.releaseFormRef.visible = false
|
||||
} else {
|
||||
_this.$message.warning(res.message)
|
||||
_this.$refs.releaseFormRef.confirmLoading = false
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
<template>
|
||||
<a-modal
|
||||
:title="title"
|
||||
:width="700"
|
||||
:visible="visible"
|
||||
:confirm-loading="confirmLoading"
|
||||
:maskClosable="false"
|
||||
@ok="handleOk"
|
||||
@cancel="visible = false"
|
||||
>
|
||||
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('upgradeOrNot')">{{$t('upgradeOrNot')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="upgradeOrNot">
|
||||
<a-radio-group v-model="formInline.upgradeOrNot" @change="onChange">
|
||||
<a-radio :value="1">
|
||||
是
|
||||
</a-radio>
|
||||
<a-radio :value="2">
|
||||
否
|
||||
</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="24" v-if="isTrue">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('VersionNumber')">{{$t('VersionNumber')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="versionNum">
|
||||
<a-input class="box-input"
|
||||
v-model.trim="formInline.versionNum"
|
||||
:placeholder="$t('PleaseEnter')+$t('VersionNumber')"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="24" v-if="isTrue">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('upgradeInstructions')">{{$t('upgradeInstructions')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'upgradeExplanation'">
|
||||
<a-textarea
|
||||
style="width: 100%"
|
||||
:placeholder="$t('PleaseEnter')+$t('upgradeInstructions')"
|
||||
v-model.trim="formInline.upgradeExplanation" :rows="4"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { postAction, putAction, getAction } from '@/api/manage'
|
||||
|
||||
export default {
|
||||
name: 'releaseForm',
|
||||
data() {
|
||||
return {
|
||||
formInline: {},
|
||||
selectionRowsId: '',
|
||||
isTrue: false,
|
||||
rules: {
|
||||
upgradeOrNot: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('upgradeOrNot') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
versionNum: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('VersionNumber') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('VersionNumber') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
upgradeExplanation: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('upgradeInstructions') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 300,
|
||||
message: this.$t('upgradeInstructions') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
]
|
||||
},
|
||||
title: '',
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
ids: '',
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getData(val) {
|
||||
this.visible = true
|
||||
this.isTrue = false
|
||||
this.title = this.$t('release')
|
||||
this.selectionRowsId = val
|
||||
this.$nextTick(() => {
|
||||
this.formInline = {}
|
||||
this.$refs.ruleForm.clearValidate()
|
||||
})
|
||||
},
|
||||
onChange(val) {
|
||||
if (val.target.value == 1) {
|
||||
this.isTrue = true
|
||||
} else {
|
||||
this.isTrue = false
|
||||
this.formInline.versionNum = ''
|
||||
this.formInline.upgradeExplanation = ''
|
||||
}
|
||||
},
|
||||
handleOk() {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
this.confirmLoading = true
|
||||
this.$emit('releaseFormData', this.selectionRowsId, this.formInline)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.box-title-text {
|
||||
line-height: 1.4;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.Required {
|
||||
color: red;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.title-text {
|
||||
width: 134px;
|
||||
text-align: right;
|
||||
display: inline-block;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
margin-right: 16px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
}
|
||||
|
||||
.box-input {
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.itemModel {
|
||||
width: calc(100% - 150px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.title-text-text {
|
||||
margin-top: 9px;
|
||||
}
|
||||
|
||||
/deep/ .remarkbox .ant-form-item-control {
|
||||
width: 128%;
|
||||
}
|
||||
|
||||
.headerText {
|
||||
margin-left: 30px;
|
||||
color: #040B29;
|
||||
font-weight: 400;
|
||||
}
|
||||
</style>
|
||||
@@ -42,7 +42,7 @@
|
||||
{{$t('BatchDelete')}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- :components="drag(columns,'columns')"-->
|
||||
<!-- :components="drag(columns,'columns')"-->
|
||||
<a-table
|
||||
ref="table"
|
||||
size="middle"
|
||||
@@ -123,6 +123,20 @@
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text-add">
|
||||
<div class="title-text-add">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('VersionNumber')">{{$t('VersionNumber')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="versionNum">
|
||||
<a-input class="box-input-add"
|
||||
v-model.trim="formInline.versionNum"
|
||||
:placeholder="$t('PleaseEnter')+$t('VersionNumber')"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text-add">
|
||||
<div class="title-text-add">
|
||||
@@ -144,11 +158,13 @@
|
||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
<releaseForm ref="releaseFormRef" @releaseFormData="releaseFormData"/>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||
import releaseForm from './components/releaseForm'
|
||||
import VueDraggableResizable from 'vue-draggable-resizable'
|
||||
import tableDragResize from '@/mixins/tableDragResize'
|
||||
import { mapGetters } from 'vuex'
|
||||
@@ -157,7 +173,8 @@
|
||||
export default {
|
||||
name: 'index',
|
||||
components: {
|
||||
VueDraggableResizable
|
||||
VueDraggableResizable,
|
||||
releaseForm
|
||||
},
|
||||
mixins: [tableDragResize, ResizeHeader, ResizeColumnProvide],
|
||||
data() {
|
||||
@@ -176,6 +193,18 @@
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
versionNum: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('VersionNumber') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('VersionNumber') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
useExplain: [
|
||||
{
|
||||
required: true,
|
||||
@@ -219,17 +248,24 @@
|
||||
ellipsis: true,
|
||||
scopedSlots: { customRender: 'CertificationListName' }
|
||||
},
|
||||
{
|
||||
title: this.$t('VersionNumber'),
|
||||
align: 'left',
|
||||
width: '10%',
|
||||
ellipsis: true,
|
||||
dataIndex: 'versionNum'
|
||||
},
|
||||
{
|
||||
title: this.$t('listStatus'),
|
||||
align: 'left',
|
||||
width: '20%',
|
||||
width: '15%',
|
||||
ellipsis: true,
|
||||
dataIndex: 'state_dictText'
|
||||
},
|
||||
{
|
||||
title: this.$t('creater'),
|
||||
align: 'left',
|
||||
width: '20%',
|
||||
width: '15%',
|
||||
ellipsis: true,
|
||||
dataIndex: 'createBy'
|
||||
},
|
||||
@@ -291,7 +327,7 @@
|
||||
idList.push(selectedRowKeys[i].id)
|
||||
}
|
||||
}
|
||||
if (isTrue){
|
||||
if (isTrue) {
|
||||
this.$confirm({
|
||||
content: _this.$t('ConfirmBatchDeletion'),
|
||||
onOk() {
|
||||
@@ -306,8 +342,8 @@
|
||||
})
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.$message.warning(this.$t('onlyDataWithListStatusDraftCanBeDeleted'))
|
||||
} else {
|
||||
this.$message.warning(this.$t('onlyDataWithListStatusDraftCanBeDeleted'))
|
||||
}
|
||||
} else {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
@@ -335,17 +371,40 @@
|
||||
}
|
||||
item.id = val.id
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
content: content,
|
||||
onOk() {
|
||||
postAction(_this.url.urlWithdraw, item).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
if (item.state == 1) {
|
||||
this.$refs.releaseFormRef.getData(val.id)
|
||||
} else {
|
||||
this.$confirm({
|
||||
content: content,
|
||||
onOk() {
|
||||
postAction(_this.url.urlWithdraw, item).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
releaseFormData(id, val) {
|
||||
let _this = this
|
||||
let item = {
|
||||
state: 1,
|
||||
id: id,
|
||||
...val
|
||||
}
|
||||
postAction(_this.url.urlWithdraw, item).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.getList()
|
||||
_this.$refs.releaseFormRef.confirmLoading = false
|
||||
_this.$refs.releaseFormRef.visible = false
|
||||
} else {
|
||||
_this.$message.warning(res.message)
|
||||
_this.$refs.releaseFormRef.confirmLoading = false
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user