Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 06db2325
authored
Aug 07, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.14.0' into 'master'
模板下载 See merge request
!13
2 parents
bb49c303
361d0c2a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
src/api/modules/marketing.js
src/views/activityLink/components/MarketingTask.vue
src/api/modules/marketing.js
View file @
06db232
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 16:16:03
* @Date: 2023-06-29 16:16:03
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-
13 20:52:04
* @LastEditTime: 2023-07-
28 17:47:10
* @FilePath: \scrm-micro-link\src\api\modules\marketing.js
* @FilePath: \scrm-micro-link\src\api\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -143,6 +143,16 @@ const updateApi = params => {
...
@@ -143,6 +143,16 @@ const updateApi = params => {
sign
:
true
sign
:
true
})
})
}
}
const
importModel
=
params
=>
{
params
.
method
=
`marketing.api.supermarket.customer.importModel`
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
viewData
,
viewData
,
getChatGPTList
,
getChatGPTList
,
...
@@ -157,5 +167,6 @@ export default {
...
@@ -157,5 +167,6 @@ export default {
findActivityInfo
,
findActivityInfo
,
registerSso
,
registerSso
,
EntWechatQrCode
,
EntWechatQrCode
,
findMerchantDetailByMerchantNo
findMerchantDetailByMerchantNo
,
importModel
}
}
src/views/activityLink/components/MarketingTask.vue
View file @
06db232
...
@@ -150,12 +150,14 @@ export default {
...
@@ -150,12 +150,14 @@ export default {
talkId
:
''
,
talkId
:
''
,
messageContent
:
this
.
$messageModel
messageContent
:
this
.
$messageModel
},
},
importModelUrl
:
{},
tableData
:
[],
tableData
:
[],
roobList
:
[]
roobList
:
[]
}
}
},
},
mounted
()
{
mounted
()
{
this
.
findMerchantStaffList
()
this
.
findMerchantStaffList
()
this
.
importModel
()
},
},
watch
:
{
watch
:
{
process
:
{
process
:
{
...
@@ -174,16 +176,23 @@ export default {
...
@@ -174,16 +176,23 @@ export default {
...
mapState
(
'marketing'
,
[
'subscribe'
,
'process'
]),
...
mapState
(
'marketing'
,
[
'subscribe'
,
'process'
]),
importUrl
()
{
importUrl
()
{
const
url
=
{
const
url
=
{
5
:
'
https://wx.glsx.com.cn/upload/biz/e78dea4b-c55c-4af7-bb42-0f3d99bf27a8.xlsx
'
,
5
:
'
importModelXB
'
,
2
:
'
https://wx.glsx.com.cn/upload/biz/4fec9d20-d685-4cee-8c3e-23f2d22b18ad.xlsx
'
,
2
:
'
importModelDB
'
,
6
:
'
https://wx.glsx.com.cn/upload/biz/980515d5-20df-49a5-90a7-1accb2aed2a6.xlsx
'
6
:
'
importModelJR
'
}
}
return
url
[
this
.
subscribe
]
return
this
.
importModelUrl
[
url
[
this
.
subscribe
]
]
}
}
},
},
methods
:
{
methods
:
{
...
mapActions
(
'marketing'
,
[
'setProcess'
]),
...
mapActions
(
'marketing'
,
[
'setProcess'
]),
...
mapMutations
(
'marketing'
,
[
'SET_STEP'
]),
...
mapMutations
(
'marketing'
,
[
'SET_STEP'
]),
//获取客户导入模板
importModel
()
{
this
.
$apis
.
marketing
.
importModel
({}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
importModelUrl
=
res
})
},
uploadFile
(
e
,
item
)
{
uploadFile
(
e
,
item
)
{
const
file
=
e
.
srcElement
.
files
[
0
]
const
file
=
e
.
srcElement
.
files
[
0
]
let
AllImgExt
=
'.xls|.xlsx'
let
AllImgExt
=
'.xls|.xlsx'
...
...
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