[update] 法规符合性排查流程
This commit is contained in:
+7
-29
@@ -25,13 +25,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-form-model>
|
</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">
|
<div v-if="!disabled" class="table-operator">
|
||||||
<!-- 批量选择人员 -->
|
<!-- 批量选择人员 -->
|
||||||
@@ -57,17 +52,13 @@
|
|||||||
</template>
|
</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">
|
<div v-if="!disabled" class="table-operator">
|
||||||
<!-- 导入 -->
|
<!-- 导入 -->
|
||||||
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
<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-button icon="download" type="primary" ghost>{{ $t('import') }}</a-button>
|
||||||
</a-upload>
|
</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()">
|
<a-button icon="upload" type="primary" ghost @click="handleExportXls()">
|
||||||
{{ $t('export') }}
|
{{ $t('export') }}
|
||||||
@@ -254,7 +245,6 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
clickNextAfter: false,
|
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
@@ -516,7 +506,6 @@ export default {
|
|||||||
},
|
},
|
||||||
personFormInline: {},
|
personFormInline: {},
|
||||||
url: {
|
url: {
|
||||||
downTemplateUrl: '',
|
|
||||||
importExcelUrl: ''
|
importExcelUrl: ''
|
||||||
},
|
},
|
||||||
dataSourceCopy: [] // 列表数组备份,防止切换排查任务是否下发后,填的数据带到新数组里
|
dataSourceCopy: [] // 列表数组备份,防止切换排查任务是否下发后,填的数据带到新数组里
|
||||||
@@ -574,11 +563,11 @@ export default {
|
|||||||
},
|
},
|
||||||
// 排查任务是否下发改变
|
// 排查任务是否下发改变
|
||||||
distributeFlagChange (value) {
|
distributeFlagChange (value) {
|
||||||
this.dataSource = JSON.parse(JSON.stringify(this.dataSourceCopy))
|
if (value === YesOrNoEnum.YES.value) {
|
||||||
},
|
this.dataSource = JSON.parse(JSON.stringify(this.dataSourceCopy))
|
||||||
// 下一步
|
} else {
|
||||||
handleNext () {
|
this.dataSourceEvaluate = JSON.parse(JSON.stringify(this.dataSourceCopy))
|
||||||
this.clickNextAfter = true
|
}
|
||||||
},
|
},
|
||||||
// 表格选中
|
// 表格选中
|
||||||
onSelectChange (selectedRowKeys, selectionRows) {
|
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') {
|
handleExportXls (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = '导出文件'
|
||||||
@@ -762,8 +744,4 @@ export default {
|
|||||||
.form-add {
|
.form-add {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-operate-box {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user