Compare commits
No commits in common. "933a5e995bf80027630e2ce30c96709a11d0a26a" and "96c97d9c29c7cc68ccd3eb201b1f4e0306afec91" have entirely different histories.
933a5e995b
...
96c97d9c29
|
@ -79,7 +79,6 @@
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="page-btn-group">
|
<div class="page-btn-group">
|
||||||
<div>
|
<div>
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">批量推送</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -185,23 +184,20 @@ export default {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getCardStatus(VALIDITY_PERIOD_END) {
|
getCardStatus(VALIDITY_PERIOD_END){
|
||||||
const now = new Date(); // 当前时间
|
const nowDate = new Date()
|
||||||
const threeMonthsLater = new Date(now); // 三个月后的时间
|
const nextDate = new Date((new Date).getFullYear() + '-' + ((new Date).getMonth() + 3) + '-' + (new Date).getDate())
|
||||||
threeMonthsLater.setMonth(threeMonthsLater.getMonth() + 3); // 设置为未来三个月后的时间
|
console.log('当前时间 ==>'+nowDate)
|
||||||
// 将VALIDITY_PERIOD_END转换为Date对象(假设它是一个有效的日期字符串)
|
console.log('两个月后的时间 ==>'+nextDate)
|
||||||
const validityPeriodEnd = new Date(VALIDITY_PERIOD_END);
|
console.log('证件到期日 ==>'+new Date(VALIDITY_PERIOD_END))
|
||||||
|
if (nowDate > new Date(VALIDITY_PERIOD_END)){
|
||||||
// 比较日期并返回状态
|
return 1
|
||||||
if (now > validityPeriodEnd) {
|
}else if (new Date(VALIDITY_PERIOD_END) > nowDate && new Date(VALIDITY_PERIOD_END) < nextDate){
|
||||||
// 证件已过期
|
return 2
|
||||||
return 1;
|
}else {
|
||||||
} else if (validityPeriodEnd > now && validityPeriodEnd <= threeMonthsLater) {
|
return 0
|
||||||
// 证件即将到期
|
|
||||||
return 2;
|
|
||||||
} else {
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
filterNode(value, data) {
|
filterNode(value, data) {
|
||||||
if (!value) return true
|
if (!value) return true
|
||||||
|
@ -371,17 +367,6 @@ export default {
|
||||||
})
|
})
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
},
|
},
|
||||||
handleAdd() {
|
|
||||||
const _selectData = this.$refs.multipleTable.selection
|
|
||||||
if (_selectData == null || _selectData.length === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: '未勾选人员...',
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
this.$refs.sendUtil.init(_selectData)
|
|
||||||
},
|
|
||||||
// 判断按钮权限,用于是否显示按钮
|
// 判断按钮权限,用于是否显示按钮
|
||||||
hasButton: function() {
|
hasButton: function() {
|
||||||
var keys = 'corpinfo:add,corpinfo:del,corpinfo:edit,toExcel'
|
var keys = 'corpinfo:add,corpinfo:del,corpinfo:edit,toExcel'
|
||||||
|
|
Loading…
Reference in New Issue