Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
60716932
authored
2025-04-25 11:02:38 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
产品目录上传文件支持csv
1 parent
11870717
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/components/Upload/index.vue
src/views/importFile.vue
src/components/Upload/index.vue
View file @
6071693
...
...
@@ -36,7 +36,7 @@ const toolBar = computed(() => {
})
const
onUpload
=
async
(
file
,
list
)
=>
{
const
isExcel
=
file
.
raw
.
type
===
'application/vnd.ms-excel'
||
file
.
raw
.
type
===
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
;
const
isExcel
=
file
.
raw
.
type
===
'application/vnd.ms-excel'
||
file
.
raw
.
type
===
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
||
file
.
raw
.
type
==
'text/csv'
;
if
(
!
isExcel
)
{
const
fileUpload
=
fileUploadRef
.
value
[
0
]
||
fileUploadRef
.
value
fileUpload
?.
handleRemove
(
file
)
...
...
src/views/importFile.vue
View file @
6071693
...
...
@@ -582,8 +582,8 @@ const setUploadInfo = () => {
auto
:
false
,
cover
:
true
,
fileList
:
[],
accept
:
'.xlsx, .xls'
,
tips
:
'当前支持xls、xlsx文件,默认使用第一个sheet'
accept
:
'.xlsx, .xls
, .csv
'
,
tips
:
'当前支持xls、xlsx
、csv
文件,默认使用第一个sheet'
}
}
]
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment