【新增】打印
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<template slot="content">
|
||||
<ai-search-bar>
|
||||
<template #left>
|
||||
<el-button type="primary" size="small" @click="toAdd">添加</el-button>
|
||||
<el-button type="primary" size="small" @click="toAdd('')">添加</el-button>
|
||||
</template>
|
||||
<template #right>
|
||||
</template>
|
||||
@@ -24,8 +24,8 @@
|
||||
<el-table-column slot="options" label="操作" align="center" fixed="right" width="220px">
|
||||
<template v-slot="{ row }">
|
||||
<div class="table-options">
|
||||
<el-button type="text" @click="toAddSku(row.url)">添加SKU</el-button>
|
||||
<el-button type="text" @click="toAdd(row.url)">编辑</el-button>
|
||||
<el-button type="text" @click="toAddSku(row.id)">添加SKU</el-button>
|
||||
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
|
||||
<el-button type="text" @click="toDetail(row.url)">删除</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@@ -46,12 +46,7 @@
|
||||
{ prop: 'count', label: '绑定SKU数量', align: 'center' },
|
||||
{ prop: 'createTime', label: '创建时间', align: 'center' },
|
||||
],
|
||||
tableData: [
|
||||
{
|
||||
name: '电池',
|
||||
count: 2
|
||||
}
|
||||
],
|
||||
tableData: [],
|
||||
total: 0,
|
||||
search: {
|
||||
current: 1,
|
||||
@@ -65,12 +60,12 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
toAdd () {
|
||||
this.$router.push('/addLabelsTemplate')
|
||||
toAdd (id = '') {
|
||||
this.$router.push(`/addLabelsTemplate?id=${id}`)
|
||||
},
|
||||
|
||||
toAddSku () {
|
||||
this.$router.push('/skuManage')
|
||||
toAddSku (id) {
|
||||
this.$router.push(`/skuManage?id=${id}`)
|
||||
},
|
||||
|
||||
getList () {
|
||||
|
||||
Reference in New Issue
Block a user