Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
夏新然
/
appweb
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 bd6b24cd
authored
Apr 24, 2019
by
周志凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
出入口多选解决无法保存问题解决
1 parent
2d289783
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
pages/conditionList/multiGateList.vue
store/modules/malls.js
pages/conditionList/multiGateList.vue
View file @
bd6b24c
...
...
@@ -80,11 +80,13 @@
handler
:
function
(
val
)
{
this
.
changeScope
()
},
immediate
:
true
,
deep
:
true
}
},
created
()
{
if
(
!
this
.
multiCheckedGateId
)
{
console
.
log
(
'created'
,
this
.
multiCheckedGateId
)
if
(
!
this
.
multiCheckedGateId
.
length
)
{
this
.
$store
.
dispatch
(
'malls/getMallList'
,
{
data
:
{
accountId
:
this
.
getStorage
(
'accountId'
),
...
...
@@ -125,7 +127,7 @@
// })
},
confirmFun
()
{
if
(
this
.
checked
Mall
Ids
.
length
==
0
){
if
(
this
.
checked
Gate
Ids
.
length
==
0
){
uni
.
showToast
({
icon
:
'none'
,
title
:
'请至少选择一项'
...
...
store/modules/malls.js
View file @
bd6b24c
...
...
@@ -188,7 +188,7 @@ const actions = {
commit
(
MALLS
.
CHECKED_GATE_ID
,
gateId
)
},
updateMultiCheckedGate
({
commit
},
multiGateId
)
{
commit
(
MALLS
.
CHECKED_MULTI_GATE_ID
,
multi
Mall
Id
)
commit
(
MALLS
.
CHECKED_MULTI_GATE_ID
,
multi
Gate
Id
)
},
updateStartEndDate
({
commit
},
{
startDate
,
endDate
,
startPickerIdx
,
endPickerIdx
})
{
startDate
&&
commit
(
MALLS
.
SET_START_DATE
,
startDate
)
...
...
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