Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
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
fulixin
dsk-operate-sys-cscec
Commits
745f4b45
Commit
745f4b45
authored
Dec 25, 2023
by
danfuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
dfb0e203
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
EnterpriseMonitoring.vue
dsk-operate-ui/src/views/monitoring/EnterpriseMonitoring.vue
+12
-2
No files found.
dsk-operate-ui/src/views/monitoring/EnterpriseMonitoring.vue
View file @
745f4b45
...
...
@@ -136,7 +136,7 @@
</el-upload>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"download"
icon=
"el-icon-download"
>
下载模版
</el-button>
<el-button
class=
"download"
icon=
"el-icon-download"
@
click=
"downloadClick"
>
下载模版
</el-button>
<el-button
@
click=
"handleUploadCancel1"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"submitUpload"
>
确定
</el-button>
</div>
...
...
@@ -207,10 +207,12 @@
headers
:
{
Authorization
:
"Bearer "
+
getToken
(),
},
companyId
:
''
companyId
:
''
,
downloadhref
:
''
,
//样例地址
}
},
created
()
{
this
.
downloadhref
=
'/file/Template.xlsx'
;
this
.
querySubmit
()
},
methods
:
{
...
...
@@ -369,6 +371,14 @@
this
.
fileList
=
[]
this
.
pldrVisible
=
false
;
},
downloadClick
()
{
let
a
=
document
.
createElement
(
"a"
);
a
.
setAttribute
(
"href"
,
this
.
downloadhref
);
a
.
setAttribute
(
"download"
,
"批量导入模版.xlsx"
);
document
.
body
.
appendChild
(
a
);
a
.
click
();
a
.
remove
();
},
submitUpload
()
{
this
.
$refs
.
upload
.
submit
();
},
...
...
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