add: 用户列表增加优惠券列表

This commit is contained in:
2025-09-16 09:49:26 +08:00
parent 82dcba273e
commit 07146b89c1
3 changed files with 141 additions and 0 deletions

View File

@@ -86,6 +86,15 @@
style="margin-left: 2px"
/>
</template>
<template #coupon="scope">
<div>
1
<el-link :underline="false" type="primary" @click="handleViewCoupon(scope.row)">
查看详情
</el-link>
</div>
</template>
</page-content>
<!-- 新增 -->
@@ -108,10 +117,14 @@
@formDataChange="formDataChange"
@submit-click="handleSubmitClick"
></page-modal>
<!-- 用户优惠券详情 -->
<UserCouponDialog ref="userCouponDialogRef"></UserCouponDialog>
</div>
</template>
<script setup >
import UserCouponDialog from "./components/user-coupon-dialog.vue";
import usePage from "@/components/CURD/usePage";
import addModalConfig from "./config/add";
import contentConfig from "./config/content";
@@ -121,6 +134,12 @@ import searchConfig from "./config/search";
import { returnOptionsLabel } from "./config/config";
import shopUserApi from "@/api/account/shopUser";
const editMoneyModalRef = ref(null);
const userCouponDialogRef = ref(null);
//查看用户优惠券
function handleViewCoupon(row) {
userCouponDialogRef.value.open(row);
}
const {
searchRef,
contentRef,