Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-scene
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 660e37f2
authored
Oct 08, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.19.0' of
http://192.168.3.233:8090/saas/scrm-micro-scene
into v3.19.0
2 parents
ced8ec55
94a332dd
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
34 deletions
src/api/modules/journey.js
src/config/env.development.js
src/config/index.js
src/views/journey/index.vue
src/views/journey/index/dataView.vue
src/views/journey/index/table.vue
src/api/modules/journey.js
View file @
660e37f
...
@@ -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
...
...
src/config/env.development.js
View file @
660e37f
...
@@ -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
src/config/index.js
View file @
660e37f
...
@@ -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
}
}
}
}
src/views/journey/index.vue
View file @
660e37f
<
template
>
<
template
>
<div
class=
"journey"
>
<div
class=
"journey"
v-loading=
"loading"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"sticky"
>
<div
class=
"sticky"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"2"
:formObj=
"searchForm"
:formData=
"searchFormData"
:searchSelectObj=
"searchSelectObj"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:key=
"FormKey"
></GLCombiForm>
<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=
"['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>
...
@@ -55,7 +55,8 @@ export default {
...
@@ -55,7 +55,8 @@ export default {
return
{
return
{
viewType
:
1
,
viewType
:
1
,
journeyList
:
[],
journeyList
:
[],
FormKey
:
Date
.
now
()
FormKey
:
Date
.
now
(),
loading
:
false
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -138,7 +139,7 @@ export default {
...
@@ -138,7 +139,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
.
u
rl
)
if
(
res
.
secureUrl
)
exportFn
(
res
.
secureU
rl
)
})
})
},
},
changeViewType
()
{
changeViewType
()
{
...
@@ -149,9 +150,11 @@ export default {
...
@@ -149,9 +150,11 @@ export default {
const
{
sopJourneyId
}
=
this
.
tableSearchForm
,
const
{
sopJourneyId
}
=
this
.
tableSearchForm
,
{
refreshTime
}
=
this
{
refreshTime
}
=
this
if
(
refreshTime
&&
Date
.
now
()
-
refreshTime
<
1
e4
)
return
this
.
$message
(
'数据正在刷新中,请勿频繁提交'
)
if
(
refreshTime
&&
Date
.
now
()
-
refreshTime
<
1
e4
)
return
this
.
$message
(
'数据正在刷新中,请勿频繁提交'
)
this
.
loading
=
true
const
res
=
await
this
.
$apis
.
journey
.
refreshInst
({
const
res
=
await
this
.
$apis
.
journey
.
refreshInst
({
instId
:
sopJourneyId
instId
:
sopJourneyId
})
})
this
.
loading
=
false
this
.
refreshTime
=
Date
.
now
()
this
.
refreshTime
=
Date
.
now
()
this
.
handleSearch
()
this
.
handleSearch
()
}
}
...
...
src/views/journey/index/dataView.vue
View file @
660e37f
...
@@ -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>
...
@@ -226,6 +226,7 @@ export default {
...
@@ -226,6 +226,7 @@ export default {
padding
:
16px
16px
8px
;
padding
:
16px
16px
8px
;
position
:
relative
;
position
:
relative
;
/deep/.el-scrollbar__wrap
{
/deep/.el-scrollbar__wrap
{
width
:
100%
;
&::-webkit-scrollbar
{
&::-webkit-scrollbar
{
width
:
0
;
width
:
0
;
height
:
0
;
height
:
0
;
...
...
src/views/journey/index/table.vue
View file @
660e37f
...
@@ -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
}
}
},
},
{
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment