Commit 2b2b42ce by 杨北旺

提交

1 parent e0b8ebc6
const url = '/rop-scrm-equity/router' const url = '/rop-scrm-equity/router'
const car_url = '/rop-scrm-carlife/router'
export default { export default {
/**获取员工销售的无忧卡订单列表 */ /**获取员工销售的无忧卡订单列表 */
orderListApi(data) { orderListApi(data) {
...@@ -56,13 +57,33 @@ export default { ...@@ -56,13 +57,33 @@ export default {
}, },
/**上传图片 */ /**上传图片 */
uploadImageApi(data){ uploadImageApi(data){
data.method = 'scrm.api.equity.common.upload.image' // data.method = 'scrm.api.equity.common.upload.image'
data.method = 'scrm.api.carlife.common.uploadImg'
return window.$HTTP({ return window.$HTTP({
url, // url,
url:car_url,
data, data,
returnAll: true, returnAll: true,
sign: true, sign: true,
noSignAttr: ['file'], noSignAttr: ['file'],
}) })
} },
// 核赔资料图片上传列表
claimsClassifyApi(data){
data.method = 'scrm.api.equity.service.attachment.classify.list'
return window.$HTTP({
url,
data,
returnAll: true
})
},
// 核赔资料图片上传
claimsClassifyuploadApi(data){
data.method = 'scrm.api.equity.service.claims.phone.attachment.save'
return window.$HTTP({
url,
data,
returnAll: true
})
},
} }
...@@ -56,10 +56,12 @@ const actions = { ...@@ -56,10 +56,12 @@ const actions = {
}, },
navigation({ dispatch }) { navigation({ dispatch }) {
dispatch('registerHttp')
state.showWindow = true state.showWindow = true
}, },
registerHttp({}, sessionId = '') { registerHttp({}, sessionId = '') {
window.$HTTP = new Http({ ...window.$fetchConfig, alert: Notify, headers: { token: sessionId } }) // window.$HTTP = new Http({ ...window.$fetchConfig, alert: Notify, headers: { token: sessionId } })
window.$HTTP = new Http({ ...window.$fetchConfig, alert: Notify, headers: { token: 'scrm-base-39095f3d-5510-41a2-8ac1-f3e26687f426-rop' } })
} }
} }
const getParams = name => { const getParams = name => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!