|
|
|
|
@ -73,6 +73,7 @@
|
|
|
|
|
style="width: 200px" |
|
|
|
|
v-model="item.classId" |
|
|
|
|
clearable |
|
|
|
|
v-if="fileClasss.length" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in fileClasss" |
|
|
|
|
@ -86,6 +87,8 @@
|
|
|
|
|
plain |
|
|
|
|
@click="handleUpdateFileClass(item)" |
|
|
|
|
:disabled="!item.classId" |
|
|
|
|
v-if="fileClasss.length" |
|
|
|
|
|
|
|
|
|
>修改文件分类</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="danger" @click="remove(item)" |
|
|
|
|
@ -94,78 +97,82 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<h4>已分类文件</h4> |
|
|
|
|
<el-scrollbar max-height="400px"> |
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col |
|
|
|
|
:span="12" |
|
|
|
|
v-for="item in fileClasss" |
|
|
|
|
:key="item" |
|
|
|
|
class="file-class-item" |
|
|
|
|
> |
|
|
|
|
<header class="text-primary"> |
|
|
|
|
{{ item.classTitle }} |
|
|
|
|
</header> |
|
|
|
|
<div style="min-height: 60px"> |
|
|
|
|
<div |
|
|
|
|
class="flex between mb-8 file-list-item file-list-item_active" |
|
|
|
|
v-for="(item, index) in fileList.filter( |
|
|
|
|
(file) => file.fileClassId === item.id |
|
|
|
|
)" |
|
|
|
|
:key="index" |
|
|
|
|
> |
|
|
|
|
<div class="flex gap v-center"> |
|
|
|
|
<div v-if="!item.loading"> |
|
|
|
|
<template |
|
|
|
|
v-if=" |
|
|
|
|
getFileType(item.fileName) === |
|
|
|
|
FileType.IMG |
|
|
|
|
" |
|
|
|
|
<div v-if="fileClasss.length"> |
|
|
|
|
<h4>已分类文件</h4> |
|
|
|
|
<el-scrollbar max-height="400px"> |
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col |
|
|
|
|
:span="12" |
|
|
|
|
v-for="item in fileClasss" |
|
|
|
|
:key="item" |
|
|
|
|
class="file-class-item" |
|
|
|
|
> |
|
|
|
|
<header class="text-primary"> |
|
|
|
|
{{ item.classTitle }} |
|
|
|
|
</header> |
|
|
|
|
<div style="min-height: 60px"> |
|
|
|
|
<div |
|
|
|
|
class="flex between mb-8 file-list-item file-list-item_active" |
|
|
|
|
v-for="(item, index) in fileList.filter( |
|
|
|
|
(file) => file.fileClassId === item.id |
|
|
|
|
)" |
|
|
|
|
:key="index" |
|
|
|
|
> |
|
|
|
|
<div class="flex gap v-center"> |
|
|
|
|
<div v-if="!item.loading"> |
|
|
|
|
<template |
|
|
|
|
v-if=" |
|
|
|
|
getFileType(item.fileName) === |
|
|
|
|
FileType.IMG |
|
|
|
|
" |
|
|
|
|
> |
|
|
|
|
<div |
|
|
|
|
class="img-box" |
|
|
|
|
:style="{ |
|
|
|
|
backgroundImage: `url(${BASE_PATH}/file/stream/${item.filePath})`, |
|
|
|
|
}" |
|
|
|
|
@click="filePreview(item)" |
|
|
|
|
></div> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<icon |
|
|
|
|
:name=" |
|
|
|
|
getIconName(item.fileName) |
|
|
|
|
" |
|
|
|
|
:size="40" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
<el-progress |
|
|
|
|
type="circle" |
|
|
|
|
:percentage="item.percent" |
|
|
|
|
:width="40" |
|
|
|
|
color="var(--primary-color)" |
|
|
|
|
v-else |
|
|
|
|
></el-progress> |
|
|
|
|
<span>{{ item.fileName }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex gap v-center"> |
|
|
|
|
<el-button |
|
|
|
|
type="info" |
|
|
|
|
plain |
|
|
|
|
@click="cancelFileClass(item)" |
|
|
|
|
size="small" |
|
|
|
|
>取消分类</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="danger" |
|
|
|
|
@click="remove(item)" |
|
|
|
|
size="small" |
|
|
|
|
>删除文件</el-button |
|
|
|
|
> |
|
|
|
|
<div |
|
|
|
|
class="img-box" |
|
|
|
|
:style="{ |
|
|
|
|
backgroundImage: `url(${BASE_PATH}/file/stream/${item.filePath})`, |
|
|
|
|
}" |
|
|
|
|
@click="filePreview(item)" |
|
|
|
|
></div> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<icon |
|
|
|
|
:name="getIconName(item.fileName)" |
|
|
|
|
:size="40" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
<el-progress |
|
|
|
|
type="circle" |
|
|
|
|
:percentage="item.percent" |
|
|
|
|
:width="40" |
|
|
|
|
color="var(--primary-color)" |
|
|
|
|
v-else |
|
|
|
|
></el-progress> |
|
|
|
|
<span>{{ item.fileName }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex gap v-center"> |
|
|
|
|
<el-button |
|
|
|
|
type="info" |
|
|
|
|
plain |
|
|
|
|
@click="cancelFileClass(item)" |
|
|
|
|
size="small" |
|
|
|
|
>取消分类</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="danger" |
|
|
|
|
@click="remove(item)" |
|
|
|
|
size="small" |
|
|
|
|
>删除文件</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</el-scrollbar> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</el-scrollbar> |
|
|
|
|
</div> |
|
|
|
|
<footer class="flex end mt-20"> |
|
|
|
|
<el-button type="primary" size="large" @click="handleSubmit" |
|
|
|
|
>确认佐证材料</el-button |
|
|
|
|
|