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
37bfd553
Commit
37bfd553
authored
Feb 07, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f612518c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
701 additions
and
5 deletions
+701
-5
Educationvideo.vue
src/components/Educationvideo.vue
+224
-0
EducationvideoList.vue
src/components/EducationvideoList.vue
+366
-0
EducationvideoSee.vue
src/components/EducationvideoSee.vue
+68
-0
index.js
src/plug/index.js
+17
-4
config.js
src/router/config.js
+26
-1
No files found.
src/components/Educationvideo.vue
0 → 100644
View file @
37bfd553
<
template
>
<div
class=
"Educationvideo"
>
<div
class=
"left"
>
<ul
class=
"lineUl"
style=
"margin-top:30px"
>
<li
@
click=
"SelectLineId(-1)"
:class=
"msg.LineId ==-1 ? 'Active' : ''"
>
不限
</li>
<li
@
click=
"SelectLineId(item.LineID)"
:class=
"msg.LineId == item.LineID ? 'Active' : ''"
v-for=
"(item,index) in LineList"
:key=
"index"
>
{{
item
.
LineName
}}
</li>
</ul>
</div>
<div
class=
"right"
>
<div
class=
"search"
>
<el-input
style=
"width:600px"
placeholder=
"请输入内容"
v-model=
"msg.Name"
class=
"input-with-select"
>
<el-button
@
click=
"getList"
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
</div>
<div
class=
"Content"
>
<ul
class=
"videoUl"
>
<li
v-for=
"(item,index) in dataList"
:key=
"index"
>
<div
@
click
.
prevent=
"goUrl('EducationvideoSee',item)"
class=
"imgDiv"
>
<img
v-if=
"item.Cover && item.Cover!=''"
:onerror=
"defaultImg"
style=
"height:195px;width:100%"
:src=
"item.Cover"
alt=
""
>
<img
v-else
style=
"height:195px;width:100%"
src=
"../assets/img/hotel/biefu.png"
alt=
""
>
<div
@
click
.
prevent=
"goUrl1('EducationvideoList',$event)"
class=
"icon"
>
<span
class=
"iconfont icon-weihu"
></span>
</div>
</div>
<p>
{{
item
.
Name
}}
</p>
<p>
{{
item
.
EmName
}}
</p>
<p>
{{
item
.
WatchNum
}}
次观看
<span
class=
"circle"
></span>
<span>
{{
item
.
UpdateDate
}}
</span>
</p>
</li>
</ul>
<div
v-if=
"dataList.length==0"
style=
"text-align:center"
>
暂无数据
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
'total'
>
</el-pagination>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'Educationvideo'
,
created
()
{
},
data
()
{
return
{
defaultImg
:
'this.src="'
+
require
(
"../assets/img/bg_z1@2x.png"
)
+
'"'
,
val
:
''
,
LineList
:[],
msg
:{
pageIndex
:
1
,
pageSize
:
20
,
Name
:
''
,
UserType
:
1
,
VideoStatus
:
1
,
CreateBy
:
''
,
LineId
:
-
1
,
},
dataList
:[],
total
:
0
,
}
},
mounted
()
{
this
.
getLineList
();
this
.
getList
();
},
methods
:
{
SelectLineId
(
id
){
this
.
msg
.
LineId
=
id
;
this
.
getList
();
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
//获取列表
getList
()
{
this
.
apipost
(
"Video_get_GetPCVideoPageList"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
console
.
log
(
"this.dataList"
,
this
.
dataList
)
}
}
);
},
goUrl1
(
path
,
e
){
e
.
stopPropagation
()
this
.
$router
.
push
({
name
:
path
,
query
:
{
blank
:
"y"
}
});
},
goUrl
(
path
,
item
){
let
msg
=
JSON
.
stringify
(
item
)
this
.
$router
.
push
({
name
:
path
,
query
:
{
msg
:
msg
,
blank
:
"y"
}
});
},
//获取线路列表
getLineList
()
{
this
.
apipost
(
"line_post_GetList"
,
{
LineDirection
:
2
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
LineList
=
res
.
data
.
data
;
}
}
);
},
},
}
</
script
>
<
style
>
.Educationvideo
.right
.Content
.circle
{
display
:
inline-block
;
width
:
3px
;
height
:
3px
;
background
:
#666666
;
border-radius
:
50%
;
}
.Educationvideo
.right
.Content
.videoUl
li
.imgDiv
:hover
.icon
{
display
:
block
;
}
.Educationvideo
.right
.Content
.videoUl
li
.imgDiv
.icon
{
position
:
absolute
;
right
:
3px
;
top
:
3px
;
padding
:
2px
6px
;
background
:
#000
;
display
:
none
;
}
.Educationvideo
.right
.Content
.videoUl
li
.imgDiv
.icon
.iconfont
{
color
:
#fff
;
}
.Educationvideo
.right
.Content
.videoUl
li
.imgDiv
{
position
:
relative
;
cursor
:
pointer
;
}
.Educationvideo
.right
.Content
.videoUl
li
p
{
font-size
:
14px
;
color
:
#666666
;
}
.Educationvideo
.right
.Content
.videoUl
li
{
display
:
inline-block
;
width
:
300px
;
padding
:
5px
;
box-sizing
:
border-box
;
}
.Educationvideo
.right
.Content
{
padding
:
90px
15px
10px
15px
;
box-sizing
:
border-box
;
}
*
{
margin
:
0
;
padding
:
0
;
}
.Educationvideo
.left
.lineUl
.Active
{
background
:
#f5f5f5
;
}
.Educationvideo
.left
.lineUl
li
:hover
{
background
:
#f5f5f5
;
}
.Educationvideo
.left
.lineUl
li
{
padding
:
10px
35px
;
box-sizing
:
border-box
;
font-size
:
14px
;
}
li
{
list-style
:
none
;
}
.Educationvideo
.right
.search
{
padding
:
15px
0
;
padding-left
:
50px
;
box-sizing
:
border-box
;
position
:
fixed
;
top
:
0
;
width
:
calc
(
100%
-
240px
);
background
:
#fff
;
left
:
240px
;
}
.Educationvideo
{
position
:
relative
;
min-height
:
100%
;
background
:
#fff
;
}
.Educationvideo
.left
{
position
:
fixed
;
min-height
:
100%
;
width
:
240px
;
z-index
:
100
;
background
:
#fff
;
}
.Educationvideo
.right
{
background
:
#f5f5f5
;
padding-left
:
250px
;
box-sizing
:
border-box
;
min-height
:
100%
;
}
</
style
>
src/components/EducationvideoList.vue
0 → 100644
View file @
37bfd553
This diff is collapsed.
Click to expand it.
src/components/EducationvideoSee.vue
0 → 100644
View file @
37bfd553
<
template
>
<div
class=
"EducationvideoSee"
>
<div
class=
"imgDiv"
>
<video
height=
"500"
:src=
"datainfo.VideoAddress"
controls=
"controls"
>
您的浏览器不支持 video 标签。
</video>
<!--
<img
style=
"height:100%;width:100%"
src=
"../assets/img/hotel/biefu.png"
alt=
""
>
-->
<!--
<div
class=
"icon"
>
<span
class=
"iconfont icon-weihu"
></span>
</div>
-->
<p>
{{
datainfo
.
Name
}}
</p>
<p>
{{
datainfo
.
EmName
}}
</p>
<p>
{{
datainfo
.
WatchNum
}}
次观看
<span
class=
"circle"
></span>
<span>
{{
datainfo
.
UpdateDate
}}
</span>
</p>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'EducationvideoSee'
,
created
()
{
},
data
()
{
return
{
val
:
''
,
datainfo
:{},
}
},
mounted
()
{
if
(
this
.
$route
.
query
.
msg
){
this
.
datainfo
=
JSON
.
parse
(
this
.
$route
.
query
.
msg
)
console
.
log
(
"this.datainfo"
,
this
.
datainfo
)
}
},
methods
:
{
},
}
</
script
>
<
style
>
.EducationvideoSee
.circle
{
display
:
inline-block
;
width
:
3px
;
height
:
3px
;
background
:
#666666
;
border-radius
:
50%
;
}
.EducationvideoSee
.imgDiv
{
width
:
850px
;
height
:
453px
;
position
:
relative
;
}
.EducationvideoSee
{
min-height
:
100%
;
background
:
#fff
;
padding
:
15px
50px
;
box-sizing
:
border-box
;
}
</
style
>
src/plug/index.js
View file @
37bfd553
...
...
@@ -708,27 +708,40 @@ export default {
//files 文件数组
//p 进度回调函数
Vue
.
prototype
.
uploadFile
=
function
(
path
,
files
,
successCall
)
{
if
(
files
&&
files
.
length
>
0
)
{
let
nameList
=
new
Array
()
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
nameList
.
push
(
this
.
random_string
());
}
var
oss
=
new
OSS
({
region
:
'oss-cn-
hangzho
u'
,
region
:
'oss-cn-
chengd
u'
,
accessKeyId
:
'LTAIwE7l9dImZSa3'
,
accessKeySecret
:
'j47Ajn0d0WzUCIX8Biyj3P2r8QDltI'
,
bucket
:
'
reborndev
'
bucket
:
'
vt-im-bucket
'
})
let
that
=
this
let
that
=
this
;
let
checkpoint
=
null
;
let
percentage
=
0
;
co
(
function
*
()
{
for
(
let
index
=
0
;
index
<
files
.
length
;
index
++
)
{
let
fileName
=
nameList
[
index
]
fileName
=
"/New"
+
path
+
fileName
+
"."
+
files
[
index
].
name
.
split
(
'.'
).
pop
()
var
result
=
yield
oss
.
multipartUpload
(
fileName
,
files
[
index
],
{
progress
:
function
*
(
p
)
{},
mime
:
'application/octet-stream'
})
successCall
(
result
);
// var result = oss.multipartUpload(filename, files[index], {
// progress: async function (p, checkpoint) {
// checkpoint = checkpoint
// percentage = p * 100
// },
// checkpoint: that.checkpoint
// })
console
.
log
(
"result"
,
result
)
// successCall(result);
}
}).
catch
(
function
(
err
)
{
...
...
src/router/config.js
View file @
37bfd553
...
...
@@ -4495,7 +4495,32 @@ export default {
title
:
'资产管理'
},
},
{
path
:
'/Educationvideo'
,
//教育视频
name
:
'Educationvideo'
,
component
:
resolve
=>
require
([
'@/components/Educationvideo'
],
resolve
),
meta
:
{
title
:
'教育视频'
},
},
{
path
:
'/EducationvideoSee'
,
//教育视频
name
:
'EducationvideoSee'
,
component
:
resolve
=>
require
([
'@/components/EducationvideoSee'
],
resolve
),
meta
:
{
title
:
'观看教育视频'
},
},
{
path
:
'/EducationvideoList'
,
//教育视频
name
:
'EducationvideoList'
,
component
:
resolve
=>
require
([
'@/components/EducationvideoList'
],
resolve
),
meta
:
{
title
:
'维护教育视频'
},
},
{
path
:
'/supplierIndex'
,
//供应商首页
name
:
'supplierIndex'
,
...
...
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