123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <template>
- <div id="stuleaveList">
- <el-row>
- <el-col :span="24">
- <el-col :span="24" class="list">
- <el-col :span="18" class="name">
- <p>班主任姓名:{{ teacherinfo.name }}</p>
- </el-col>
- <el-col :span="6" class="btn">
- <el-link :underline="false" @click="clicktea(teacherinfo.id)">详情</el-link>
- </el-col>
- </el-col>
- <el-col :span="24" class="list" v-for="(item, index) in newclassList" :key="index">
- <el-col :span="18" class="name">
- <p>学生姓名:{{ item.name }}</p>
- </el-col>
- <el-col :span="6" class="btn">
- <el-link :underline="false" @click="clickShows(item.id)">详情</el-link>
- </el-col>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- export default {
- name: 'stuleaveList',
- props: {
- newclassList: null,
- leaveInfo: null,
- show: null,
- headinfo: null,
- teacherinfo: null,
- },
- components: {},
- data: () => ({}),
- created() {},
- computed: {},
- methods: {
- clickShows(id) {
- this.$router.push({ path: '/class/stuDetail', query: { id } });
- },
- clicktea(id) {
- console.log(id);
- this.$router.push({ path: '/class/stuDetail', query: { id } });
- },
- },
- };
- </script>
- <style lang="less" scoped>
- p {
- padding: 0;
- margin: 0;
- }
- .list {
- margin: 10px 10px 0 10px;
- background: #fff;
- width: 95%;
- padding: 10px;
- border-radius: 10px;
- }
- .list .name {
- padding: 5px 0;
- }
- .list .btn {
- padding: 5px 0;
- text-align: center;
- }
- .wrapper {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 100%;
- }
- .leaveInfo {
- width: 90%;
- background: #ffffff;
- padding: 0 0 10px 0;
- border-radius: 10px;
- }
- .info {
- height: 450px;
- overflow-y: auto;
- }
- .jilu {
- text-align: center;
- padding: 10px 0;
- }
- .leavelist {
- padding: 10px 10px 0 10px;
- }
- .leavelist .date p {
- padding: 0;
- }
- .leavelist .status {
- padding: 10px 0;
- }
- </style>
|