@ledvance/ui-biz-bundle 1.0.87 → 1.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.0.87",
7
+ "version": "1.0.88",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -553,6 +553,9 @@ const BiorhythmPage = () => {
553
553
  onPlanEdited,
554
554
  onPlanDelete,
555
555
  minimumEnable,
556
+ iconIdList: state.planList?.map(item => {
557
+ return item.iconId
558
+ }),
556
559
  isMixRGBWLamp: params.isMixRGBWLamp,
557
560
  isSupportTemperature: params.isSupportTemperature,
558
561
  isSupportBrightness: params.isSupportBrightness,
@@ -50,7 +50,6 @@ export const useRandomTime : UseFixedTimeType = (dpKey: string, disableFeature?:
50
50
  const [uiData, setUiData] = useState<RandomTimerItem[]>([])
51
51
  const [randomTime, setRandomTime]: [string, (v: string) => Promise<Result<any>>] = useDp(dpKey)
52
52
  const randomTimeList: RandomTimer[] = useMemo(() => RandomTimer.parse(randomTime).nodes, [randomTime])
53
- console.log(RandomTimer.parse(randomTime), '< --- randomTimer')
54
53
  const formatterFn = useCallback(() =>{
55
54
  return randomTimeList.map((item, idx)=>({
56
55
  ...item,
@@ -99,13 +99,21 @@ const TimeSchedulePage = () => {
99
99
  }, [state.timeScheduleList])
100
100
 
101
101
  const getTimerScheduleList = async () => {
102
- const res: any = await NativeApi.timerList(deviceInfo.devId)
103
- if (res.result && res.value) {
102
+ // const res: any = await NativeApi.timerList(deviceInfo.devId)
103
+ const res: any = await NativeApi.getAllTaskTimer(deviceInfo.devId)
104
+ if (res.success && res.data) {
104
105
  // 原生传过来的dps是json字符串。
105
- const originList = res.value.map((item: any) => {
106
+ const originList = res.data.map((item: any) => {
106
107
  return {
107
- ...item,
108
- dps: JSON.parse(item.dps),
108
+ aliasName: item.remark,
109
+ status: !!item.mStatus,
110
+ id: item.mTimerId,
111
+ groupId: item.mTimerId,
112
+ loops: item.mLoops,
113
+ date: item.mDate,
114
+ time: item.mTime,
115
+ isAppPush: item.isAppPush ? 1 : 0,
116
+ dps: JSON.parse(item.mValue),
109
117
  }
110
118
  })
111
119
  state.timeScheduleList = originList