Commit b1f63843 by 李长胜

修改操作列问题

1 parent b3380984
......@@ -10,7 +10,7 @@
<span slot="list" slot-scope="scope">
<div v-for="(item, index) in scope.scope.list" :key="index">{{ item.couponName }}×{{ item.serviceQuantity }}</div>
</span>
<span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope">
<span class="table-btns" slot="optionsFun" slot-scope="scope" :data="scope.scope">
<template v-if="scope.scope.state === 0">
<el-button type="text" @click="handleEdit(scope.scope)">编辑</el-button>
<el-button type="text" @click="handleUpOption(scope.scope)">上架</el-button>
......@@ -28,17 +28,21 @@
</span>
</GLTable>
</div>
<!-- btnCancelLabel="关闭" -->
<!-- btnCancelLabel="关闭" -->
<glsx-dialog title="示例效果" width="1142px" :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" typeName="primary" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<div class="content-body">
<div class="content-item col1">
<div class="subTitle">1、管理后台先创建套餐</div>
<div class="subTitle">
1、管理后台先创建套餐
</div>
<div class="imageWrap">
<img src="@/assets/table.png" alt="" />
</div>
</div>
<div class="content-item col2">
<div class="subTitle">2、小程序端进行展示</div>
<div class="subTitle">
2、小程序端进行展示
</div>
<div class="twoImageWrap">
<img src="@/assets/card1.png" alt="" />
<img src="@/assets/card2.png" alt="" />
......@@ -51,7 +55,7 @@
<script>
import glsxDialog from '@/components/glsx-dialog'
import url from '@/assets/empty.png'
import url from "@/assets/empty.png"
import { getSetMealListApi, deleteSetMeal, upDownPackage } from '@/api/modules/setmeal'
import { getLoginCount } from '@/api/modules/service'
......@@ -78,7 +82,7 @@ export default {
// 表格参数
tableParams: {
listName: 'list',
tableOption: true,
// tableOption: true,
tableColumns: [
{
label: '套餐名称',
......@@ -111,9 +115,14 @@ export default {
formatter: cellValue => {
return this.baseDataList.stateList.find(item => item.confId == cellValue.state).confName
}
},
{
label: '操作',
prop: 'optionsFun',
addHtml: 'optionsFun',
width: 160
}
],
]
},
baseDataList: {
stateList: stateList
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!