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
ec1962bf
Commit
ec1962bf
authored
Feb 27, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 列表组件
parent
4701d21a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
256 deletions
+81
-256
BrowsingHistory.vue
src/views/SellTemplate/BrowsingHistory.vue
+12
-38
RecycleBin.vue
src/views/SellTemplate/RecycleBin.vue
+13
-42
StarTarget.vue
src/views/SellTemplate/StarTarget.vue
+12
-42
journeyAdsList.vue
src/views/SellTemplate/components/journeyAdsList.vue
+21
-7
journeyAds.vue
src/views/SellTemplate/journeyAds.vue
+23
-127
No files found.
src/views/SellTemplate/BrowsingHistory.vue
View file @
ec1962bf
<
template
>
<div
class=
"q-px-md q-pt-lg"
>
<div
class=
"q-px-md q-pt-lg
column full-height
"
>
<div
class=
"q-pl-lg row q-mb-lg"
>
<div
class=
"col row items-center q-pl-md"
>
<h5
class=
"row items-center"
>
...
...
@@ -47,45 +47,19 @@
</el-dropdown>
-->
</div>
</div>
</div>
<div
ref=
"SellTemplateRef"
class=
"journeyAds-container"
style=
"height: 100%; overflow: auto"
>
<el-scrollbar
@
scroll=
"scrollingHandler"
class=
"q-px-md"
style=
"height: 100%;"
>
<div
ref=
"SellTemplateRef"
class=
"col full-width q-ml-md"
>
<journeyAdsList
:current-menu=
"currentMenu"
:list=
"dataList"
:msg=
"queryObj"
@
UpdateData=
"UpdateData"
@
success=
"success"
@
refreshHandler=
"refreshHandler"
></journeyAdsList>
<div
v-if=
"dataList.length == 0 && !loading"
class=
"q-mt-lg bg-white rounded"
style=
"padding: 30px 10px 30px 10px"
>
<el-empty
description=
"暂无数据"
/>
:current-menu=
"currentMenu"
:position=
"position"
:set-file-list=
"datas.setFileList"
:list=
"dataList"
:msg=
"queryObj"
:navigations=
"Navigations"
:selected-datas=
"datas.selectedDatas"
@
UpdateData=
"UpdateData"
@
success=
"success"
@
refreshHandler=
"refreshHandler"
></journeyAdsList>
</div>
<el-divider
class=
"no-bg q-mt-lg"
v-if=
"queryObj.pageCount == queryObj.pageIndex && !loading && queryObj.pageCount != 1"
>
<span
class=
"text-small bg-white"
style=
"padding: 0 10px; color: #a3a3a3"
>
已加载完成所有数据
</span
>
</el-divider>
<div
style=
"height: 40px"
class=
"q-mt-md no-bg"
background=
"transparent"
v-loading=
"loading"
element-loading-text=
"正在加载中"
></div>
</el-scrollbar>
</div>
</template>
...
...
src/views/SellTemplate/RecycleBin.vue
View file @
ec1962bf
<
template
>
<div
class=
"q-px-md q-pt-lg"
>
<div
class=
"q-px-md q-pt-lg
column full-height
"
>
<div
class=
"q-pl-lg row q-mb-lg"
>
<div
class=
"col row items-center q-pl-md"
>
<h5
class=
"row items-center"
>
...
...
@@ -30,51 +30,22 @@
</div>
</div>
</div>
<div
ref=
"SellTemplateRef"
class=
"journeyAds-container"
style=
"height: 100%; overflow: auto"
>
<el-scrollbar
@
scroll=
"scrollingHandler"
class=
"q-px-md"
style=
"height: 100%;"
>
<div
ref=
"SellTemplateRef"
class=
"col full-width q-ml-md"
>
<journeyAdsList
:current-menu=
"currentMenu"
:position=
"position"
:set-file-list=
"datas.setFileList"
:list=
"dataList"
:msg=
"queryObj"
:navigations=
"Navigations"
:selected-datas=
"datas.selectedDatas"
@
UpdateData=
"UpdateData"
@
success=
"success"
@
refreshHandler=
"refreshHandler"
></journeyAdsList>
<div
v-if=
"dataList.length == 0 && !loading"
class=
"q-mt-lg bg-white rounded"
style=
"padding: 30px 10px 30px 10px"
>
<el-empty
description=
"暂无数据"
/>
:current-menu=
"currentMenu"
:position=
"position"
:set-file-list=
"datas.setFileList"
:list=
"dataList"
:msg=
"queryObj"
:navigations=
"Navigations"
:selected-datas=
"datas.selectedDatas"
@
UpdateData=
"UpdateData"
@
success=
"success"
@
refreshHandler=
"refreshHandler"
></journeyAdsList>
</div>
<el-divider
class=
"no-bg q-mt-lg"
v-if=
"queryObj.pageCount == queryObj.pageIndex && !loading && queryObj.pageCount != 1"
>
<span
class=
"text-small bg-white"
style=
"padding: 0 10px; color: #a3a3a3"
>
已加载完成所有数据
</span
>
</el-divider>
<div
style=
"height: 40px"
class=
"q-mt-md no-bg"
background=
"transparent"
v-loading=
"loading"
element-loading-text=
"正在加载中"
></div>
</el-scrollbar>
</div>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
ref
,
reactive
,
provide
,
watch
,
inject
,
onMounted
,
PropType
}
from
"vue"
;
...
...
src/views/SellTemplate/StarTarget.vue
View file @
ec1962bf
<
template
>
<div
class=
"q-px-md q-pt-lg"
>
<div
class=
"q-px-md q-pt-lg
column full-height
"
>
<div
class=
"q-pl-lg row q-mb-lg"
>
<div
class=
"col row items-center q-pl-md"
>
<h5
class=
"row items-center"
>
...
...
@@ -52,49 +52,19 @@
</el-dropdown>
-->
</div>
</div>
</div>
<div
ref=
"SellTemplateRef"
class=
"journeyAds-container"
style=
"height: 100%; overflow: auto"
>
<el-scrollbar
@
scroll=
"scrollingHandler"
class=
"q-px-md"
style=
"height: 100%;"
>
<div
ref=
"SellTemplateRef"
class=
"col full-width q-ml-md"
>
<journeyAdsList
:current-menu=
"currentMenu"
:position=
"position"
:set-file-list=
"datas.setFileList"
:list=
"dataList"
:msg=
"queryObj"
:navigations=
"Navigations"
:selected-datas=
"datas.selectedDatas"
@
UpdateData=
"UpdateData"
@
success=
"success"
@
refreshHandler=
"refreshHandler"
></journeyAdsList>
<div
v-if=
"dataList.length == 0 && !loading"
class=
"q-mt-lg bg-white rounded"
style=
"padding: 30px 10px 30px 10px"
>
<el-empty
description=
"暂无数据"
/>
:current-menu=
"currentMenu"
:position=
"position"
:set-file-list=
"datas.setFileList"
:list=
"dataList"
:msg=
"queryObj"
:navigations=
"Navigations"
:selected-datas=
"datas.selectedDatas"
@
UpdateData=
"UpdateData"
@
success=
"success"
@
refreshHandler=
"refreshHandler"
></journeyAdsList>
</div>
<el-divider
class=
"no-bg q-mt-lg"
v-if=
"queryObj.pageCount == queryObj.pageIndex && !loading && queryObj.pageCount != 1"
>
<span
class=
"text-small bg-white"
style=
"padding: 0 10px; color: #a3a3a3"
>
已加载完成所有数据
</span
>
</el-divider>
<div
style=
"height: 40px"
class=
"q-mt-md no-bg"
background=
"transparent"
v-loading=
"loading"
element-loading-text=
"正在加载中"
></div>
</el-scrollbar>
</div>
<Folder
:folder-id=
"folderObj?.id"
...
...
src/views/SellTemplate/components/journeyAdsList.vue
View file @
ec1962bf
<
template
>
<div
style=
"min-width: '700px';height: 100%;"
ref=
"currentRootDom"
>
<el-table
class=
"sample-table"
:data=
"dataList"
style=
"width: 100%"
height=
"100%"
<el-table
ref=
"currentRootDom"
class=
"sample-table"
:data=
"dataList"
style=
"width: 100%"
height=
"100%"
@
sort-change=
"sortHandler"
:default-sort=
"
{ prop: 'CreateTime', order: 'descending' }"
@selection-change="handleSelectionChange">
<el-table-column
type=
"selection"
width=
"20"
v-if=
"currentMenu==3||currentMenu==4"
/>
...
...
@@ -29,9 +28,11 @@
</template>
<
template
#
default=
"scope"
>
<div
class=
"row items-center full-width"
style=
"padding-left: 12px;"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708337830000_43.png"
height=
"25"
v-if=
"scope.row.FileType==1"
@
click
.
stop=
"scope.row.FileType?OffEdit():editDelete(scope.row,2)"
/>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708250377000_777.png"
height=
"25"
v-else-if=
"scope.row.FileType==2"
@
click
.
stop=
"scope.row.FileType?OffEdit():editDelete(scope.row,2)"
/>
<img
src=
"@/assets/img/file.png"
height=
"25"
v-else
@
click
.
stop=
"scope.row.FileType?OffEdit():editDelete(scope.row,2)"
/>
<div
:class=
"
{'share-icon-box':scope.row.IsShare}" style="display: inline-block;">
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708337830000_43.png"
height=
"25"
v-if=
"scope.row.FileType==1"
@
click
.
stop=
"scope.row.FileType?OffEdit():editDelete(scope.row,2)"
/>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708250377000_777.png"
height=
"25"
v-else-if=
"scope.row.FileType==2"
@
click
.
stop=
"scope.row.FileType?OffEdit():editDelete(scope.row,2)"
/>
<img
src=
"@/assets/img/file.png"
height=
"25"
v-else
@
click
.
stop=
"scope.row.FileType?OffEdit():editDelete(scope.row,2)"
/>
</div>
<div
class=
"temp-tr col q-ml-md file-name"
:class=
"
{'cusor-pointer':scope.row.FileType==0}">
<el-tooltip
v-if=
"!scope.row.editTitle"
effect=
"dark"
:content=
"scope.row.FileName"
>
<div
@
click
.
stop=
"scope.row.FileType?OffEdit():editDelete(scope.row,2)"
>
...
...
@@ -104,10 +105,9 @@
</el-table-column>
<
template
#
empty
>
<el-empty
:image-size=
"150"
v-if=
"(!dataList || dataList.length==0) && !loading"
:description=
"(queryObj.FileId==0?'没有文档':
'文件夹里
没有文件')"
/>
:description=
"(queryObj.FileId==0?'没有文档':
currentMenu!=-1?'文件夹里没有文件':'
没有文件')"
/>
</
template
>
</el-table>
</div>
<ShareForm
:id=
"shareId"
:file-type=
"shareFileType"
...
...
@@ -672,4 +672,18 @@ import CopyFile from "./CopyFile.vue";
/* .sample-table th:nth-child(2) .cell{
padding-left: 0 !important;
} */
.share-icon-box
{
position
:
relative
;
}
.share-icon-box
::after
{
display
:
block
;
position
:
absolute
;
bottom
:
-4px
;
right
:
0px
;
content
:
" "
;
background
:
url('@/assets/img/share.png')
;
width
:
14px
;
height
:
14px
;
z-index
:
2
;
}
</
style
>
\ No newline at end of file
src/views/SellTemplate/journeyAds.vue
View file @
ec1962bf
<
template
>
<div
class=
"q-px-md q-pt-lg"
>
<div
class=
"q-px-md q-pt-lg
column full-height
"
>
<div
class=
"q-pl-lg row q-mb-lg"
>
<div
class=
"col row items-center q-pl-md"
>
<h5
class=
"row items-center"
>
...
...
@@ -63,51 +63,28 @@
</el-dropdown>
</div>
</div>
<!--
<div
ref="SellTemplateRef"
class="journeyAds-container" v-if="false">
<el-scrollbar @scroll="scrollingHandler" class="q-px-md" style="height: 100%;">
</el-scrollbar>
</div> -->
<div
ref=
"SellTemplateRef"
class=
"col full-width q-ml-md"
>
<journeyAdsList
:current-menu=
"currentMenu"
:position=
"position"
:set-file-list=
"datas.setFileList"
:list=
"dataList"
:msg=
"queryObj"
:navigations=
"Navigations"
:selected-datas=
"datas.selectedDatas"
@
UpdateData=
"UpdateData"
@
success=
"success"
@
refreshHandler=
"refreshHandler"
></journeyAdsList>
</div>
</div>
<div
ref=
"SellTemplateRef"
class=
"journeyAds-container"
style=
"height: 100%; overflow: auto"
>
<el-scrollbar
@
scroll=
"scrollingHandler"
class=
"q-px-md"
style=
"height: 100%;"
>
<journeyAdsList
:current-menu=
"currentMenu"
:position=
"position"
:set-file-list=
"datas.setFileList"
:list=
"dataList"
:msg=
"queryObj"
:navigations=
"Navigations"
:selected-datas=
"datas.selectedDatas"
@
UpdateData=
"UpdateData"
@
success=
"success"
@
refreshHandler=
"refreshHandler"
></journeyAdsList>
<!--
<div
v-if="dataList.length == 0 && !loading"
class="q-mt-lg bg-white rounded"
style="padding: 30px 10px 30px 10px"
>
<el-empty description="暂无数据" />
</div>
<el-divider
class="no-bg q-mt-lg"
v-if="queryObj.pageCount == queryObj.pageIndex && !loading && queryObj.pageCount != 1"
>
<span
class="text-small bg-white"
style="padding: 0 10px; color: #a3a3a3"
>已加载完成所有数据</span
>
</el-divider>
<div
style="height: 40px"
class="q-mt-md no-bg"
background="transparent"
v-loading="loading"
element-loading-text="正在加载中"
></div> -->
</el-scrollbar>
</div>
<Folder
:folder-id=
"folderObj?.id"
:folder-name=
"folderObj?.name"
...
...
@@ -365,86 +342,5 @@ querySearchHandler();
</
script
>
<
style
lang=
"scss"
scoped
>
@import
url("@/assets/styles/common.css")
;
.SelectAllBox
{
position
:
relative
;
top
:
3px
;
}
.journeyAds-title
{
}
.journeyAds-TitleCenter
{
width
:
100%
;
height
:
18px
;
margin-bottom
:
3px
;
overflow
:
hidden
;
/* 隐藏超出部分 */
text-overflow
:
ellipsis
;
/* 显示省略号 */
white-space
:
wrap
;
/* 不换行 */
position
:
relative
;
padding-right
:
20px
;
}
.journeyAds-TitleCenter
span
{
position
:
absolute
;
right
:
16px
;
top
:
0px
;
}
.journeyAds-Input
{
padding-right
:
20px
;
position
:
relative
;
margin-bottom
:
2px
;
::v-deep
(
.el-textarea__inner
)
{
padding
:
5px
;
background
:
#f5f5f5
;
}
}
.journeyAds-container
{
position
:
relative
;
overflow
:
auto
;
}
.journeyAds-container
th
{
background
:
#fff
;
position
:
sticky
;
top
:
0px
;
z-index
:
2
;
}
.journeyAdsple-table
td
>
div
{
display
:
flex
;
}
.journeyAdsple-table
td
,
.journeyAds-container
th
{
border-bottom
:
1px
solid
#f6f6f6
;
}
.journeyAdsple-table
td
:first-child
,
.journeyAdsple-table
td
:nth-child
(
2
),
.journeyAds-container
th
:first-child
{
border
:
0
;
}
.journeyAdsple-table
td
{
padding-bottom
:
6px
;
}
.journeyAdsple-table
td
:nth-child
(
2
)
{
padding-bottom
:
0
;
}
.hoverShow
{
opacity
:
0
;
}
.journeyAdsple-table
:hover
.hoverShow
{
opacity
:
1
;
}
.share-icon-box
{
position
:
relative
;
}
.
share-icon-box
:
:
after
{
display
:
block
;
position
:
absolute
;
bottom
:
-4px
;
right
:
6px
;
content
:
" "
;
background
:
url('@/assets/img/share.png')
;
width
:
14px
;
height
:
14px
;
z-index
:
2
;
}
.active
{
color
:
$themeColor
;
}
</
style
>
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