隐藏店铺配置的店铺装修

This commit is contained in:
gyq 2024-09-24 15:13:05 +08:00
parent 19be296326
commit d1893abd05
2 changed files with 17 additions and 9 deletions

View File

@ -71,15 +71,17 @@
</el-button>
</template>
</el-table-column>
<el-table-column label="耗材信息">
<el-table-column label="耗材信息" width="200">
<template v-slot="scope">
<div v-if="scope.row.conInfos && scope.row.conInfos.length">
<span v-for="item in scope.row.conInfos" :key="item.id">{{ item.conName }}</span>
<div class="cons_wrap">
<div v-if="scope.row.conInfos && scope.row.conInfos.length">
<span v-for="item in scope.row.conInfos" :key="item.id">{{ item.conName }}</span>
</div>
<el-button type="text" @click="showBindCons(scope.row)">
绑定
<i class="el-icon-edit"></i>
</el-button>
</div>
<el-button type="text" @click="showBindCons(scope.row)">
绑定
<i class="el-icon-edit"></i>
</el-button>
</template>
</el-table-column>
<el-table-column label="上架">
@ -367,6 +369,12 @@ export default {
</script>
<style scoped lang="scss">
.cons_wrap {
display: flex;
flex-wrap: wrap;
align-items: center;
}
.handle {
font-size: 18px;
color: #999;

View File

@ -6,7 +6,7 @@
<el-tab-pane label="基础配置" name="2"></el-tab-pane>
<!-- <el-tab-pane label="通知配置" name="3"></el-tab-pane> -->
<el-tab-pane label="安全设置" name="4"></el-tab-pane>
<el-tab-pane label="店铺装修" name="5"></el-tab-pane>
<!-- <el-tab-pane label="店铺装修" name="5"></el-tab-pane> -->
<el-tab-pane label="跳转小程序" name="6" v-if="shopId == 1"></el-tab-pane>
<el-tab-pane label="通知中心" name="7"></el-tab-pane>
<el-tab-pane label="店铺收款码" name="9"></el-tab-pane>
@ -49,7 +49,7 @@ export default {
},
data() {
return {
activeName: '5',
activeName: '1',
shopId: localStorage.getItem('shopId')
}
}