Commit 25d1191f by 无尘

fix: 修改接口参数

parent 8551790b
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-04-14 09:50:16
* @LastEditors: 无尘
* @LastEditTime: 2020-09-18 09:23:57
* @LastEditTime: 2020-09-21 10:28:33
-->
<!--
<customer-assign v-if="assignShow" :store-brand-id="storeBrandId" :brand-id="brandId" :customer-assign-total="customerAssignTotal" :clerk-id="clerkId" :search-params="searchInput" :choose-all="selectRadio" :depart-obj="departObj" :multiple-data="multipleSelection" @closeText="closeText" @submitText="submitText"></customer-assign>
......@@ -294,7 +294,7 @@ export default {
wxEnterpriseId: that.wxEnterpriseId,
storeInfoId: that.departObj.storeInfoId
};
getClerkList(para)
getClerkList(para, { headers: { sign: that.brandId } })
.then(res => {
if (res.code == '0000') {
res.result.forEach(ele => {
......@@ -326,7 +326,7 @@ export default {
clerkId: that.clerkId,
keyword: that.searchParams
};
getMemberCount(para)
getMemberCount(para, { headers: { sign: that.brandId } })
.then(res => {
if (res.code == '0000') {
that.assignPeople = res.result || [];
......@@ -391,7 +391,7 @@ export default {
staffName: that.staffName,
brandId: that.storeBrandId
};
saveAssign(data)
saveAssign(data, { headers: { sign: that.brandId } })
.then(res => {
that.loadBtn = false;
showMsg.showmsg('操作成功', 'success');
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 15:24:12
* @LastEditors: 无尘
* @LastEditTime: 2020-09-08 15:12:53
* @LastEditTime: 2020-09-21 10:28:49
-->
<!--
门店绑定-选择分组
......@@ -159,7 +159,7 @@ export default {
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId
};
getGroupList(para)
getGroupList(para, { headers: { sign: that.brandId } })
.then(async res => {
if (!!res.result && res.result.length) {
res.result.forEach(ele => {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 15:24:42
* @LastEditors: 无尘
* @LastEditTime: 2020-09-11 15:57:27
* @LastEditTime: 2020-09-21 10:29:00
-->
<!--
<customer-store :brand-id="brandId" :select-store="selectStore" @checkStoreIds="checkStoreIds"></customer-store>
......@@ -140,7 +140,7 @@ export default {
pageSize: that.pageSize,
wxEnterpriseId: that.wxEnterpriseId
};
getStoreList(para)
getStoreList(para, { headers: { sign: that.brandId } })
.then(res => {
if (that.pageNum == 1) {
that.stores = JSON.parse(JSON.stringify(res.result.result)) || [];
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 17:16:25
* @LastEditors: 无尘
* @LastEditTime: 2020-09-15 15:59:58
* @LastEditTime: 2020-09-21 10:29:20
-->
<!--
......@@ -199,7 +199,7 @@ export default {
},
addPost(param) {
const that = this;
addClerkTag(param)
addClerkTag(param, { headers: { sign: that.brandId } })
.then(res => {
that.loadBtn = false;
if (res.code == '0000') {
......@@ -216,7 +216,7 @@ export default {
},
editPost(param) {
const that = this;
editClerkTag(param)
editClerkTag(param, { headers: { sign: that.brandId } })
.then(res => {
that.loadBtn = false;
if (res.code == '0000') {
......@@ -241,7 +241,7 @@ export default {
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId
};
getTagClassify(para)
getTagClassify(para, { headers: { sign: that.brandId } })
.then(res => {
that.tagsClassifyData = res.result || [];
that.currentCategoryId ? that.form.categoryId = that.currentCategoryId : '';
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 11:07:46
* @LastEditors: 无尘
* @LastEditTime: 2020-09-15 18:15:18
* @LastEditTime: 2020-09-21 10:30:24
-->
<!--
<edit-visiable :brand-id="brandId" :set-item-id="setItemId" :set-type="setType" :select-mode="selectMode" :range-data="rangeData" @refreshData="refreshData"></edit-visiable>
......@@ -190,7 +190,7 @@ export default {
*/
saveCrowd(params) {
const that = this;
saveVisiable(params)
saveVisiable(params, { headers: { sign: that.brandId } })
.then(res => {
that.loadingBtn = false;
if (res.code == '0000') {
......@@ -211,7 +211,7 @@ export default {
*/
saveTag(params) {
const that = this;
saveTagVisiable(params)
saveTagVisiable(params, { headers: { sign: that.brandId } })
.then(res => {
that.loadingBtn = false;
if (res.code == '0000') {
......
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-08-13 14:02:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-17 16:07:15
* @LastEditTime: 2020-09-21 10:30:50
* @FilePath : haoban-4\src\components\app\my-customer\store-list.vue
-->
<!--
......@@ -216,7 +216,7 @@ export default {
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize // 一页显示个数
};
getStoreList( para)
getStoreList(para, { headers: { sign: that.brandId } })
.then(res => {
that.loading = false;
that.tableData = res.result.result || [];
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 10:31:09
* @LastEditors: 无尘
* @LastEditTime: 2020-09-15 17:41:00
* @LastEditTime: 2020-09-21 10:31:24
-->
<!--
<sync-crowd-dialog :brand-id="brandId" :select-ids="selectIds" :total-num="totalNum" @refreshData="refreshData"></sync-crowd-dialog>
......@@ -149,7 +149,7 @@ export default {
enterpriseId: that.brandId,
sceneCrowdIds: that.multipleSelection.map(ele => ele.sceneCrowdId).join(',')
};
saveSync(params)
saveSync(params, { headers: { sign: that.brandId } })
.then(res => {
that.loadingBtn = false;
if (res.code == '0000') {
......@@ -269,7 +269,7 @@ export default {
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId
};
getClassifyData(para)
getClassifyData(para, { headers: { sign: that.brandId } })
.then(res => {
that.classifyList = res.result || [];
})
......@@ -292,7 +292,7 @@ export default {
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize, // 一页显示个数
};
getSyncMemberData(para)
getSyncMemberData(para, { headers: { sign: that.brandId } })
.then(res => {
that.loadingPage = false;
that.tableData = res.result.result || [];
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 13:53:59
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 15:25:55
* @LastEditTime: 2020-09-21 10:31:37
-->
<!--
......@@ -118,7 +118,7 @@ export default {
categoryId: that.form.categoryId,
categoryName: emojiToStr(that.form.categoryName)
};
addClassify(param)
addClassify(param, { headers: { sign: that.brandId } })
.then(res => {
that.loadBtn = false;
if (res.code == '0000') {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 11:09:16
* @LastEditors: 无尘
* @LastEditTime: 2020-09-17 10:36:31
* @LastEditTime: 2020-09-21 10:31:46
-->
<!--
<tag-classify-list :tag-list="tagList" :current-classify-id="currentClassifyId" :brand-id="brandId" @refreshClassify="refreshClassify" @resetCurrentId="resetCurrentId" @changeClass="changeClass"></tag-classify-list>
......@@ -124,7 +124,7 @@ export default {
enterpriseId: that.brandId
};
delClassify(para)
delClassify(para, { headers: { sign: that.brandId } })
.then(res => {
// 这里要判断一下当前选中的分类和删除分类是不是同一个
if (categoryId == that.currentClassifyId) {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-17 10:37:12
* @LastEditTime: 2020-09-21 10:26:28
-->
<template>
......@@ -140,7 +140,7 @@ export default {
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId
};
getTagLicense(para)
getTagLicense(para, { headers: { sign: that.brandId } })
.then(res => {
that.licenseData.limit = res.result.limit || 0;
that.licenseData.count = res.result.count || 0;
......@@ -214,7 +214,7 @@ export default {
enterpriseId: that.brandId,
tagIds: arr.map(ele => ele.tagId).join(',')
};
sortClerkTag(para)
sortClerkTag(para, { headers: { sign: that.brandId } })
.then(res => {
that.getTableList();
if (res.code == '0000') {
......@@ -279,7 +279,7 @@ export default {
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId
};
getTagDetail(para)
getTagDetail(para, { headers: { sign: that.brandId } })
.then(res => {
if (res.result && !res.result.tagValueDTOList) {
res.result.tagValueDTOList = [];
......@@ -309,7 +309,7 @@ export default {
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId,
};
getTagVisiable(para)
getTagVisiable(para, { headers: { sign: that.brandId } })
.then(res => {
that.selectMode = String(res.result.storeMode);
that.rangeData = res.result.bindRange ? JSON.parse(res.result.bindRange) : [];
......@@ -355,7 +355,7 @@ export default {
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId
};
delClerkTag(para)
delClerkTag(para, { headers: { sign: that.brandId } })
.then(res => {
that.getTableList();
if (res.code == '0000') {
......@@ -398,7 +398,7 @@ export default {
keyword: that.searchVal,
categoryId: that.currentClassify
};
getClerkTag(para)
getClerkTag(para, { headers: { sign: that.brandId } })
.then(res => {
that.loading = false;
that.tagsData = res.result || [];
......@@ -418,7 +418,7 @@ export default {
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId
};
getTagClassify(para)
getTagClassify(para, { headers: { sign: that.brandId } })
.then(res => {
that.tagsClassifyData = res.result || [];
that.tagsClassifyData.unshift(
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-14 12:09:26
* @LastEditTime: 2020-09-21 10:25:46
-->
<template>
......@@ -148,7 +148,7 @@ export default {
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId,
};
delCrowd(para)
delCrowd(para, { headers: { sign: that.brandId } })
.then(res => {
that.getGroupList();
if (res.code == '0000') {
......@@ -207,7 +207,7 @@ export default {
relationId: sceneCrowdId,
relationType: '0',
};
getVisiable(para)
getVisiable(para, { headers: { sign: that.brandId } })
.then(res => {
that.selectMode = String(res.result.storeMode);
that.rangeData = res.result.bindRange ? JSON.parse(res.result.bindRange) : [];
......@@ -308,7 +308,7 @@ export default {
enterpriseId: that.brandId,
sceneCrowdIds: arr.map(ele => ele.sceneCrowdId).join(',')
};
postSortGroup(para)
postSortGroup(para, { headers: { sign: that.brandId } })
.then(res => {
that.getGroupList();
if (res.code == '0000') {
......@@ -331,7 +331,7 @@ export default {
wxEnterpriseId: that.wxEnterpriseId,
enterpriseId: that.brandId
};
getClassifyData(para)
getClassifyData(para, { headers: { sign: that.brandId } })
.then(res => {
that.classifyList = res.result || [];
})
......@@ -354,7 +354,7 @@ export default {
keyword: that.searchVal,
sceneCrowdCategoryId: that.classifyId
};
getGroupData(para)
getGroupData(para, { headers: { sign: that.brandId } })
.then(res => {
that.loading = false;
if (!!res.result && !!res.result.length) {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-18 11:03:14
* @LastEditTime: 2020-09-21 10:44:38
-->
<template>
<div class="customer-assign-wrap">
......@@ -248,7 +248,7 @@ export default {
openCodes: openCodes.join(','),
switchType: 2
};
saveCustomerSet(para)
saveCustomerSet(para, { headers: { sign: that.brandId } })
.then(res => {
that.loadingSet = false;
that.getSetData();
......@@ -273,7 +273,7 @@ export default {
enterpriseId: that.brandId,
switchType: 2
};
getCustomerSet(para)
getCustomerSet(para, { headers: { sign: that.brandId } })
.then(res => {
if (res.result && !!res.result.length) {
res.result.forEach(ele => {
......@@ -352,10 +352,11 @@ export default {
const that = this;
return new Promise((resolve, reject) => {
let para = {
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId,
storeInfoId: that.storeObj.storeInfoId
};
getAssignStatus(para)
getAssignStatus(para, { headers: { sign: that.brandId } })
.then(res => {
if (res.code == '0000') {
resolve(res.result);
......@@ -553,7 +554,7 @@ export default {
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId,
};
getGroupList(para)
getGroupList(para, { headers: { sign: that.brandId } })
.then(async res => {
if (res.result.length) {
res.result.forEach(ele => {
......@@ -616,7 +617,7 @@ export default {
wxEnterpriseId: that.wxEnterpriseId,
storeInfoId: that.storeObj.storeInfoId
};
getNavChain( params)
getNavChain(params, { headers: { sign: that.brandId } })
.then(res => {
if (res.code == '0000') {
that.navData = res.result || [];
......@@ -640,7 +641,7 @@ export default {
wxEnterpriseId: that.wxEnterpriseId,
storeInfoId: that.storeObj.storeInfoId
};
getListBrand(para)
getListBrand(para, { headers: { sign: that.brandId } })
.then(res => {
that.storeBrandOptions = res.result || [];
that.storeBrandId = res.result.length ? res.result[0].brandId : '';
......@@ -661,7 +662,7 @@ export default {
wxEnterpriseId: that.wxEnterpriseId,
storeInfoId: that.storeObj.storeInfoId
};
getClerkList(para)
getClerkList(para, { headers: { sign: that.brandId } })
.then(res => {
that.clerkOptions = res.result || [];
})
......@@ -688,7 +689,7 @@ export default {
sortCode: that.sortCode,
sortRule: that.sortRule
};
getMemberList(para)
getMemberList(para, { headers: { sign: that.brandId } })
.then(res => {
that.loading = false;
that.tableData = res.result.result || [];
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 10:30:59
* @LastEditTime: 2020-09-21 10:22:42
-->
<template>
<div class="common-app-right">
......@@ -99,7 +99,7 @@ export default {
openCodes: openCodes.join(','),
switchType: 1
};
saveCustomerSet(para)
saveCustomerSet(para, { headers: { sign: that.brandId } })
.then(res => {
that.loading = false;
that.getCustomerData();
......@@ -124,7 +124,7 @@ export default {
enterpriseId: that.brandId,
switchType: '1',
};
getCustomerSet(para)
getCustomerSet(para, { headers: { sign: that.brandId } })
.then(res => {
if (res.result && !!res.result.length) {
res.result.forEach(ele => {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 10:31:37
* @LastEditTime: 2020-09-21 10:41:45
-->
<template>
......@@ -89,7 +89,7 @@ export default {
openCodes: openCodes.join(','),
switchType: '0'
};
saveShowSet(para)
saveShowSet(para, { headers: { sign: that.brandId } })
.then(res => {
that.loading = false;
that.getShowData();
......@@ -114,7 +114,7 @@ export default {
enterpriseId: that.brandId,
switchType: '0',
};
getShowSet(para)
getShowSet(para, { headers: { sign: that.brandId } })
.then(res => {
if (res.result && !!res.result.length) {
res.result.forEach(ele => {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 11:36:51
* @LastEditors: 无尘
* @LastEditTime: 2020-09-21 09:46:49
* @LastEditTime: 2020-09-21 10:22:04
-->
<template>
......@@ -160,7 +160,7 @@ export default {
sorts: arr.map(ele => ele.id).join(','),
type: data == 'memberCardData' ? '0' : '1'
};
saveSortMember(para)
saveSortMember(para, { headers: { sign: that.brandId } })
.then(res => {
that.getMemberCrad();
if (res.code == '0000') {
......
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