[update] 修改bug80344
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
|
||||
<template v-slot:action="{text, record}">
|
||||
<!-- 解除授权 -->
|
||||
<a class="table-del" @click="handleCancelAuthor(record)">{{$t('enterpriseStandardLibrary.standard.cancelAuthor')}}</a>
|
||||
<a class="table-del" :disabled="isDisabled(record)" @click="handleCancelAuthor(record)">{{$t('enterpriseStandardLibrary.standard.cancelAuthor')}}</a>
|
||||
</template>
|
||||
</j-table>
|
||||
|
||||
@@ -186,6 +186,12 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
// 解除授权按钮是否不可点击
|
||||
isDisabled (record) {
|
||||
const authExpireDate = new Date(Date.parse(record.authExpireDate))
|
||||
const currentDate = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate()
|
||||
return new Date(Date.parse(authExpireDate)) < new Date(Date.parse(currentDate))
|
||||
},
|
||||
loadData (arg) {
|
||||
if (!this.url.list) {
|
||||
this.$message.warning('请设置url.list属性!')
|
||||
|
||||
Reference in New Issue
Block a user