Commit fd116c10 by chenwq

saas

1 parent c959c287
import { http } from '@/main'
const url1 = '/rop-scrm-entmicro/router'
const url = '/rop-scrm-shopmall/router'
//门店号选择服务
const getMerchantList = params => {
params.method = 'entmicro.api.merchant.listDepartmentTree.select.merchant'
return http({
url: url1,
method: 'post',
data: params,
sign: true
})
}
const getlistDepartmentTree = params => {
params.method = `entmicro.api.department.listDepartmentTree`
return http({
url: url1,
method: 'GET',
data: params,
sign: true
})
}
// 园区店战报配置
const getYqReportlist = params => {
params.method = `scrm.api.boutiquecoupon.rop.router`
params.routerMethod = 'dj.api.smarcarlife.YqMerchantActionReportConfig.listWithPage'
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'GET',
data: params,
sign: true
})
}
// 更新园区店战报配置
const updateYqConfig = params => {
params.method = `scrm.api.boutiquecoupon.rop.router`
params.routerMethod = 'dj.api.smarcarlife.YqMerchantActionReportConfig.updateConfig'
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'GET',
data: params,
sign: true,
returnAll: true
})
}
// 批量配置众筹活动战报专员
const insertStaff = params => {
params.method = `scrm.api.shopmall.activity.action.report.staff.insert`
return http({
url,
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 根据众筹活动id获取众筹活动战报专员列表(运营版)
const getStaffList = params => {
params.method = `scrm.api.shopmall.activity.action.report.staff.list`
return http({
url,
method: 'post',
data: params,
sign: true
})
}
// 企微高级群聊列表
const getGroupList = params => {
params.method = `entmicro.api.wechatcloudcontrol.batchmessaging.group.list`
return http({
url: url1,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getStaffList, getMerchantList, getlistDepartmentTree, getYqReportlist, updateYqConfig, insertStaff, getGroupList }
...@@ -12,9 +12,10 @@ let instance = null ...@@ -12,9 +12,10 @@ let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, sign_common, request_common, merchantId } = await fetchConfig() const { response, request, sign, secret, sign_common, request_common, merchantId, saasOrder } = await fetchConfig()
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$merchantId = merchantId Vue.prototype.$merchantId = merchantId
Vue.prototype.$saasOrder = saasOrder
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$request = request Vue.prototype.$request = request
......
...@@ -542,7 +542,8 @@ export default { ...@@ -542,7 +542,8 @@ export default {
}, },
async getDepartmentTree() { async getDepartmentTree() {
// let params = { addChildrensFlag: true, queryMerchantId: this.config.merchantId,loginStatus:1 } // let params = { addChildrensFlag: true, queryMerchantId: this.config.merchantId,loginStatus:1 }
let params = { addChildrensFlag: true, queryMerchantId: this.$merchantId, loginStatus: 1 } // let params = { addChildrensFlag: true, queryMerchantId: this.$merchantId, loginStatus: 1 }
let params = { addChildrensFlag: true, queryMerchantId: 44210895, loginStatus: 1 }
let data = await this.$apis.battle.getlistDepartmentTree(params) let data = await this.$apis.battle.getlistDepartmentTree(params)
this.ids = [] this.ids = []
this.automaticData = data this.automaticData = data
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!