Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
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 69e4ff50
authored
Oct 25, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复BUG
1 parent
9df1550e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
src/views/questionnaire/components/StepTwo/EditQuestions.vue
src/views/questionnaire/components/StepTwo/EditQuestions.vue
View file @
69e4ff5
...
@@ -337,7 +337,7 @@ export default {
...
@@ -337,7 +337,7 @@ export default {
inputBlur
()
{
inputBlur
()
{
const
{
type
}
=
this
.
configForm
,
const
{
type
}
=
this
.
configForm
,
value
=
this
.
configForm
[
inputKeyObject
[
type
]]
value
=
this
.
configForm
[
inputKeyObject
[
type
]]
let
arr
=
value
.
split
(
'\n'
),
let
arr
=
Array
.
from
(
new
Set
([...
value
.
split
(
'\n'
).
map
(
e
=>
e
)])
),
str
=
[]
str
=
[]
arr
.
map
(
i
=>
{
arr
.
map
(
i
=>
{
if
(
i
&&
((
type
===
1
||
type
===
2
)
&&
str
.
length
<
10
||
(
type
===
4
||
type
===
5
)))
{
if
(
i
&&
((
type
===
1
||
type
===
2
)
&&
str
.
length
<
10
||
(
type
===
4
||
type
===
5
)))
{
...
@@ -356,16 +356,19 @@ export default {
...
@@ -356,16 +356,19 @@ export default {
let
option
=
this
.
configForm
[
inputKeyObject
[
type
]],
let
option
=
this
.
configForm
[
inputKeyObject
[
type
]],
data
=
type
==
3
?
option
:
option
.
split
(
'\n'
),
data
=
type
==
3
?
option
:
option
.
split
(
'\n'
),
itemValue
=
''
itemValue
=
''
if
(
type
==
2
||
type
==
5
)
itemValue
=
[]
if
(
type
!=
3
)
{
if
(
type
==
5
)
{
if
(
type
==
2
||
type
==
5
)
itemValue
=
[]
const
title
=
data
[
0
].
split
(
'/'
)
if
(
type
==
5
)
{
if
(
data
.
length
<
2
)
throw
'数据不能为空'
const
title
=
data
[
0
].
split
(
'/'
)
const
[,
two
,
three
]
=
title
if
(
data
.
length
<
2
)
throw
'数据不能为空'
option
=
data
.
join
(
'\n'
)
const
[,
two
,
three
]
=
title
if
(
this
.
checkData
(
option
))
throw
''
option
=
data
.
join
(
'\n'
)
data
.
splice
(
0
,
1
)
if
(
this
.
checkData
(
option
))
throw
''
data
=
this
.
transformData
(
data
,
three
?
3
:
two
?
2
:
1
)
data
.
splice
(
0
,
1
)
userInfoField
=
userInfoFields
.
join
(
'/'
)
data
=
this
.
transformData
(
data
,
three
?
3
:
two
?
2
:
1
)
userInfoField
=
userInfoFields
.
join
(
'/'
)
}
// else data = Array.from(new Set([...data.map(e => e)]))
}
}
this
.
$emit
(
'addQuestions'
,
{
this
.
$emit
(
'addQuestions'
,
{
type
,
type
,
...
...
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