| | |
| | | >删 除 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | icon="el-icon-refresh-right" |
| | | @click="revoke(row)" |
| | | :size="size" |
| | | :type="type" |
| | | >撤销报名</el-button |
| | | > |
| | | </template> |
| | | </avue-crud> |
| | | </div> |
| | | </template> |
| | |
| | | searchSize: "mini", |
| | | searchMenuSpan: 6, |
| | | height: 627, |
| | | menuWidth: 160, |
| | | menuWidth: 290, |
| | | align: "center", |
| | | selection: true, |
| | | column: column, |
| | | delBtn: false |
| | | }, |
| | | }; |
| | | }, |
| | |
| | | this.onLoad(this.page); |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | console.log(row); |
| | | // console.log(row); |
| | | |
| | | update(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | |
| | | } |
| | | ); |
| | | }, |
| | | revoke(row) { |
| | | // console.log(row); |
| | | row.cancel = 2; |
| | | update(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "成功撤销报名!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |