|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="table-box">
|
|
|
+ <div class="table-box button-table">
|
|
|
<ProTable
|
|
|
ref="proTable"
|
|
|
:columns="columns"
|
|
|
@@ -15,13 +15,15 @@
|
|
|
<el-tabs v-model="activeName" class="tabs" @tab-click="handleClick">
|
|
|
<el-tab-pane v-for="tab in allTabOptions" :key="tab.name" :label="tab.label" :name="tab.name" />
|
|
|
</el-tabs>
|
|
|
- <div class="action-buttons">
|
|
|
- <el-button :icon="Plus" class="button" type="primary" @click="newGroupBuying" v-if="type"> 新建代金券 </el-button>
|
|
|
- <el-button :icon="Plus" class="button" type="primary" @click="newCoupon" v-if="typeCoupon"> 新建优惠券 </el-button>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <template #tableHeaderRight="scope">
|
|
|
+ <div class="action-buttons">
|
|
|
+ <el-button :icon="Plus" class="button" type="primary" @click="newGroupBuying" v-if="type"> 新建代金券 </el-button>
|
|
|
+ <el-button :icon="Plus" class="button" type="primary" @click="newCoupon" v-if="typeCoupon"> 新建优惠券 </el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<template #status="scope">
|
|
|
<!-- 代金券:显示状态和审核状态两行 -->
|
|
|
<template v-if="activeName === '1'">
|
|
|
@@ -683,7 +685,6 @@ const closeRejectReasonDialog = () => {
|
|
|
white-space: normal; // 允许自然换行
|
|
|
}
|
|
|
.table-header-btn {
|
|
|
- width: 160vh;
|
|
|
.header-actions {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
@@ -694,14 +695,15 @@ const closeRejectReasonDialog = () => {
|
|
|
height: 0;
|
|
|
}
|
|
|
}
|
|
|
- .action-buttons {
|
|
|
- display: flex;
|
|
|
- flex: 0 0 auto;
|
|
|
- gap: 10px;
|
|
|
- .button {
|
|
|
- margin-bottom: 0;
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+}
|
|
|
+.action-buttons {
|
|
|
+ display: flex;
|
|
|
+ flex: 0 0 auto;
|
|
|
+ gap: 10px;
|
|
|
+ margin-right: 20px;
|
|
|
+ .button {
|
|
|
+ margin-bottom: 0;
|
|
|
}
|
|
|
}
|
|
|
.reject-reason-content {
|