<template>
  <div style="background: #fff; height: 97%; margin: 10px 0;padding:10px;">
    <div style="text-align: right;width:100%;"><a-button type="primary" @click="handleback">返回</a-button></div>
    <a-tabs v-model:activeKey="activeKey" @change="handleChange">
      <a-tab-pane key="1" tab="待互评">
        <ZyInfoStudentHpList />
      </a-tab-pane>
      <a-tab-pane key="2" tab="已互评" force-render>
        <ZyInfoStudentHpYpyList />
      </a-tab-pane>
      <a-tab-pane key="3" tab="本次作业互评分数">
        <ZyInfoStudentHpMyhpfsList />
      </a-tab-pane>
    </a-tabs>
  </div>
</template>

<script lang="ts" name="zyInfo-zyInfo" setup>
import { ref, reactive, onMounted, unref } from 'vue';
import ZyInfoStudentHpList from '/@/views/zy/zyInfoStudentHp/ZyInfoStudentHpList.vue'
import ZyInfoStudentHpYpyList from '/@/views/zy/zyInfoStudentHp/ZyInfoStudentHpYpyList.vue'
import ZyInfoStudentHpMyhpfsList from '/@/views/zy/zyInfoStudentHp/ZyInfoStudentHpMyhpfsList.vue'

import { useRouter } from 'vue-router';
var activeKey = ref('1');
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
const { rwbh, xqxn, type, teano ,mainId,zyStuId} = query; //获取传递参数
let router = useRouter();
function handleChange(record) {
  console.log('👩‍🚒', record);
}
function handleback(){
  var href = "/stuzy/studentDqzy";
  router.push({path:href,query: {rwbh,xqxn,type,teano}});
}
</script>

<style lang="less" scoped>
</style>
