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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
| <template>
| <div class="app-container">
| <div style="margin-left: -35px;margin-top: 15px">
| <el-select v-model="queryParams.platform" size="small" style="margin-left: 40px;" placeholder="请选择平台">
| <el-option
| v-for="item in platformList"
| :key="item.value"
| :label="item.label"
| :value="item.value">
| </el-option>
| </el-select>
| <el-button
| size="small"
| type="primary"
| style="margin-bottom: 10px;margin-left: 20px"
| @click="handleQuery()"
| >查询</el-button>
| <el-button
| size="small"
| type="primary"
| style="margin-bottom: 10px"
| @click="resetQuery()"
| >重置</el-button>
| </div>
| <el-table v-loading="loading" :data="expertList" style="margin-top: 10px">
| <el-table-column label="UUID" align="center" prop="UUID" />
| <el-table-column label="批次名称" align="center" prop="batchName" />
| <el-table-column label="推送平台" align="center" prop="platform" />
| <el-table-column label="上报时间" align="center" prop="reportTime" />
| <el-table-column label="所属培训机构" align="center" prop="trainingInstitution" />
| <el-table-column label="课程" align="center" >
| <template #default="scope">
| <div v-for="(item,index) in scope.row.course" :key="index" style="color: #1890ff;cursor: pointer">
| <span @click="handleViewCourse(item)">{{item}}</span>
| </div>
| </template>
| </el-table-column>
| <el-table-column label="学员人数" align="center" prop="student" >
| <template #default="scope">
| <span style="color: #1890ff;cursor: pointer" @click="openStudent(scope.row)">{{scope.row.student}}</span>
| </template>
| </el-table-column>
| <el-table-column label="是否有考试" align="center" prop="isExam" />
| <el-table-column label="已开班" align="center" prop="isOfferClass" />
| <el-table-column label="数据更新时间" align="center" prop="updateTime" />
| <el-table-column label="删除标记" align="center" prop="delFlag" />
| <el-table-column label="学时监管" align="center" class-name="small-padding fixed-width">
| <template #default="scope">
| <el-button
| size="mini"
| type="text"
| style="color: #1890ff"
| @click="openClassHour(scope.row)"
| >查看学时清单</el-button>
| </template>
| </el-table-column>
| </el-table>
| <pagination
| v-show="total>0"
| :total="total"
| :page.sync="queryParams.pageIndex"
| :limit.sync="queryParams.pageSize"
| @pagination="getList"
| />
| <course-dialog ref="courseDialogRef" @getList = "getList"></course-dialog>
| <studentList ref="studentDialog" @getList = "getList"></studentList>
| <class-hour ref="classRef" @getList = "getList"></class-hour>
| </div>
| </template>
|
| <script>
|
| import studentList from '@/views/onlineEducation/count/components/studentList.vue'
| import courseDialog from '@/views/onlineEducation/courseSupervision/components/courseDialog.vue'
| import classHour from '@/views/onlineEducation/classBatch/components/classHour.vue'
| export default {
| name: "nPeopleManage",
| dicts: [],
| components: { courseDialog,studentList,classHour},
| data() {
| return {
| loading: false,
| single: true,
| multiple: true,
| showSearch: true,
| addForm: false,
| total: 0,
| platformList: [
| {
| value: '1',
| label: '平台1'
| },
| {
| value: '2',
| label: '平台2'
| },
| ],
| expertList: [],
| queryParams: {
| pageIndex: 1,
| pageSize: 10,
| platform: ''
| },
| };
| },
| created() {
| this.getList();
| },
| methods: {
| getList(){
| this.loading = true;
| this.expertList = [
| {
| UUID: '2024060600001',
| batchName: '测试数据1',
| platform:'平台1',
| reportTime: '2024-6-11 10:32:00',
| trainingInstitution: '培训机构1',
| course: ['课程1','课程2'],
| student:120,
| isExam: '是',
| isOfferClass: '是',
| delFlag:'未删除',
| updateTime: '2024-6-11 10:32:00'
| },
| {
| UUID: '2024060600002',
| batchName: '测试数据2',
| platform:'平台2',
| reportTime: '2024-6-11 10:32:00',
| trainingInstitution: '培训机构2',
| course: ['课程2'],
| student: 132,
| isExam: '否',
| isOfferClass: '否',
| delFlag:'未删除',
| updateTime: '2024-6-11 10:32:00'
| },
| ]
| this.total = 2
| this.loading = false;
|
| },
| handleChange(){
|
| },
| handleQuery(){
| this.getList();
|
| },
| resetQuery(){
| this.queryParams = {
| pageIndex: 1,
| pageSize: 10,
| platform: ''
| }
| this.getList();
| },
| handleViewCourse(data){
| this.$refs.courseDialogRef.openDialog(data);
| },
| openStudent(data) {
| this.$refs.studentDialog.openDialog(data);
| },
| openClassHour(data){
| this.$refs.classRef.openDialog(data)
|
| }
| }
| };
| </script>
|
|