|
|
@@ -9,14 +9,6 @@
|
|
|
<span class="status-danger" v-else>未设置</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="商品类型" prop="truename" width="200">
|
|
|
- <template #default="scope">
|
|
|
- <div class="tag-flex" v-if="scope.row.type.length > 0">
|
|
|
- <el-tag v-for="(item,indx) in scope.row.type" :key="indx">{{ item }}</el-tag>
|
|
|
- </div>
|
|
|
- <span class="status-danger" v-else>未开通</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column label="营业时间" prop="agent" width="150">
|
|
|
<template #default="scope">
|
|
|
<span v-if="scope.row.start_at">{{ scope.row.start_at }}-{{ scope.row.end_at }}</span>
|
|
|
@@ -47,25 +39,26 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="创建时间" prop="create_at" width="180"></el-table-column>
|
|
|
- <el-table-column label="操作" width="140" align="left" fixed="right">
|
|
|
+ <el-table-column label="操作" width="200" align="left" fixed="right">
|
|
|
<template #default="scope">
|
|
|
- <el-button-group>
|
|
|
- <el-button size="small" @click="table_view(scope.row)">编辑</el-button>
|
|
|
- <el-button type="danger" size="small" @click="table_del(scope.row)">删除</el-button>
|
|
|
- </el-button-group>
|
|
|
+ <el-button type="primary" size="small" @click="table_cate(scope.row)">品类</el-button>
|
|
|
+ <el-button size="small" @click="table_view(scope.row)">编辑</el-button>
|
|
|
+ <el-button type="danger" size="small" @click="table_del(scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</scTable>
|
|
|
<formMain ref="formMain" @success="handleSuccess"></formMain>
|
|
|
<comboMain ref="comboMain" @success="handleSuccess"></comboMain>
|
|
|
+ <categoryMain ref="categoryMain" @success="handleSuccess"></categoryMain>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import formMain from './form';
|
|
|
import comboMain from './combo';
|
|
|
+import categoryMain from './category';
|
|
|
export default {
|
|
|
components: {
|
|
|
- formMain,comboMain
|
|
|
+ formMain,comboMain,categoryMain
|
|
|
},
|
|
|
data(){
|
|
|
return {
|
|
|
@@ -79,6 +72,11 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ table_cate(data){
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.categoryMain.open("add").setData(data)
|
|
|
+ })
|
|
|
+ },
|
|
|
table_auth(data){
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.comboMain.open("edit").setData(data)
|