Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
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
memberTag
memberTag-web
Commits
10cd4822
Commit
10cd4822
authored
May 07, 2019
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对未选择标签或者添加了一个空标签组进行拦截
parent
9fcce8f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
memberGroupEdit.vue
src/view/memberGroup/memberGroupEdit.vue
+1
-1
member-tag.vue
src/view/platformTag/member-tag.vue
+6
-2
No files found.
src/view/memberGroup/memberGroupEdit.vue
View file @
10cd4822
...
...
@@ -364,7 +364,7 @@ export default {
this
.
$refs
.
ruleForm
.
validate
(
valid
=>
{
if
(
valid
)
{
const
flag
=
this
.
ruleForm
.
isActive
===
0
&&
this
.
ruleForm
.
updateType
!==
1
&&
this
.
ruleForm
.
updateDay
===
''
;
const
isEmpty
=
this
.
ruleForm
.
selectedTags
.
length
===
0
||
this
.
ruleForm
.
selectedTags
.
every
(
item
=>
item
.
length
===
0
);
const
isEmpty
=
this
.
ruleForm
.
selectedTags
.
length
===
0
||
this
.
ruleForm
.
selectedTags
.
some
(
item
=>
item
.
length
===
0
);
if
(
flag
)
{
this
.
$message
.
error
({
message
:
'请选择更新频率!'
});
return
false
;
...
...
src/view/platformTag/member-tag.vue
View file @
10cd4822
...
...
@@ -316,6 +316,11 @@ export default {
effectiveDateTmp
:
`
${
this
.
tagConfig
.
date
.
split
(
' '
)[
0
]}
23:59:59`
};
// 必填项目
const
isEmpty
=
this
.
selectedTags
.
length
===
0
||
this
.
selectedTags
.
some
(
item
=>
item
.
length
===
0
);
if
(
isEmpty
)
{
this
.
$message
.
warning
({
message
:
'请至少保留一个标签!'
})
return
;
}
if
(
param
.
groupName
==
''
)
{
this
.
$message
.
warning
({
message
:
'会员分组名称不能为空!'
})
return
;
...
...
@@ -800,4 +805,4 @@ export default {
.margin-60
{
margin-left
:
60px
;
}
</
style
>
\ No newline at end of file
</
style
>
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