linxuxiang vor 1 Monat
Ursprung
Commit
df48756ef8
2 geänderte Dateien mit 11 neuen und 4 gelöschten Zeilen
  1. 6 4
      src/components/ReportList/index.vue
  2. 5 0
      src/types/components.d.ts

+ 6 - 4
src/components/ReportList/index.vue

@@ -12,7 +12,7 @@
             </div>
           </div>
         </div>
-        <div class="right" v-if="['basketballv1','footballv1'].includes(parameter.project)">
+        <div class="right" v-if="['basketballv1', 'footballv1'].includes(parameter.project)">
           <div class="score">{{ proxy?.$utils.runTime(item.result, true, false) }}
           </div>
         </div>
@@ -23,7 +23,7 @@
         </div>
       </li>
     </ul>
-    <div class="erweima" v-if="showQRCode"> <img :src="erweima"  @click="getMobile" />
+    <div class="erweima" v-if="showQRCode"> <img :src="erweima" @click="getMobile" />
       <span>扫码查看详情</span>
     </div>
   </div>
@@ -59,7 +59,7 @@ const data = reactive<any>({
   }, //学生分页
   debounceTime: '', //防抖状态
   unit: '',//单位
-  erweima:""
+  erweima: ""
 });
 
 const { reportList, studentPage, debounceTime, unit, erweima } = toRefs(data);
@@ -171,7 +171,9 @@ const getErweima = () => {
  * 跳转手机
 */
 const getMobile = () => {
-  let routeUrl: any = router.resolve({ path: '/analysis/index', query: { project: props.parameter.project } });
+  let myInfo: any = localStorage.getItem("userInfo");
+  let userInfo = JSON.parse(myInfo);
+  let routeUrl: any = router.resolve({ path: '/analysis/index', query: { project: props.parameter.project, school: userInfo.school_id } });
   window.open(routeUrl.href, '_blank');
 }
 

+ 5 - 0
src/types/components.d.ts

@@ -8,11 +8,16 @@ export {}
 declare module 'vue' {
   export interface GlobalComponents {
     ChooseStudent: typeof import('./../components/ChooseStudent/index.vue')['default']
+    ElAvatar: typeof import('element-plus/es')['ElAvatar']
+    ElButton: typeof import('element-plus/es')['ElButton']
     ElIcon: typeof import('element-plus/es')['ElIcon']
     ElInput: typeof import('element-plus/es')['ElInput']
     ElOption: typeof import('element-plus/es')['ElOption']
+    ElPagination: typeof import('element-plus/es')['ElPagination']
     ElSelect: typeof import('element-plus/es')['ElSelect']
     ElSwitch: typeof import('element-plus/es')['ElSwitch']
+    ElTable: typeof import('element-plus/es')['ElTable']
+    ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
     FaceWindow: typeof import('./../components/FaceWindow/index.vue')['default']
     Header: typeof import('./../components/Header/index.vue')['default']
     JumpRopeGame: typeof import('./../components/JumpRopeGame/index.vue')['default']