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
08ba2334
Commit
08ba2334
authored
Dec 12, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推,网络理政详情页附件下载
parent
a4c034bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
6 deletions
+57
-6
portal-manager-ui/admin/src/views/dataAdmin/components/networkGovernance/components/FormDetails.vue
...n/components/networkGovernance/components/FormDetails.vue
+57
-6
No files found.
portal-manager-ui/admin/src/views/dataAdmin/components/networkGovernance/components/FormDetails.vue
View file @
08ba2334
...
@@ -78,11 +78,44 @@
...
@@ -78,11 +78,44 @@
<div
class=
"card"
>
<div
class=
"card"
>
<div
class=
"cardTitle"
>
附件
</div>
<div
class=
"cardTitle"
>
附件
</div>
<div
class=
"cardContent"
v-if=
"fromData.url"
>
<div
class=
"cardContent"
v-if=
"fromData.url"
>
<img
<template
v-for=
"(item, index) in fromData.url"
>
v-for=
"(item, index) in fromData.url"
<img
:key=
"index"
v-if=
"/\.(jpg|jpeg|png|GIF|JPG|PNG)$/.test(item)"
:src=
"baseUrl + item"
:key=
"index"
/>
:src=
"baseUrl + item"
@
click=
"$viewerApi(
{ images: [baseUrl + item] })"
/>
<video
width=
"320"
height=
"240"
v-if=
"/\.(mp4|rmvb|avi|)$/.test(item)"
:key=
"index"
:src=
"baseUrl + item"
></video>
<a-button
:href=
"baseUrl + item"
v-else
:key=
"index"
type=
"primary"
>
点击下载
</a-button>
</
template
>
<!-- <template v-if="checkVideo">
<img
v-for="(item, index) in fromData.url"
:key="index"
:src="baseUrl + item"
/>
</template>
<template v-if="checkWav">
<img
v-for="(item, index) in fromData.url"
:key="index"
:src="baseUrl + item"
/>
</template> -->
</div>
</div>
<div
v-else
>
--
</div>
<div
v-else
>
--
</div>
</div>
</div>
...
@@ -273,7 +306,10 @@ export default {
...
@@ -273,7 +306,10 @@ export default {
data
()
{
data
()
{
return
{
return
{
fromData
:
{},
fromData
:
{},
baseUrl
:
process
.
env
.
VUE_APP_API_BASE_URL
,
baseUrl
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/zwfw_api/
"
,
checkImg
:
false
,
checkVideo
:
false
,
checkWav
:
false
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -286,6 +322,21 @@ export default {
...
@@ -286,6 +322,21 @@ export default {
},
},
},
},
},
},
watch
:
{
fromData
:
{
deep
:
true
,
immediate
:
true
,
handler
(
val
)
{
console
.
log
(
val
);
if
(
!
/
\.(
jpg|jpeg|png|GIF|JPG|PNG
)
$/
.
test
(
val
.
name
))
{
return
false
;
}
else
{
return
true
;
}
},
},
},
methods
:
{
methods
:
{
onClose
()
{
onClose
()
{
this
.
Visible
=
false
;
this
.
Visible
=
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