baizonghao
2023-08-04 8fee5b265eaa379b7a1cc51cd060a368c046de46
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<template>
  <div>
    <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column
        prop="createTime"
        label="日期"
        width="180">
      </el-table-column>
      <el-table-column
        prop="roomName"
        label="会议名"
        width="180">
      </el-table-column>
      <el-table-column
        prop="teacherName"
        label="教师名">
      </el-table-column>
      <el-table-column
        label="操作">
        <template slot-scope="scope">
          <el-button @click="subMeet(scope.row)">加入</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
 
<script>
import userApi from '@/api/user'
export default {
  data() {
    return {
      tableData: [{
        date: '2016-05-02',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1518 弄'
      }, {
        date: '2016-05-04',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1517 弄'
      }, {
        date: '2016-05-01',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1519 弄'
      }, {
        date: '2016-05-03',
        name: '王小虎',
        address: '上海市普陀区金沙江路 1516 弄'
      }]
    }
  },
  mounted () {
    this.seach()
  },
  methods:{
    seach(){
      userApi.getMeetList().then(res=>{
        console.log(res)
        if (res.code==1){
          this.tableData = res.response
        }
      })
    },
    subMeet(row){
      console.log('跳转到熬meet',row)
      this.$router.push({path:'/meet/index',query: {roomName:'Admin'}})
    }
  }
}
</script>
<style scoped lang="scss">
 
</style>