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
250802f0
Commit
250802f0
authored
Feb 11, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c2f55d3d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
Educationvideo.vue
src/components/Educationvideo.vue
+6
-2
EducationvideoList.vue
src/components/EducationvideoList.vue
+26
-1
No files found.
src/components/Educationvideo.vue
View file @
250802f0
...
...
@@ -114,6 +114,8 @@ export default {
},
methods
:
{
Search
(){
this
.
msg
.
pageIndex
=
1
;
this
.
nodata
=
false
;
this
.
dataList
=
[];
this
.
getList
();
},
...
...
@@ -137,6 +139,8 @@ export default {
},
SelectLineId
(
id
){
this
.
dataList
=
[];
this
.
nodata
=
false
;
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
LineId
=
id
;
this
.
getList
();
},
...
...
src/components/EducationvideoList.vue
View file @
250802f0
...
...
@@ -14,6 +14,7 @@
<el-button
@
click=
"Search"
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
<el-button
style=
"margin-left:20px"
size=
"small"
type=
"danger"
@
click=
"addList"
round
>
新增
</el-button>
<el-button
style=
"margin-left:20px"
size=
"small"
type=
"primary"
@
click=
"goUrlHome"
round
>
返回
</el-button>
</div>
<div
v-loading=
"loading"
class=
"Content"
>
<ul
class=
"videoUl"
>
...
...
@@ -92,6 +93,7 @@
<el-select
style=
"width:220px"
v-model=
"addMsg.VideoStatus"
placeholder=
"请选择状态"
>
<el-option
label=
"发布"
:value=
"1"
></el-option>
<el-option
label=
"草稿"
:value=
"2"
></el-option>
<el-option
label=
"撤回"
:value=
"3"
></el-option>
</el-select>
</el-form-item>
<el-form-item
style=
"display:inline-block"
label=
"线路"
prop=
"LineId"
>
...
...
@@ -218,6 +220,8 @@ export default {
},
methods
:
{
Search
(){
this
.
msg
.
pageIndex
=
1
;
this
.
nodata
=
false
;
this
.
dataList
=
[];
this
.
getList
();
},
...
...
@@ -275,12 +279,16 @@ export default {
// });
// },
uploadFileBtn
(
file
)
{
if
([
'video/mp4'
,
'video/ogg'
,
'video/flv'
,
'video/avi'
,
'video/wmv'
,
'video/rmvb'
,
'video/mov'
].
indexOf
(
file
.
file
.
type
)
==
-
1
)
{
this
.
Error
(
"请上传正确的视频格式"
);
return
;
}
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
path
=
"/Sale/Uploadvideo/"
;
this
.
uploadFile
(
path
,
newArr
,
x
=>
{
this
.
addMsg
.
VideoAddress
=
this
.
baseurl
+
x
.
name
;
let
lastUrl
=
"?x-oss-process=video/snapshot,t_
1
,f_jpg,w_290,h_195,m_fast"
;
let
lastUrl
=
"?x-oss-process=video/snapshot,t_
9
,f_jpg,w_290,h_195,m_fast"
;
this
.
addMsg
.
Cover
=
this
.
addMsg
.
VideoAddress
+
lastUrl
;
});
},
...
...
@@ -322,6 +330,9 @@ export default {
this
.
apipost
(
'Video_post_CancelVidelInfo'
,
{
VideoId
:
item
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
)
this
.
dataList
=
[];
this
.
msg
.
pageIndex
=
1
;
this
.
nodata
=
false
;
this
.
getList
()
}
else
{
this
.
Error
(
res
.
data
.
message
)
...
...
@@ -342,6 +353,9 @@ export default {
this
.
apipost
(
'Video_post_DelVidelInfo'
,
{
VideoId
:
item
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
)
this
.
dataList
=
[];
this
.
msg
.
pageIndex
=
1
;
this
.
nodata
=
false
;
this
.
getList
()
}
else
{
this
.
Error
(
res
.
data
.
message
)
...
...
@@ -362,6 +376,9 @@ export default {
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
)
this
.
dialogVisible
=
false
;
this
.
dataList
=
[];
this
.
msg
.
pageIndex
=
1
;
this
.
nodata
=
false
;
this
.
getList
()
}
else
{
this
.
Error
(
res
.
data
.
message
)
...
...
@@ -384,6 +401,14 @@ export default {
this
.
dialogVisible
=
true
;
},
goUrlHome
(){
this
.
$router
.
push
({
name
:
'Educationvideo'
,
query
:
{
blank
:
"y"
}
});
},
goUrl
(
path
,
item
){
this
.
videoDivState
=
true
;
this
.
thisVideoAddress
=
item
.
VideoAddress
;
...
...
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