|
@@ -1,45 +1,48 @@
|
|
|
<template>
|
|
|
<div class="panorama con">
|
|
|
<div class="top">
|
|
|
- <crumbs :list="folderPath" @click-path="onClickPath" />
|
|
|
+ <crumbs v-if="!lastestUsedSearchKey" :list="folderPath" @click-path="onClickPath" />
|
|
|
+ <div v-if="lastestUsedSearchKey" class="">{{$i18n.t("gather.audio")}}</div>
|
|
|
</div>
|
|
|
<div class="second-line">
|
|
|
- <div class="btn">
|
|
|
+ <template v-if="!lastestUsedSearchKey">
|
|
|
+ <div class="btn">
|
|
|
+ <button
|
|
|
+ @mouseover.stop="showList = true"
|
|
|
+ @click="onUploadFile"
|
|
|
+ class="ui-button submit"
|
|
|
+ >
|
|
|
+ <span>{{upload_material}}</span>
|
|
|
+ <i class="iconfont icon-material_prompt hover-tips hover-tips-upload-icon">
|
|
|
+ <div>
|
|
|
+ <div class="remark">{{audio_size}}</div>
|
|
|
+ </div>
|
|
|
+ </i>
|
|
|
+ <upload
|
|
|
+ ref="uploadFile"
|
|
|
+ :failString="audio_fail"
|
|
|
+ :limitFailStr="audio_limit"
|
|
|
+ accept-type="audio/mp3"
|
|
|
+ media-type="audio"
|
|
|
+ :limit="20"
|
|
|
+ @file-change="onFileChange"
|
|
|
+ ></upload>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
<button
|
|
|
- @mouseover.stop="showList = true"
|
|
|
- @click="onUploadFile"
|
|
|
class="ui-button submit"
|
|
|
+ @click="isShowNewFolder = true"
|
|
|
>
|
|
|
- <span>{{upload_material}}</span>
|
|
|
- <i class="iconfont icon-material_prompt hover-tips hover-tips-upload-icon">
|
|
|
- <div>
|
|
|
- <div class="remark">{{audio_size}}</div>
|
|
|
- </div>
|
|
|
- </i>
|
|
|
- <upload
|
|
|
- ref="uploadFile"
|
|
|
- :failString="audio_fail"
|
|
|
- :limitFailStr="audio_limit"
|
|
|
- accept-type="audio/mp3"
|
|
|
- media-type="audio"
|
|
|
- :limit="20"
|
|
|
- @file-change="onFileChange"
|
|
|
- ></upload>
|
|
|
+ {{$i18n.t(`gather.new_folder`)}}
|
|
|
</button>
|
|
|
- </div>
|
|
|
- <button
|
|
|
- class="ui-button submit"
|
|
|
- @click="isShowNewFolder = true"
|
|
|
- >
|
|
|
- {{$i18n.t(`gather.new_folder`)}}
|
|
|
- </button>
|
|
|
- <button
|
|
|
- class="ui-button cancel"
|
|
|
- :class="{disable: selectedList.length === 0}"
|
|
|
- @click="onClickMoveFolder"
|
|
|
- >
|
|
|
- {{$i18n.t(`gather.move_folder`)}}
|
|
|
- </button>
|
|
|
+ <button
|
|
|
+ class="ui-button cancel"
|
|
|
+ :class="{disable: selectedList.length === 0}"
|
|
|
+ @click="onClickMoveFolder"
|
|
|
+ >
|
|
|
+ {{$i18n.t(`gather.move_folder`)}}
|
|
|
+ </button>
|
|
|
+ </template>
|
|
|
<div class="filter">
|
|
|
<div :class="{active: isFilterFocus}" @focusin="onFilterFocus" @focusout="onFilterBlur">
|
|
|
<i class="iconfont icon-works_search search" ></i>
|
|
@@ -63,7 +66,7 @@
|
|
|
:canRequestMoreData="hasMoreData && !isRequestingMoreData"
|
|
|
:header="tabHeader"
|
|
|
:showLine="true"
|
|
|
- :selection="true"
|
|
|
+ :selection="lastestUsedSearchKey ? false : true"
|
|
|
:data="list"
|
|
|
class="table-list"
|
|
|
ref="table-list"
|
|
@@ -124,7 +127,13 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
</tableList>
|
|
|
- <UploadTaskList class="upload-task-list" fileType="AUDIO" :taskList="uploadListForUI" :targetFolderId="currentFolderId" @cancel-task="onCancelTask"></UploadTaskList>
|
|
|
+ <UploadTaskList
|
|
|
+ class="upload-task-list"
|
|
|
+ fileType="AUDIO"
|
|
|
+ :taskList="uploadListForUI"
|
|
|
+ :targetFolderId="lastestUsedSearchKey ? -1 : currentFolderId"
|
|
|
+ @cancel-task="onCancelTask"
|
|
|
+ />
|
|
|
<div class="total-number" v-if="list.length !== 0 || hasMoreData">{{had_load}}</div>
|
|
|
<div class="nodata" v-if="list.length == 0 && !hasMoreData && lastestUsedSearchKey">
|
|
|
<img :src="$noresult" alt="" />
|
|
@@ -273,7 +282,7 @@ export default {
|
|
|
this.isRequestingMoreData = false
|
|
|
this.hasMoreData = true
|
|
|
this.$refs['table-list'].requestMoreData()
|
|
|
- }, 700, true),
|
|
|
+ }, 500, false),
|
|
|
stopAllAudio() {
|
|
|
Array.from($("audio")).forEach((item) => {
|
|
|
if (!item.paused) {
|