<template>
  <div id="homeworkAchiece">
    <el-row>
      <el-col :span="24" class="list">
        <van-collapse v-model="openCollapse">
          <van-collapse-item :name="index" v-for="(item, index) in achieveList" :key="index">
            <div slot="title" class="title">
              <span class="name">{{ item.studentid }}</span>
              <van-button type="primary" size="mini" @click="clickBtn()">上成绩</van-button>
            </div>
            <van-row v-for="(tag, index) in item.lesson" :key="index">
              <van-col :span="14" class="score"> 课程名称：{{ tag.lessonid }} </van-col>
              <van-col :span="10" class="score"> 作业分：{{ tag.score }} 分</van-col>
            </van-row>
          </van-collapse-item>
        </van-collapse>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'homeworkAchiece',
  props: {
    achieveList: null,
  },
  components: {},
  data: () => ({
    openCollapse: [],
  }),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.list {
  margin: 5px;
  width: 97%;
  padding: 0 10px;
  border-radius: 15px;
}
.list .title {
  float: left;
  width: 100%;
}
.list .name {
  float: left;
  width: 80%;
  font-size: 20px;
}
/deep/.van-cell {
  border-radius: 10px;
}
/deep/.van-collapse-item {
  margin: 0 0 10px 0;
}
/deep/.el-collapse-item__content {
  padding: 10px 0 10px 0;
}
.list .score {
  padding: 10px 0;
  font-size: 18px;
}
</style>
