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 05bb3403
authored
Sep 27, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
配置服务
1 parent
74523d78
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
src/api/modules/journey.js
src/api/modules/journeyConfig.js
src/config/index.js
src/setup/qiankun.js
src/api/modules/journey.js
View file @
05bb340
...
@@ -10,7 +10,7 @@ import { http_sop, http_merchant } from '@/main'
...
@@ -10,7 +10,7 @@ import { http_sop, http_merchant } from '@/main'
//查询模板实例客户分页列表
//查询模板实例客户分页列表
const
getCustomersList
=
params
=>
{
const
getCustomersList
=
params
=>
{
return
http_sop
({
return
http_sop
({
url
:
`
http://gateway.platform.dev.glsx.com.cn/
process/sop/api/sopInsts/customers`
,
url
:
`process/sop/api/sopInsts/customers`
,
method
:
'get'
,
method
:
'get'
,
data
:
params
,
data
:
params
,
sign
:
false
sign
:
false
...
@@ -19,7 +19,7 @@ const getCustomersList = params => {
...
@@ -19,7 +19,7 @@ const getCustomersList = params => {
//查询模板实例客户详细信息
//查询模板实例客户详细信息
const
getCustomersDetail
=
params
=>
{
const
getCustomersDetail
=
params
=>
{
return
http_sop
({
return
http_sop
({
url
:
`
http://gateway.platform.dev.glsx.com.cn/
process/sop/api/sopInsts/customers/detail`
,
url
:
`process/sop/api/sopInsts/customers/detail`
,
method
:
'get'
,
method
:
'get'
,
data
:
params
,
data
:
params
,
sign
:
false
sign
:
false
...
@@ -29,7 +29,7 @@ const getCustomersDetail = params => {
...
@@ -29,7 +29,7 @@ const getCustomersDetail = params => {
//查询模板实例客户详细信息
//查询模板实例客户详细信息
const
stageUpdate
=
params
=>
{
const
stageUpdate
=
params
=>
{
return
http_sop
({
return
http_sop
({
url
:
`
http://gateway.platform.dev.glsx.com.cn//
process/sop/api/sopInsts/customers/stageUpdate`
,
url
:
`process/sop/api/sopInsts/customers/stageUpdate`
,
method
:
'post'
,
method
:
'post'
,
data
:
params
,
data
:
params
,
noSessionId
:
true
,
noSessionId
:
true
,
...
@@ -40,7 +40,7 @@ const stageUpdate = params => {
...
@@ -40,7 +40,7 @@ const stageUpdate = params => {
//查询模板实例客户详细信息
//查询模板实例客户详细信息
const
exportExcel
=
params
=>
{
const
exportExcel
=
params
=>
{
return
http_sop
({
return
http_sop
({
url
:
`
http://gateway.platform.dev.glsx.com.cn/
process/sop/api/sopInsts/customers/export`
,
url
:
`process/sop/api/sopInsts/customers/export`
,
method
:
'get'
,
method
:
'get'
,
data
:
params
,
data
:
params
,
sign
:
false
sign
:
false
...
@@ -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
:
`
http://gateway.platform.dev.glsx.com.cn/
process/sop/inst/refresh`
,
url
:
`process/sop/inst/refresh`
,
method
:
'get'
,
method
:
'get'
,
data
:
params
,
data
:
params
,
sign
:
false
sign
:
false
...
@@ -59,7 +59,7 @@ const refreshInst = params => {
...
@@ -59,7 +59,7 @@ const refreshInst = params => {
}
}
/**获取跟进员工 */
/**获取跟进员工 */
const
getFindMerchantStaffList
=
(
params
)
=>
{
const
getFindMerchantStaffList
=
params
=>
{
params
.
method
=
'merchants.api.open.findMerchantStaffList'
params
.
method
=
'merchants.api.open.findMerchantStaffList'
return
http_merchant
({
return
http_merchant
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
...
...
src/api/modules/journeyConfig.js
View file @
05bb340
...
@@ -40,7 +40,7 @@ const findMarketingTask = params => {
...
@@ -40,7 +40,7 @@ const findMarketingTask = params => {
//活动列表
//活动列表
const
byGroupIdSop
=
params
=>
{
const
byGroupIdSop
=
params
=>
{
return
http_sop
({
return
http_sop
({
url
:
'
http://gateway.platform.dev.glsx.com.cn/
process/sop/api/sopInsts/byGroupId'
,
url
:
'process/sop/api/sopInsts/byGroupId'
,
method
:
'get'
,
method
:
'get'
,
data
:
params
,
data
:
params
,
sign
:
false
sign
:
false
...
@@ -50,7 +50,7 @@ const byGroupIdSop = params => {
...
@@ -50,7 +50,7 @@ const byGroupIdSop = params => {
//活动列表
//活动列表
const
getInstIdDetail
=
params
=>
{
const
getInstIdDetail
=
params
=>
{
return
http_sop
({
return
http_sop
({
url
:
'
http://gateway.platform.dev.glsx.com.cn/
process/sop/api/sopInsts/'
+
params
.
instId
,
url
:
'process/sop/api/sopInsts/'
+
params
.
instId
,
method
:
'get'
,
method
:
'get'
,
// data: params,
// data: params,
sign
:
false
sign
:
false
...
@@ -59,7 +59,7 @@ const getInstIdDetail = params => {
...
@@ -59,7 +59,7 @@ const getInstIdDetail = params => {
//更新SOP门店模板实例状态
//更新SOP门店模板实例状态
const
setSopInsts
=
params
=>
{
const
setSopInsts
=
params
=>
{
return
http_sop
({
return
http_sop
({
url
:
`
http://gateway.platform.dev.glsx.com.cn/
process/sop/api/sopInsts/
${
params
.
instId
}
/status`
,
url
:
`process/sop/api/sopInsts/
${
params
.
instId
}
/status`
,
method
:
'post'
,
method
:
'post'
,
data
:
params
.
status
,
data
:
params
.
status
,
noSessionId
:
true
,
noSessionId
:
true
,
...
@@ -69,7 +69,7 @@ const setSopInsts = params => {
...
@@ -69,7 +69,7 @@ const setSopInsts = params => {
//更新SOP门店模板实例初始参数里的门店自定义参数(关联活动)
//更新SOP门店模板实例初始参数里的门店自定义参数(关联活动)
const
concatActivity
=
params
=>
{
const
concatActivity
=
params
=>
{
return
http_sop
({
return
http_sop
({
url
:
`
http://gateway.platform.dev.glsx.com.cn//
process/sop/api/sopInsts/
${
params
.
instId
}
/instParam/customData`
,
url
:
`process/sop/api/sopInsts/
${
params
.
instId
}
/instParam/customData`
,
method
:
'post'
,
method
:
'post'
,
data
:
params
.
data
,
data
:
params
.
data
,
noSessionId
:
true
,
noSessionId
:
true
,
...
...
src/config/index.js
View file @
05bb340
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-27 1
1:30:53
* @LastEditTime: 2023-09-27 1
2:06:04
*/
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
// let request = require('@/http/request.js')
...
@@ -12,7 +12,7 @@ let cfg = require('./conf.js')
...
@@ -12,7 +12,7 @@ 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
params
=
{
moduleName
:
'
journey
'
,
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
=
{
...
...
src/setup/qiankun.js
View file @
05bb340
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Date: 2022-11-23 11:06:49
* @Date: 2022-11-23 11:06:49
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
<<<<<<< HEAD
<<<<<<< HEAD
* @LastEditTime: 2023-09-27 1
1:30:32
* @LastEditTime: 2023-09-27 1
2:07:58
=======
=======
* @LastEditTime: 2023-09-25 09:59:38
* @LastEditTime: 2023-09-25 09:59:38
>>>>>>> e728fa5b69f3ed7e05a72000ab34add4d75d5961
>>>>>>> e728fa5b69f3ed7e05a72000ab34add4d75d5961
...
@@ -24,7 +24,7 @@ let instance = null
...
@@ -24,7 +24,7 @@ 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
,
response_sop
,
request_merchant
}
=
await
fetchConfig
(
common
)
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
response_sop
,
request_
sop
,
request_
merchant
}
=
await
fetchConfig
(
common
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
...
@@ -32,7 +32,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -32,7 +32,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_sop
=
new
common
.
Http
({
response
:
response_sop
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
,
'Content-Type'
:
'application/json'
}
})
Vue
.
prototype
.
$http_sop
=
new
common
.
Http
({
response
:
response_sop
,
request
:
request_sop
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
,
'Content-Type'
:
'application/json'
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
:
request_merchant
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
:
request_merchant
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
...
...
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