Commit eb00c882 by 陈羽

update: update

parent 1b97e3f5
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
that.loading = true; that.loading = true;
let para = { let para = {
...that.pageParams, ...that.pageParams,
enterpriseId: localStorage.getItem('userInfoBrandId'), enterpriseId: sessionStorage.getItem('userInfoBrandId'),
storeId: that.$route.params.id storeId: that.$route.params.id
}; };
if (this.$route.query.ecmPlanId) { if (this.$route.query.ecmPlanId) {
...@@ -255,7 +255,7 @@ export default { ...@@ -255,7 +255,7 @@ export default {
showDetail(item) { showDetail(item) {
const that = this; const that = this;
that.finishDetail = { that.finishDetail = {
enterpriseId: localStorage.getItem('userInfoBrandId'), enterpriseId: sessionStorage.getItem('userInfoBrandId'),
taskId: item.taskId taskId: item.taskId
}; };
this.finishDetailShow = true; this.finishDetailShow = true;
...@@ -267,7 +267,7 @@ export default { ...@@ -267,7 +267,7 @@ export default {
showPreview(item) { showPreview(item) {
const that = this; const that = this;
let para = { let para = {
enterpriseId: localStorage.getItem('userInfoBrandId'), enterpriseId: sessionStorage.getItem('userInfoBrandId'),
taskId: item.taskId taskId: item.taskId
}; };
postRequest('/haoban-task-manage-web/market/clue/web/send-task-preview', para) postRequest('/haoban-task-manage-web/market/clue/web/send-task-preview', para)
......
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
that.loading = true; that.loading = true;
let para = { let para = {
...that.pageParams, ...that.pageParams,
enterpriseId: localStorage.getItem('userInfoBrandId'), enterpriseId: sessionStorage.getItem('userInfoBrandId'),
qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId, qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId,
taskType: 2 taskType: 2
}; };
...@@ -204,11 +204,9 @@ export default { ...@@ -204,11 +204,9 @@ export default {
}, },
watch: { watch: {
brandId(newV) { brandId(newV) {
console.log('brandId');
this.getTableList(); this.getTableList();
}, },
$route(to, from) { $route(to, from) {
console.log('route');
if (!this.$route.query.ecmPlanId) { if (!this.$route.query.ecmPlanId) {
this.getTableList(); this.getTableList();
} }
...@@ -216,7 +214,7 @@ export default { ...@@ -216,7 +214,7 @@ export default {
}, },
mounted() { mounted() {
const that = this; const that = this;
that.getTableList(); if (this.brandId) that.getTableList();
if (this.$route.query.ecmPlanId) { if (this.$route.query.ecmPlanId) {
that.$emit('showTab', 2); that.$emit('showTab', 2);
} else { } else {
......
...@@ -175,7 +175,7 @@ export default { ...@@ -175,7 +175,7 @@ export default {
that.loading = true; that.loading = true;
let para = { let para = {
...that.pageParams, ...that.pageParams,
enterpriseId: localStorage.getItem('userInfoBrandId'), enterpriseId: sessionStorage.getItem('userInfoBrandId'),
qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId
}; };
if (para.date) { if (para.date) {
......
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
}, },
selectBrandId(val) { selectBrandId(val) {
this.activeBrand = val; this.activeBrand = val;
localStorage.setItem('userInfoBrandId', val); sessionStorage.setItem('userInfoBrandId', val);
}, },
/** /**
* 各路由返回 tabId * 各路由返回 tabId
......
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
}) })
.then(() => { .then(() => {
let para = { let para = {
enterpriseId: localStorage.getItem('userInfoBrandId'), enterpriseId: sessionStorage.getItem('userInfoBrandId'),
qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId
}; };
if (that.callType.length) { if (that.callType.length) {
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
getDeatil() { getDeatil() {
const that = this; const that = this;
let para = { let para = {
enterpriseId: localStorage.getItem('userInfoBrandId'), enterpriseId: sessionStorage.getItem('userInfoBrandId'),
qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId
}; };
postRequest('/haoban-task-manage-web/market/clue/web/get-setting', para) postRequest('/haoban-task-manage-web/market/clue/web/get-setting', para)
......
...@@ -234,7 +234,7 @@ export default { ...@@ -234,7 +234,7 @@ export default {
that.loading = true; that.loading = true;
let para = { let para = {
...that.pageParams, ...that.pageParams,
enterpriseId: localStorage.getItem('userInfoBrandId'), enterpriseId: sessionStorage.getItem('userInfoBrandId'),
storeId: that.$route.params.id storeId: that.$route.params.id
}; };
if (this.$route.query.ecmPlanId) { if (this.$route.query.ecmPlanId) {
...@@ -282,7 +282,7 @@ export default { ...@@ -282,7 +282,7 @@ export default {
const that = this; const that = this;
that.loading = true; that.loading = true;
const para = { const para = {
enterpriseId: localStorage.getItem('userInfoBrandId'), enterpriseId: sessionStorage.getItem('userInfoBrandId'),
taskId: item.taskId taskId: item.taskId
}; };
getRequest('/haoban-task-manage-web/market/clue/web/task-finish-info', para) getRequest('/haoban-task-manage-web/market/clue/web/task-finish-info', para)
......
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
that.loading = true; that.loading = true;
let para = { let para = {
...that.pageParams, ...that.pageParams,
enterpriseId: localStorage.getItem('userInfoBrandId'), enterpriseId: sessionStorage.getItem('userInfoBrandId'),
qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId
}; };
if (para.date) { if (para.date) {
......
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
that.loading = true; that.loading = true;
let para = { let para = {
...that.pageParams, ...that.pageParams,
enterpriseId: localStorage.getItem('userInfoBrandId'), enterpriseId: sessionStorage.getItem('userInfoBrandId'),
qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId qywxEnterpriseId: JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId
}; };
if (para.date) { if (para.date) {
......
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