|
@@ -32,8 +32,9 @@
|
|
|
@delete="toDelete"
|
|
|
@spec="toSpec"
|
|
|
@copy="toCopy"
|
|
|
- ></data-table> </el-col
|
|
|
- ></el-row>
|
|
|
+ ></data-table>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</span>
|
|
|
|
|
|
<el-row v-if="view === 'info'">
|
|
@@ -114,14 +115,16 @@ const { mapActions: shop } = createNamespacedHelpers('shop');
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
|
- components: { editor: () => import('@/components/editor.vue'), search1: () => import('./parts/search-1.vue') },
|
|
|
+ components: {
|
|
|
+ editor: () => import('@/components/editor.vue'),
|
|
|
+ search1: () => import('./parts/search-1.vue'),
|
|
|
+ },
|
|
|
data: function () {
|
|
|
return {
|
|
|
loadings: true,
|
|
|
view: 'list',
|
|
|
fields: [
|
|
|
{ label: '商品名称', model: 'name', showTip: false },
|
|
|
- // { label: '店铺名称', model: 'shop.name' },
|
|
|
{ label: '商品分类', model: 'tags', format: (i) => this.getTags(i), showTip: false },
|
|
|
{ label: '活动标签', model: 'act_tags', format: (i) => this.getAct_tags(i) },
|
|
|
{ label: '商品状态', model: 'status', format: (i) => this.getStatus(i) },
|
|
@@ -167,7 +170,7 @@ export default {
|
|
|
props: { multiple: true, label: 'label', value: 'code' },
|
|
|
// 活动标签
|
|
|
act_tagsList: [],
|
|
|
-
|
|
|
+ // 商品状态
|
|
|
goodsStatusList: [],
|
|
|
// 商铺列表
|
|
|
shopList: [],
|
|
@@ -209,7 +212,7 @@ export default {
|
|
|
if (res.data.cb_config) this.cb_config = res.data.cb_config;
|
|
|
if (data.shop) {
|
|
|
let list = [];
|
|
|
- let res = await this.shopFetch(data.shop._id);
|
|
|
+ let res = await this.shopFetch(data.shop);
|
|
|
if (this.$checkRes(res)) {
|
|
|
list.push(res.data);
|
|
|
this.$set(this, 'shopList', list);
|