[update] 法规符合性排查流程

This commit is contained in:
lideqin
2024-07-15 16:47:17 +08:00
parent 1143098bc4
commit 49c9ae8c1c
@@ -25,13 +25,8 @@
</div>
</a-form-model>
<div class="center-operate-box">
<!-- 下一步 -->
<a-button type="primary" ghost :loading="loading" @click="handleNext">{{ $t('next') }}</a-button>
</div>
<!-- 排查任务是否下发选择是的情况 -->
<template v-if="clickNextAfter && formInline.distributeFlag === YesOrNoEnum.YES.value">
<template v-if="formInline.distributeFlag === YesOrNoEnum.YES.value">
<!-- 操作区域 -->
<div v-if="!disabled" class="table-operator">
<!-- 批量选择人员 -->
@@ -57,17 +52,13 @@
</template>
<!-- 排查任务是否下发选择否的情况 -->
<template v-else-if="clickNextAfter && formInline.distributeFlag === YesOrNoEnum.NO.value">
<template v-else-if="formInline.distributeFlag === YesOrNoEnum.NO.value">
<!-- 操作区域 -->
<div v-if="!disabled" class="table-operator">
<!-- 导入 -->
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button icon="download" type="primary" ghost>{{ $t('import') }}</a-button>
</a-upload>
<!-- 模板下载 -->
<a-button icon="download" type="primary" ghost @click="downTemplate($t('workCenter.regulatoryComplianceCheckProcess.mainFinderImportTemplate'))">
{{ $t('templateDownload') }}
</a-button>
<!-- 导出, 文件名称标准编号+标准名称+符合性排查 -->
<a-button icon="upload" type="primary" ghost @click="handleExportXls()">
{{ $t('export') }}
@@ -254,7 +245,6 @@ export default {
}
]
},
clickNextAfter: false,
columns: [
{
title: this.$t('serialNumber'),
@@ -516,7 +506,6 @@ export default {
},
personFormInline: {},
url: {
downTemplateUrl: '',
importExcelUrl: ''
},
dataSourceCopy: [] // 列表数组备份,防止切换排查任务是否下发后,填的数据带到新数组里
@@ -574,11 +563,11 @@ export default {
},
// 排查任务是否下发改变
distributeFlagChange (value) {
this.dataSource = JSON.parse(JSON.stringify(this.dataSourceCopy))
},
// 下一步
handleNext () {
this.clickNextAfter = true
if (value === YesOrNoEnum.YES.value) {
this.dataSource = JSON.parse(JSON.stringify(this.dataSourceCopy))
} else {
this.dataSourceEvaluate = JSON.parse(JSON.stringify(this.dataSourceCopy))
}
},
// 表格选中
onSelectChange (selectedRowKeys, selectionRows) {
@@ -702,13 +691,6 @@ export default {
}
}
},
// 下载导入模板
downTemplate (fileName) {
if (!fileName || typeof fileName !== 'string') {
fileName = '模板文件'
}
downloadFile(this.url.downTemplateUrl, fileName + '.xls')
},
handleExportXls (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
fileName = '导出文件'
@@ -762,8 +744,4 @@ export default {
.form-add {
margin-top: 20px;
}
.center-operate-box {
float: right;
}
</style>