Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
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
viitto
pptist
Commits
ad949df0
Commit
ad949df0
authored
Jul 04, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化云盘
parent
61909b64
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
22 deletions
+29
-22
CloudDiskList.vue
src/components/CloudDisk/CloudDiskList.vue
+26
-19
cellList.vue
src/components/CloudDisk/cellList.vue
+1
-1
list.vue
src/components/CloudDisk/list.vue
+1
-1
waterfallFlowList.vue
src/components/CloudDisk/waterfallFlowList.vue
+1
-1
No files found.
src/components/CloudDisk/CloudDiskList.vue
View file @
ad949df0
...
...
@@ -13,7 +13,7 @@
</
template
>
<
template
#
append
>
<el-select
v-model=
"queryObj.QCreateBy"
placeholder=
"
人员名称
"
placeholder=
"
检索上传人
"
style=
"width: 100px"
filterable
remote
...
...
@@ -155,7 +155,7 @@
:divided=
"index==0?true:false"
@
click=
"ClearOption(),setDropdown(item,2)"
>
<span
style=
"width: 80px;"
>
{{
item
.
Name
}}
</span>
<IconCheck
class=
"q-pl-lg"
v-
if
=
"item.check"
></IconCheck>
<IconCheck
class=
"q-pl-lg"
v-
show
=
"item.check"
></IconCheck>
</el-dropdown-item>
</
template
>
</el-dropdown-menu>
...
...
@@ -184,7 +184,7 @@
</el-icon>
<span>
{{
item
.
Name
}}
</span>
</div>
<IconCheck
class=
"q-pl-lg"
v-
if
=
"item.check"
></IconCheck>
<IconCheck
class=
"q-pl-lg"
v-
show
=
"item.check"
></IconCheck>
</el-dropdown-item>
</
template
>
</el-dropdown-menu>
...
...
@@ -196,7 +196,7 @@
:style=
"{'padding-bottom':queryObj.pageCount == queryObj.pageIndex && !loading?'60px':'130px'}"
@
mousedown=
"handleMouseDown"
>
<div
class=
"mask"
v-if=
"queryObj.layout!=3"
v-show=
"positionList.is_show_mask"
:style=
"'width:' + mask_width + 'left:' + mask_left + 'height:' + mask_height + 'top:' + mask_top"
></div>
<cellList
v-if=
"queryObj.layout==1"
:dataList=
"dataList"
<cellList
v-if=
"
dataList.length>0&&
queryObj.layout==1"
:dataList=
"dataList"
@
refreshHandler=
"refreshHandler"
@
CopyTo=
"CopyTo"
@
MoveFile=
"MoveFile"
...
...
@@ -205,7 +205,7 @@
@
MultipleChoice=
"MultipleChoice"
:Parent=
"datas"
></cellList>
<waterfallFlowList
v-if=
"queryObj.layout==2"
:dataList=
"dataList"
<waterfallFlowList
v-if=
"
dataList.length>0&&
queryObj.layout==2"
:dataList=
"dataList"
@
refreshHandler=
"refreshHandler"
@
CopyTo=
"CopyTo"
@
MoveFile=
"MoveFile"
...
...
@@ -214,7 +214,7 @@
@
MultipleChoice=
"MultipleChoice"
:Parent=
"datas"
></waterfallFlowList>
<list
v-if=
"queryObj.layout==3"
:dataList=
"dataList"
<list
v-if=
"
dataList.length>0&&
queryObj.layout==3"
:dataList=
"dataList"
@
refreshHandler=
"refreshHandler"
@
CopyTo=
"CopyTo"
@
MoveFile=
"MoveFile"
...
...
@@ -231,6 +231,9 @@
<
template
v-else
>
<div
style=
"height:40px;"
class=
"no-bg"
background=
"transparent"
v-loading=
"loading"
element-loading-text=
"正在加载中"
></div>
</
template
>
<div
v-if=
"(!dataList || dataList.length==0) && !loading"
>
<el-empty
class=
"q-ma-xl"
description=
"暂无数据"
/>
</div>
</div>
<!-- <div v-if="queryObj.pageCount>1" class="q-mt-md" style="display: flex;justify-content: center;">
<el-pagination
...
...
@@ -250,15 +253,15 @@
<div
class=
"row items-center nowrap shrink"
>
<el-checkbox
class=
"fz14"
label=
"全选"
v-model=
"datas.selectAll"
:indeterminate=
"datas.indeterminate"
style=
"position: relative;top: 1px;"
@
change=
"setSelecAll"
/>
@
change=
"setSelecAll"
:disabled=
"dataList.length==0"
/>
<span
class=
"fz14 q-pl-md color959AA3 row nowrap"
><span>
已选择
</span>
<span
class=
"q-pl-xs"
>
{{datas.SelectedDatas.length}}
</span></span>
</div>
<div
class=
"q-px-lg"
>
<div
style=
"border-right: 1px solid #BABABA;height: 13px;"
>
</div>
</div>
<el-button
icon=
"CopyDocument"
size=
"small"
@
click=
"BatchCopyTo()"
>
复制到
</el-button>
<el-button
icon=
"Expand"
size=
"small"
@
click=
"BatchMoveFile()"
>
移动到
</el-button>
<el-button
icon=
"Delete"
size=
"small"
@
click=
"BatchRemove()"
>
删除
</el-button>
<el-button
icon=
"CopyDocument"
size=
"small"
@
click=
"BatchCopyTo()"
:disabled=
"dataList.length==0"
>
复制到
</el-button>
<el-button
icon=
"Expand"
size=
"small"
@
click=
"BatchMoveFile()"
:disabled=
"dataList.length==0"
>
移动到
</el-button>
<el-button
icon=
"Delete"
size=
"small"
@
click=
"BatchRemove()"
:disabled=
"dataList.length==0"
>
删除
</el-button>
<span
class=
"close-btn cursor-pointer column items-center flex-center q-pl-md"
@
click=
"datas.ControlsShow=false"
>
<IconClose
:size=
"14"
></IconClose>
</span>
...
...
@@ -294,7 +297,7 @@
:initial-index=
"currentImg"
:url-list=
"srcList"
></el-image-viewer>
</template>
</template>
<
script
setup
lang=
"ts"
>
import
{
ref
,
reactive
,
watch
,
provide
,
inject
,
onMounted
,
PropType
,
nextTick
,
computed
}
from
"vue"
;
import
type
{
ElMessage
,
ElImage
,
DropdownInstance
,
ElLoading
}
from
"element-plus"
;
...
...
@@ -685,22 +688,23 @@
}
refreshHandler
()
}
if
(
type
==
3
){
queryObj
.
layout
=
item
.
ID
resSetXY
()
const
loadingObj
=
ElLoading
.
service
({
text
:
'正在切换'
,
lock
:
true
text
:
'正在切换'
,
lock
:
true
})
item
.
check
=
!
item
.
check
queryObj
.
layout
=
item
.
ID
layoutType
.
value
.
forEach
(
x
=>
{
if
(
x
.
ID
!=
item
.
ID
)
x
.
check
=
false
})
for
(
let
i
=
0
;
i
<
layoutType
.
value
.
length
;
i
++
){
layoutType
.
value
[
i
].
check
=
false
}
item
.
check
=
true
let
time
=
300
if
(
dataList
.
value
.
length
>
50
)
time
=
3000
setTimeout
(()
=>
{
loadingObj
.
close
()
},
time
)
resSetXY
()
}
}
...
...
@@ -994,6 +998,9 @@ onMounted(()=>{
})
</
script
>
<
style
lang=
"scss"
scoped
>
.CloudDisk-R-Center
{
flex-wrap
:
wrap
;
}
.CloudDisk-R-Date
{
position
:
absolute
;
left
:
0
;
...
...
src/components/CloudDisk/cellList.vue
View file @
ad949df0
...
...
@@ -2,7 +2,7 @@
<div
class=
"CloudDisk-R-Center row"
>
<template
v-for=
"(item,index) in dataList"
>
<div
style=
"position: relative;"
>
<el-checkbox
style=
"position: absolute;left: 2
.5
vw;top: .2vw;"
<el-checkbox
style=
"position: absolute;left: 2vw;top: .2vw;"
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-Img"
>
...
...
src/components/CloudDisk/list.vue
View file @
ad949df0
<
template
>
<div
class=
"CloudDisk-R-Center row"
v-if=
"dataList.length>0"
>
<div
class=
"CloudDisk-R-Center row"
>
<el-table
:data=
"dataList"
style=
"width: 100%;"
ref=
"multipleTableRef"
@
selection-change=
"handleSelectionChange"
...
...
src/components/CloudDisk/waterfallFlowList.vue
View file @
ad949df0
...
...
@@ -13,7 +13,7 @@
>
<template
#
item=
"
{ item, url, index }">
<div
style=
"position: relative;"
>
<el-checkbox
style=
"position: absolute;left: .5vw;top: .
2
vw;"
<el-checkbox
style=
"position: absolute;left: .5vw;top: .
1
vw;"
class=
"fz14"
label=
""
v-model=
"item.check"
@
click
.
stop=
"item.check=!item.check"
/>
<div
class=
"CloudDisk-R-Box cursor-pointer"
:key=
"index"
>
...
...
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