Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
trimble-admin-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
364a2d3e
authored
2020-03-13 16:58:24 +0800
by
qingxiao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
942c46dd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
20 deletions
src/views/playback/index.vue
src/views/playbackType/index.vue
src/views/video/index.vue
src/views/videoType/index.vue
src/views/playback/index.vue
View file @
364a2d3
...
...
@@ -55,9 +55,16 @@
</el-form-item>
<el-form-item
label=
"视频链接:"
prop=
"videoUrl"
>
<el-input
v-model=
"playbackForm.videoUrl"
maxlength=
"100"
show-word-limit
></el-input>
<div>
视频链接提取方法:
<div>
1.电脑打开qq视频链接
2.鼠标移动至视频左下角分享按钮
3.点击复制通用代码
4.取复制内容中src的值
</div>
</div>
</el-form-item>
<el-form-item
label=
"类型:"
prop=
"playbackTypeCode"
>
<el-select
v-model=
"playbackForm.playbackTypeCode"
placeholder=
"请选择"
>
<el-select
v-model=
"playbackForm.playbackTypeCode"
placeholder=
"请选择"
>
<el-option
v-for=
"item in playbackTypeList"
:key=
"item.playbackTypeCode"
...
...
@@ -97,8 +104,8 @@
queryForm
:
{
page
:
1
,
size
:
10
,
playbackTypeCode
:
''
,
title
:
''
playbackTypeCode
:
''
,
title
:
''
},
dialogVisible
:
false
,
title
:
''
,
...
...
@@ -108,12 +115,12 @@
videoUrl
:
[{
required
:
true
,
message
:
'请输入视频链接'
,
trigger
:
'blur'
}],
playbackTypeCode
:
[{
required
:
true
,
message
:
'请选择'
,
trigger
:
'blur'
}]
},
playbackTypeList
:[]
playbackTypeList
:
[]
}
},
methods
:
{
searchPlayback
(){
this
.
queryForm
.
page
=
1
searchPlayback
()
{
this
.
queryForm
.
page
=
1
this
.
initPlayBack
()
},
initPlayBack
()
{
...
...
@@ -127,9 +134,9 @@
})
},
initPlayBackType
()
{
let
form
=
{
page
:
1
,
size
:
1000
,
let
form
=
{
page
:
1
,
size
:
1000
,
}
request
.
get
(
urls
.
playbackTypeListUrl
,
form
).
then
(
data
=>
{
this
.
playbackTypeList
=
data
.
content
.
list
...
...
@@ -148,8 +155,8 @@
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
form
=
{
playbackCode
:
code
let
form
=
{
playbackCode
:
code
}
request
.
post
(
urls
.
playbackDelUrl
,
form
).
then
(
data
=>
{
this
.
initPlayBack
()
...
...
@@ -167,6 +174,7 @@
this
.
playbackForm
=
{}
},
playbackCreate
()
{
this
.
playbackForm
=
{}
this
.
dialogVisible
=
true
this
.
title
=
'创建'
},
...
...
src/views/playbackType/index.vue
View file @
364a2d3
...
...
@@ -15,7 +15,9 @@
<el-table-column
label=
"图片"
prop=
"typeImage"
>
<template
slot-scope=
"scope"
>
<a
:href=
"scope.row.typeImage"
target=
"_blank"
>
<el-image
:src=
"scope.row.typeImage"
></el-image>
<div
style=
"width: 100px;"
>
<el-image
:src=
"scope.row.typeImage"
></el-image>
</div>
</a>
</
template
>
</el-table-column>
...
...
@@ -117,8 +119,8 @@
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
form
=
{
playbackTypeCode
:
code
let
form
=
{
playbackTypeCode
:
code
}
request
.
post
(
urls
.
playbackTypeDelUrl
,
form
).
then
(
data
=>
{
this
.
initPlayBackType
()
...
...
@@ -136,6 +138,7 @@
this
.
playbackTypeForm
=
{}
},
playbackTypeCreate
()
{
this
.
playbackTypeForm
=
{}
this
.
dialogVisible
=
true
this
.
title
=
'创建'
},
...
...
src/views/video/index.vue
View file @
364a2d3
...
...
@@ -179,6 +179,7 @@
this
.
videoForm
=
{}
},
videoCreate
()
{
this
.
videoForm
=
{}
this
.
dialogVisible
=
true
this
.
title
=
'创建'
},
...
...
src/views/videoType/index.vue
View file @
364a2d3
...
...
@@ -15,7 +15,9 @@
<el-table-column
label=
"图片"
prop=
"typeImage"
>
<template
slot-scope=
"scope"
>
<a
:href=
"scope.row.typeImage"
target=
"_blank"
>
<el-image
:src=
"scope.row.typeImage"
></el-image>
<div
style=
"width: 100px;"
>
<el-image
:src=
"scope.row.typeImage"
></el-image>
</div>
</a>
</
template
>
</el-table-column>
...
...
@@ -110,9 +112,9 @@
typeImage
:
[{
required
:
true
,
message
:
'上传缩略图'
,
trigger
:
'blur'
}],
machine
:
[{
required
:
true
,
message
:
'请选择'
,
trigger
:
'blur'
}]
},
machineOption
:[
{
label
:
'软件'
,
value
:
1
},
{
label
:
'硬件'
,
value
:
0
},
machineOption
:
[
{
label
:
'软件'
,
value
:
1
},
{
label
:
'硬件'
,
value
:
0
},
]
}
...
...
@@ -139,8 +141,8 @@
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
form
=
{
videoTypeCode
:
code
let
form
=
{
videoTypeCode
:
code
}
request
.
post
(
urls
.
videoTypeDelUrl
,
form
).
then
(
data
=>
{
this
.
initVideoType
()
...
...
@@ -158,6 +160,7 @@
this
.
videoTypeForm
=
{}
},
videoTypeCreate
()
{
this
.
videoTypeForm
=
{}
this
.
dialogVisible
=
true
this
.
title
=
'创建'
},
...
...
Please
register
or
sign in
to post a comment