Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
cb8be08a
Commit
cb8be08a
authored
Jun 27, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改公告下载
parent
97b5e4d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
Announcement.vue
src/components/administrative/Announcement.vue
+7
-2
index.vue
src/components/index.vue
+4
-3
No files found.
src/components/administrative/Announcement.vue
View file @
cb8be08a
...
@@ -273,8 +273,13 @@
...
@@ -273,8 +273,13 @@
});
});
},
},
downloadSingle
(
obj
){
downloadSingle
(
obj
){
let
reg
=
/^http
(
s
)?
:
\/\/(
.*
?)\/
/
const
link
=
document
.
createElement
(
'a'
);
this
.
downloadFileRename
(
obj
.
Url
.
replace
(
reg
,
''
),
obj
.
Name
);
let
_loadUrl
=
this
.
domainManager
().
UploadUrl
;
link
.
href
=
obj
.
Url
;
document
.
body
.
appendChild
(
link
);
window
.
open
(
obj
.
Url
)
// let reg = /^http(s)?:\/\/(.*?)\//
// this.downloadFileRename(obj.Url.replace(reg,''),obj.Name);
},
},
downloadOne
(
obj
){
downloadOne
(
obj
){
this
.
downloadFileRename
(
obj
.
url
,
obj
.
name
);
this
.
downloadFileRename
(
obj
.
url
,
obj
.
name
);
...
...
src/components/index.vue
View file @
cb8be08a
...
@@ -1505,9 +1505,10 @@ export default {
...
@@ -1505,9 +1505,10 @@ export default {
downloadSingle
(
obj
){
downloadSingle
(
obj
){
// let reg = /^http(s)?:\/\/(.*?)\//
// let reg = /^http(s)?:\/\/(.*?)\//
// this.downloadFileRename(obj.Url.replace(reg,''),obj.Name);
// this.downloadFileRename(obj.Url.replace(reg,''),obj.Name);
let
dom
=
document
.
querySelector
(
"#groupTourOrderByTuan_DownLoad"
);
// let dom = document.querySelector("#groupTourOrderByTuan_DownLoad");
dom
.
href
=
obj
.
Url
;
// dom.href = obj.Url;
dom
.
click
();
// dom.click();
window
.
open
(
obj
.
Url
)
},
},
closeChangeMachie2
(
done
){
closeChangeMachie2
(
done
){
this
.
outerVisibleNot
=
false
this
.
outerVisibleNot
=
false
...
...
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