|
@@ -2124,10 +2124,12 @@ const setActiveKey = (key) => {
|
|
|
}
|
|
|
//导入模板
|
|
|
const checkItem = ref({})
|
|
|
-//打开文件选择框
|
|
|
+
|
|
|
+
|
|
|
const uploadFileClick = (item) => {
|
|
|
checkItem.value = item
|
|
|
HcUploadFileApi({
|
|
|
+ // url: '/api/blade-manager/wbsTreeContract/import-excel',
|
|
|
url: '/api/blade-manager/wbsTreeContract/import-excel-list',
|
|
|
accept: '.png,.jpg,jpeg,.xls,.xlsx,.pdf,.doc,.docx',
|
|
|
accept_tip: '图片(png、jpg、jpeg)<br/>Excel(xls、xlsx)<br/>PDF<br/>Word(doc、docx)',
|
|
@@ -2138,6 +2140,7 @@ const uploadFileClick = (item) => {
|
|
|
const refs = await getFormRef(item.pkeyId)
|
|
|
refs?.setFormData(res.data)
|
|
|
window.$message.success('文件上传成功')
|
|
|
+ renewData()
|
|
|
},
|
|
|
error: () => {
|
|
|
window.$message.error('文件上传失败')
|