Commit bd6b24cd by 周志凯

出入口多选解决无法保存问题解决

1 parent 2d289783
...@@ -80,11 +80,13 @@ ...@@ -80,11 +80,13 @@
handler: function(val) { handler: function(val) {
this.changeScope() this.changeScope()
}, },
immediate: true,
deep: true deep: true
} }
}, },
created() { created() {
if(!this.multiCheckedGateId) { console.log('created', this.multiCheckedGateId)
if(!this.multiCheckedGateId.length) {
this.$store.dispatch('malls/getMallList', { this.$store.dispatch('malls/getMallList', {
data: { data: {
accountId: this.getStorage('accountId'), accountId: this.getStorage('accountId'),
...@@ -125,7 +127,7 @@ ...@@ -125,7 +127,7 @@
// }) // })
}, },
confirmFun() { confirmFun() {
if(this.checkedMallIds.length == 0){ if(this.checkedGateIds.length == 0){
uni.showToast({ uni.showToast({
icon:'none', icon:'none',
title:'请至少选择一项' title:'请至少选择一项'
......
...@@ -188,7 +188,7 @@ const actions = { ...@@ -188,7 +188,7 @@ const actions = {
commit(MALLS.CHECKED_GATE_ID, gateId) commit(MALLS.CHECKED_GATE_ID, gateId)
}, },
updateMultiCheckedGate({ commit }, multiGateId) { updateMultiCheckedGate({ commit }, multiGateId) {
commit(MALLS.CHECKED_MULTI_GATE_ID, multiMallId) commit(MALLS.CHECKED_MULTI_GATE_ID, multiGateId)
}, },
updateStartEndDate({ commit }, { startDate, endDate, startPickerIdx, endPickerIdx }) { updateStartEndDate({ commit }, { startDate, endDate, startPickerIdx, endPickerIdx }) {
startDate && commit(MALLS.SET_START_DATE, startDate) startDate && commit(MALLS.SET_START_DATE, startDate)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!