lex 2 سال پیش
والد
کامیت
235d30e965
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      src/school/ranking-list/index.tsx
  2. 2 2
      src/student/ranking-list/index.tsx

+ 2 - 2
src/school/ranking-list/index.tsx

@@ -63,13 +63,13 @@ export default defineComponent({
         </OSticky>
         </OSticky>
         {activeName.value == 'timer' ? (
         {activeName.value == 'timer' ? (
           <TimerBang
           <TimerBang
-            startTime={state.startTime}
+            startTime={dayjs(state.startTime).format('YYYYMMDD')}
             endTime={state.endTime}
             endTime={state.endTime}
             toHeight={state.heightV}
             toHeight={state.heightV}
           ></TimerBang>
           ></TimerBang>
         ) : (
         ) : (
           <DayBang
           <DayBang
-            startTime={state.startTime}
+            startTime={dayjs(state.startTime).format('YYYYMMDD')}
             endTime={state.endTime}
             endTime={state.endTime}
             toHeight={state.heightV}
             toHeight={state.heightV}
           ></DayBang>
           ></DayBang>

+ 2 - 2
src/student/ranking-list/index.tsx

@@ -21,7 +21,7 @@ export default defineComponent({
     })
     })
 
 
     const forms = reactive({
     const forms = reactive({
-      practiceMonth: dayjs().day(1).format('YYYY-MM-DD'),
+      practiceMonth: dayjs().day(1).format('YYYYMMDD'),
       endTime: dayjs().day(7).format('YYYY-MM-DD')
       endTime: dayjs().day(7).format('YYYY-MM-DD')
     })
     })
     provide('parentData', forms)
     provide('parentData', forms)
@@ -41,7 +41,7 @@ export default defineComponent({
               border={false}
               border={false}
             ></OHeader>
             ></OHeader>
             <span class={styles.topTime} onClick={() => (state.showPopoverTime = true)}>
             <span class={styles.topTime} onClick={() => (state.showPopoverTime = true)}>
-              {forms.practiceMonth}~{forms.endTime}{' '}
+              {dayjs(forms.practiceMonth).format('YYYY-MM-DD')}~{forms.endTime}{' '}
               <Icon name={state.showPopoverTime ? 'arrow-up' : 'arrow-down'} />
               <Icon name={state.showPopoverTime ? 'arrow-up' : 'arrow-down'} />
             </span>
             </span>
           </div>
           </div>