Commit 780a265f authored by Jeff's avatar Jeff

Merge remote-tracking branch 'origin/develop' into develop

# Conflicts:
#	src/views/videoConverter.vue
parents ac332bc1 97e31c7a
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment