Merge branch 'clickCopyv1.4' into lazyRouter
This commit is contained in:
commit
180bd5953b
|
@ -287,13 +287,14 @@ export default class addKnockGold extends Component {
|
|||
let step1 = JSON.parse(sessionStorage.getItem('knockGold_effectDate'))
|
||||
let isdisabled = false
|
||||
let str = moment(date).format('YYYY-MM-DD HH:mm:ss')
|
||||
const isDay = moment(step1.begin_time).format('HH:mm:ss')
|
||||
const isDay = moment(step1.end_time).format('HH:mm:ss')
|
||||
if (type == 'start') {
|
||||
if (isDay < '23:59:59') {
|
||||
isdisabled =
|
||||
moment(str).isBefore(step1.begin_time) ||
|
||||
moment(str).subtract(1, 'days').isAfter(step1.end_time)
|
||||
} else {
|
||||
isdisabled =
|
||||
moment(str).isBefore(step1.begin_time) ||
|
||||
moment(str).isAfter(step1.end_time)
|
||||
}
|
||||
|
|
|
@ -816,7 +816,7 @@ export default class acclist extends React.Component {
|
|||
let str = moment(date).format('YYYY-MM-DD HH:mm:ss')
|
||||
let beign_time = this.state.begintime
|
||||
let end_time = this.state.endtime
|
||||
const isDay = moment(beign_time).format('HH:mm:ss')
|
||||
const isDay = moment(end_time).format('HH:mm:ss')
|
||||
if (type == 'start') {
|
||||
if (isDay < '23:59:59') {
|
||||
isdisabled =
|
||||
|
|
|
@ -542,7 +542,7 @@ export default class acclist extends React.Component {
|
|||
let step1 = JSON.parse(sessionStorage.getItem('knockGold_effectDate'))
|
||||
let isdisabled = false
|
||||
let str = moment(date).format('YYYY-MM-DD HH:mm:ss')
|
||||
let isDay = moment(step1.begin_time).format('HH:mm:ss')
|
||||
let isDay = moment(step1.end_time).format('HH:mm:ss')
|
||||
if (type == 'start') {
|
||||
if (isDay < '23:59:59') {
|
||||
isdisabled =
|
||||
|
|
Loading…
Reference in New Issue