Commit 1105d430 by 李伟康

修复BUG

1 parent 4c30b467
...@@ -51,7 +51,7 @@ const exportExcel = params => { ...@@ -51,7 +51,7 @@ const exportExcel = params => {
*/ */
const refreshInst = params => { const refreshInst = params => {
return http_sop({ return http_sop({
url: `process/sop/inst/refresh`, url: `process/sop/api/inst/refresh/${params.instId}`,
method: 'get', method: 'get',
data: params, data: params,
sign: false sign: false
......
...@@ -8,32 +8,69 @@ ...@@ -8,32 +8,69 @@
*/ */
// 本地环境配置 // 本地环境配置
module.exports = { module.exports = {
title: 'scrm-sub-marketing',
response: { response: {
data_key: 'data', data_key: 'data',
message_key: 'message', message_key: 'message',
code_key: 'code', code_key: ['code', 'returnCode'],
code_success_value: '0', code_success_value: '0',
errId_logout_value: '21', errId_logout_value: '21',
code_message_map: {} code_message_map: {}
},
response_sop: {
data_key: 'data',
message_key: 'message',
code_key: ['code', 'returnCode'],
code_success_value: '200',
errId_logout_value: '21',
code_message_map: {}
}, },
request: { request: {
// baseURL: 'http://scrm.test.glsx.com.cn/', baseURL: "//scrm.test.glsx.com.cn",
baseURL: 'http://192.168.2.42:8064/', // 设置超时时间
// 设置超时时间 timeout: 180000,
timeout: 180000, // 携带凭证
// 携带凭证 withCredentials: true,
withCredentials: true, // 返回数据类型
// 返回数据类型 responseType: 'json'
responseType: 'json' },
request_sop: {
baseURL: "//gateway.platform.test.glsx.com.cn",
// 设置超时时间
timeout: 180000,
// 携带凭证
withCredentials: true,
// 返回数据类型
responseType: 'json'
},
request_merchant: {
baseURL: "//rop-merchant.test.glsx.com.cn",
// 设置超时时间
timeout: 180000,
// 携带凭证
withCredentials: true,
// 返回数据类型
responseType: 'json'
},
request_common: {
baseURL: "//didicb.glsx.com.cn",
// 设置超时时间
timeout: 180000,
// 携带凭证
withCredentials: true,
// 返回数据类型
responseType: 'json'
}, },
sign: { sign: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637', appKey: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0', v: '1.0.0',
format: 'json', format: 'json',
source: '' source: 'scrm-home'
}, },
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b', sign_common: {
app_key: '48e5e13229b82c1b4e6e8c96151f0637',
cdn: 'https://www.xxx.cn/static' v: '1.0.0',
} format: 'json',
source: 'glsx'
},
secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
}
\ No newline at end of file \ No newline at end of file
...@@ -11,12 +11,15 @@ ...@@ -11,12 +11,15 @@
let cfg = require('./conf.js') let cfg = require('./conf.js')
import { Http } from 'glsx-common' import { Http } from 'glsx-common'
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
export const fetchConfig = function(common) { export const fetchConfig = function (common) {
// let { request } = cfg
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
let params = { moduleName: 'scene', mockUrl: 'https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } } let params = { moduleName: 'scene', mockUrl: 'https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return common.utils.getConfig(params) return common.utils.getConfig(params)
} }
export const config = { export const config = {
install(vue, cfg) { install (vue, cfg) {
vue.prototype.$config = cfg vue.prototype.$config = cfg
} }
} }
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div :class="['sticky-btns', { hiddenExport: viewType == 1 }]"> <div :class="['sticky-btns', { hiddenExport: viewType == 1 }]">
<div class="btns"> <div class="btns">
<el-button type="default" @click="refreshInst" plain>状态刷新</el-button> <el-button type="default" @click="refreshInst" plain>状态刷新</el-button>
<el-button type="default" @click="changeViewType">切换为看板视图</el-button> <el-button type="default" @click="changeViewType">切换为{{viewType == 1?'列表':'看板'}}视图</el-button>
<el-button type="default" @click="handleExport">导出</el-button> <el-button type="default" @click="handleExport">导出</el-button>
</div> </div>
</div> </div>
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
}, },
handleExport () { handleExport () {
this.$apis.journey.exportExcel({ ...this.searchForm, pageSize: 10000, pageNumber: 1 }).then(res => { this.$apis.journey.exportExcel({ ...this.searchForm, pageSize: 10000, pageNumber: 1 }).then(res => {
if (res.url) exportFn(res.url) if (res.secureUrl) exportFn(res.secureUrl)
}) })
}, },
changeViewType () { changeViewType () {
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<div class="line-box"> <div class="line-box">
<div <div
class="line" class="line"
:style="[{ width: (100 * (cindex + 1)) / i.length + '%' }]" :style="[{ width: c.width }]"
></div> ></div>
</div> </div>
</div> </div>
......
...@@ -143,11 +143,10 @@ export default { ...@@ -143,11 +143,10 @@ export default {
}, },
{ {
label: '旅程', label: '旅程',
prop: 'sopJourneyStage',
minWidth: '200px', minWidth: '200px',
formatter: cell => { formatter: cell => {
const { journeyList } = this.$parent const { journeyList } = this.$parent
return journeyList.find(e => e.instId == cell.sopJourneyId).instName return journeyList.find(e => e.instId == this.params.sopJourneyId).instName
} }
}, },
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!