From 3b528b0ff28b5f5119d8749c09da8545cd253b77 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期三, 16 十月 2024 18:33:26 +0800
Subject: [PATCH] fix: 小bug

---
 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