|
@@ -15,8 +15,8 @@
|
|
|
>
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
<template>
|
|
|
- <a-icon type="edit" style="font-size: 20px;color: #1890FF;padding: 0 10px;" @click="handleEdit(record)" />
|
|
|
- <!-- <span v-if="this.currentDate < this.publicDate">-</span> -->
|
|
|
+ <a-icon v-if="currentDate < new Date(record.publicDate).getTime()" type="edit" style="font-size: 20px;color: #1890FF;padding: 0 10px;" @click="handleEdit(record)" />
|
|
|
+ <span v-if="currentDate > new Date(record.publicDate).getTime()">-</span>
|
|
|
</template>
|
|
|
</span>
|
|
|
<template slot="upgradeContent" slot-scope="text, record">
|
|
@@ -98,27 +98,15 @@ export default {
|
|
|
],
|
|
|
applyCode: 'atit',
|
|
|
applyName: 'IT后台',
|
|
|
- // publicDate: null,
|
|
|
- // currentDate: null,
|
|
|
+ currentDate: new Date().getTime(), // 当前时间
|
|
|
// 获取列表数据
|
|
|
loadData: parameter => {
|
|
|
return getEditionSettingList(Object.assign(parameter))
|
|
|
.then(res => {
|
|
|
- // console.log(res,'1111')
|
|
|
const no = (res.data.pageNo - 1) * res.data.pageSize
|
|
|
-
|
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
|
const _item = res.data.list[i]
|
|
|
_item.no = no + i + 1
|
|
|
- // _item.releaseStatus = _item.releaseStatus + '' === 'FB'
|
|
|
- // this.publicDate = new Date(_item.publicDate.replace(/-/g, '/'))
|
|
|
- // this.currentDate = new Date()
|
|
|
- // if (currentDate > publicDate) {
|
|
|
- // console.log('大于0')
|
|
|
- // } else {
|
|
|
- // console.log('小于0')
|
|
|
- // }
|
|
|
- console.log(this.publicDate, this.currentDate)
|
|
|
}
|
|
|
return res.data
|
|
|
})
|