Commit b1f63843 by 李长胜

修改操作列问题

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