Browse Source

clientType

liushengqiang 1 year ago
parent
commit
41c42da249

+ 1 - 1
src/views/exercise-record/exercis-detail.tsx

@@ -61,7 +61,7 @@ export default defineComponent({
       page: 1,
       rows: 20,
       userId: route.query.id,
-      clientType: globalState.platformType
+      clientType: route.query.clientType ? route.query.clientType : globalState.platformType
     })
     const showTip = ref(false)
     const minDate = ref(new Date(dayjs().subtract(10, 'year').format('YYYY-MM-DD')))

+ 3 - 1
src/views/exercise-record/modals/student-item.tsx

@@ -8,6 +8,7 @@ import { postMessage } from '@/helpers/native-message'
 import { Icon, ActionSheet, showToast, Image, Cell } from 'vant'
 import { useRouter } from 'vue-router'
 import item from '@/student/coupons/item'
+import { state } from '@/state'
 const myForms = ref({}) as any
 export default defineComponent({
   props: ['item', 'forms'],
@@ -69,7 +70,8 @@ export default defineComponent({
         query: {
           id: props.item.userId,
           practiceMonth: myForms.value.practiceMonth,
-          practiceMonthName: myForms.value.practiceMonthName
+          practiceMonthName: myForms.value.practiceMonthName,
+          clientType: "STUDENT"
         }
       })
     }