Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
e09647a5
Commit
e09647a5
authored
Jul 17, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改下载应用文档和应用
parent
ff9c001f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
portal-manager-ui/admin/src/views/thePlatformIsSet/components/productManage/components/appManage/application.vue
...onents/productManage/components/appManage/application.vue
+7
-5
portal-manager-ui/admin/src/views/thePlatformIsSet/components/productManage/components/docData/fileData.vue
.../components/productManage/components/docData/fileData.vue
+7
-6
No files found.
portal-manager-ui/admin/src/views/thePlatformIsSet/components/productManage/components/appManage/application.vue
View file @
e09647a5
...
...
@@ -47,7 +47,7 @@
<a-button
type=
"link"
v-if=
"record.appFileUrl"
@
click=
"handleDowload(record.appFileUrl)"
@
click=
"handleDowload(record.appFileUrl
, record.appName
)"
>
下载应用
</a-button
>
<a-button
type=
"link"
@
click=
"openDetails(record)"
>
编辑
</a-button>
...
...
@@ -76,6 +76,7 @@ export default {
name
:
"
PortalAdminVueAlerting
"
,
data
()
{
return
{
api
:
process
.
env
.
VUE_APP_API_IMG_URL
,
tableHeaders
:
[
{
title
:
"
序号
"
,
...
...
@@ -187,11 +188,12 @@ export default {
}
});
},
handleDowload
(
url
)
{
let
arr
=
url
.
split
(
"
/
"
);
handleDowload
(
url
,
fileName
)
{
let
index
=
url
.
lastIndexOf
(
"
.
"
);
let
suffix
=
url
.
slice
(
index
);
const
a
=
document
.
createElement
(
"
a
"
);
a
.
href
=
url
;
a
.
download
=
arr
[
arr
.
length
-
1
]
;
a
.
href
=
this
.
api
+
url
;
a
.
download
=
fileName
+
suffix
;
a
.
click
();
},
openDetails
(
item
)
{
...
...
portal-manager-ui/admin/src/views/thePlatformIsSet/components/productManage/components/docData/fileData.vue
View file @
e09647a5
...
...
@@ -35,7 +35,7 @@
<a-button
type=
"link"
v-if=
"record.docFileUrl"
@
click=
"handleDowload(record.docFileUrl)"
@
click=
"handleDowload(record.docFileUrl
, record.docName
)"
>
下载
</a-button
>
<a-button
type=
"link"
@
click=
"openDetails(record)"
>
编辑
</a-button>
...
...
@@ -63,6 +63,7 @@ export default {
name
:
"
PortalAdminVueAlerting
"
,
data
()
{
return
{
api
:
process
.
env
.
VUE_APP_API_IMG_URL
,
tableHeaders
:
[
{
title
:
"
序号
"
,
...
...
@@ -159,12 +160,12 @@ export default {
}
});
},
handleDowload
(
url
)
{
let
arr
=
url
.
split
(
"
/
"
);
console
.
log
(
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
+
url
);
handleDowload
(
url
,
fileName
)
{
let
index
=
url
.
lastIndexOf
(
"
.
"
);
let
suffix
=
url
.
slice
(
index
);
const
a
=
document
.
createElement
(
"
a
"
);
a
.
href
=
url
;
a
.
download
=
arr
[
arr
.
length
-
1
]
;
a
.
href
=
this
.
api
+
url
;
a
.
download
=
fileName
+
suffix
;
a
.
click
();
},
openDetails
(
item
)
{
...
...
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