Commit 660e37f2 by 杨明

Merge branch 'v3.19.0' of http://192.168.3.233:8090/saas/scrm-micro-scene into v3.19.0

2 parents ced8ec55 94a332dd
......@@ -51,7 +51,7 @@ const exportExcel = params => {
*/
const refreshInst = params => {
return http_sop({
url: `process/sop/inst/refresh`,
url: `process/sop/api/inst/refresh/${params.instId}`,
method: 'get',
data: params,
sign: false
......
......@@ -8,32 +8,69 @@
*/
// 本地环境配置
module.exports = {
title: 'scrm-sub-marketing',
response: {
data_key: 'data',
message_key: 'message',
code_key: 'code',
code_success_value: '0',
errId_logout_value: '21',
code_message_map: {}
data_key: 'data',
message_key: 'message',
code_key: ['code', 'returnCode'],
code_success_value: '0',
errId_logout_value: '21',
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: {
// baseURL: 'http://scrm.test.glsx.com.cn/',
baseURL: 'http://192.168.2.42:8064/',
// 设置超时时间
timeout: 180000,
// 携带凭证
withCredentials: true,
// 返回数据类型
responseType: 'json'
baseURL: "//scrm.test.glsx.com.cn",
// 设置超时时间
timeout: 180000,
// 携带凭证
withCredentials: true,
// 返回数据类型
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: {
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0',
format: 'json',
source: ''
},
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
cdn: 'https://www.xxx.cn/static'
}
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0',
format: 'json',
source: 'scrm-home'
},
sign_common: {
app_key: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0',
format: 'json',
source: 'glsx'
},
secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
}
\ No newline at end of file
......@@ -11,12 +11,15 @@
let cfg = require('./conf.js')
import { Http } from 'glsx-common'
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 } } }
return common.utils.getConfig(params)
}
export const config = {
install(vue, cfg) {
install (vue, cfg) {
vue.prototype.$config = cfg
}
}
<template>
<div class="journey">
<div class="journey" v-loading="loading">
<div class="container">
<div class="sticky">
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="searchFormData" :searchSelectObj="searchSelectObj" @handleOk="handleSearch" @handleRest="handleReset" :key="FormKey"></GLCombiForm>
<div :class="['sticky-btns', { hiddenExport: viewType == 1 }]">
<div class="btns">
<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>
</div>
</div>
......@@ -55,7 +55,8 @@ export default {
return {
viewType: 1,
journeyList: [],
FormKey: Date.now()
FormKey: Date.now(),
loading:false
}
},
mounted () {
......@@ -138,7 +139,7 @@ export default {
},
handleExport () {
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 () {
......@@ -149,9 +150,11 @@ export default {
const { sopJourneyId } = this.tableSearchForm,
{ refreshTime } = this
if (refreshTime && Date.now() - refreshTime < 1e4) return this.$message('数据正在刷新中,请勿频繁提交')
this.loading = true
const res = await this.$apis.journey.refreshInst({
instId: sopJourneyId
})
this.loading = false
this.refreshTime = Date.now()
this.handleSearch()
}
......
......@@ -34,7 +34,7 @@
<div class="line-box">
<div
class="line"
:style="[{ width: (100 * (cindex + 1)) / i.length + '%' }]"
:style="[{ width: c.width }]"
></div>
</div>
</div>
......@@ -226,6 +226,7 @@ export default {
padding: 16px 16px 8px;
position: relative;
/deep/.el-scrollbar__wrap {
width: 100%;
&::-webkit-scrollbar {
width: 0;
height: 0;
......
......@@ -143,11 +143,10 @@ export default {
},
{
label: '旅程',
prop: 'sopJourneyStage',
minWidth: '200px',
formatter: cell => {
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!