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
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
73 additions
and
45 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 @@
...
@@ -13,8 +13,9 @@
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"jsxBracketSameLine": true,
"jsxBracketSameLine": true,
"files.insertFinalNewline": true,
"files.insertFinalNewline": true,
"prettier.ignorePath": ".prettierignore",
"useTabs": false,
"useTabs": false,
"eslintIntegration":
tru
e,
"eslintIntegration":
fals
e,
"overrides": [
"overrides": [
{
{
"files": ".prettierrc",
"files": ".prettierrc",
...
...
babel.config.js
View file @
c52f070
module
.
exports
=
{
module
.
exports
=
{
presets
:
[
"@vue/cli-plugin-babel/preset"
]
};
\ No newline at end of file
\ No newline at end of file
presets
:
[
'@vue/cli-plugin-babel/preset'
]
}
src/App.vue
View file @
c52f070
...
@@ -18,7 +18,7 @@ export default {
...
@@ -18,7 +18,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
document
.
onkeydown
=
function
()
{
document
.
onkeydown
=
function
()
{
var
evt
=
window
.
event
||
arguments
[
0
]
var
evt
=
window
.
event
||
arguments
[
0
]
if
(
evt
&&
evt
.
keyCode
==
13
)
{
if
(
evt
&&
evt
.
keyCode
==
13
)
{
if
(
typeof
evt
.
cancelBubble
!=
'undefined'
)
evt
.
cancelBubble
=
true
if
(
typeof
evt
.
cancelBubble
!=
'undefined'
)
evt
.
cancelBubble
=
true
...
...
src/api/modules/channel.js
View file @
c52f070
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* @param {*} params
* @param {*} params
* @returns
* @returns
*/
*/
import
{
http
,
http_tag
}
from
'@/main'
import
{
http
,
http_tag
}
from
'@/main'
let
session
=
'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
let
session
=
'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const
getListApi
=
params
=>
{
const
getListApi
=
params
=>
{
params
.
method
=
'entmicro.api.staff.listFollowerStaffByPage'
params
.
method
=
'entmicro.api.staff.listFollowerStaffByPage'
...
@@ -32,7 +32,7 @@ const querylabeltree = params => {
...
@@ -32,7 +32,7 @@ const querylabeltree = params => {
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
params
.
sessionId
=
session
params
.
sessionId
=
session
return
http_tag
({
return
http_tag
({
url
:
'
/rop-scrm-datahub/router'
,
url
:
'http://ismv.branch.glsx.com.cn
/rop-scrm-datahub/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
...
...
src/api/modules/common.js
View file @
c52f070
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*/
*/
import
{
http_common
}
from
'@/main'
import
{
http_common
}
from
'@/main'
const
pictureUpload
=
params
=>
{
const
pictureUpload
=
params
=>
{
params
.
method
=
"glsx.accounts.biz.common.pictureUpload"
params
.
method
=
'glsx.accounts.biz.common.pictureUpload'
return
http_common
({
return
http_common
({
url
:
'/router?method=glsx.accounts.biz.common.pictureUpload'
,
url
:
'/router?method=glsx.accounts.biz.common.pictureUpload'
,
method
:
'POST'
,
method
:
'POST'
,
...
...
src/api/modules/marketing.js
View file @
c52f070
src/api/modules/overview.js
View file @
c52f070
src/assets/css/common.scss
View file @
c52f070
...
@@ -184,3 +184,6 @@ img {
...
@@ -184,3 +184,6 @@ img {
color
:
#5850ff
;
color
:
#5850ff
;
font-size
:
16px
;
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
\ No newline at end of file
src/components/screenTag/index.vue
View file @
c52f070
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<el-radio-group
class=
"tag-group"
v-model=
"item.tagChecked"
v-show=
"item.checked"
>
<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"
>
<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-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>
-->
<!--
<el-radio
:label=
"itm"
>
{{
itm
.
name
.
length
>
4
?
itm
.
name
.
slice
(
0
,
3
)
+
'...'
:
itm
.
name
}}
</el-radio>
-->
<div
slot=
"content"
>
{{
itm
.
name
}}
</div>
<div
slot=
"content"
>
{{
itm
.
name
}}
</div>
</el-tooltip>
</el-tooltip>
...
@@ -94,9 +94,14 @@ export default {
...
@@ -94,9 +94,14 @@ export default {
labelTreeRets
:
{
labelTreeRets
:
{
handler
()
{
handler
()
{
this
.
selectNum
=
0
this
.
selectNum
=
0
this
.
labelType
=
[]
this
.
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRets
.
forEach
(
item
=>
{
if
(
item
.
tagChecked
)
{
if
(
item
.
tagChecked
)
{
this
.
selectNum
++
this
.
selectNum
++
if
(
!
this
.
labelType
.
includes
(
item
.
labelType
))
{
this
.
labelType
.
push
(
item
.
labelType
)
}
console
.
log
(
this
.
labelType
)
}
}
})
})
},
},
...
@@ -104,6 +109,9 @@ export default {
...
@@ -104,6 +109,9 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
isLabelType
(
label
)
{
return
this
.
labelType
.
length
>
0
&&
!
this
.
labelType
.
includes
(
label
)
},
jumpUrl
()
{
jumpUrl
()
{
util
.
openUrl
(
location
.
origin
+
'/custom/tagsManage/index'
)
util
.
openUrl
(
location
.
origin
+
'/custom/tagsManage/index'
)
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
...
@@ -157,6 +165,7 @@ export default {
...
@@ -157,6 +165,7 @@ export default {
})
})
}
else
{
}
else
{
const
labelTreeRets
=
utils
.
deepClone
(
this
.
labelTreeRets
)
const
labelTreeRets
=
utils
.
deepClone
(
this
.
labelTreeRets
)
console
.
log
(
labelTreeRets
)
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
return
{
return
{
labelType
:
item
.
labelType
,
labelType
:
item
.
labelType
,
...
@@ -168,10 +177,11 @@ export default {
...
@@ -168,10 +177,11 @@ export default {
checkAll
:
false
checkAll
:
false
}
}
})
})
console
.
log
(
labelTreeRets
)
labelTreeRets
.
forEach
(
item
=>
{
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
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
)
let
index
=
tag
.
labelList
.
findIndex
(
iem
=>
iem
.
id
==
labelId
)
tag
.
tagChecked
=
tag
.
labelList
[
index
]
tag
.
tagChecked
=
tag
.
labelList
[
index
]
}
}
...
...
src/config/env.development.js
View file @
c52f070
...
@@ -18,7 +18,7 @@ module.exports = {
...
@@ -18,7 +18,7 @@ module.exports = {
code_message_map
:
{}
code_message_map
:
{}
},
},
request
:
{
request
:
{
baseURL
:
'http://scrm.
test
.glsx.com.cn'
,
baseURL
:
'http://scrm.
dev
.glsx.com.cn'
,
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/config/index.js
View file @
c52f070
...
@@ -18,6 +18,8 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -18,6 +18,8 @@ export const fetchConfig = function(isEnv = true) {
return
Promise
.
resolve
(
cfg
)
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
(
' 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
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/main.js
View file @
c52f070
...
@@ -16,8 +16,7 @@ import { start } from '@/setup'
...
@@ -16,8 +16,7 @@ import { start } from '@/setup'
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
Vue
.
prototype
.
$apis
=
apis
Vue
.
prototype
.
$apis
=
apis
start
()
start
()
export
{
bootstrap
,
mount
,
unmount
}
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_tag
=
params
=>
Vue
.
prototype
.
$http_tag
(
params
)
export
const
http_tag
=
params
=>
Vue
.
prototype
.
$http_tag
(
params
)
src/setup/qiankun.js
View file @
c52f070
...
@@ -17,7 +17,7 @@ let routes = []
...
@@ -17,7 +17,7 @@ let routes = []
let
router
=
null
let
router
=
null
let
instance
=
null
let
instance
=
null
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
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
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
...
...
src/views/channel/components/channelList.vue
View file @
c52f070
src/views/market/config.vue
View file @
c52f070
...
@@ -19,7 +19,11 @@
...
@@ -19,7 +19,11 @@
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
筛选标签
筛选标签
</el-button>
</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"
>
<div
class=
"el-input-tag input-tag-wrapper"
v-if=
"labeling.length > 0"
>
<template
v-for=
"(item, index) in labeling"
>
<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)"
>
<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 {
...
@@ -262,6 +266,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
contactNum
:
0
,
selectType
:
1
,
selectType
:
1
,
loading
:
false
,
loading
:
false
,
welcomeInfo
:
[],
welcomeInfo
:
[],
...
@@ -351,6 +356,26 @@ export default {
...
@@ -351,6 +356,26 @@ export default {
},
},
deep
:
true
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
:
{
dracImFollowStaffResponses
:
{
handler
()
{
handler
()
{
this
.
saveStatus
=
true
this
.
saveStatus
=
true
...
@@ -478,27 +503,21 @@ export default {
...
@@ -478,27 +503,21 @@ export default {
},
},
handleSaveImport
()
{
handleSaveImport
()
{
this
.
loading
=
true
this
.
loading
=
true
let
params
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
,
exportUrl
:
this
.
exportUrl
,
imType
:
2
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
)
{
if
(
res
)
{
if
(
this
.
selectType
==
1
)
{
this
.
contactNum
=
res
.
totalCount
}
else
{
this
.
ExportDracImResponse
=
res
this
.
ExportDracImResponse
=
res
this
.
importStatus
=
true
this
.
importStatus
=
true
}
}
}
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
...
@@ -507,6 +526,10 @@ export default {
...
@@ -507,6 +526,10 @@ export default {
this
.
$message
.
error
(
'请选择客户标签'
)
this
.
$message
.
error
(
'请选择客户标签'
)
return
return
}
}
if
(
this
.
selectType
==
1
&&
this
.
contactNum
==
0
)
{
this
.
$message
.
error
(
'智能营销客户为空'
)
return
}
if
(
this
.
selectType
==
2
&&
!
this
.
exportUrl
)
{
if
(
this
.
selectType
==
2
&&
!
this
.
exportUrl
)
{
this
.
$message
.
error
(
'请上传客户信息'
)
this
.
$message
.
error
(
'请上传客户信息'
)
return
return
...
@@ -528,16 +551,7 @@ export default {
...
@@ -528,16 +551,7 @@ export default {
}
}
let
templateId
=
this
.
messageItem
.
id
let
templateId
=
this
.
messageItem
.
id
const
content
=
this
.
addForm
.
content
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
tagging
=
this
.
tagging
.
map
(
item
=>
{
let
tagIds
=
item
.
labelList
.
map
(
tag
=>
{
let
tagIds
=
item
.
labelList
.
map
(
tag
=>
{
return
tag
.
id
return
tag
.
id
...
@@ -552,12 +566,12 @@ export default {
...
@@ -552,12 +566,12 @@ export default {
labelType
:
item
.
labelGroup
.
name
labelType
:
item
.
labelGroup
.
name
}
}
})
})
config
=
'exportAdd'
let
params
=
{
params
=
{
autoWelcome
:
this
.
autoWelcome
?
1
:
0
,
autoWelcome
:
this
.
autoWelcome
?
1
:
0
,
imName
:
this
.
imName
,
imName
:
this
.
imName
,
imType
:
2
,
imType
:
2
,
tagging
:
JSON
.
stringify
(
tagging
),
tagging
:
JSON
.
stringify
(
tagging
),
filterTagging
:
JSON
.
stringify
(
this
.
filterTagging
),
exportUrl
:
this
.
exportUrl
,
exportUrl
:
this
.
exportUrl
,
dracImFollowStaffRequestList
:
this
.
dracImFollowStaffResponses
,
dracImFollowStaffRequestList
:
this
.
dracImFollowStaffResponses
,
dracImMessageConfigRequest
:
{
dracImMessageConfigRequest
:
{
...
@@ -578,9 +592,8 @@ export default {
...
@@ -578,9 +592,8 @@ export default {
return
item
return
item
})
})
params
.
welcomeInfo
=
attachmentList
params
.
welcomeInfo
=
attachmentList
}
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
marketing
[
config
]
(
params
).
then
(
res
=>
{
this
.
$apis
.
marketing
.
exportAdd
(
params
).
then
(
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
if
(
res
)
{
if
(
res
)
{
this
.
$router
.
push
(
'/market/index'
)
this
.
$router
.
push
(
'/market/index'
)
...
@@ -907,7 +920,7 @@ export default {
...
@@ -907,7 +920,7 @@ export default {
color
:
#666666
;
color
:
#666666
;
margin-left
:
10px
;
margin-left
:
10px
;
span
{
span
{
color
:
#5850
FF
;
color
:
#5850
ff
;
}
}
}
}
.upload-file-panel
{
.upload-file-panel
{
...
...
vue.config.js
View file @
c52f070
...
@@ -6,7 +6,7 @@ const resolve = dir => path.join(__dirname, dir)
...
@@ -6,7 +6,7 @@ const resolve = dir => path.join(__dirname, dir)
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/'
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/'
const
cdn
=
{
const
cdn
=
{
css
:
[
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
:
[
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.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