Commit eb00c882 by 陈羽

update: update

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