Commit a6eab7c4 authored by zhengke's avatar zhengke

历史版本

parent d1fbdbdb
......@@ -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)
}
/**
* 行程广告重命名
*/
......
<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.TemplateType==1?datas.pdfImg:datas.adsImg"
:src="details.FileType==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.Title}}</div></template>
<div class="HistoricalVersion-Title pointer">{{details.Title}}</div>
<template #content><div style="max-width: 600px;">{{details.FileName}}</div></template>
<div class="HistoricalVersion-Title pointer">{{details.FileName}}</div>
</el-tooltip>
</div>
<div class="text-small text-5B5D62 q-pt-sm">创建者:{{details.CreateByName}}</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: 100px;width: 110px;">时间</th>
<th class="text-light"><div class="text-left q-pl-md">更新者</div></th>
<th class="text-light" style="min-width: 100px;width: 110px;">大小</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: 150px;width: 150px;">时间</th>
<th class="text-light" style="min-width: 100px;width: 100px;"><span >更新者</span></th>
<th class="text-light" style="min-width: 80px;width: 80px;">大小</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: 20,
pageSize: 10,
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 10px 10px;
padding: 0 10px 5px 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
......@@ -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.folderImg"
style="height: 25px;" />
<img v-else class="q-px-md" src="@/assets/img/file.png"
style="height: 23px;" />
</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.CreateByName}}</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: 130px"
placeholder="文件夹"
style="width: 90px"
size="small" @change="MoveToFolder(item)">
<el-option
v-for="x in datas.fileList"
......
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