kongdeqiang
2024-11-18 f0cad0c5ea4778036452217b4704c6875dc246e3
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>