Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 eedb2334
authored
Nov 30, 2021
by
test
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
欢迎语模板BUG修复
1 parent
bee4f39d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
linkwe-ui/src/components/WelcomeContent.vue
linkwe-ui/src/views/drainageCode/welcome/add.vue
linkwe-ui/src/components/WelcomeContent.vue
View file @
eedb233
...
@@ -227,7 +227,6 @@
...
@@ -227,7 +227,6 @@
},
},
watch
:
{
watch
:
{
baseData
(
val
)
{
baseData
(
val
)
{
console
.
log
(
2222
)
if
(
val
.
welcomeMsg
)
{
if
(
val
.
welcomeMsg
)
{
this
.
form
=
val
this
.
form
=
val
}
}
...
@@ -422,8 +421,6 @@
...
@@ -422,8 +421,6 @@
this
.
welcomeMsgError
=
''
this
.
welcomeMsgError
=
''
}
}
const
checkMaterialResult
=
this
.
validateMaterial
()
const
checkMaterialResult
=
this
.
validateMaterial
()
console
.
log
(
this
.
form
)
if
(
checkMaterialResult
)
{
if
(
checkMaterialResult
)
{
let
goto
=
true
let
goto
=
true
this
.
form
.
materialMsgList
.
forEach
((
dd
)
=>
{
this
.
form
.
materialMsgList
.
forEach
((
dd
)
=>
{
...
@@ -442,6 +439,7 @@
...
@@ -442,6 +439,7 @@
}
}
}
}
})
})
this
.
$forceUpdate
()
if
(
goto
)
{
if
(
goto
)
{
// this.msgInfo('校验通过')
// this.msgInfo('校验通过')
this
.
$emit
(
'submit'
,
this
.
form
)
this
.
$emit
(
'submit'
,
this
.
form
)
...
...
linkwe-ui/src/views/drainageCode/welcome/add.vue
View file @
eedb233
...
@@ -30,10 +30,7 @@
...
@@ -30,10 +30,7 @@
id
:
''
,
id
:
''
,
welcomeMsgTplType
:
''
,
welcomeMsgTplType
:
''
,
welcomeMsg
:
''
,
welcomeMsg
:
''
,
picUrl
:
''
,
materialMsgList
:
[]
applet
:
[],
imageText
:
[],
userIds
:
''
},
},
// 遮罩层
// 遮罩层
loading
:
false
,
loading
:
false
,
...
@@ -46,6 +43,7 @@
...
@@ -46,6 +43,7 @@
this
.
form
.
id
=
this
.
$route
.
query
.
id
this
.
form
.
id
=
this
.
$route
.
query
.
id
let
data
=
JSON
.
parse
(
localStorage
.
getItem
(
'obj'
))
let
data
=
JSON
.
parse
(
localStorage
.
getItem
(
'obj'
))
this
.
form
=
Object
.
assign
(
this
.
form
,
data
)
this
.
form
=
Object
.
assign
(
this
.
form
,
data
)
this
.
form
.
welcomeMsgTplType
=
this
.
form
.
welcomeMsgTplType
.
toString
()
this
.
name
=
this
.
form
.
welcomeMsgTplType
===
'1'
?
'活码'
:
this
.
form
.
welcomeMsgTplType
===
'2'
?
'员工'
:
'入群'
this
.
name
=
this
.
form
.
welcomeMsgTplType
===
'1'
?
'活码'
:
this
.
form
.
welcomeMsgTplType
===
'2'
?
'员工'
:
'入群'
this
.
type
=
this
.
form
.
id
?
'编辑'
:
'新建'
this
.
type
=
this
.
form
.
id
?
'编辑'
:
'新建'
this
.
$route
.
meta
.
title
=
(
this
.
form
.
id
?
'编辑'
:
'新建'
)
+
'欢迎语'
this
.
$route
.
meta
.
title
=
(
this
.
form
.
id
?
'编辑'
:
'新建'
)
+
'欢迎语'
...
@@ -107,6 +105,18 @@
...
@@ -107,6 +105,18 @@
// getPreview(this.form.id).then(({ data }) => {
// getPreview(this.form.id).then(({ data }) => {
this
.
materialData
=
this
.
form
this
.
materialData
=
this
.
form
console
.
log
(
this
.
materialData
)
console
.
log
(
this
.
materialData
)
this
.
materialData
.
users
=
[]
if
(
this
.
materialData
.
userIds
)
{
let
name
=
this
.
materialData
.
userNames
.
split
(
','
)
this
.
materialData
.
userIds
.
split
(
','
).
forEach
((
ddd
,
index
)
=>
{
let
obj
=
{
useUserId
:
ddd
,
userName
:
name
[
index
]
}
this
.
materialData
.
users
.
push
(
obj
)
})
}
console
.
log
(
this
.
materialData
.
users
)
this
.
materialData
.
materialMsgList
=
[]
this
.
materialData
.
materialMsgList
=
[]
let
img
=
[]
let
img
=
[]
let
imgText
=
[]
let
imgText
=
[]
...
...
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