[update] 修改bug80344
This commit is contained in:
@@ -79,7 +79,7 @@
|
|||||||
|
|
||||||
<template v-slot:action="{text, record}">
|
<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>
|
</template>
|
||||||
</j-table>
|
</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) {
|
loadData (arg) {
|
||||||
if (!this.url.list) {
|
if (!this.url.list) {
|
||||||
this.$message.warning('请设置url.list属性!')
|
this.$message.warning('请设置url.list属性!')
|
||||||
|
|||||||
Reference in New Issue
Block a user