Commit f4049579 authored by zhengke's avatar zhengke

云盘 批量操作

parent 856b067f
...@@ -6,8 +6,12 @@ ...@@ -6,8 +6,12 @@
class="fz14" label="" v-model="item.check" @click.stop="item.check=!item.check"/> class="fz14" label="" v-model="item.check" @click.stop="item.check=!item.check"/>
<div class="CloudDisk-R-Box cursor-pointer" :key="index"> <div class="CloudDisk-R-Box cursor-pointer" :key="index">
<div class="CloudDisk-R-Img"> <div class="CloudDisk-R-Img">
<el-image :src="item.FilePath" style="width: 100%; height: 100%;" <el-image class="row items-center" :src="item.FilePath" style="width: 100%; height: 100%;"
fit="cover"/> fit="cover">
<template #error>
<el-image :src="errImg"></el-image>
</template>
</el-image>
</div> </div>
<span class="title block"> <span class="title block">
<el-tooltip effect="dark" :content="item.FileName" placement="bottom"> <el-tooltip effect="dark" :content="item.FileName" placement="bottom">
...@@ -108,6 +112,7 @@ ...@@ -108,6 +112,7 @@
const nickNam = ref(''|| Number) const nickNam = ref(''|| Number)
const editLoading = ref(false) const editLoading = ref(false)
const multipleSelection = ref([] as any) const multipleSelection = ref([] as any)
const errImg = ref(require('@/assets/img/noImg.png') as any)
const handleChildMouseDown = (event) => { const handleChildMouseDown = (event) => {
event.stopPropagation() event.stopPropagation()
......
...@@ -70,8 +70,12 @@ ...@@ -70,8 +70,12 @@
<div class="CloudDisk-R-Box cursor-pointer" <div class="CloudDisk-R-Box cursor-pointer"
:class="[ImgId==item.DetailsId?'active':'active2']" @click="setImg(item)"> :class="[ImgId==item.DetailsId?'active':'active2']" @click="setImg(item)">
<div class="CloudDisk-R-Img"> <div class="CloudDisk-R-Img">
<el-image :src="item.FilePath" style="width: 100%; height: 100%;" <el-image class="row items-center" :src="item.FilePath" style="width: 100%; height: 100%;"
fit="cover"/> fit="cover">
<template #error>
<el-image :src="errImg"></el-image>
</template>
</el-image>
<!-- <el-image <!-- <el-image
style="width: 80px; height: 80px" style="width: 80px; height: 80px"
:src="item.FilePath" :src="item.FilePath"
...@@ -250,6 +254,8 @@ const editorTarget = ref('') ...@@ -250,6 +254,8 @@ const editorTarget = ref('')
const editLoading = ref(false) const editLoading = ref(false)
const ShowMessage = ref(false) const ShowMessage = ref(false)
const currentMore = ref(0) const currentMore = ref(0)
const errImg = ref(require('@/assets/img/noImg.png') as any)
const emit = defineEmits<{ const emit = defineEmits<{
(event: 'setImg'): void, (event: 'setImg'): void,
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<template #default="scope"> <template #default="scope">
<div class="row items-center"> <div class="row items-center">
<el-image <el-image
class="cursor-pointer" class="cursor-pointer row items-center"
style="width: 50px; height: auto" style="width: 50px; height: auto"
:src="scope.row.FilePath" :src="scope.row.FilePath"
:preview-src-list="[]" :preview-src-list="[]"
......
...@@ -154,6 +154,7 @@ ...@@ -154,6 +154,7 @@
<el-table-column label="封面图"> <el-table-column label="封面图">
<template #default="scope" width="110"> <template #default="scope" width="110">
<el-image <el-image
class="row items-center"
style="width: 50px; height: auto" style="width: 50px; height: auto"
:src="scope.row.CoverImg" :src="scope.row.CoverImg"
:zoom-rate="1.2" :zoom-rate="1.2"
...@@ -162,7 +163,11 @@ ...@@ -162,7 +163,11 @@
:preview-src-list="[]" :preview-src-list="[]"
:initial-index="4" :initial-index="4"
fit="contain" fit="contain"
/> >
<template #error>
<el-image :src="errImg"></el-image>
</template>
</el-image>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="名称"> <el-table-column label="名称">
...@@ -345,6 +350,7 @@ const QAuthTypes = ref([ ...@@ -345,6 +350,7 @@ const QAuthTypes = ref([
{Name:'VIP',ID:2}, {Name:'VIP',ID:2},
{Name:'私有',ID:3}, {Name:'私有',ID:3},
]) ])
const errImg = ref(require('@/assets/img/noImg.png') as any)
marketStore.setModel('1') marketStore.setModel('1')
const tableScrollHandler = ()=>{ const tableScrollHandler = ()=>{
if(queryObj.pageCount>queryObj.pageIndex){ if(queryObj.pageCount>queryObj.pageIndex){
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
filter: filter, filter: filter,
}" }"
@dragstart.prevent @dragstart.prevent
@dblclick="openDataReplace()"
alt="" alt=""
/> />
<div class="color-mask" <div class="color-mask"
...@@ -68,7 +69,7 @@ ...@@ -68,7 +69,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed } from 'vue' import { computed } from 'vue'
import { storeToRefs } from 'pinia' import { storeToRefs } from 'pinia'
import { useMainStore, useSlidesStore } from '@/store' import { useMainStore, useSlidesStore, useScreenStore } from '@/store'
import type { ImageElementClip, PPTImageElement } from '@/types/slides' import type { ImageElementClip, PPTImageElement } from '@/types/slides'
import type { ImageClipedEmitData } from '@/types/edit' import type { ImageClipedEmitData } from '@/types/edit'
import type { ContextmenuItem } from '@/components/Contextmenu/types' import type { ContextmenuItem } from '@/components/Contextmenu/types'
...@@ -108,6 +109,12 @@ const { clipShape, imgPosition } = useClipImage(clip) ...@@ -108,6 +109,12 @@ const { clipShape, imgPosition } = useClipImage(clip)
const filters = computed(() => props.elementInfo.filters) const filters = computed(() => props.elementInfo.filters)
const { filter } = useFilter(filters) const { filter } = useFilter(filters)
const { imgReplaceVisible } = storeToRefs(useScreenStore())
const openDataReplace = () => {
imgReplaceVisible.value = true
}
const handleSelectElement = (e: MouseEvent | TouchEvent) => { const handleSelectElement = (e: MouseEvent | TouchEvent) => {
if(e.button && e.button== 1) return if(e.button && e.button== 1) return
if (props.elementInfo.lock) { if (props.elementInfo.lock) {
......
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