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
b9186b87
Commit
b9186b87
authored
Jun 16, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 更新频次响应式变化
parent
fd065b63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
memberGroupEdit.vue
src/view/memberGroup/memberGroupEdit.vue
+7
-4
No files found.
src/view/memberGroup/memberGroupEdit.vue
View file @
b9186b87
...
...
@@ -444,24 +444,26 @@ export default {
ruleForm
:
{
deep
:
true
,
handler
:
function
(
n
,
o
){
console
.
log
(
0
)
let
flag
=
this
.
ruleForm
.
selectedTags
.
length
===
0
||
this
.
ruleForm
.
selectedTags
.
some
(
tagsGroup
=>
{
return
tagsGroup
.
length
===
0
||
tagsGroup
.
some
(
tag
=>
parseInt
(
tag
.
isActive
)
===
0
);
});
this
.
ruleForm
.
isActive
=
flag
?
0
:
1
;
this
.
handlerIsActive
(
this
.
ruleForm
.
isActive
);
}
},
'ruleForm.isActive'
(
newVal
)
{
const
{
fixedType
}
=
this
.
ruleForm
;
this
.
ruleForm
.
updateType
=
this
.
watchUpdateType
(
newVal
,
fixedType
);
},
'ruleForm.fixedType'
(
newVal
)
{
const
{
isActive
}
=
this
.
ruleForm
;
this
.
ruleForm
.
updateType
=
this
.
watchUpdateType
(
isActive
,
newVal
);
}
},
methods
:
{
handlerIsActive
(
newVal
){
const
{
fixedType
}
=
this
.
ruleForm
;
this
.
ruleForm
.
updateType
=
this
.
watchUpdateType
(
newVal
,
fixedType
);
},
validPeriodDateChange
(
v
){
this
.
ruleForm
.
fixedTime
=
parseTime
(
fixBeginTime
)
...
...
@@ -768,6 +770,7 @@ export default {
}
},
watchUpdateType
(
isActive
,
fixedType
)
{
console
.
log
(
isActive
,
fixedType
)
if
(
isActive
&&
!
fixedType
)
{
return
1
;
}
else
if
(
!
isActive
&&
!
fixedType
)
{
...
...
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