Commit 55b47129 by 无尘

fix: 修改数据维度

parent 712713e3
......@@ -4,17 +4,17 @@
* @Author: 无尘
* @Date: 2020-09-01 11:09:16
* @LastEditors: 无尘
* @LastEditTime: 2020-09-03 15:24:17
* @LastEditTime: 2020-09-07 14:57:46
-->
<!--
<tag-classify-list :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
<tag-classify-list :tag-list="tagList" :current-classify-id="currentClassifyId" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
import tagClassifyList from '@/components/app/my-customer/tag-classify-list.vue';
-->
<template>
<div>
<ul class="tag-classify-body">
<li :class="['tag-classify-item', { active: currentClassifyId == item.tagCategoryId }]" v-for="(item, index) in tagList" :key="item.tagCategoryId+index" @click="changeClassify(index, item)">
<span class="tag-classify-name">{{ item.tagCategoryName }}</span>
<li :class="['tag-classify-item', { active: currentClassifyId == item.categoryId }]" v-for="(item, index) in tagList" :key="item.categoryId+index" @click="changeClassify(index, item)">
<span class="tag-classify-name">{{ item.categoryName || '--' }}</span>
<el-dropdown placement="bottom-start">
<i class="iconfont icongengduo edit-icon"></i>
<el-dropdown-menu slot="dropdown">
......@@ -89,7 +89,7 @@ export default {
if (res == 'close') {
return false;
}
that.editRow.tagCategoryName = res;
that.editRow.categoryName = res;
},
/**
* @description: 删除分类
......@@ -106,13 +106,13 @@ export default {
type: 'warning'
})
.then(() => {
that.delTagData(row.tagCategoryId);
that.delTagData(row.categoryId);
})
.catch(() => {});
},
delTagData(tagCategoryId) {
delTagData(categoryId) {
const that = this;
const para = { tagCategoryId };
const para = { categoryId };
delClassify(para)
.then(res => {
that.$emit('refreshClassify');
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 11:18:38
* @LastEditTime: 2020-09-07 14:57:59
-->
<template>
......@@ -14,7 +14,7 @@
<div class="clerk-tag-add text-center">
<el-button icon="el-icon-plus" @click="toAddCate">新建分类</el-button>
</div>
<tag-classify-list :tag-list="tagsClassifyData" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
<tag-classify-list :tag-list="tagsClassifyData" :current-classify-id="currentClassify" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
</div>
<div class="clerk-tag-right p-20 border-box">
<div class="clerk-tag-search">
......@@ -309,7 +309,7 @@ export default {
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId,
keyword: that.searchVal,
tagCategoryId: that.currentClassify
categoryId: that.currentClassify
};
getClerkTag(para)
.then(res => {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 11:36:51
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 14:50:22
* @LastEditTime: 2020-09-07 15:14:20
-->
<template>
......@@ -189,9 +189,13 @@ export default {
that.loadingService = false;
if(res.result.cards && res.result.cards.length){
that.memberCardData = that.sortTable(res.result.cards);
}else {
that.memberCardData = [];
}
if(res.result.services && res.result.services.length){
that.serviceNumData = that.sortTable(res.result.services);
}else {
that.serviceNumData = [];
}
})
.catch(function(error) {
......@@ -216,6 +220,8 @@ export default {
brandId(val) {
const that = this;
if (val) {
that.memberCardData = [];
that.serviceNumData = [];
that.getMemberCrad();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment