|
|
|
@ -40,6 +40,7 @@ |
|
|
|
|
>修改备注</el-button |
|
|
|
|
> |
|
|
|
|
<el-button size="mini" type="text" v-else @click="addRemark(scope.row)">添加备注</el-button> |
|
|
|
|
<el-button size="mini" type="text" @click="delRow(scope.row)">删除</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -52,6 +53,7 @@ |
|
|
|
|
>修改备注</el-button |
|
|
|
|
> |
|
|
|
|
<el-button size="mini" type="text" v-else @click="addRemark(scope.row)">添加备注</el-button> |
|
|
|
|
<el-button size="mini" type="text" @click="delRow(scope.row)">删除</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -86,7 +88,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { searchNum, addRemarkI } from '@/api/trainService/index.js' |
|
|
|
|
import { searchNum, addRemarkI, delSign } from '@/api/trainService/index.js' |
|
|
|
|
// 1 报名未开始、2 报名中、 3 报名结束未开课、4 开课中、5 已结束 status字段 |
|
|
|
|
export default { |
|
|
|
|
name: 'peixunbaoming', |
|
|
|
@ -177,6 +179,21 @@ export default { |
|
|
|
|
this.resetForm('queryForm') |
|
|
|
|
this.getStudentList() |
|
|
|
|
}, |
|
|
|
|
// 删除行 |
|
|
|
|
delRow(row) { |
|
|
|
|
this.$confirm('是否确认删除?', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
delSign(row.trainingStudentId).then((res) => { |
|
|
|
|
this.getStudentList() |
|
|
|
|
this.$message.success('删除成功') |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}) |
|
|
|
|
}, |
|
|
|
|
// 添加备注 |
|
|
|
|
addRemark(row) { |
|
|
|
|
this.title = '添加备注' |
|
|
|
|