From 0825e9e96a6f2d4b71a51d32dae1302f2496c4d1 Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期四, 23 十一月 2023 16:58:27 +0800
Subject: [PATCH] 1.增加了风险模型的跳转逻辑 2.增加了风险模型的组件
---
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