Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing-opeartion
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gic-web
marketing-opeartion
Commits
99635238
Commit
99635238
authored
Nov 25, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 模板数量限制
parent
e4b971d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
detail-form.vue
src/views/message/component/detail-form.vue
+12
-8
No files found.
src/views/message/component/detail-form.vue
View file @
99635238
...
...
@@ -12,8 +12,8 @@
<el-checkbox
v-for=
"v in channelList"
:key=
"v.channelId"
:label=
"v.channelId"
:disabled=
"disabledCheckBox.includes(v.channelId)"
>
{{
v
.
channelName
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item
label=
"短信模板数量"
prop=
"
use
TemplateCount"
>
<el-input-number
v-model=
"form.
useTemplateCount"
controls-position=
"right"
:min=
"form.limit
TemplateCount"
class=
"w90"
/>
<el-form-item
label=
"短信模板数量"
prop=
"
max
TemplateCount"
>
<el-input-number
v-model=
"form.
maxTemplateCount"
controls-position=
"right"
:min=
"form.use
TemplateCount"
class=
"w90"
/>
<span
class=
"tips"
>
该商户在商户后台看到的短信模板数量
</span>
</el-form-item>
<el-form-item
label=
"短信发送优先级"
prop=
"sendSmsType"
>
...
...
@@ -60,8 +60,8 @@ export default {
smsSignId
:
''
,
smsSignText
:
''
,
channelSignList
:
[],
use
TemplateCount
:
0
,
limit
TemplateCount
:
0
,
// 输入限制模板数量
max
TemplateCount
:
0
,
use
TemplateCount
:
0
,
// 输入限制模板数量
sendSmsType
:
0
,
appointChannel
:
null
,
// 指定通道时的类型
smsAppid
:
''
,
...
...
@@ -72,14 +72,13 @@ export default {
smsSignId
:
{
required
:
true
,
message
:
'请输入签名Id'
,
trigger
:
'blur'
},
smsSignText
:
{
required
:
true
,
message
:
'请输入短信签名'
,
trigger
:
'blur'
},
channelSignList
:
{
required
:
true
,
message
:
'请选择签名应用通道'
,
trigger
:
'blur'
},
use
TemplateCount
:
{
required
:
true
,
message
:
'请输短信模板数量'
,
trigger
:
'blur'
},
max
TemplateCount
:
{
required
:
true
,
message
:
'请输短信模板数量'
,
trigger
:
'blur'
},
sendSmsType
:
{
validator
:
sendSmsTypeValidate
,
trigger
:
'change'
}
}
};
},
created
()
{
this
.
getChannelList
();
this
.
getDetail
();
},
methods
:
{
async
getDetail
()
{
...
...
@@ -92,7 +91,7 @@ export default {
this
.
form
[
key
]
=
this
.
form
[
key
].
split
(
','
).
map
((
el
)
=>
+
el
);
this
.
disabledCheckBox
=
this
.
form
[
key
];
}
if
(
key
==
'
useTemplateCount'
)
this
.
form
[
'limit
TemplateCount'
]
=
this
.
form
[
key
]
||
0
;
if
(
key
==
'
maxTemplateCount'
)
this
.
form
[
'use
TemplateCount'
]
=
this
.
form
[
key
]
||
0
;
if
(
key
==
'sendSmsType'
&&
this
.
form
[
key
]
!=
0
)
{
this
.
form
[
'appointChannel'
]
=
this
.
form
[
key
];
this
.
form
[
key
]
=
1
;
...
...
@@ -113,6 +112,7 @@ export default {
async
getChannelList
()
{
const
{
result
}
=
await
getAllChannel
();
this
.
channelList
=
result
||
[];
this
.
getDetail
();
},
// 表单提交
submit
()
{
...
...
@@ -123,6 +123,10 @@ export default {
para
.
channelSignList
=
para
.
channelSignList
.
toString
();
delete
para
.
appointChannel
;
delete
para
.
limitTemplateCount
;
delete
para
.
channelSort
;
delete
para
.
channelSortRes
;
delete
para
.
useTemplateCount
;
delete
await
updateSms
(
para
);
this
.
$message
.
success
(
'保存成功'
);
this
.
getDetail
();
...
...
@@ -135,7 +139,7 @@ export default {
const
res
=
this
.
channelList
.
find
((
els
)
=>
els
.
channelId
==
el
);
return
res
?
res
.
channelName
:
null
;
}).
filter
(
el
=>
!!
el
);
return
result
.
join
(
'
<
'
);
return
result
.
join
(
'
>
'
);
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment