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 f3b01fe7
authored
Sep 06, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
a6bb7aa1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
37 deletions
src/views/businessCard/components/index.js
src/views/channel/addCode.vue
src/views/market/components/configInfo.vue
src/views/businessCard/components/index.js
deleted
100644 → 0
View file @
a6bb7aa
import
Vue
from
'vue'
const
componentsFiles
=
require
.
context
(
`./`
,
true
,
/.vue$/
)
componentsFiles
.
keys
().
forEach
(
path
=>
{
const
component
=
componentsFiles
(
path
).
default
Vue
.
component
(
component
.
name
,
component
)
})
src/views/channel/addCode.vue
View file @
f3b01fe
...
@@ -236,21 +236,23 @@ export default {
...
@@ -236,21 +236,23 @@ export default {
this
.
$refs
[
'codeForm'
].
validate
(
valid
=>
{
this
.
$refs
[
'codeForm'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
let
param
=
Object
.
assign
({
id
:
this
.
codeId
},
this
.
addCodeForm
)
let
param
=
Object
.
assign
({
id
:
this
.
codeId
},
this
.
addCodeForm
)
let
tagging
=
this
.
tagging
.
map
(
item
=>
{
if
(
this
.
tagging
&&
this
.
tagging
.
length
)
{
let
tagIds
=
item
.
labelList
.
map
(
tag
=>
{
let
tagging
=
this
.
tagging
.
map
(
item
=>
{
return
tag
.
id
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
name
=
item
.
labelList
.
map
(
tag
=>
{
param
.
tagging
=
JSON
.
stringify
(
tagging
)
return
tag
.
name
}
})
return
{
groupId
:
item
.
labelGroup
.
id
,
tagIds
:
tagIds
.
join
(
','
),
name
:
name
.
join
(
','
),
labelType
:
item
.
labelGroup
.
name
}
})
param
.
tagging
=
JSON
.
stringify
(
tagging
)
param
.
autoWelcome
=
this
.
autoWelcome
?
1
:
0
param
.
autoWelcome
=
this
.
autoWelcome
?
1
:
0
param
.
codeSystem
=
0
param
.
codeSystem
=
0
let
staffId
=
[]
let
staffId
=
[]
...
@@ -293,22 +295,25 @@ export default {
...
@@ -293,22 +295,25 @@ export default {
this
.
addCodeForm
.
autoAdd
=
this
.
addCodeForm
.
autoAdd
==
1
?
true
:
false
this
.
addCodeForm
.
autoAdd
=
this
.
addCodeForm
.
autoAdd
==
1
?
true
:
false
this
.
staffInfo
=
res
.
staffInfo
this
.
staffInfo
=
res
.
staffInfo
const
tagging
=
eval
(
res
.
tagging
)
const
tagging
=
eval
(
res
.
tagging
)
const
taggingList
=
tagging
.
map
(
item
=>
{
if
(
tagging
&&
tagging
.
length
)
{
let
name
=
item
.
name
.
split
(
','
)
const
taggingList
=
tagging
.
map
(
item
=>
{
let
ids
=
item
.
tagIds
.
split
(
','
)
let
name
=
item
.
name
.
split
(
','
)
console
.
log
(
ids
)
let
ids
=
item
.
tagIds
.
split
(
','
)
let
labelList
=
name
.
map
((
tag
,
index
)
=>
{
console
.
log
(
ids
)
return
{
id
:
ids
[
index
],
name
:
tag
}
let
labelList
=
name
.
map
((
tag
,
index
)
=>
{
return
{
id
:
ids
[
index
],
name
:
tag
}
})
return
{
labelGroup
:
{
id
:
item
.
groupId
,
name
:
item
.
labelType
},
labelList
}
})
})
return
{
this
.
tagging
=
taggingList
labelGroup
:
{
}
id
:
item
.
groupId
,
name
:
item
.
labelType
},
labelList
}
})
this
.
tagging
=
taggingList
this
.
autoWelcome
=
res
.
autoWelcome
?
true
:
false
this
.
autoWelcome
=
res
.
autoWelcome
?
true
:
false
if
(
res
.
welcomeInfo
.
length
!=
0
)
{
if
(
res
.
welcomeInfo
.
length
!=
0
)
{
const
previewList
=
res
.
welcomeInfo
.
map
(
item
=>
{
const
previewList
=
res
.
welcomeInfo
.
map
(
item
=>
{
...
...
src/views/market/components/configInfo.vue
View file @
f3b01fe
...
@@ -219,12 +219,12 @@ export default {
...
@@ -219,12 +219,12 @@ export default {
this
.
addForm
.
content
=
res
.
dracImMessageConResponse
.
content
this
.
addForm
.
content
=
res
.
dracImMessageConResponse
.
content
this
.
imName
=
res
.
imName
this
.
imName
=
res
.
imName
this
.
autoWelcome
=
res
.
autoWelcome
?
true
:
false
this
.
autoWelcome
=
res
.
autoWelcome
?
true
:
false
const
previewList
=
res
.
dracScrmWelcomeConfigDTOS
.
map
(
item
=>
{
const
dracScrmWelcomeConfigDTOS
=
res
.
dracScrmWelcomeConfigDTOS
?
res
.
dracScrmWelcomeConfigDTOS
:
[]
const
previewList
=
dracScrmWelcomeConfigDTOS
.
map
(
item
=>
{
if
(
item
.
attType
==
7
)
item
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
if
(
item
.
attType
==
7
)
item
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
if
(
item
.
attType
==
1
)
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'[@昵称]'
,
'<span style="color:#5850FF">@昵称</span>'
).
replaceAll
(
/
\n
/g
,
'<br>'
)
if
(
item
.
attType
==
1
)
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'[@昵称]'
,
'<span style="color:#5850FF">@昵称</span>'
).
replaceAll
(
/
\n
/g
,
'<br>'
)
return
item
return
item
})
})
console
.
log
(
previewList
)
this
.
welcomeInfo
=
previewList
this
.
welcomeInfo
=
previewList
const
tagging
=
eval
(
res
.
tagging
)
const
tagging
=
eval
(
res
.
tagging
)
if
(
tagging
&&
tagging
.
length
)
{
if
(
tagging
&&
tagging
.
length
)
{
...
...
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