冀北项目添加表格导出功能 技术监督添加下载模版上传功能
This commit is contained in:
@@ -219,7 +219,7 @@ const submit = async (flag: boolean) => {
|
||||
ElMessage.success('重新发起成功')
|
||||
tableStore.index()
|
||||
dialogVisible.value = false
|
||||
}).catch(() => { loading.value = false })
|
||||
})
|
||||
} else {
|
||||
//此时该告警单处于待反馈状态
|
||||
await addFeedback(subForm).then(res => {
|
||||
@@ -227,7 +227,7 @@ const submit = async (flag: boolean) => {
|
||||
ElMessage.success('申请成功')
|
||||
tableStore.index()
|
||||
dialogVisible.value = false
|
||||
}).catch(() => { loading.value = false })
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -241,21 +241,10 @@ defineExpose({ open })
|
||||
|
||||
let uploadName = ref('')
|
||||
const choose = (e: any) => {
|
||||
const fileExtension = e.name.split('.')[1];
|
||||
if (fileExtension === 'doc' || fileExtension === 'docx' || fileExtension === 'pdf') {
|
||||
// 文件类型不符合要求,提示用户
|
||||
uploadFile(e.raw, '/supervision/').then(res => {
|
||||
reportFilePath.value = res.data.name
|
||||
ElMessage.success('上传成功!');
|
||||
// form.value.reportPath = res.data.name
|
||||
})
|
||||
} else {
|
||||
uploadRef.value!.clearFiles()
|
||||
ElMessage.error('请选择 .doc 或 .docx 或 .pdf 格式的文件!');
|
||||
}
|
||||
|
||||
|
||||
|
||||
uploadFile(e.raw, '/supervision/').then(res => {
|
||||
reportFilePath.value = res.data.name
|
||||
// form.value.reportPath = res.data.name
|
||||
})
|
||||
}
|
||||
|
||||
const handleExceed: UploadProps['onExceed'] = files => {
|
||||
|
||||
Reference in New Issue
Block a user