按部门选人
This commit is contained in:
@@ -28,28 +28,32 @@ export default {
|
||||
return {
|
||||
value: '',
|
||||
checkList: [
|
||||
{ name: '全部居民群', checked: true },
|
||||
{ name: '按部门选择', checked: false },
|
||||
{ name: '按网格选择', checked: false }
|
||||
{ name: '全部居民群', checked: true, value: '0'},
|
||||
{ name: '按部门选择', checked: false, value: '1'},
|
||||
{ name: '按网格选择', checked: false, value: '2' }
|
||||
],
|
||||
showContent: false,
|
||||
type: '',
|
||||
deptSelect: [],
|
||||
girdSelect: [],
|
||||
sendScope: '0',
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
checkBtn(e) {
|
||||
this.checkList.forEach(v=> v.checked = false)
|
||||
e.checked = true
|
||||
if(e.name == '按部门选择' || e.name == '按网格选择') {
|
||||
uni.navigateTo({url: `./scopedSelect?type=0`})
|
||||
} else {
|
||||
uni.navigateTo({url: `./scopedSelect?type=1`})
|
||||
if(e.value == '1' || e.value == '2') {
|
||||
uni.navigateTo({url: `./scopedSelect?type=${e.value}`})
|
||||
}
|
||||
this.sendScope = e.value
|
||||
},
|
||||
submit() {
|
||||
uni.navigateBack()
|
||||
uni.navigateBack({
|
||||
success: () => {
|
||||
uni.$emit("checkedScope",{ sendScope: this.sendScope });
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
onLoad(o) {
|
||||
|
||||
Reference in New Issue
Block a user