Commit 35c87c70 by 无尘

fix: 修改标签

parent ac59c573
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 17:16:25
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 15:34:57
* @LastEditTime: 2020-09-07 16:03:30
-->
<!--
......@@ -191,6 +191,7 @@ export default {
linkId: that.form.linkId,
childList: JSON.stringify(that.form.childList),
categoryId: that.form.categoryId,
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId
};
if (that.form.tagId) {
......
<!--
* @Descripttion: 导购标签编辑
* @Descripttion: 导购标签分类编辑
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-09-01 13:53:59
* @LastEditors: 无尘
* @LastEditTime: 2020-09-04 10:33:16
* @LastEditTime: 2020-09-07 16:03:02
-->
<!--
<tag-classify-dialog :edit-row="editRow" @closeClassify="closeClassify"></tag-classify-dialog>
<tag-classify-dialog :brand-id="brandId" :edit-row="editRow" @closeClassify="closeClassify"></tag-classify-dialog>
import tagClassifyDialog from '@/components/app/my-customer/tag-classify-dialog.vue';
-->
<template>
......@@ -43,6 +43,10 @@ export default {
limitInput
},
props: {
brandId: {
type: String,
default: ''
},
editRow: {
type: Object,
default() {
......@@ -108,6 +112,7 @@ export default {
that.loadBtn = true;
const param = {
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId,
categoryId: that.form.categoryId,
categoryName: emojiToStr(that.form.categoryName)
};
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 11:09:16
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 15:45:50
* @LastEditTime: 2020-09-07 16:06:03
-->
<!--
<tag-classify-list :tag-list="tagList" :current-classify-id="currentClassifyId" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
......@@ -25,7 +25,7 @@
</li>
<li v-if="tagList.length == 0" class="no-data" >暂无数据</li>
</ul>
<tag-classify-dialog v-if="showTagClass" :edit-row="editRow" @closeClassify="closeClassify"></tag-classify-dialog>
<tag-classify-dialog v-if="showTagClass" :brand-id="brandId" :edit-row="editRow" @closeClassify="closeClassify"></tag-classify-dialog>
</div>
</template>
......@@ -41,6 +41,10 @@ export default {
tagClassifyDialog
},
props: {
brandId: {
type: String,
default: ''
},
tagList: {
type: Array,
default: () => []
......@@ -52,6 +56,7 @@ export default {
},
data() {
return {
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
editRow: {},
showTagClass: false
};
......@@ -112,7 +117,12 @@ export default {
},
delTagData(categoryId) {
const that = this;
const para = { categoryId };
const para = {
categoryId,
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId
};
delClassify(para)
.then(res => {
that.$emit('refreshClassify');
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 15:38:09
* @LastEditTime: 2020-09-07 15:59:47
-->
<template>
......@@ -54,7 +54,7 @@
</div>
</div>
</div>
<tag-classify-dialog v-if="showTagCate" @closeClassify="closeClassify"></tag-classify-dialog>
<tag-classify-dialog v-if="showTagCate" :brand-id="brandId" @closeClassify="closeClassify"></tag-classify-dialog>
<edit-tag-dialog v-if="showTagDialog" :brand-id="brandId" :edit-row="editRow" @closeTag="closeTag"></edit-tag-dialog>
<edit-visiable v-if="showTagVisiable" :brand-id="brandId" :set-item-id="setItemId" :set-type="'tag'" :select-mode="selectMode" :range-data="rangeData" @refreshData="refreshData"></edit-visiable>
</div>
......@@ -213,7 +213,11 @@ export default {
},
getTagData(tagId) {
const that = this;
const para = { tagId };
const para = {
tagId,
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId
};
getTagDetail(para)
.then(res => {
that.editRow = res.result || {};
......@@ -234,7 +238,11 @@ export default {
},
getVisiableData(tagId) {
const that = this;
const para = { tagId };
const para = {
tagId,
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId,
};
getTagVisiable(para)
.then(res => {
that.selectMode = res.result.storeMode;
......@@ -273,7 +281,12 @@ export default {
},
delTagData(tagId, linkId) {
const that = this;
const para = { tagId, linkId };
const para = {
tagId,
linkId,
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId
};
delClerkTag(para)
.then(res => {
that.getTableList();
......
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