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 2ef446f4
authored
Sep 09, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit:短信内容添加字数限制
1 parent
42455ee0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
src/views/outbound/index.vue
src/views/outbound/index.vue
View file @
2ef446f
...
...
@@ -42,7 +42,7 @@
</
template
>
<
template
slot=
"excelName"
slot-scope=
"scope"
>
<div
class=
"flex"
>
<el-tooltip
v-if=
"scope.scope.excelName
&&
scope.scope.excelName.length >= Math.ceil((320 - 36) / 14)"
effect=
"light"
placement=
"top"
popper-class=
"base-popper"
:content=
"scope.scope.excelName"
>
<el-tooltip
v-if=
"scope.scope.excelName
&&
scope.scope.excelName.length >= Math.ceil((320 - 36) / 14)"
effect=
"light"
placement=
"top"
popper-class=
"base-popper"
:content=
"scope.scope.excelName"
>
<div
class=
"excelName"
>
{{
scope
.
scope
.
excelName
}}
</div>
</el-tooltip>
<div
v-else
>
{{
scope
.
scope
.
excelName
}}
</div>
...
...
@@ -87,7 +87,7 @@
<el-input
v-model=
"message.messageAutograph"
></el-input>
</el-form-item>
<el-form-item
label=
"短信内容:"
>
<el-input
v-model=
"message.messageDetail"
type=
"textarea"
:rows=
"3"
></el-input>
<el-input
v-model=
"message.messageDetail"
type=
"textarea"
:rows=
"3"
></el-input>
</el-form-item>
</el-form>
</div>
...
...
@@ -663,8 +663,15 @@ export default {
},
handleMessageConfirm
()
{
let
{
message
:
{
id
,
messageAutograph
,
messageDetail
}
message
:
{
id
,
messageAutograph
,
messageDetail
,
messageSuffix
}
}
=
this
if
(
messageAutograph
.
length
+
messageDetail
.
length
+
messageSuffix
.
length
>
200
){
this
.
$message
({
message
:
'短信内容不能超过200字符'
,
type
:
'error'
})
return
}
let
params
=
{
id
,
messageAutograph
,
...
...
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