提交 18c210de 编写于 作者: kadycui's avatar kadycui 💻

ADD: 未设置项高亮

上级 08117c39
......@@ -44,7 +44,7 @@ const open = (row)=>{
)
}
const emit = defineEmits(["reloadData"])
const loading = ref(false)
const submit = ()=>{
loading.value = true
......@@ -52,6 +52,7 @@ const submit = ()=>{
.then(res=>{
toast("设置轮播图成功")
dialogVisible.value = false
emit("reloadData")
})
.finally(()=>{
loading.value = false
......
......@@ -76,9 +76,11 @@
<div v-if="searchForm.tab != 'delete'">
<el-button class="px-1" type="primary" size="small" text @click="handleEdit(scope.row)">修改</el-button>
<el-button class="px-1" type="primary" size="small" text>商品规格</el-button>
<el-button class="px-1" type="primary" size="small" text
@click="handleSetGoodsBanners(scope.row)" :loading="scope.row.bannersLoading">设置轮播图</el-button>
<el-button class="px-1" type="primary" size="small" text>商品详情</el-button>
<el-button class="px-1" :type="scope.row.goods_banner.length == 0 ? 'danger' : 'primary'" size="small" text
@click="handleSetGoodsBanners(scope.row)"
:loading="scope.row.bannersLoading"
>设置轮播图</el-button>
<el-button class="px-1" :type="scope.row.goods_banner.length == 0 ? 'danger' : 'primary'" size="small" text>商品详情</el-button>
<el-popconfirm title="是否删除该商品?" confirm-button-text="确认" cancel-button-text="取消"
@confirm="handleDelete(scope.row.id)">
<template #reference>
......@@ -152,7 +154,7 @@
</el-form>
</FormDrawer>
</el-card>
<banners ref="bannerRef"/>
<banners ref="bannerRef" @reload-data="getData"/>
</div>
</template>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册