From 0ecf7b3bc6d6a008a804d55c859833bf2cf6473a Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期三, 22 十一月 2023 10:06:29 +0800 Subject: [PATCH] 1.增加了有效率异常展示页面 2.风险模型的所属场景和运维商的详细信息,以及1个跳转页面链接 3.飞行巡检页面增加增加地址和运维商的筛选条件 4.飞行巡检页面是最新当日日期时,每类异常右上角增加一个“辅助审核” 5.历史数据管理增加 站点总数 --- 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