From 7d4b964fb767953c326df06d1effa820e89c8cae Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 17 八月 2022 15:18:07 +0800
Subject: [PATCH] 修复card视频展示默认不加载
---
src/Pool/VideoManageData.ts | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/Pool/VideoManageData.ts b/src/Pool/VideoManageData.ts
index 1caee06..fb11ffd 100644
--- a/src/Pool/VideoManageData.ts
+++ b/src/Pool/VideoManageData.ts
@@ -12,6 +12,7 @@
{ day: 7, time_range: [{ start: "00:00", end: "24:00" }] }
]
+
export default class VideoManageData {
public SepTasks: Array<object> = [];
public TimeRules: Array<object> = [];
@@ -23,14 +24,16 @@
// this.getAllSeparateTasks();
this.getTimeRule();
this.getDictionary();
- this.getTagList();
+ // this.getTagList();
}
public async getTimeRule() {
let rsp: any = await getAllTimeRule();
+ console.log(rsp);
+
if (rsp && rsp.success) {
- this.TimeRules = rsp.data;
- this.TimeRuleSum = rsp.data.length
+ this.TimeRules = rsp.data.timeRules;
+ this.TimeRuleSum = this.TimeRules.length
}
// 娣诲姞涓�鏉¢粯璁よ鍒�
--
Gitblit v1.8.0