Commit 3ad35d17 authored by 黄奎's avatar 黄奎

1

parent 183fc7bc
......@@ -33,14 +33,45 @@
</ul>
</div>
<div style="width: 100%; overflow: auto;">
<el-table :data="tableData" style="width: 100%;" height="650" border v-loading="loading">
<el-table :data="tableData" style="width: 100%;" max-height="650" border v-loading="loading"
header-cell-class-name="tempStatic-header-center" cell-class-name="tempStatic-cell-center">
<el-table-column prop="CreateByName" label="上传人" width="200">
</el-table-column>
<el-table-column prop="CreateTime" label="上传时间">
</el-table-column>
<el-table-column prop="TripCount" label="行程模版数量">
<template slot-scope="scope">
<template v-if="scope.row.TripCount>0">
<el-popover placement="top-start" title="详情" width="200" trigger="hover">
<template v-if="scope.row.TripList&&scope.row.TripList.length>0">
<template v-for="(subItem,subIndex) in scope.row.TripList">
{{subItem.LineName}}({{subItem.LineTemplateCount}})
</template>
</template>
<div slot="reference" style="color:blue;cursor:pointer;"> {{scope.row.TripCount}}</div>
</el-popover>
</template>
<template v-else>
{{scope.row.TripCount}}
</template>
</template>
</el-table-column>
<el-table-column prop="AdCount" label="广告模版数量">
<template slot-scope="scope">
<template v-if="scope.row.AdCount>0">
<el-popover placement="top-start" title="详情" width="200" trigger="hover">
<template v-if="scope.row.AdList&&scope.row.AdList.length>0">
<template v-for="(subItem,subIndex) in scope.row.AdList">
{{subItem.LineName}}({{subItem.LineTemplateCount}})
</template>
</template>
<div slot="reference" style="color:green;cursor:pointer;"> {{scope.row.AdCount}}</div>
</el-popover>
</template>
<template v-else>
{{scope.row.AdCount}}
</template>
</template>
</el-table-column>
<el-table-column prop="TotalCount" label="上传总数量">
</el-table-column>
......@@ -72,6 +103,7 @@
QCreateBy: '',
QStartDate: '',
QEndDate: '',
QLineId: "",
},
getCompanyMsg: {
RB_Group_Id: '0',
......@@ -90,7 +122,7 @@
//Excel下载
downLoadTemplateStatic() {
this.loading = true;
let fileName = "模板统计下载"+ this.$commonUtils.getCurrentDate() + ".xls";
let fileName = "模板统计下载" + this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile("template_post_GetDownloadTemplateStatic", this.msg, fileName,
res => {
this.loading = false;
......@@ -129,7 +161,7 @@
let _date = myDate.getDate() > 9 ? myDate.getDate() : '0' + myDate.getDate();
this.msg.QStartDate = _year + '-' + _month + '-' + '01';
this.msg.QEndDate = _year + '-' + _month + '-' + _date;
//this.msg.QStartDate = "2025-06-01";
this.msg.QStartDate = "2025-05-01";
},
mounted() {
let userInfo = this.getLocalStorage();
......@@ -141,3 +173,13 @@
}
</script>
<style lang="less" scoped>
.tempStatic-header-center {
text-align: center;
}
.tempStatic-cell-center {
text-align: center;
}
</style>
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