|
@@ -67,7 +67,7 @@
|
67
|
67
|
prop="id"
|
68
|
68
|
label="操作"
|
69
|
69
|
align="center">
|
70
|
|
- <template slot-scope="scope">{{ '删除报名' }}</template>
|
|
70
|
+ <template slot-scope="scope"><el-button type="danger" @click="deleteSignUp(scope.row.id)">删除报名</el-button></template>
|
71
|
71
|
</el-table-column>
|
72
|
72
|
</el-table>
|
73
|
73
|
<div class="block">
|
|
@@ -100,7 +100,8 @@ export default {
|
100
|
100
|
list: [],
|
101
|
101
|
listLoading: true, // 表格加载框
|
102
|
102
|
dialogTableVisible: false, // 是否显示弹框
|
103
|
|
- dialogContent: '提示信息' // 弹框内容
|
|
103
|
+ dialogContent: '提示信息', // 弹框内容
|
|
104
|
+ sendSMS: false // 是否发生短信
|
104
|
105
|
}
|
105
|
106
|
},
|
106
|
107
|
mounted() {
|
|
@@ -182,6 +183,38 @@ export default {
|
182
|
183
|
showDialog(remark) { // 备注 弹框
|
183
|
184
|
this.dialogContent = remark
|
184
|
185
|
this.dialogTableVisible = true
|
|
186
|
+ },
|
|
187
|
+ deleteSignUp(id) {
|
|
188
|
+ const h = this.$createElement
|
|
189
|
+ this.sendSMS = false // 默认不发送
|
|
190
|
+
|
|
191
|
+ this.$msgbox({
|
|
192
|
+ title: '删除确认',
|
|
193
|
+ message: h('div', { style: 'width: 400px;height: 100px;line-height: 50px;align-content: center;' }, [
|
|
194
|
+ h('span', null, '确定要删除此人报名吗?'),
|
|
195
|
+ h('p', { style: 'color: teal' }, [
|
|
196
|
+ h('el-checkbox', { vModel: this.sendSMS }, '发送短信通知报名人已取消他的报名')
|
|
197
|
+ ])
|
|
198
|
+ ]),
|
|
199
|
+ showCancelButton: true,
|
|
200
|
+ confirmButtonText: '确定',
|
|
201
|
+ cancelButtonText: '取消',
|
|
202
|
+ beforeClose: (action, instance, done) => {
|
|
203
|
+ if (action === 'confirm') {
|
|
204
|
+ instance.confirmButtonLoading = true
|
|
205
|
+ // 发送
|
|
206
|
+ console.log(this.sendSMS)
|
|
207
|
+ done()
|
|
208
|
+ } else {
|
|
209
|
+ done()
|
|
210
|
+ }
|
|
211
|
+ }
|
|
212
|
+ }).then(action => {
|
|
213
|
+ this.$message({
|
|
214
|
+ type: 'info',
|
|
215
|
+ message: 'action: ' + action
|
|
216
|
+ })
|
|
217
|
+ })
|
185
|
218
|
}
|
186
|
219
|
}
|
187
|
220
|
}
|