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
a6eab7c4
Commit
a6eab7c4
authored
Feb 21, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
历史版本
parent
d1fbdbdb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
40 deletions
+56
-40
file.png
src/assets/img/file.png
+0
-0
ConfigService.ts
src/services/ConfigService.ts
+7
-0
HistoricalVersion.vue
src/views/SellTemplate/components/HistoricalVersion.vue
+44
-35
journeyAds.vue
src/views/SellTemplate/components/journeyAds.vue
+5
-5
No files found.
src/assets/img/file.png
0 → 100644
View file @
a6eab7c4
1.36 KB
src/services/ConfigService.ts
View file @
a6eab7c4
...
...
@@ -5,6 +5,13 @@ import Api,{ HttpResponse, Result } from './../utils/request';
*/
class
ConfigService
{
/**
* 获取行程广告历史版本
*/
static
async
GetFileHistory
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_GetFileHistory"
,
params
)
}
/**
* 行程广告重命名
*/
...
...
src/views/SellTemplate/components/HistoricalVersion.vue
View file @
a6eab7c4
<
template
>
<el-dialog
v-model=
"show"
v-loading=
"loading"
:show-close=
"false"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
style=
"max-width:1000px;"
>
style=
"max-width:1000px;
min-width: 600px;
"
>
<template
#
header
>
<div
class=
"row overflow-hide"
>
<div>
<img
class=
"q-px-md"
:src=
"details.
Templat
eType==1?datas.pdfImg:datas.adsImg"
:src=
"details.
Fil
eType==1?datas.pdfImg:datas.adsImg"
style=
"height: 43px;"
/>
</div>
<div
class=
"q-pl-md col"
>
<div>
<el-tooltip
placement=
"top-start"
>
<template
#
content
><div
style=
"max-width: 600px;"
>
{{
details
.
Titl
e
}}
</div></
template
>
<div
class=
"HistoricalVersion-Title pointer"
>
{{details.
Titl
e}}
</div>
<template
#
content
><div
style=
"max-width: 600px;"
>
{{
details
.
FileNam
e
}}
</div></
template
>
<div
class=
"HistoricalVersion-Title pointer"
>
{{details.
FileNam
e}}
</div>
</el-tooltip>
</div>
<div
class=
"text-small text-5B5D62 q-pt-sm"
>
创建者:{{details.Create
By
Name}}
</div>
<div
class=
"text-small text-5B5D62 q-pt-sm"
>
创建者:{{details.CreateName}}
</div>
</div>
</div>
</template>
<el-scrollbar
@
scroll=
"scrollingHandler"
height=
"100%"
>
<div
class=
"HistoricalVersion-container"
ref=
"HistoricalVersion"
>
<div
class=
"HistoricalVersion-container"
ref=
"HistoricalVersion"
style=
"min-height: 200px;max-height: 400px;"
>
<el-scrollbar
@
scroll=
"scrollingHandler"
>
<table
class=
"text-small"
style=
"width: 100%;"
>
<tr
class=
"text-left"
>
<th
class=
"text-light"
style=
"min-width: 1
00px;width: 11
0px;"
>
时间
</th>
<th
class=
"text-light"
><div
class=
"text-left q-pl-md"
>
更新者
</div
></th>
<th
class=
"text-light"
style=
"min-width:
100px;width: 11
0px;"
>
大小
</th>
<th
class=
"text-light"
style=
"min-width: 100px;width: 100px;"
>
版本名称
</th>
<
th
class=
"text-light"
style=
"min-width: 120px;width: 120px;"
>
操作
</th
>
<th
class=
"text-light"
style=
"min-width: 1
50px;width: 15
0px;"
>
时间
</th>
<th
class=
"text-light"
style=
"min-width: 100px;width: 100px;"
><span
>
更新者
</span
></th>
<th
class=
"text-light"
style=
"min-width:
80px;width: 8
0px;"
>
大小
</th>
<th
class=
"text-light"
>
版本名称
</th>
<
!-- <th class="text-light" style="min-width: 120px;width: 120px;">操作</th> --
>
</tr>
<
template
v-for=
"(item,index) in dataList"
>
<tr
class=
"text-5B5D62 journeyAdsple-table pointer"
>
<td
style=
"width: 30px;"
>
</td>
<td
class=
"journeyAds-title wrap"
>
<span>
{{}}
</span>
<tr
class=
"text-5B5D62 HistoricalVersion-table pointer"
>
<td
class=
"text-light"
>
<span
class=
"text-bold"
>
{{
item
.
UpdateTime
.
substr
(
0
,
11
)
}}
</span>
<span
class=
"q-pl-md q-pt-sm"
>
{{
item
.
UpdateTime
.
substr
(
11
,
19
)
}}
</span>
</td>
<td
class=
"text-center"
><span>
{{}}
</span></td>
<td
class=
"text-center"
><span>
{{}}
</span></td>
<td
class=
"text-center"
>
<td
class=
"HistoricalVersion-title text-light wrap"
>
<span>
{{
item
.
CreateByName
}}
</span>
</td>
<td
class=
"text-light"
><span>
{{
item
.
FileSize
}}
KB
</span></td>
<td
class=
"text-light"
><span>
{{}}
-
</span></td>
<!--
<td
class=
"text-center"
></td>
-->
</tr>
</
template
>
</table>
<div
v-if=
"dataList.length == 0 && !loading"
class=
"
q-mt-lg
bg-white rounded"
style=
"padding:
30px 10px 30px
10px;"
>
<el-empty
description=
"暂无数据"
/>
<div
v-if=
"dataList.length == 0 && !loading"
class=
"bg-white rounded"
style=
"padding:
0
10px;"
>
<el-empty
:image-size=
"60"
description=
"暂无数据"
/>
</div>
<el-divider
class=
"no-bg q-mt-lg"
v-if=
'queryObj.pageCount == queryObj.pageIndex && !loading'
>
<el-divider
class=
"no-bg q-mt-lg"
v-if=
'
dataList.length>0&&
queryObj.pageCount == queryObj.pageIndex && !loading'
>
<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>
</
div
>
</
el-scrollbar
>
<div
v-if=
"loading"
style=
"height:40px;"
class=
"q-mt-md no-bg"
background=
"transparent"
v-loading=
"loading"
element-loading-text=
"正在加载中"
></div>
</
el-scrollbar
>
</
div
>
<
template
#
footer
>
<span
class=
"dialog-footer"
>
...
...
@@ -96,12 +98,10 @@ import ConfigService from '@/services/ConfigService';
const
loading
=
ref
(
true
)
const
HistoricalVersion
=
ref
<
any
>
()
const
queryObj
=
reactive
({
Title
:
''
,
pageIndex
:
1
,
pageSize
:
2
0
,
pageSize
:
1
0
,
pageCount
:
0
,
//总页数
FileId
:
props
.
details
.
FileId
,
TemplateType
:
props
.
details
.
TemplateType
,
})
const
dataList
=
ref
([])
...
...
@@ -112,7 +112,7 @@ import ConfigService from '@/services/ConfigService';
loading
.
value
=
true
try
{
if
(
queryObj
.
pageIndex
==
1
)
dataList
.
value
=
[]
let
pageRes
=
await
ConfigService
.
sellGetTripOtherPage
(
queryObj
);
let
pageRes
=
await
ConfigService
.
GetFileHistory
(
queryObj
);
if
(
pageRes
.
data
.
resultCode
==
1
)
{
dataList
.
value
=
dataList
.
value
.
concat
(
pageRes
.
data
.
data
.
pageData
);
queryObj
.
pageCount
=
pageRes
.
data
.
data
.
pageCount
;
...
...
@@ -143,12 +143,21 @@ import ConfigService from '@/services/ConfigService';
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
font-size
:
15px
;
position
:
relative
;
}
.HistoricalVersion-container
th
{
padding
:
0
10px
10
px
10px
;
padding
:
0
10px
5
px
10px
;
border-bottom
:
1px
solid
#f6f6f6
;
background
:
#fff
;
position
:
sticky
;
top
:
0px
;
z-index
:
2
;
}
.HistoricalVersion-container
td
{
padding
:
0
10px
;
padding
:
8px
10px
;
border-bottom
:
1px
solid
#f6f6f6
;
}
.HistoricalVersion-table
{
}
</
style
>
\ No newline at end of file
src/views/SellTemplate/components/journeyAds.vue
View file @
a6eab7c4
...
...
@@ -100,8 +100,8 @@
<td
style=
"width: 30px;"
@
click
.
stop=
"item.FileType?OffEdit():editDelete(item,2)"
>
<img
v-if=
"item.FileType"
class=
"q-px-md"
:src=
"item.FileType==1?datas.pdfImg:datas.adsImg"
style=
"height: 25px;"
/>
<img
v-else
class=
"q-px-md"
:src=
"datas.folderIm
g"
style=
"height: 2
5
px;"
/>
<img
v-else
class=
"q-px-md"
src=
"@/assets/img/file.pn
g"
style=
"height: 2
3
px;"
/>
</td>
<td
class=
"journeyAds-title wrap row"
>
<div
class=
"col"
v-if=
"!item.editTitle"
@
click
.
stop=
"item.FileType?OffEdit():editDelete(item,2)"
>
...
...
@@ -127,7 +127,7 @@
@
blur=
"handleUpdateTitle(item)"
/></td>
<td
class=
"text-center"
@
click
.
stop=
"item.FileType?OffEdit():editDelete(item,2)"
><span>
{{item.Day?item.Day+'天前':item.UpdateTime}}
</span></td>
<td
class=
"text-center"
@
click
.
stop=
"item.FileType?OffEdit():editDelete(item,2)"
><span>
{{item.Create
By
Name}}
</span></td>
<td
class=
"text-center"
@
click
.
stop=
"item.FileType?OffEdit():editDelete(item,2)"
><span>
{{item.CreateName}}
</span></td>
<td
class=
"text-center"
>
<div
class=
"hoverShow row items-center just-center q-pt-sm"
>
<el-button
type=
"primary"
:icon=
"Edit"
size=
"small"
@
click
.
stop=
"editDelete(item)"
>
编辑
</el-button>
...
...
@@ -143,8 +143,8 @@
class=
"q-pl-md"
v-model=
"item.Id"
filterable
placeholder=
"
请选择
文件夹"
style=
"width:
13
0px"
placeholder=
"文件夹"
style=
"width:
9
0px"
size=
"small"
@
change=
"MoveToFolder(item)"
>
<el-option
v-for=
"x in datas.fileList"
...
...
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