Compare commits

..

No commits in common. "933a5e995bf80027630e2ce30c96709a11d0a26a" and "96c97d9c29c7cc68ccd3eb201b1f4e0306afec91" have entirely different histories.

1 changed files with 13 additions and 28 deletions

View File

@ -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_ENDDate 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'