|
@@ -19,7 +19,7 @@
|
|
|
</PageWrapper>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
- import { defineComponent, h, ref } from 'vue';
|
|
|
+ import { defineComponent, h, ref, onMounted } from 'vue';
|
|
|
import {
|
|
|
BasicTable,
|
|
|
useTable,
|
|
@@ -36,6 +36,7 @@
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
import { usePermissionStore } from '/@/store/modules/permission';
|
|
|
+ import dayjs from 'dayjs';
|
|
|
export default defineComponent({
|
|
|
components: {
|
|
|
BasicTable,
|
|
@@ -88,6 +89,7 @@
|
|
|
field: 'timeList',
|
|
|
label: '时间段',
|
|
|
component: 'RangePicker',
|
|
|
+ defaultValue: [ dayjs().subtract(6, 'month').format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')],
|
|
|
componentProps: {
|
|
|
maxLength: 100,
|
|
|
format: 'YYYY-MM-DD',
|
|
@@ -124,8 +126,8 @@
|
|
|
},
|
|
|
beforeFetch: (T) => {
|
|
|
if (T.ctivated) {
|
|
|
- T.publicTimeStart = T.ctivated[0];
|
|
|
- T.publicTimeEnd = T.ctivated[1];
|
|
|
+ T.publicTimeStart = T.ctivated[0] + ' 00:00:00';
|
|
|
+ T.publicTimeEnd = T.ctivated[1] + ' 23:59:59';
|
|
|
}
|
|
|
return T;
|
|
|
},
|
|
@@ -135,6 +137,9 @@
|
|
|
await DownExport();
|
|
|
console.log('新增新闻');
|
|
|
}
|
|
|
+ onMounted(() => {
|
|
|
+ console.log('商家欧酷', dayjs().subtract(6, 'month'), dayjs())
|
|
|
+ })
|
|
|
return {
|
|
|
registerTable,
|
|
|
hendleAddNew,
|