Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
黄媛媛
ElectricitySheep
Commits
11f7c78a
Commit
11f7c78a
authored
Sep 01, 2020
by
Mac
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huangyuanyuan/electricitysheep
parents
d2ea69cd
f56b6376
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
543 additions
and
482 deletions
+543
-482
materialMan.vue
src/components/CommodityMan/materialMan.vue
+48
-17
cutomerStatistics.vue
src/components/statistics/cutomerStatistics.vue
+1
-1
index.js
src/plug/index.js
+494
-464
No files found.
src/components/CommodityMan/materialMan.vue
View file @
11f7c78a
...
...
@@ -16,9 +16,6 @@
<div
style=
"margin-right: 15px;width: auto;-webkit-box-flex: 0;flex-shrink: 0;flex-grow: 0;"
>
<el-button
@
click=
"addGroup"
style=
"margin-bottom: 12px;"
type=
"primary"
size=
"small"
>
添加分组
</el-button>
<div
style=
"border: 1px solid rgb(227, 227, 227);width:250px"
>
<!--
<div
style=
"margin:20px 0"
>
<el-input
v-model=
"val"
style=
"width:90%;margin:0 5%"
placeholder=
"请输入分类名称搜索"
size=
"small"
></el-input>
</div>
-->
<div
class=
"el-scrollbar"
style=
"width: 100%;height:670px"
>
<div
class=
"el-scrollbar__wrap"
style=
"margin-bottom: -8px; margin-right: -8px;"
>
<div
class=
"el-scrollbar__view"
>
...
...
@@ -77,7 +74,6 @@
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
<div
style=
"border: 1px solid rgb(227, 227, 227);height:674px"
>
<div
class=
"basefix app-attachment-list"
>
...
...
@@ -88,7 +84,6 @@
:show-file-list=
"false"
:http-request=
"UploadImage"
multiple
>
<i
class=
"el-icon-upload"
></i>
</el-upload>
</div>
</div>
<el-tooltip
v-for=
"(item,index) in PageList"
:key=
"index"
class=
"item"
effect=
"dark"
...
...
@@ -112,7 +107,8 @@
<div
class=
"material-item material-upload"
>
<div
class=
"app-upload"
flex=
"main:center cross:center"
style=
"width: 140px; height: 140px;"
>
<el-upload
class=
"avatar-uploader"
action=
""
:before-upload=
"beforeAvatarUpload"
accept=
"video/mp4,video/ogg,video/webm"
:show-file-list=
"false"
:http-request=
"UploadImage"
multiple
>
accept=
"video/mp4,video/ogg,video/webm"
:show-file-list=
"false"
:http-request=
"UploadVideo"
multiple
>
<i
class=
"el-icon-upload"
></i>
</el-upload>
</div>
...
...
@@ -121,8 +117,10 @@
:content=
"item.Name"
placement=
"top-start"
>
<div
@
click=
"PageSelect(item,index)"
:class=
"item.Selected ? 'selected' :''"
class=
"el-tooltip item material-item "
>
<img
:src=
"getIconLink(item.Path)+'?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast'"
class=
"material-img"
style=
"width: 140px; height: 140px;"
>
<div
class=
"material-video-info"
><i
class=
"el-icon-video-play"
></i>
<span>
{{
Time
(
item
.
VideoTime
)
}}
</span></div>
<div
flex=
"dir:left"
style=
"margin-top: 5px;"
>
...
...
@@ -137,8 +135,6 @@
</div>
</el-tooltip>
</
template
>
</div>
<div
style=
"padding-right:10px"
>
<el-pagination
style=
"text-align:right"
background
:current-page=
"currentPage4"
...
...
@@ -149,13 +145,10 @@
</div>
</div>
</div>
</div>
</div>
<video
style=
"display:none;"
controls=
"controls"
id=
"aa"
oncanplaythrough=
"myFunction(this)"
>
</video>
</div>
<!-- 新增分组 -->
<el-dialog
title=
"分组管理"
:visible
.
sync=
"addGroupMsgDig"
width=
"400px"
>
...
...
@@ -187,11 +180,12 @@
<el-button
size=
"small"
type=
"primary"
@
click=
"pagesubmitForm('addpageMsg')"
>
确 定
</el-button>
</span>
</el-dialog>
<video
width=
"320"
height=
"240"
controls
id=
"upvideo"
style=
"display:none"
>
</video>
<img
:src=
"testImg"
style=
"width:120px;height:60px;border:1px solid red;"
/>
<canvas
id=
'mycanvas'
></canvas>
</div>
</template>
<
script
>
export
default
{
name
:
'ChooseImg'
,
...
...
@@ -255,7 +249,7 @@
checkList
:
[],
checkAllList
:
[],
checkAll
:
false
,
testImg
:
""
}
},
created
()
{
...
...
@@ -263,9 +257,33 @@
this
.
GetPageList
();
},
mounted
()
{
this
.
findvideocover
(
"http://192.168.2.214:8130/Upload/Video/20200901114120428.mp4"
)
},
methods
:
{
//获取视频封面
findvideocover
(
videoUrl
)
{
let
_this
=
this
;
this
.
$nextTick
(()
=>
{
let
video
=
document
.
getElementById
(
"upvideo"
);
let
source
=
document
.
createElement
(
"source"
);
source
.
src
=
videoUrl
;
source
.
type
=
"video/mp4"
;
video
.
appendChild
(
source
);
video
.
addEventListener
(
"loadeddata"
,
function
()
{
var
canvas
=
document
.
createElement
(
"canvas"
);
canvas
.
width
=
"320"
;
canvas
.
height
=
"320"
;
canvas
.
getContext
(
"2d"
)
.
drawImage
(
video
,
0
,
0
,
canvas
.
width
,
canvas
.
width
);
console
.
log
(
"video"
,
video
);
var
img
=
document
.
createElement
(
"img"
);
let
imgsrc
=
canvas
.
toDataURL
(
"image/png"
);
_this
.
testImg
=
imgsrc
});
});
},
Time
(
value
)
{
var
theTime
=
parseInt
(
value
);
// 秒
var
middle
=
0
;
// 分
...
...
@@ -477,12 +495,25 @@
}
})
},
//上传视频
UploadVideo
(
file
)
{
var
that
=
this
;
this
.
UploadSelfFile
(
this
.
FileType
().
Video
,
file
.
file
,
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
that
.
addpageMsg
.
Type
==
2
)
{
that
.
addpageMsg
.
Image
=
res
.
FileUrl
;
}
that
.
addpageMsg
.
Path
=
res
.
FileUrl
;
that
.
addpageMsg
.
Name
=
res
.
FileName
;
that
.
addPageList
();
}
})
},
// 新增素材信息
addPageList
()
{
this
.
apipost
(
"/api/product/SetMaterialInfo"
,
this
.
addpageMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
GetPageList
();
}
})
},
...
...
src/components/statistics/cutomerStatistics.vue
View file @
11f7c78a
...
...
@@ -88,7 +88,7 @@
return
{
msg
:
{
pageIndex
:
1
,
pageSize
:
10
00
,
pageSize
:
10
,
Source
:
0
,
StartDate
:
''
,
EndDate
:
''
,
...
...
src/plug/index.js
View file @
11f7c78a
This diff is collapsed.
Click to expand it.
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