Commit 73a5fcdd by caoyanzhi

update: 调整请求参数

parent 74ea55c7
...@@ -123,8 +123,11 @@ export default { ...@@ -123,8 +123,11 @@ export default {
*/ */
getChildData(item) { getChildData(item) {
const that = this; const that = this;
const userInfos = JSON.parse(sessionStorage.getItem('userInfos') || '{}');
const wxEnterpriseId = userInfos.wxEnterpriseId;
let para = { let para = {
enterpriseId: item.enterpriseId || that.brandId, enterpriseId: item.enterpriseId || that.brandId,
wxEnterpriseId,
departmentId: item.departmentId, // departmentId: item.departmentId, //
type: item.type // type: item.type //
}; };
......
...@@ -370,9 +370,11 @@ export default { ...@@ -370,9 +370,11 @@ export default {
*/ */
getGicData() { getGicData() {
const that = this; const that = this;
const userInfos = JSON.parse(sessionStorage.getItem('userInfos') || '{}');
const wxEnterpriseId = userInfos.wxEnterpriseId;
let para = { let para = {
enterpriseId: that.brandId, enterpriseId: that.brandId,
wxEnterpriseRelatedId: that.wxEnterpriseRelatedId wxEnterpriseId
}; };
getRequest('/haoban-app-customer-web/gic-department-list', para) getRequest('/haoban-app-customer-web/gic-department-list', para)
.then(async res => { .then(async res => {
......
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