修复 bug

This commit is contained in:
wangsongsole 2022-08-10 17:02:40 +08:00
parent 8ba912366b
commit abf7420f23
1 changed files with 1 additions and 3 deletions

View File

@ -186,13 +186,11 @@ export default class acclist extends React.Component {
}
/* 处理可复制数据逻辑 */
copyElementFunction({ key_batch_id, status, end_time, keyBatch, id, title }) {
const today = moment().format('yyyy-MM-DD HH:mm:ss')
copyElementFunction({ key_batch_id, status, keyBatch, id, title }) {
let element = ''
if (
![-1, 6, 7].includes(status) &&
![6, 7].includes(keyBatch?.status) &&
end_time > today &&
!keyBatch?.approval_status &&
keyBatch?.discard === 0
) {