Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BCDH-APP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
首开风险隐患双控平台
BCDH-APP
Commits
ee46a092
Commit
ee46a092
authored
Dec 31, 2021
by
13841799530
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解润东20211231视频回显
parent
1c74be51
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
src/views/checked/problem/list/index.vue
src/views/checked/problem/list/index.vue
+11
-1
src/views/checked/problem/note/edit/index.vue
src/views/checked/problem/note/edit/index.vue
+8
-1
src/views/notice/noticeList/edit/index.vue
src/views/notice/noticeList/edit/index.vue
+8
-1
No files found.
src/views/checked/problem/list/index.vue
View file @
ee46a092
...
@@ -71,7 +71,14 @@
...
@@ -71,7 +71,14 @@
</van-field>
</van-field>
<van-field
name=
"uploader2"
label=
"视频上传"
>
<van-field
name=
"uploader2"
label=
"视频上传"
>
<
template
#input
>
<
template
#input
>
<van-uploader
:before-read=
"beforeReadVideo"
accept=
"video/*"
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"uploaderVideo"
/>
<van-uploader
:before-read=
"beforeReadVideo"
accept=
"video/*"
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"uploaderVideo"
>
<template
#preview-cover
="
{ file,content }">
<div
v-if=
"file.type.indexOf('video') !== -1"
>
<video
muted
autoplay
:src=
"content"
style=
"width:80px;height:80px;object-fit:cover;"
></video>
</div>
<div
v-else
></div>
</
template
>
</van-uploader>
</template>
</template>
</van-field>
</van-field>
<div
style=
"margin: 0.5rem"
>
<div
style=
"margin: 0.5rem"
>
...
@@ -95,6 +102,8 @@ export default {
...
@@ -95,6 +102,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
/* form表单 */
/* form表单 */
videoList
:[{
name
:
'
e
'
},{
name
:
'
ddd
'
}],
videourl
:
''
,
//视频预览
// problemName:'',//问题名称
// problemName:'',//问题名称
problemPosition
:
''
,
//问题位置
problemPosition
:
''
,
//问题位置
value
:
''
,
//责任单位
value
:
''
,
//责任单位
...
@@ -242,6 +251,7 @@ export default {
...
@@ -242,6 +251,7 @@ export default {
this
.
showPicker
=
false
;
this
.
showPicker
=
false
;
},
},
beforeReadVideo
(
file
)
{
beforeReadVideo
(
file
)
{
console
.
log
(
file
)
if
(
file
.
type
.
indexOf
(
'
video
'
)
==-
1
)
{
if
(
file
.
type
.
indexOf
(
'
video
'
)
==-
1
)
{
this
.
$toast
.
fail
(
'
请上传视频!
'
);
this
.
$toast
.
fail
(
'
请上传视频!
'
);
return
false
;
return
false
;
...
...
src/views/checked/problem/note/edit/index.vue
View file @
ee46a092
...
@@ -60,7 +60,14 @@
...
@@ -60,7 +60,14 @@
</van-field>
</van-field>
<van-field
name=
"uploader2"
label=
"视频上传"
>
<van-field
name=
"uploader2"
label=
"视频上传"
>
<
template
#input
>
<
template
#input
>
<van-uploader
:before-read=
"beforeReadVideo"
accept=
"video/*"
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"editObj.videos"
/>
<van-uploader
:before-read=
"beforeReadVideo"
accept=
"video/*"
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"editObj.videos"
>
<template
#preview-cover
="
{ file,content }">
<div
v-if=
"file.type.indexOf('video') !== -1"
>
<video
muted
autoplay
:src=
"content"
style=
"width:80px;height:80px;object-fit:cover;"
></video>
</div>
<div
v-else
></div>
</
template
>
</van-uploader>
</template>
</template>
</van-field>
</van-field>
<div
style=
"margin: 0.5rem"
>
<div
style=
"margin: 0.5rem"
>
...
...
src/views/notice/noticeList/edit/index.vue
View file @
ee46a092
...
@@ -60,7 +60,14 @@
...
@@ -60,7 +60,14 @@
</van-field>
</van-field>
<van-field
name=
"uploader2"
label=
"视频上传"
>
<van-field
name=
"uploader2"
label=
"视频上传"
>
<
template
#input
>
<
template
#input
>
<van-uploader
:before-read=
"beforeReadVideo"
accept=
"video/*"
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"editObj.videos"
/>
<van-uploader
:before-read=
"beforeReadVideo"
accept=
"video/*"
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"editObj.videos"
>
<template
#preview-cover
="
{ file,content }">
<div
v-if=
"file.type.indexOf('video') !== -1"
>
<video
muted
autoplay
:src=
"content"
style=
"width:80px;height:80px;object-fit:cover;"
></video>
</div>
<div
v-else
></div>
</
template
>
</van-uploader>
</template>
</template>
</van-field>
</van-field>
<div
style=
"margin: 0.5rem"
>
<div
style=
"margin: 0.5rem"
>
...
...
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