Commit 18be4023 by 杨明

fixed

1 parent 7e6345da
...@@ -36,6 +36,16 @@ ...@@ -36,6 +36,16 @@
<div class="service-tab"> <div class="service-tab">
<div class="tab-item" :class="{ active: serviceIndex == item.type }" v-for="(item, index) in serviceTabList" :key="index" @click="serviceIndex = item.type">{{ item.label }}</div> <div class="tab-item" :class="{ active: serviceIndex == item.type }" v-for="(item, index) in serviceTabList" :key="index" @click="serviceIndex = item.type">{{ item.label }}</div>
<div class="tab-border" :style="{ left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px' }"></div> <div class="tab-border" :style="{ left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px' }"></div>
<div class="tab-right">
<div class="refresh-btn" @click="getList">
<i class="el-icon-refresh-right"></i>
刷新列表
</div>
<div class="add-btn" @click="addCoupon">
<i class="el-icon-plus"></i>
新建
</div>
</div>
</div> </div>
<div v-for="(item, index) in serviceTabList" :key="index"> <div v-for="(item, index) in serviceTabList" :key="index">
<GLTable v-loading="loading" v-show="serviceIndex == item.type" :ref="'serviceRef' + item.type" :tableData="serviceList" :tableParams="serviceTableParams" @refreshTable="getServiceList" @select="handleSelectionServiceTable"> <GLTable v-loading="loading" v-show="serviceIndex == item.type" :ref="'serviceRef' + item.type" :tableData="serviceList" :tableParams="serviceTableParams" @refreshTable="getServiceList" @select="handleSelectionServiceTable">
...@@ -315,6 +325,9 @@ export default { ...@@ -315,6 +325,9 @@ export default {
} }
this.setPackage(Object.assign(this.packageList, { selectedCarList: this.selectedCarList })) this.setPackage(Object.assign(this.packageList, { selectedCarList: this.selectedCarList }))
}, },
addCoupon() {
this.$history.push('/marketing/couponManage/index')
},
getList() { getList() {
switch (+this.currentIndex) { switch (+this.currentIndex) {
case 1: case 1:
...@@ -551,6 +564,21 @@ export default { ...@@ -551,6 +564,21 @@ export default {
background: #ffffff; background: #ffffff;
transition: all 0.5s; transition: all 0.5s;
} }
.tab-right {
display: flex;
position: absolute;
right: -30vw;
top: 0px;
.refresh-btn {
cursor: pointer;
color: #666666;
}
.add-btn {
cursor: pointer;
margin-left: 10px;
color: #5850ff;
}
}
.tab-item { .tab-item {
width: 88px; width: 88px;
text-align: center; text-align: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!