From eeef5d4039d2b3fee6854ddc2789aa23232b2cfb Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期三, 27 九月 2023 17:24:10 +0800 Subject: [PATCH] 登陆页换了背景,加了风险排名 --- src/views/data_management/BusinessReport.vue | 72 ++++++++++++++++++++++++++---------- 1 files changed, 52 insertions(+), 20 deletions(-) diff --git a/src/views/data_management/BusinessReport.vue b/src/views/data_management/BusinessReport.vue index 95e582d..93b0764 100644 --- a/src/views/data_management/BusinessReport.vue +++ b/src/views/data_management/BusinessReport.vue @@ -1,32 +1,64 @@ <script> -import {useCounterStore} from '@/stores/counter'; +import MonthSelect from '@/sfc/MonthSelect.vue' +import exceptionApi from '@/api/exceptionApi.js' +import dayjs from 'dayjs' export default { - data(){ - return{ - - } - }, - setup(){ - const store = useCounterStore() - return{ - store + components: { + MonthSelect + }, + data() { + return { + month: '' } - }, - mounted() { - + }, + mounted() { + this.get() + }, + methods: { + giveTime(val) { + //灏嗕腑鍥芥爣鍑嗘椂闂磋浆涓烘寚瀹氭牸寮�(璇ョ粍浠惰繑鍥炵殑鏍囧噯鏃堕棿鐨勬牸寮忥紝鎵�浠ュ繀椤荤殑鍔犺繖涓嚱鏁�) + this.month = dayjs(val).format('YYYY-MM-DD HH:mm:ss') }, - methods: { - - } + async getExceptionData() { + await exceptionApi + .exceptiondata1({ + siteName: '', + beginTime: '2023-07-01 00:00:00', + endTime: '2023-07-05 00:00:00' + }).then(res=>{ + console.log(res); + exceptionApi + .exceptiondata1({ + siteName: '', + beginTime: '2023-07-01 00:00:00', + endTime: '2023-07-05 00:00:00' + }) + // .then((res) => { + // const data = res.data.data + // console.log('data', data) + + // }) + return a + }) + + + }, + get() { + this.getExceptionData().then( b=>{ + console.log('b',b.data.data); + }) + + } + } } </script> <template> <div> - 涓氬姟鎶ヨ〃 {{ store.count }} + 涓氬姟鎶ヨ〃 + <MonthSelect @submit-value="giveTime"></MonthSelect> + {{ month }} </div> </template> -<style scoped> - -</style> \ No newline at end of file +<style scoped></style> -- Gitblit v1.9.3