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 e102d578
authored
Jan 03, 2022
by
test
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
消息群发状态值修正
1 parent
298cdf30
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
linkwe-ui/src/components/WelcomeContent.vue
linkwe-ui/src/views/groupMessage/add.vue
linkwe-ui/src/views/groupMessage/detail.vue
linkwe-ui/src/components/WelcomeContent.vue
View file @
e102d57
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
<div
v-if=
"!showTemplate"
class=
"operation"
@
click=
"onChooseMaterialWel()"
>
<div
v-if=
"!showTemplate"
class=
"operation"
@
click=
"onChooseMaterialWel()"
>
<img
style=
"margin-right: 3px"
:src=
"require('@/assets/drainageCode/code-add.png')"
alt=
""
/>
从素材中选择
<img
style=
"margin-right: 3px"
:src=
"require('@/assets/drainageCode/code-add.png')"
alt=
""
/>
从素材中选择
</div>
</div>
<el-form-item
label=
"欢迎语
"
required
style=
"width: 50%; margin-bottom: 0"
:error=
"welcomeMsgError"
>
<el-form-item
:label=
"isgroup ? '消息内容': '欢迎语'
"
required
style=
"width: 50%; margin-bottom: 0"
:error=
"welcomeMsgError"
>
<el-input
ref=
"msgTextarea"
type=
"textarea"
v-model=
"form.welcomeMsg"
maxlength=
"2000"
show-word-limit
placeholder=
"请输入"
:autosize=
"
{ minRows: 5, maxRows: 20 }" clearable />
<el-input
ref=
"msgTextarea"
type=
"textarea"
v-model=
"form.welcomeMsg"
maxlength=
"2000"
show-word-limit
placeholder=
"请输入"
:autosize=
"
{ minRows: 5, maxRows: 20 }" clearable />
</el-form-item>
</el-form-item>
<el-form-item
style=
"margin-bottom: 0"
>
<el-form-item
style=
"margin-bottom: 0"
v-if=
"!isgroup"
>
<el-checkbox
@
change=
"onInsert"
>
插入客户昵称
</el-checkbox>
<el-checkbox
@
change=
"onInsert"
>
插入客户昵称
</el-checkbox>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -205,6 +205,10 @@
...
@@ -205,6 +205,10 @@
}
}
}
}
},
},
isgroup
:
{
type
:
Boolean
,
default
:
false
},
showTemplate
:
{
showTemplate
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
...
@@ -262,7 +266,7 @@
...
@@ -262,7 +266,7 @@
welSelected
:
{},
welSelected
:
{},
selectedUserList
:
[],
selectedUserList
:
[],
dialogVisibleSelectUser
:
false
,
dialogVisibleSelectUser
:
false
,
strTemplate1
:
'%
客户昵称
%'
,
strTemplate1
:
'%
NICKNAME
%'
,
strTemplate2
:
'#客户昵称#'
strTemplate2
:
'#客户昵称#'
}
}
},
},
...
@@ -328,7 +332,7 @@
...
@@ -328,7 +332,7 @@
this
.
form
.
welcomeMsg
=
msg
.
slice
(
0
,
textIndex
)
+
str
+
msg
.
slice
(
textIndex
)
this
.
form
.
welcomeMsg
=
msg
.
slice
(
0
,
textIndex
)
+
str
+
msg
.
slice
(
textIndex
)
}
}
}
else
{
}
else
{
this
.
form
.
welcomeMsg
=
this
.
strType
?
msg
.
replace
(
/
\%
客户昵称
\%
/
,
''
)
:
msg
.
replace
(
/
\#
客户昵称
\#
/
,
''
)
this
.
form
.
welcomeMsg
=
this
.
strType
?
msg
.
replace
(
/
\%
NICKNAME
\%
/
,
''
)
:
msg
.
replace
(
/
\#
客户昵称
\#
/
,
''
)
}
}
},
},
onChooseMaterial
(
materialType
,
rowIndex
)
{
onChooseMaterial
(
materialType
,
rowIndex
)
{
...
...
linkwe-ui/src/views/groupMessage/add.vue
View file @
e102d57
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
</el-form>
</el-form>
</div>
</div>
<div
v-if=
"currentActive === 2"
>
<div
v-if=
"currentActive === 2"
>
<welcome-detail
showBack
showMorMaterial
:currentActive
.
sync=
"currentActive"
@
update=
"currentActive = 1"
@
submit=
"save"
></welcome-detail>
<welcome-detail
showBack
showMorMaterial
isgroup
:currentActive
.
sync=
"currentActive"
@
update=
"currentActive = 1"
@
submit=
"save"
></welcome-detail>
</div>
</div>
<!-- 选择添加人弹窗 -->
<!-- 选择添加人弹窗 -->
<SelectUser
:visible
.
sync=
"dialogVisibleSelectUser"
title=
"选择添加人"
destroyOnClose
:defaultValues=
"selectedUserList"
@
success=
"selectedUser"
></SelectUser>
<SelectUser
:visible
.
sync=
"dialogVisibleSelectUser"
title=
"选择添加人"
destroyOnClose
:defaultValues=
"selectedUserList"
@
success=
"selectedUser"
></SelectUser>
...
...
linkwe-ui/src/views/groupMessage/detail.vue
View file @
e102d57
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
},
},
memberState
:
{
memberState
:
{
0
:
'未发送'
,
0
:
'未发送'
,
1
:
'已发送'
2
:
'已发送'
},
},
member
:
{
member
:
{
loading
:
false
,
loading
:
false
,
...
...
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