前一页 后一页 img

This commit is contained in:
David 2019-05-12 11:11:57 +08:00
parent c3c059a0c3
commit c3bfa19d92
2 changed files with 1 additions and 4 deletions

View File

@ -71,12 +71,10 @@ export default function fetchAPI (url, method, data = null, params = null) {
resolve(data)
} else {
notification.error({ message: '错误', description: JSON.stringify(data.detail), key: 'ERROR' })
reject()
}
})
.catch(error => {
notification.error({ message: '错误', description: error, key: 'ERROR' })
reject()
})
})
}

View File

@ -1,6 +1,6 @@
<template>
<a-row class="date-picker-wrapper">
<a-button class="left" icon="left" type="primary" @click="handlePrevious">前一天</a-button>
<a-button class="left" icon="left" type="primary" @click="handlePrevious"></a-button>
<span
class="date"
v-if="!status.showDatePicker"
@ -22,7 +22,6 @@
type="primary"
:disabled="date.format('YYYY-MM-DD') === maxDate.format('YYYY-MM-DD')"
@click="handleNext">
后一天
<a-icon type="right"></a-icon>
</a-button>
</a-row>