[update 导入拆分结果] 增加参数
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
<standard-selection :placeholder="$t('pleaseSelect') + $t('standardSelect.standardNumber')"
|
<standard-selection :placeholder="$t('pleaseSelect') + $t('standardSelect.standardNumber')"
|
||||||
type="radio"
|
type="radio"
|
||||||
@nameChange="handleStandardNumberChange"
|
@nameChange="handleStandardNumberChange"
|
||||||
|
@listChange="handleStandardListChange"
|
||||||
:select-only="true"
|
:select-only="true"
|
||||||
:can-selected-source="[StandardSource.DOMESTIC.value, StandardSource.ENTERPRISE.value]"
|
:can-selected-source="[StandardSource.DOMESTIC.value, StandardSource.ENTERPRISE.value]"
|
||||||
class="readonly-input"
|
class="readonly-input"
|
||||||
@@ -111,6 +112,7 @@ export default {
|
|||||||
validateTrigger: 'change'
|
validateTrigger: 'change'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
standardInfo: {}, // 选择的标准
|
||||||
downTemplateUrl: '/laws/DocumentTool/documentSplit/downloadImportTemplate' // 模板下载
|
downTemplateUrl: '/laws/DocumentTool/documentSplit/downloadImportTemplate' // 模板下载
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -122,8 +124,9 @@ export default {
|
|||||||
this.form.validateFields(async (errors, values) => {
|
this.form.validateFields(async (errors, values) => {
|
||||||
if (!errors) {
|
if (!errors) {
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
const formData = values
|
const formData = Object.assign({}, values)
|
||||||
const fileInfo = await getFileInfo({ id: formData.splitFileId })
|
const fileInfo = await getFileInfo({ id: formData.splitFileId })
|
||||||
|
formData.standardId = this.standardInfo.id
|
||||||
if (fileInfo.success) {
|
if (fileInfo.success) {
|
||||||
formData.fileName = fileInfo.result.fileName
|
formData.fileName = fileInfo.result.fileName
|
||||||
}
|
}
|
||||||
@@ -167,6 +170,9 @@ export default {
|
|||||||
handleStandardNumberChange (name) {
|
handleStandardNumberChange (name) {
|
||||||
this.form.setFieldsValue({ title: name })
|
this.form.setFieldsValue({ title: name })
|
||||||
},
|
},
|
||||||
|
handleStandardListChange (list) {
|
||||||
|
this.standardInfo = list[0] || {}
|
||||||
|
},
|
||||||
// 下载导入模板
|
// 下载导入模板
|
||||||
downTemplate (fileName, fileSuffix = '.xls') {
|
downTemplate (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
|
|||||||
Reference in New Issue
Block a user