Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-drainage
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 c52f070d
authored
Mar 22, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
40beaf23
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
516 additions
and
488 deletions
.prettierrc
babel.config.js
src/App.vue
src/api/modules/channel.js
src/api/modules/common.js
src/api/modules/marketing.js
src/api/modules/overview.js
src/assets/css/common.scss
src/components/screenTag/index.vue
src/config/env.development.js
src/config/index.js
src/main.js
src/setup/qiankun.js
src/views/channel/components/channelList.vue
src/views/market/config.vue
vue.config.js
.prettierrc
View file @
c52f070
...
...
@@ -13,8 +13,9 @@
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"jsxBracketSameLine": true,
"files.insertFinalNewline": true,
"prettier.ignorePath": ".prettierignore",
"useTabs": false,
"eslintIntegration":
tru
e,
"eslintIntegration":
fals
e,
"overrides": [
{
"files": ".prettierrc",
...
...
babel.config.js
View file @
c52f070
module
.
exports
=
{
presets
:
[
"@vue/cli-plugin-babel/preset"
]
};
\ No newline at end of file
presets
:
[
'@vue/cli-plugin-babel/preset'
]
}
src/App.vue
View file @
c52f070
...
...
@@ -18,7 +18,7 @@ export default {
}
},
created
()
{
document
.
onkeydown
=
function
()
{
document
.
onkeydown
=
function
()
{
var
evt
=
window
.
event
||
arguments
[
0
]
if
(
evt
&&
evt
.
keyCode
==
13
)
{
if
(
typeof
evt
.
cancelBubble
!=
'undefined'
)
evt
.
cancelBubble
=
true
...
...
@@ -31,7 +31,7 @@ export default {
this
.
myMessage
=
this
.
message
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
.parent-child-communication
{
...
...
@@ -49,4 +49,4 @@ export default {
overflow-y
:
auto
;
height
:
100%
;
}
</
style
>
\ No newline at end of file
</
style
>
src/api/modules/channel.js
View file @
c52f070
...
...
@@ -6,186 +6,186 @@
* @param {*} params
* @returns
*/
import
{
http
,
http_tag
}
from
'@/main'
import
{
http
,
http_tag
}
from
'@/main'
let
session
=
'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const
getListApi
=
params
=>
{
params
.
method
=
'entmicro.api.staff.listFollowerStaffByPage'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.staff.listFollowerStaffByPage'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getFollower
=
params
=>
{
params
.
method
=
'entmicro.api.staff.listFollowerStaffByPage'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.staff.listFollowerStaffByPage'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
querylabeltree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
params
.
sessionId
=
session
return
http_tag
({
url
:
'
/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
params
.
sessionId
=
session
return
http_tag
({
url
:
'http://ismv.branch.glsx.com.cn
/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
deleteChannelCodeBill
=
params
=>
{
params
.
method
=
'entmicro.api.code.deleteChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.deleteChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getSubCodeChannelCodeBill
=
params
=>
{
params
.
method
=
'entmicro.api.code.getSubCodeChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.getSubCodeChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
saveChannelCodeBill
=
params
=>
{
params
.
method
=
'entmicro.api.code.saveChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.saveChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
updateChannelCodeBill
=
params
=>
{
params
.
method
=
'entmicro.api.code.updateChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.updateChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
listChannelCodeBill
=
params
=>
{
params
.
method
=
'entmicro.api.code.listChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.listChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
deleteChannelCode
=
params
=>
{
params
.
method
=
'entmicro.api.code.deleteChannelCode'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.deleteChannelCode'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
detailChannelCode
=
params
=>
{
params
.
method
=
'entmicro.api.code.detailChannelCode'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.detailChannelCode'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
listChannelCodeByPage
=
params
=>
{
params
.
method
=
'entmicro.api.code.listChannelCodeByPage'
params
.
sessionId
=
session
console
.
log
(
http
)
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.listChannelCodeByPage'
params
.
sessionId
=
session
console
.
log
(
http
)
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
saveChannelCode
=
params
=>
{
params
.
method
=
'entmicro.api.code.saveChannelCode'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.saveChannelCode'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
updateChannelCode
=
params
=>
{
params
.
method
=
'entmicro.api.code.updateChannelCode'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.updateChannelCode'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getCustomer
=
params
=>
{
params
.
method
=
'entmicro.api.customer.code.page'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.customer.code.page'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getChannelCodeStaffList
=
params
=>
{
params
.
method
=
'entmicro.api.code.getChannelCodeStaffList'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.getChannelCodeStaffList'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getStatus
=
params
=>
{
params
.
method
=
'scrm.api.work.wechat.access.status'
params
.
sessionId
=
session
params
.
method
=
'scrm.api.work.wechat.access.status'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-wechat/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
return
http
({
url
:
'/rop-scrm-wechat/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getStatus
,
getListApi
,
getFollower
,
querylabeltree
,
saveChannelCodeBill
,
getSubCodeChannelCodeBill
,
deleteChannelCodeBill
,
updateChannelCode
,
saveChannelCode
,
listChannelCodeByPage
,
detailChannelCode
,
deleteChannelCode
,
updateChannelCodeBill
,
listChannelCodeBill
,
getCustomer
,
getChannelCodeStaffList
}
\ No newline at end of file
getStatus
,
getListApi
,
getFollower
,
querylabeltree
,
saveChannelCodeBill
,
getSubCodeChannelCodeBill
,
deleteChannelCodeBill
,
updateChannelCode
,
saveChannelCode
,
listChannelCodeByPage
,
detailChannelCode
,
deleteChannelCode
,
updateChannelCodeBill
,
listChannelCodeBill
,
getCustomer
,
getChannelCodeStaffList
}
src/api/modules/common.js
View file @
c52f070
...
...
@@ -8,15 +8,15 @@
*/
import
{
http_common
}
from
'@/main'
const
pictureUpload
=
params
=>
{
params
.
method
=
"glsx.accounts.biz.common.pictureUpload"
return
http_common
({
url
:
'/router?method=glsx.accounts.biz.common.pictureUpload'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
params
.
method
=
'glsx.accounts.biz.common.pictureUpload'
return
http_common
({
url
:
'/router?method=glsx.accounts.biz.common.pictureUpload'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
export
default
{
pictureUpload
}
\ No newline at end of file
pictureUpload
}
src/api/modules/marketing.js
View file @
c52f070
...
...
@@ -9,185 +9,185 @@
import
{
http
}
from
'@/main'
let
session
=
'mini-57c1c42e-8a0c-4fc3-959c-b62813a471cd-rop'
const
getCoupon
=
params
=>
{
params
.
method
=
'scrm.api.boutiquecoupon.coupon.page'
return
http
({
url
:
'/rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.boutiquecoupon.coupon.page'
return
http
({
url
:
'/rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getMerchant
=
params
=>
{
params
.
method
=
'scrm.api.coupon.list.merchant'
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.coupon.list.merchant'
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getCard
=
params
=>
{
params
.
method
=
'scrm.api.equity.open.card.price.list.by.merchantid'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.equity.open.card.price.list.by.merchantid'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
merchantOpen
=
params
=>
{
params
.
method
=
'scrm.api.equity.service.merchant.config.get'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.equity.service.merchant.config.get'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
merchant
=
params
=>
{
params
.
method
=
'scrm.api.equity.open.card.price.list.by.merchantid'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.equity.open.card.price.list.by.merchantid'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getPackage
=
params
=>
{
params
.
method
=
'scrm.api.equity.package.info.list.with.page'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.equity.package.info.list.with.page'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getActivity
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.page'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.shopmall.activity.page'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
findAllByPage
=
params
=>
{
params
.
method
=
'entmicro.api.dracIm.findAllByPage'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.dracIm.findAllByPage'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
exportAdd
=
params
=>
{
params
.
method
=
'entmicro.api.dracIm.exportAdd'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.dracIm.exportAdd'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
exportUpdate
=
params
=>
{
params
.
method
=
'entmicro.api.dracIm.exportUpdate'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.dracIm.exportUpdate'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
findById
=
params
=>
{
params
.
method
=
'entmicro.api.dracIm.findById'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.dracIm.findById'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
dracImMessage
=
params
=>
{
params
.
method
=
'entmicro.api.dracImMessage.findAllByCondition'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.dracImMessage.findAllByCondition'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
listChannelCodeBill
=
params
=>
{
params
.
method
=
'entmicro.api.code.listChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.code.listChannelCodeBill'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
addConfig
=
params
=>
{
params
.
method
=
'entmicro.api.dracImConfig.addConfig'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.dracImConfig.addConfig'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
findConfig
=
params
=>
{
params
.
method
=
'entmicro.api.dracImConfig.findConfig'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.dracImConfig.findConfig'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
updateConfig
=
params
=>
{
params
.
method
=
'entmicro.api.dracImConfig.updateConfig'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.dracImConfig.updateConfig'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
customerPage
=
params
=>
{
params
.
method
=
'entmicro.api.dracIm.customer.search.page'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.dracIm.customer.search.page'
params
.
sessionId
=
session
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getCoupon
,
getMerchant
,
merchantOpen
,
merchant
,
getCard
,
getPackage
,
getActivity
,
listChannelCodeBill
,
findAllByPage
,
dracImMessage
,
exportAdd
,
exportUpdate
,
findById
,
updateConfig
,
findConfig
,
addConfig
,
customerPage
}
\ No newline at end of file
getCoupon
,
getMerchant
,
merchantOpen
,
merchant
,
getCard
,
getPackage
,
getActivity
,
listChannelCodeBill
,
findAllByPage
,
dracImMessage
,
exportAdd
,
exportUpdate
,
findById
,
updateConfig
,
findConfig
,
addConfig
,
customerPage
}
src/api/modules/overview.js
View file @
c52f070
...
...
@@ -9,123 +9,123 @@
import
{
http
}
from
'@/main'
let
session
=
'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const
codeDefault
=
params
=>
{
params
.
method
=
'entmicro.api.drac.statistic.code.default'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.drac.statistic.code.default'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
listStaff
=
params
=>
{
params
.
method
=
'entmicro.api.drac.statistic.code.detail.list.staff'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.drac.statistic.code.detail.list.staff'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
listTime
=
params
=>
{
params
.
method
=
'entmicro.api.drac.statistic.code.detail.list.time'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.drac.statistic.code.detail.list.time'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
detailTotal
=
params
=>
{
params
.
method
=
'entmicro.api.drac.statistic.code.detail.total'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.drac.statistic.code.detail.total'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
codeSearch
=
params
=>
{
params
.
method
=
'entmicro.api.drac.statistic.code.search'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.drac.statistic.code.search'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
codeTrend
=
params
=>
{
params
.
method
=
'entmicro.api.drac.statistic.code.trend'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.drac.statistic.code.trend'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
dayTrend
=
params
=>
{
params
.
method
=
'entmicro.api.drac.statistic.day.trend'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.drac.statistic.day.trend'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
overview
=
params
=>
{
params
.
method
=
'entmicro.api.drac.statistic.overview'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.drac.statistic.overview'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
findMessageStatic
=
params
=>
{
params
.
method
=
'entmicro.api.dracIm.findMessageStatic'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.dracIm.findMessageStatic'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
viewChart
=
params
=>
{
params
.
method
=
'entmicro.api.drac.statistic.getCustomerStatisticCodeTrend'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.drac.statistic.getCustomerStatisticCodeTrend'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
findAllMessageByPage
=
params
=>
{
params
.
method
=
'entmicro.api.dracIm.findAllMessageByPage'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.dracIm.findAllMessageByPage'
params
.
sessionId
=
session
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
codeDefault
,
listStaff
,
listTime
,
detailTotal
,
codeSearch
,
codeTrend
,
dayTrend
,
overview
,
viewChart
,
findMessageStatic
,
findAllMessageByPage
}
\ No newline at end of file
codeDefault
,
listStaff
,
listTime
,
detailTotal
,
codeSearch
,
codeTrend
,
dayTrend
,
overview
,
viewChart
,
findMessageStatic
,
findAllMessageByPage
}
src/assets/css/common.scss
View file @
c52f070
...
...
@@ -183,4 +183,7 @@ img {
.el-message
.el-icon-info
{
color
:
#5850ff
;
font-size
:
16px
;
}
.el-radio
:focus:not
(
.is-focus
)
:not
(
:active
)
:not
(
.is-disabled
)
.el-radio__inner
{
box-shadow
:
none
!
important
;
}
\ No newline at end of file
src/components/screenTag/index.vue
View file @
c52f070
...
...
@@ -18,7 +18,7 @@
<el-radio-group
class=
"tag-group"
v-model=
"item.tagChecked"
v-show=
"item.checked"
>
<div
v-for=
"(itm, idx) in item.labelList"
:key=
"idx"
class=
"radio-tag"
>
<el-tooltip
effect=
"dark"
placement=
"top"
:disabled=
"itm.name.length
< 8
"
>
<el-radio
class=
"radio-text"
:label=
"itm"
>
{{
itm
.
name
}}
</el-radio>
<el-radio
:disabled=
"isLabelType(item.labelType)"
class=
"radio-text"
:label=
"itm"
>
{{
itm
.
name
}}
</el-radio>
<!--
<el-radio
:label=
"itm"
>
{{
itm
.
name
.
length
>
4
?
itm
.
name
.
slice
(
0
,
3
)
+
'...'
:
itm
.
name
}}
</el-radio>
-->
<div
slot=
"content"
>
{{
itm
.
name
}}
</div>
</el-tooltip>
...
...
@@ -94,9 +94,14 @@ export default {
labelTreeRets
:
{
handler
()
{
this
.
selectNum
=
0
this
.
labelType
=
[]
this
.
labelTreeRets
.
forEach
(
item
=>
{
if
(
item
.
tagChecked
)
{
this
.
selectNum
++
if
(
!
this
.
labelType
.
includes
(
item
.
labelType
))
{
this
.
labelType
.
push
(
item
.
labelType
)
}
console
.
log
(
this
.
labelType
)
}
})
},
...
...
@@ -104,6 +109,9 @@ export default {
}
},
methods
:
{
isLabelType
(
label
)
{
return
this
.
labelType
.
length
>
0
&&
!
this
.
labelType
.
includes
(
label
)
},
jumpUrl
()
{
util
.
openUrl
(
location
.
origin
+
'/custom/tagsManage/index'
)
this
.
dialogVisible
=
false
...
...
@@ -157,6 +165,7 @@ export default {
})
}
else
{
const
labelTreeRets
=
utils
.
deepClone
(
this
.
labelTreeRets
)
console
.
log
(
labelTreeRets
)
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
return
{
labelType
:
item
.
labelType
,
...
...
@@ -168,10 +177,11 @@ export default {
checkAll
:
false
}
})
console
.
log
(
labelTreeRets
)
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
let
labelId
=
item
.
labelList
[
0
].
id
let
labelId
=
item
.
tagChecked
?
item
.
tagChecked
.
id
:
''
let
index
=
tag
.
labelList
.
findIndex
(
iem
=>
iem
.
id
==
labelId
)
tag
.
tagChecked
=
tag
.
labelList
[
index
]
}
...
...
@@ -210,7 +220,7 @@ export default {
this
.
heightBox
=
clientHeight
-
0.15
*
clientHeight
-
350
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
//
::v-deep
.el-tag
{
//
color
:
red
!important
;
...
...
@@ -336,4 +346,4 @@ export default {
.tag-selected-box
{
min-height
:
200px
;
}
</
style
>
\ No newline at end of file
</
style
>
src/config/env.development.js
View file @
c52f070
...
...
@@ -18,7 +18,7 @@ module.exports = {
code_message_map
:
{}
},
request
:
{
baseURL
:
'http://scrm.
test
.glsx.com.cn'
,
baseURL
:
'http://scrm.
dev
.glsx.com.cn'
,
// 设置超时时间
timeout
:
180000
,
// 携带凭证
...
...
src/config/index.js
View file @
c52f070
...
...
@@ -18,6 +18,8 @@ export const fetchConfig = function(isEnv = true) {
return
Promise
.
resolve
(
cfg
)
}
return
new
Http
({
request
:
{
timeout
:
100000
}}).
get
(
' https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config'
)
// return new Http({request: { timeout: 100000}}).get(' http://192.168.3.171:7300/mock/618a32851072f92988f05a17/drainage/config')
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
...
...
src/main.js
View file @
c52f070
...
...
@@ -16,8 +16,7 @@ import { start } from '@/setup'
Vue
.
config
.
productionTip
=
false
Vue
.
prototype
.
$apis
=
apis
start
()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_tag
=
params
=>
Vue
.
prototype
.
$http_tag
(
params
)
\ No newline at end of file
export
const
http_tag
=
params
=>
Vue
.
prototype
.
$http_tag
(
params
)
src/setup/qiankun.js
View file @
c52f070
...
...
@@ -17,7 +17,7 @@ let routes = []
let
router
=
null
let
instance
=
null
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
,
request_common
,
sign_common
,
request_tag
}
=
await
fetchConfig
(
tru
e
)
const
{
response
,
request
,
sign
,
secret
,
request_common
,
sign_common
,
request_tag
}
=
await
fetchConfig
(
fals
e
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
...
...
src/views/channel/components/channelList.vue
View file @
c52f070
...
...
@@ -265,7 +265,7 @@ export default {
this
.
listChannelCodeByPage
()
}
}
</
script
>
</
script
>
<
style
>
.el-popover
{
max-width
:
800px
;
...
...
@@ -415,4 +415,4 @@ export default {
//
top
:
7px
;
//
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/market/config.vue
View file @
c52f070
...
...
@@ -19,7 +19,11 @@
<i
class=
"el-icon-plus"
></i>
筛选标签
</el-button>
<span
class=
"tag-count"
>
已选标签共关联
<span>
0
</span>
个客户
</span>
<span
class=
"tag-count"
>
已选标签共关联
<span>
{{
contactNum
}}
</span>
个客户
</span>
<div
class=
"el-input-tag input-tag-wrapper"
v-if=
"labeling.length > 0"
>
<template
v-for=
"(item, index) in labeling"
>
<el-tag
type=
"info"
v-for=
"(tag, idx) in item.labelList"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"removeTypeTag(item, idx, index)"
>
...
...
@@ -262,6 +266,7 @@ export default {
},
data
()
{
return
{
contactNum
:
0
,
selectType
:
1
,
loading
:
false
,
welcomeInfo
:
[],
...
...
@@ -351,6 +356,26 @@ export default {
},
deep
:
true
},
labeling
:
{
handler
:
function
()
{
if
(
this
.
labeling
.
length
==
0
)
{
this
.
contactNum
=
0
this
.
filterTagging
=
[]
return
}
this
.
filterTagging
=
this
.
labeling
.
map
(
item
=>
{
return
{
groupId
:
item
.
labelGroup
.
id
,
groupName
:
item
.
labelGroup
.
name
,
groupType
:
item
.
labelType
,
labelId
:
item
.
labelList
[
0
].
id
,
labelName
:
item
.
labelList
[
0
].
name
}
})
this
.
handleSaveImport
()
},
deep
:
true
},
dracImFollowStaffResponses
:
{
handler
()
{
this
.
saveStatus
=
true
...
...
@@ -478,35 +503,33 @@ export default {
},
handleSaveImport
()
{
this
.
loading
=
true
let
params
let
config
if
(
this
.
editId
)
{
config
=
'exportUpdate'
params
=
{
imType
:
2
,
id
:
this
.
editId
,
exportUrl
:
this
.
exportUrl
}
}
else
{
config
=
'exportAdd'
params
=
{
exportUrl
:
this
.
exportUrl
,
imType
:
2
}
let
params
=
{
exportUrl
:
this
.
exportUrl
,
imType
:
2
,
filterTagging
:
JSON
.
stringify
(
this
.
filterTagging
)
}
this
.
$apis
.
marketing
[
config
](
params
).
then
(
res
=>
{
this
.
$apis
.
marketing
.
exportAdd
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
this
.
ExportDracImResponse
=
res
this
.
importStatus
=
true
if
(
this
.
selectType
==
1
)
{
this
.
contactNum
=
res
.
totalCount
}
else
{
this
.
ExportDracImResponse
=
res
this
.
importStatus
=
true
}
}
this
.
loading
=
false
})
},
handleSave
()
{
if
(
this
.
selectType
==
1
&&
this
.
labeling
.
length
==
0
)
{
if
(
this
.
selectType
==
1
&&
this
.
labeling
.
length
==
0
)
{
this
.
$message
.
error
(
'请选择客户标签'
)
return
}
if
(
this
.
selectType
==
1
&&
this
.
contactNum
==
0
)
{
this
.
$message
.
error
(
'智能营销客户为空'
)
return
}
if
(
this
.
selectType
==
2
&&
!
this
.
exportUrl
)
{
this
.
$message
.
error
(
'请上传客户信息'
)
return
...
...
@@ -528,59 +551,49 @@ export default {
}
let
templateId
=
this
.
messageItem
.
id
const
content
=
this
.
addForm
.
content
let
params
let
config
if
(
this
.
editId
)
{
config
=
'exportUpdate'
params
=
{
imType
:
2
,
id
:
this
.
editId
,
exportUrl
:
this
.
exportUrl
}
}
else
{
let
tagging
=
this
.
tagging
.
map
(
item
=>
{
let
tagIds
=
item
.
labelList
.
map
(
tag
=>
{
return
tag
.
id
})
let
name
=
item
.
labelList
.
map
(
tag
=>
{
return
tag
.
name
})
return
{
groupId
:
item
.
labelGroup
.
id
,
tagIds
:
tagIds
.
join
(
','
),
name
:
name
.
join
(
','
),
labelType
:
item
.
labelGroup
.
name
}
let
tagging
=
this
.
tagging
.
map
(
item
=>
{
let
tagIds
=
item
.
labelList
.
map
(
tag
=>
{
return
tag
.
id
})
config
=
'exportAdd'
params
=
{
autoWelcome
:
this
.
autoWelcome
?
1
:
0
,
imName
:
this
.
imName
,
imType
:
2
,
tagging
:
JSON
.
stringify
(
tagging
),
exportUrl
:
this
.
exportUrl
,
dracImFollowStaffRequestList
:
this
.
dracImFollowStaffResponses
,
dracImMessageConfigRequest
:
{
startTime
,
endTime
,
templateId
,
content
}
}
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
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
let
name
=
item
.
labelList
.
map
(
tag
=>
{
return
tag
.
name
})
params
.
welcomeInfo
=
attachmentList
return
{
groupId
:
item
.
labelGroup
.
id
,
tagIds
:
tagIds
.
join
(
','
),
name
:
name
.
join
(
','
),
labelType
:
item
.
labelGroup
.
name
}
})
let
params
=
{
autoWelcome
:
this
.
autoWelcome
?
1
:
0
,
imName
:
this
.
imName
,
imType
:
2
,
tagging
:
JSON
.
stringify
(
tagging
),
filterTagging
:
JSON
.
stringify
(
this
.
filterTagging
),
exportUrl
:
this
.
exportUrl
,
dracImFollowStaffRequestList
:
this
.
dracImFollowStaffResponses
,
dracImMessageConfigRequest
:
{
startTime
,
endTime
,
templateId
,
content
}
}
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
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
})
params
.
welcomeInfo
=
attachmentList
this
.
loading
=
true
this
.
$apis
.
marketing
[
config
]
(
params
).
then
(
res
=>
{
this
.
$apis
.
marketing
.
exportAdd
(
params
).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
)
{
this
.
$router
.
push
(
'/market/index'
)
...
...
@@ -907,7 +920,7 @@ export default {
color
:
#666666
;
margin-left
:
10px
;
span
{
color
:
#5850
FF
;
color
:
#5850
ff
;
}
}
.upload-file-panel
{
...
...
vue.config.js
View file @
c52f070
...
...
@@ -6,7 +6,7 @@ const resolve = dir => path.join(__dirname, dir)
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/'
const
cdn
=
{
css
:
[
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
//
`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
],
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
...
...
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