From f0cad0c5ea4778036452217b4704c6875dc246e3 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期一, 18 十一月 2024 14:50:47 +0800 Subject: [PATCH] feat: 缴费记录 --- src/components/page/ticketBlack/index.vue | 30 ++++++++++++++++++++++++++---- 1 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/components/page/ticketBlack/index.vue b/src/components/page/ticketBlack/index.vue index 8a47660..bf5befe 100644 --- a/src/components/page/ticketBlack/index.vue +++ b/src/components/page/ticketBlack/index.vue @@ -37,7 +37,7 @@ </template> </el-table-column> </el-table> - <el-pagination background @size-change="onPageSizeChange" @current-change="onCurrentPageChange" :current-page="pageData.currentPage" :page-size="pageData.pageSize" :total="pageData.total" style="padding: 10px 10px 600px 600px;"></el-pagination> + <el-pagination class="pageFoot" background @size-change="onPageSizeChange" @current-change="onCurrentPageChange" :current-page="pageData.currentPage" :page-size="pageData.pageSize" :total="pageData.total" style="padding: 10px 10px 600px 600px;"></el-pagination> <el-dialog title="缂栬緫" :visible.sync="flag" width="30%"> <el-form :model="formData" ref="formData" label-width="100px"> @@ -145,10 +145,26 @@ this.formData = row; }, onDelete(index, row) { - this.$byutil.deleteData(this,this.urlPath+"delete",{id:row.id}, res => { + this.$confirm('鏄惁纭畾鍒犻櫎锛�','鎻愮ず',{ + confirmButtonText:'纭畾', + cancelButtonText:'鍙栨秷', + type:'warning' + }).then(() => { + this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/ticketblack/delete', {id:row.id}, res => { + if(res.code===0){ this.$message({message: '鍒犻櫎鎴愬姛', type: 'success'}); this.loadData(); + }else { + this.$message({message: res.message, type: 'error'}); + } }) + }).catch(() => { + this.$message({ + type:'info', + message:"宸插彇娑�" + }) + }) + }, onPageSizeChange(val) { this.pageData.pageSize = val; @@ -167,6 +183,12 @@ } </script> -<style scoped> - +<style lang="scss" scoped> +.pageFoot{ + width: 60%; + padding: 0!important; + display: flex; + flex-direction: row-reverse; + margin-top: 5px; +} </style> -- Gitblit v1.9.1