|
@@ -324,67 +324,69 @@ onMounted(() => {
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <el-card>
|
|
|
- <form-search
|
|
|
- :show="pageData.searchParam.searchState"
|
|
|
- :form-field="searchFormFields"
|
|
|
- :data-source="pageData.dataSource"
|
|
|
- :query-permission="pageData.permission.query"
|
|
|
- @search-form="_updateSearchFormData"
|
|
|
- @search="_searchForm"
|
|
|
- @reset="_resetSearchForm"
|
|
|
- />
|
|
|
- <!--operate-->
|
|
|
- <table-buttons
|
|
|
- :size="pageData.btnOpts.size"
|
|
|
- :left-btns="pageData.btnOpts.leftBtns"
|
|
|
- :right-btns="pageData.btnOpts.rightBtns"
|
|
|
- @click="btnClickHandle"
|
|
|
- />
|
|
|
- <!--table-->
|
|
|
- <pure-table
|
|
|
- :data="pageData.tableParam.list"
|
|
|
- :columns="pageData.tableParam.columns"
|
|
|
- row-key="id"
|
|
|
- border
|
|
|
- stripe
|
|
|
- :header-row-class-name="'table-header'"
|
|
|
- :loading="pageData.tableParam.loading"
|
|
|
- :pagination="pageData.tableParam.pagination"
|
|
|
- @page-current-change="handleChangeCurrentPage"
|
|
|
- @page-size-change="handleChangePageSize"
|
|
|
- >
|
|
|
+ <el-card :shadow="'never'">
|
|
|
+ <template #default>
|
|
|
+ <div>
|
|
|
+ <form-search
|
|
|
+ :show="pageData.searchParam.searchState"
|
|
|
+ :form-field="searchFormFields"
|
|
|
+ :data-source="pageData.dataSource"
|
|
|
+ :query-permission="pageData.permission.query"
|
|
|
+ @search-form="_updateSearchFormData"
|
|
|
+ @search="_searchForm"
|
|
|
+ @reset="_resetSearchForm"
|
|
|
+ />
|
|
|
+ <!--operate-->
|
|
|
+ <table-buttons
|
|
|
+ :size="pageData.btnOpts.size"
|
|
|
+ :left-btns="pageData.btnOpts.leftBtns"
|
|
|
+ :right-btns="pageData.btnOpts.rightBtns"
|
|
|
+ @click="btnClickHandle"
|
|
|
+ />
|
|
|
+ <!--table-->
|
|
|
+ <pure-table
|
|
|
+ :data="pageData.tableParam.list"
|
|
|
+ :columns="pageData.tableParam.columns"
|
|
|
+ row-key="id"
|
|
|
+ border
|
|
|
+ stripe
|
|
|
+ :header-row-class-name="'table-header'"
|
|
|
+ :loading="pageData.tableParam.loading"
|
|
|
+ :pagination="pageData.tableParam.pagination"
|
|
|
+ @page-current-change="handleChangeCurrentPage"
|
|
|
+ @page-size-change="handleChangePageSize"
|
|
|
+ >
|
|
|
|
|
|
- <template #ellipsis="{ row, column }">
|
|
|
- <el-tooltip placement="top-start" :content="row[column.property]"
|
|
|
- >{{ row[column.property] }}
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
- <template #enableOptions="scope">
|
|
|
- <el-tag type="danger" v-if="scope.row.status==-1">支付失败</el-tag>
|
|
|
- <el-tag v-if="scope.row.status==0">待支付</el-tag>
|
|
|
- <el-tag type="success" v-if="scope.row.status==1">支付成功</el-tag>
|
|
|
- <el-tag type="warning" v-if="scope.row.status==2">退款</el-tag>
|
|
|
- </template>
|
|
|
- <template #operation="{ row }">
|
|
|
- <div class="flex justify-center items-center">
|
|
|
- <el-link
|
|
|
- type="primary"
|
|
|
- v-if="row.status!=1"
|
|
|
- @click="handlePayStatus(row)"
|
|
|
- >查询支付状态
|
|
|
- </el-link>
|
|
|
- <el-link
|
|
|
- type="primary"
|
|
|
- v-if="row.status==1"
|
|
|
- @click="handleCallback(row)"
|
|
|
- >回调
|
|
|
- </el-link>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </pure-table>
|
|
|
- <edit ref="editRef" @ok="_loadData" />
|
|
|
- </el-card>
|
|
|
- </div>
|
|
|
+ <template #ellipsis="{ row, column }">
|
|
|
+ <el-tooltip placement="top-start" :content="row[column.property]"
|
|
|
+ >{{ row[column.property] }}
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ <template #enableOptions="scope">
|
|
|
+ <el-tag type="danger" v-if="scope.row.status==-1">支付失败</el-tag>
|
|
|
+ <el-tag v-if="scope.row.status==0">待支付</el-tag>
|
|
|
+ <el-tag type="success" v-if="scope.row.status==1">支付成功</el-tag>
|
|
|
+ <el-tag type="warning" v-if="scope.row.status==2">退款</el-tag>
|
|
|
+ </template>
|
|
|
+ <template #operation="{ row }">
|
|
|
+ <div class="flex justify-center items-center">
|
|
|
+ <el-link
|
|
|
+ type="primary"
|
|
|
+ v-if="row.status!=1"
|
|
|
+ @click="handlePayStatus(row)"
|
|
|
+ >查询支付状态
|
|
|
+ </el-link>
|
|
|
+ <el-link
|
|
|
+ type="primary"
|
|
|
+ v-if="row.status==1"
|
|
|
+ @click="handleCallback(row)"
|
|
|
+ >回调
|
|
|
+ </el-link>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </pure-table>
|
|
|
+ <edit ref="editRef" @ok="_loadData" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-card>
|
|
|
</template>
|