Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
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
lhfe
mould-vuecli3
Commits
780a265f
Commit
780a265f
authored
Aug 27, 2020
by
Jeff
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
# Conflicts: # src/views/videoConverter.vue
parents
ac332bc1
97e31c7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
75 deletions
+51
-75
videoConverter.vue
src/views/videoConverter.vue
+51
-75
No files found.
src/views/videoConverter.vue
View file @
780a265f
...
@@ -2,13 +2,10 @@
...
@@ -2,13 +2,10 @@
<div
class=
"videoConverter"
>
<div
class=
"videoConverter"
>
<ul>
<ul>
<li
<li
v-for=
"(item, index) in taskList"
v-for=
"(item, index) in taskList"
:key=
"index"
:key=
"index"
>
>
<div
class=
"info"
>
<div
class=
"info"
>
<div
class=
"cove"
>
<div
class=
"cove"
>
视频封面
</div>
视频封面
</div>
<div>
<div>
<div>
{{
item
.
name
}}
.mp4
</div>
<div>
{{
item
.
name
}}
.mp4
</div>
<div>
时长:
{{
item
.
duration
}}
</div>
<div>
时长:
{{
item
.
duration
}}
</div>
...
@@ -16,37 +13,27 @@
...
@@ -16,37 +13,27 @@
</div>
</div>
<div
class=
"operationPanel"
>
<div
class=
"operationPanel"
>
<div
<div
class=
"wait"
class=
"wait"
v-show=
"item.state == 0"
v-show=
"item.state == 0"
>
>
<div>
输出格式
</div>
<div>
输出格式
</div>
<div
class=
"selectionFormat"
>
<div
class=
"selectionFormat"
>
mp4
</div>
mp4
</div>
<div
<div
class=
"delete"
class=
"delete"
@
click=
"clearAllTasks(item)"
@
click=
"clearTask(item)"
>
删除
</div>
>
删除
</div>
</div>
</div>
<div
<div
class=
"active"
class=
"active"
v-show=
"item.state == 1"
v-show=
"item.state == 1"
>
>
<div
class=
"progress"
>
<div
class=
"progress"
>
<div>
转换中
{{
item
.
progress
}}
%
</div>
<div>
转换中
{{
item
.
progress
}}
%
</div>
<div
class=
"slide"
>
<div
class=
"slide"
>
<div
/
>
<div></div
>
</div>
</div>
</div>
</div>
<div
<div
class=
"stop"
class=
"stop"
@
click=
"stopTask(item)"
@
click=
"stopTask(item)"
>
取消
</div>
>
取消
</div>
</div>
</div>
</div>
</div>
</li>
</li>
...
@@ -54,28 +41,17 @@
...
@@ -54,28 +41,17 @@
<div
class=
"editBar"
>
<div
class=
"editBar"
>
<div
<div
class=
"addVideo"
class=
"addVideo"
@
click=
"addVideo"
@
click=
"addVideo"
>
添加视频
</div>
>
添加视频
</div>
<div
<div
class=
"clearList"
class=
"clearList"
@
click=
"clearAllTasks"
@
click=
"clearAllTasks"
>
清空列表
</div>
>
<div
class=
"clearWatermark"
>
去除水印
</div>
清空列表
</div>
<div
class=
"clearWatermark"
>
去除水印
</div>
</div>
</div>
<div
<div
class=
"startAll"
class=
"startAll"
@
click=
"startAllTasks"
@
click=
"startAllTasks"
>
开始转换
</div>
>
开始转换
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -106,7 +82,7 @@ export default {
...
@@ -106,7 +82,7 @@ export default {
item
.
state
=
0
item
.
state
=
0
},
},
clearTask
(
item
)
{
clearTask
(
item
)
{
let
index
=
this
.
taskList
(
item
)
let
index
=
this
.
taskList
.
indexOf
(
item
)
if
(
index
>
-
1
)
{
if
(
index
>
-
1
)
{
this
.
taskList
.
splice
(
index
,
1
)
this
.
taskList
.
splice
(
index
,
1
)
}
}
...
@@ -154,7 +130,7 @@ export default {
...
@@ -154,7 +130,7 @@ export default {
height
:
100%
;
height
:
100%
;
border
:
1px
solid
black
;
border
:
1px
solid
black
;
flex-grow
:
1
;
flex-grow
:
1
;
overflow-y
:
scroll
;
overflow-y
:
auto
;
>
li
{
>
li
{
padding
:
5px
0
;
padding
:
5px
0
;
height
:
60px
;
height
:
60px
;
...
...
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