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 74523d78
authored
Sep 27, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
26457dde
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
src/config/index.js
src/views/journeyConfig/components/relatedActivity.vue
src/config/index.js
View file @
74523d7
...
@@ -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
:
'
scene
'
,
mockUrl
:
'https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config'
,
httpOptions
:
{
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}
}
let
params
=
{
moduleName
:
'
journey
'
,
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/views/journeyConfig/components/relatedActivity.vue
View file @
74523d7
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"活动链接:"
size=
"small"
prop=
"activityId"
>
<el-form-item
label=
"活动链接:"
size=
"small"
prop=
"activityId"
>
<div
class=
"flex-column-center"
>
<div
class=
"flex-column-center"
>
<el-select
filterable
v-model=
"addForm.activityId"
placeholder=
"请选择"
@
change=
"getActivity"
:disabled=
"journeyStatus == 3"
>
=
<el-select
filterable
v-model=
"addForm.activityId"
placeholder=
"请选择"
@
change=
"getActivity"
:disabled=
"journeyStatus == 3 || journeyStatus == 4"
>
<el-option
v-for=
"item in activityList"
:key=
"item.id"
:label=
"item.activityName"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in activityList"
:key=
"item.id"
:label=
"item.activityName"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
<div
class=
"add-btn-a"
@
click=
"jumpActivity"
>
创建活动
</div>
<div
class=
"add-btn-a"
@
click=
"jumpActivity"
>
创建活动
</div>
...
@@ -83,7 +84,7 @@ export default {
...
@@ -83,7 +84,7 @@ export default {
},
},
//创建活动
//创建活动
jumpActivity
()
{
jumpActivity
()
{
this
.
$history
.
push
(
`/
link
/activityLink/marketingActivity?addOrEdit=add&subscribe=5&$title=新建活动`
)
this
.
$history
.
push
(
`/
tools
/activityLink/marketingActivity?addOrEdit=add&subscribe=5&$title=新建活动`
)
},
},
//活动列表
//活动列表
getActivityList
()
{
getActivityList
()
{
...
@@ -93,16 +94,20 @@ export default {
...
@@ -93,16 +94,20 @@ export default {
},
},
//关联活动
//关联活动
handleSure
()
{
handleSure
()
{
if
(
this
.
journeyStatus
==
3
||
this
.
journeyStatus
==
4
)
{
this
.
handleClose
()
return
}
this
.
$refs
.
addForm
.
validate
(
valid
=>
{
this
.
$refs
.
addForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
handleClose
()
this
.
handleClose
()
const
{
talkNam
eList
}
=
this
.
activityInfo
const
{
activityId
,
activityName
,
activityUrl
,
talkNameList
,
messag
eList
}
=
this
.
activityInfo
this
.
$emit
(
'setProcess'
,
{
this
.
$emit
(
'setProcess'
,
{
activityId
:
10596
,
// 活动id
activityId
,
// 活动id
activityName
:
'活动名称'
,
activityName
:
'活动名称'
,
activityUrl
:
'活动访问地址'
,
activityUrl
:
'活动访问地址'
,
aiSpeech
:
'默认AI营销话术'
,
aiSpeech
:
talkNameList
[
0
]
,
textMessage
:
'默认短信'
textMessage
:
messageList
[
0
]
})
})
}
}
})
})
...
...
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