Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nse-ui
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
nse-ui
Commits
9ffd0540
Commit
9ffd0540
authored
Aug 27, 2025
by
周海峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
b6c25be9
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
5 行删除
+6
-5
src/views/project/Project/ExportDialog.vue
+2
-3
src/views/project/Project/ImportProjectDialog.vue
+4
-2
没有找到文件。
src/views/project/Project/ExportDialog.vue
View file @
9ffd0540
...
@@ -120,9 +120,8 @@ const handleBackup = async () => {
...
@@ -120,9 +120,8 @@ const handleBackup = async () => {
const
par
=
await
checkEncryptExcel
({
project
:
params
})
const
par
=
await
checkEncryptExcel
({
project
:
params
})
// 创建下载链接
// 创建下载链接
const
blob
=
new
Blob
([
res
.
data
],
{
// const blob = new Blob([res.data], {type: 'application/vnd.ms-excel,charset=utf-8'})
type
:
'application/vnd.ms-excel,charset=utf-8'
const
blob
=
new
Blob
([
res
],
{
type
:
'application/octet-stream'
});
})
const
elink
=
document
.
createElement
(
'a'
)
const
elink
=
document
.
createElement
(
'a'
)
elink
.
href
=
URL
.
createObjectURL
(
blob
)
elink
.
href
=
URL
.
createObjectURL
(
blob
)
elink
.
download
=
exportBackUpName
(
par
.
data
.
filetype
)
elink
.
download
=
exportBackUpName
(
par
.
data
.
filetype
)
...
...
src/views/project/Project/ImportProjectDialog.vue
View file @
9ffd0540
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
:limit=
"1"
:limit=
"1"
:auto-upload=
"true"
:auto-upload=
"true"
:show-file-list=
"false"
:show-file-list=
"false"
accept=
".xlsx,.xls"
name=
"fileUpload"
accept=
".xlsx,.xls,.txt"
>
>
<div
class=
"upload-content"
>
<div
class=
"upload-content"
>
<el-icon
class=
"upload-icon"
><UploadFilled
/></el-icon>
<el-icon
class=
"upload-icon"
><UploadFilled
/></el-icon>
...
@@ -97,7 +98,8 @@ const beforeUpload = (file) => {
...
@@ -97,7 +98,8 @@ const beforeUpload = (file) => {
const
isExcel
=
file
.
type
===
'application/vnd.ms-excel'
||
const
isExcel
=
file
.
type
===
'application/vnd.ms-excel'
||
file
.
type
===
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
||
file
.
type
===
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
||
file
.
name
.
endsWith
(
'.xlsx'
)
||
file
.
name
.
endsWith
(
'.xlsx'
)
||
file
.
name
.
endsWith
(
'.xls'
)
file
.
name
.
endsWith
(
'.xls'
)
||
file
.
name
.
endsWith
(
'.txt'
)
const
isLt10M
=
file
.
size
/
1024
/
1024
<
10
const
isLt10M
=
file
.
size
/
1024
/
1024
<
10
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论