Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DC-TOM
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘照晖
DC-TOM
Commits
8b3773b5
Commit
8b3773b5
authored
Jun 04, 2025
by
liuzhaoh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入功能修改
parent
de930a40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
index.vue
src/views/equipmentManagement/index.vue
+21
-9
No files found.
src/views/equipmentManagement/index.vue
View file @
8b3773b5
...
...
@@ -318,8 +318,10 @@ const onExportFile = () => {
};
// 模板下载
const
onDownloadTemplate
=
()
=>
{
window
.
open
(
'https://visimg.bmetech.com/stone/img/1748314002767/设备数据.xlsx'
)
return
window
.
open
(
"https://visimg.bmetech.com/stone/img/1748314002767/设备数据.xlsx"
);
return
;
axios
.
get
(
"https://visimg.bmetech.com/stone/img/1748314002767/设备数据.xlsx"
,
{
responseType
:
"blob"
,
...
...
@@ -367,17 +369,27 @@ const handleError = () => {
duration
:
5
*
1000
,
});
};
const
handleSuccess
=
()
=>
{
ElMessage
({
message
:
"文件上传成功"
,
type
:
"success"
,
duration
:
5
*
1000
,
});
const
handleSuccess
=
(
res
)
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
data
&&
res
.
data
.
length
>
0
)
{
ElMessage
({
message
:
res
.
msg
,
type
:
"error"
,
duration
:
5
*
1000
,
});
}
else
{
this
.
checkTableData
=
[];
ElMessage
({
message
:
res
.
msg
,
type
:
"success"
,
duration
:
5
*
1000
,
});
}
}
getDeviceContent
();
};
const
handleProgress
=
(
evt
,
uploadFile
)
=>
{};
const
beforeUpload
=
(
file
)
=>
{
console
.
log
(
file
);
if
(
file
.
type
!==
"application/vnd.ms-excel"
&&
file
.
type
!==
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment