浏览代码

reactor:数据对接;

zhangchong 1 年之前
父节点
当前提交
000082b17e
共有 4 个文件被更改,包括 4 次插入8 次删除
  1. 1 1
      src/utils/signalR.ts
  2. 1 1
      src/views/index/index.vue
  3. 1 1
      src/views/index/left-center.vue
  4. 1 5
      src/views/index/left-top.vue

+ 1 - 1
src/utils/signalR.ts

@@ -33,7 +33,7 @@ export default {
 		});
 		// 服务端推送消息
 		connection.on('Send', (message: any) => {
-			console.log('加入分组成功:', message);
+
 		});
 	},
 	/**

+ 1 - 1
src/views/index/index.vue

@@ -56,7 +56,7 @@ import {onMounted} from "vue";
 const getDataFn = async () => {
   try {
     const res = await getData();
-    console.log(res)
+    console.log('返回的数据:',res,)
   }catch (e) {
     console.log(e)
   }

+ 1 - 1
src/views/index/left-center.vue

@@ -24,7 +24,7 @@ const echartsGraphic = (colors: string[]) => {
 };
 const getData = () => {
   currentGET("leftCenter").then((res) => {
-    console.log(res,'来源占比');
+    console.log('来源占比',res);
     if (res.success) {
       state.lockNum = res.data.lockNum;
       state.offlineNum = res.data.offlineNum;

+ 1 - 5
src/views/index/left-top.vue

@@ -32,10 +32,6 @@ import { currentGET } from "@/api";
 import CountUp from "@/components/count-up";
 import signalR from "@/utils/signalR";
 const duration = ref(2);
-const props = defineProps<{
-  config: any;
-  data: any;
-}>();
 const state = reactive({
   alarmNum: 759,
   offlineNum: 44,
@@ -45,7 +41,7 @@ const state = reactive({
 
 const getData = () => {
   currentGET("leftTop").then((res) => {
-    console.log(res,'工单办理日');
+    console.log('工单办理日',res);
     if (res.success) {
       state.alarmNum = res.data.alarmNum;
       state.offlineNum = res.data.offlineNum;