lichong 9 months ago
parent
commit
6749774f86
  1. 15
      src/renderer/src/App.vue
  2. 16
      src/renderer/src/assets/css/base.css

15
src/renderer/src/App.vue

@ -21,10 +21,10 @@
<div class="bottomTable">
<el-auto-resizer>
<template #default="{ height, width }">
<vxe-table :data="tableData" :height="height" :width="width" border="inner" show-overflow="ellipsis" round>
<vxe-table :data="tableData" :height="height" border="none" :width="width" show-overflow="ellipsis" round>
<!-- <vxe-column type="seq" width="70"></vxe-column> -->
<vxe-column v-for="(headerItem, headerIndex) in tableHeader" :title="headerItem.title" :key="headerIndex"
:field="headerItem.key">
:field="headerItem.key" :align="headerItem.align">
<template #default="{ row, column }">
<span v-if="column.field === 'pingji'">
<el-tag :color="_.split(_.get(pingjicolor, [row.pingji], ''), '_')[0]">
@ -67,23 +67,27 @@ export default {
tableHeader: [
{
key: 'weihao',
title: '手机尾号',
title: '尾号4位',
width: "25%",
align: "center"
},
{
key: 'pinggu',
title: '评估',
width: "25%",
align: "center"
},
{
key: 'pingji',
title: '评级',
width: "25%",
align: "center"
},
{
key: 'jianyi',
title: '建议',
width: "25%",
align: "center"
},
],
tableData: [],
@ -102,7 +106,7 @@ export default {
}
},
async mounted() {
let fiveDay = dayjs('2024-07-01T00:00:00').valueOf()
let fiveDay = dayjs('2024-07-07T00:00:00').valueOf()
if (!this.isVip) {
if (dayjs().valueOf() > fiveDay) {
this.isVip = false
@ -160,10 +164,11 @@ export default {
.appClass {
width: 100vw;
height: calc(100vh - 8px);
background-color: #ace7e5;
}
.title {
font-size: 3em;
font-size: 2.2em;
text-align: center;
margin: 8px 0
}

16
src/renderer/src/assets/css/base.css

@ -6,4 +6,20 @@ body {
.vxe-table--body-wrapper::-webkit-scrollbar {
width: 0;
}
.vxe-table--header {
background-color: #4d95a1;
color: #fff;
font-size: 1.5em;
}
.vxe-table--render-default .vxe-table--body-wrapper table {
background-color: #ace7e5 !important;
color: #000;
}
.vxe-table--main-wrapper {
background-color: #ace7e5 !important;
}
Loading…
Cancel
Save