Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
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 15d6a5f4
authored
Nov 02, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
eee15d58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
129 additions
and
7 deletions
src/views/home/aiCard.vue
src/views/home/components/config/marketConfig.vue
src/views/home/aiCard.vue
View file @
15d6a5f
...
@@ -98,6 +98,7 @@
...
@@ -98,6 +98,7 @@
<!--
<div
class=
"tips-error"
v-if=
"staffStatus"
>
请选择专员
</div>
-->
<!--
<div
class=
"tips-error"
v-if=
"staffStatus"
>
请选择专员
</div>
-->
</div>
</div>
</div>
</div>
<GLEditor
:boxHeight=
"300"
ref=
"welcome"
:btnList=
"btnList"
></GLEditor>
</el-form>
</el-form>
</GLDialog>
</GLDialog>
<GLDialog
title=
"导入数据失败"
:hasFooter=
"true"
mode=
"small"
:visible
.
sync=
"importVisible"
>
<GLDialog
title=
"导入数据失败"
:hasFooter=
"true"
mode=
"small"
:visible
.
sync=
"importVisible"
>
...
@@ -148,7 +149,110 @@ export default {
...
@@ -148,7 +149,110 @@ export default {
ImportResult
:
{},
ImportResult
:
{},
taskName
:
''
,
taskName
:
''
,
url
:
''
,
url
:
''
,
fileName
:
''
fileName
:
''
,
btnList
:
[
{
name
:
'表情'
,
funcName
:
''
,
type
:
'expression'
,
limitSize
:
10
},
{
name
:
'图片'
,
funcName
:
''
,
type
:
'img'
,
uploadApi
:
this
.
$apis
.
common
.
pictureUpload
},
{
name
:
'昵称'
,
type
:
'nickName'
,
funName
:
'nickName'
},
{
name
:
'兑换码'
,
type
:
'code'
,
funName
:
'code'
},
{
name
:
'活动'
,
type
:
'activity'
,
funName
:
'activity'
,
funParams
:
[
{
itemName
:
'权益卡试用'
,
itemValue
:
3
,
itemType
:
'card'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getCard
,
params
:
{
tryAble
:
1
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
},
{
itemName
:
'权益套餐'
,
itemValue
:
4
,
itemType
:
'package'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getPackage
,
params
:
{}
},
{
itemName
:
'商城券'
,
itemValue
:
2
,
itemType
:
'coupon'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getMerchant
,
params
:
{
discountTypes
:
[
2
,
3
,
4
],
directionalFlag
:
1
,
// 1所有人可用2定向礼包专用3关联优惠券
validType
:
'valid'
}
},
{
itemName
:
'秒杀活动'
,
itemValue
:
5
,
itemType
:
'activity'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
getActivity
,
params
:
{
activityStatus
:
2
,
currentPage
:
1
}
},
{
itemName
:
'无忧服务'
,
itemValue
:
6
,
itemType
:
'merchant'
,
getInterfaceApi
:
this
.
$apis
.
welcomeword
.
merchant
,
merchantOpen
:
{
merchantOpenApi
:
this
.
$apis
.
welcomeword
.
merchantOpen
,
params
:
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
},
params
:
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
}
]
},
{
name
:
'素材'
,
type
:
'material'
,
funName
:
'material'
,
groupListApi
:
this
.
$apis
.
welcomeword
.
getGroupListApi
,
materialListApi
:
this
.
$apis
.
welcomeword
.
getMaterialListApi
// videoNo: true
// pdfNo: true
},
{
name
:
'模板'
,
type
:
'message'
,
funName
:
'message'
,
getSearchApi
:
this
.
$apis
.
welcomeword
.
createdNameList
,
templateApi
:
this
.
$apis
.
welcomeword
.
templatePage
,
templateUpdateApi
:
this
.
$apis
.
welcomeword
.
templateUpdate
,
templateSaveApi
:
this
.
$apis
.
welcomeword
.
templateSave
,
templateDetailApi
:
this
.
$apis
.
welcomeword
.
templateDetail
}
]
}
}
},
},
methods
:
{
methods
:
{
...
@@ -246,8 +350,18 @@ export default {
...
@@ -246,8 +350,18 @@ export default {
this
.
$message
.
error
(
'请选择专员'
)
this
.
$message
.
error
(
'请选择专员'
)
return
return
}
}
const
previewList
=
this
.
$refs
.
welcome
.
previewList
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
[]
const
attachmentList
=
previewList
.
map
(
item
=>
{
if
(
item
.
attType
==
1
)
{
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'[@昵称]'
,
'@昵称'
)
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'@昵称'
,
'[@昵称]'
)
}
else
if
(
item
.
attType
==
7
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
}
return
item
})
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
aiCard
.
createTask
({
url
,
fileName
,
taskName
,
staffId
}).
then
(
res
=>
{
this
.
$apis
.
aiCard
.
createTask
({
url
,
fileName
,
taskName
,
staffId
,
attachmentList
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
$refs
.
AiForm
.
handleSeach
()
this
.
$refs
.
AiForm
.
handleSeach
()
...
...
src/views/home/components/config/marketConfig.vue
View file @
15d6a5f
...
@@ -94,11 +94,16 @@ export default {
...
@@ -94,11 +94,16 @@ export default {
// // limitTime: 2,//限制视频时长
// // limitTime: 2,//限制视频时长
// uploadApi: this.$apis.common.pictureUpload
// uploadApi: this.$apis.common.pictureUpload
// },
// },
// {
{
// name: '昵称',
name
:
'昵称'
,
// type: 'nickname',
type
:
'nickname'
,
// funName: 'nickname'
funName
:
'nickname'
// },
},
{
name
:
'兑换码'
,
type
:
'code'
,
funName
:
'code'
},
{
{
name
:
'活动'
,
name
:
'活动'
,
type
:
'activity'
,
type
:
'activity'
,
...
@@ -229,6 +234,9 @@ export default {
...
@@ -229,6 +234,9 @@ export default {
const
attachmentList
=
previewList
.
map
(
item
=>
{
const
attachmentList
=
previewList
.
map
(
item
=>
{
if
(
item
.
attType
==
7
)
{
if
(
item
.
attType
==
7
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
}
else
if
(
item
.
attType
==
1
)
{
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'[@昵称]'
,
'@昵称'
)
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'@昵称'
,
'[@昵称]'
)
}
}
return
item
return
item
})
})
...
...
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