[update] 修改bug78169

This commit is contained in:
lideqin
2023-11-03 16:24:16 +08:00
parent 15e0ef7afd
commit 902a41ca57
@@ -184,7 +184,7 @@
<template slot="specialDate" slot-scope="{text}">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
<div class="table-text" :class="{'table-red-text' : text && new Date(Date.parse(text)) < new Date()}">{{ text || text === 0 ? text : global.emptyLine }}</div>
<div class="table-text" :class="{'table-red-text' : text && new Date(Date.parse(text)) <= new Date(currentDate)}">{{ text || text === 0 ? text : global.emptyLine }}</div>
</a-tooltip>
</template>
@@ -411,11 +411,14 @@ export default {
url: {
list: '/enterprise/plan/page',
exportXlsUrl: '/enterprise/plan/exportData'
}
},
currentDate: ''
}
},
mounted () {
this.getSysCategoryTree()
const date = new Date()
this.currentDate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
},
methods: {
// 获取组织机构树