|
@@ -57,14 +57,6 @@
|
57
|
57
|
:data="courses.list"
|
58
|
58
|
stripe
|
59
|
59
|
style="width: 100%">
|
60
|
|
- <!-- <el-table-column
|
61
|
|
- prop="CourseName"
|
62
|
|
- label="发布状态"
|
63
|
|
- width="150">
|
64
|
|
- <template slot-scope="scope">
|
65
|
|
- <label>{{scope.row.Status===1?'已发布':'未发布'}}</label>
|
66
|
|
- </template>
|
67
|
|
- </el-table-column> -->
|
68
|
60
|
<el-table-column
|
69
|
61
|
prop="CourseName"
|
70
|
62
|
label="课程名称"
|
|
@@ -110,45 +102,47 @@
|
110
|
102
|
<el-table-column
|
111
|
103
|
fixed="right"
|
112
|
104
|
label="操作"
|
113
|
|
- width="600">
|
|
105
|
+ min-width="300">
|
114
|
106
|
<template slot-scope="scope">
|
115
|
|
- <el-button
|
116
|
|
- size="mini"
|
117
|
|
- type="success"
|
118
|
|
- @click="addDetail(scope.row)">添加课程详情</el-button>
|
119
|
|
- <el-button
|
120
|
|
- size="mini"
|
121
|
|
- type="warning"
|
122
|
|
- v-if="scope.row.Status===0"
|
123
|
|
- @click="toSchedule(scope.row)"
|
124
|
|
- >排课</el-button>
|
125
|
|
- <el-button
|
126
|
|
- size="mini"
|
127
|
|
- type="primary"
|
128
|
|
- @click="handleCopy(scope.row)"
|
129
|
|
- >复制课程</el-button>
|
130
|
|
- <el-button
|
131
|
|
- size="mini"
|
132
|
|
- type="warning"
|
133
|
|
- @click="handlePublic(scope.row)"
|
134
|
|
- v-if="scope.row.Status===0"
|
135
|
|
- >发布</el-button>
|
136
|
|
- <el-button
|
137
|
|
- size="mini"
|
138
|
|
- type="danger"
|
139
|
|
- @click="handleUnPublic(scope.row)"
|
140
|
|
- v-if="scope.row.Status===1"
|
141
|
|
- >取消发布</el-button>
|
142
|
|
- <el-button
|
143
|
|
- size="mini"
|
144
|
|
- type="warning"
|
145
|
|
- v-if="scope.row.Status===0"
|
146
|
|
- @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
147
|
|
- <el-button
|
148
|
|
- size="mini"
|
149
|
|
- type="danger"
|
150
|
|
- v-if="scope.row.Status===0"
|
151
|
|
- @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
107
|
+ <div style="width: 100%" class="btnBox">
|
|
108
|
+ <el-button
|
|
109
|
+ size="mini"
|
|
110
|
+ type="success"
|
|
111
|
+ @click="addDetail(scope.row)">添加课程详情</el-button>
|
|
112
|
+ <el-button
|
|
113
|
+ size="mini"
|
|
114
|
+ type="warning"
|
|
115
|
+ v-if="scope.row.Status===0"
|
|
116
|
+ @click="toSchedule(scope.row)"
|
|
117
|
+ >排课</el-button>
|
|
118
|
+ <el-button
|
|
119
|
+ size="mini"
|
|
120
|
+ type="primary"
|
|
121
|
+ @click="handleCopy(scope.row)"
|
|
122
|
+ >复制课程</el-button>
|
|
123
|
+ <el-button
|
|
124
|
+ size="mini"
|
|
125
|
+ type="warning"
|
|
126
|
+ @click="handlePublic(scope.row)"
|
|
127
|
+ v-if="scope.row.Status===0"
|
|
128
|
+ >发布</el-button>
|
|
129
|
+ <el-button
|
|
130
|
+ size="mini"
|
|
131
|
+ type="danger"
|
|
132
|
+ @click="handleUnPublic(scope.row)"
|
|
133
|
+ v-if="scope.row.Status===1"
|
|
134
|
+ >取消发布</el-button>
|
|
135
|
+ <el-button
|
|
136
|
+ size="mini"
|
|
137
|
+ type="warning"
|
|
138
|
+ v-if="scope.row.Status===0"
|
|
139
|
+ @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
140
|
+ <el-button
|
|
141
|
+ size="mini"
|
|
142
|
+ type="danger"
|
|
143
|
+ v-if="scope.row.Status===0"
|
|
144
|
+ @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
145
|
+ </div>
|
152
|
146
|
</template>
|
153
|
147
|
</el-table-column>
|
154
|
148
|
</el-table>
|
|
@@ -435,4 +429,9 @@ export default {
|
435
|
429
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
436
|
430
|
<style lang="scss" scoped>
|
437
|
431
|
@import "page.scss";
|
|
432
|
+.btnBox{
|
|
433
|
+ >*{
|
|
434
|
+ margin-bottom: 10px;
|
|
435
|
+ }
|
|
436
|
+}
|
438
|
437
|
</style>
|