|
@@ -49,7 +49,7 @@
|
|
|
<el-checkbox-group
|
|
|
v-if="form.layeringType === '广域分层'"
|
|
|
v-model="form.layersBig"
|
|
|
- @change="(val) => handleCheck('big', val, 3)">
|
|
|
+ @change="(val) => handleCheck('big', val)">
|
|
|
<el-checkbox v-for="item in layersListBig" :label="item.label" :value="item.value" />
|
|
|
</el-checkbox-group>
|
|
|
|
|
@@ -333,8 +333,9 @@ function handleCheck(type, checkVal) {
|
|
|
checkedLen = checkVal.length
|
|
|
typeAll = layersListBig
|
|
|
} else {
|
|
|
- typeAll = layersListSmall.value.slice(typeMap[type][0], typeMap[type][1])
|
|
|
- checkedLen = typeAll.filter((a) => checkVal.indexOf(a) > -1).length
|
|
|
+ typeAll = layersListSmall.value.slice(typeMap[type][0], typeMap[type][1] + 1)
|
|
|
+ checkedLen = typeAll.filter((a) => checkVal.indexOf(a.value) > -1).length
|
|
|
+ console.log(typeAll, checkVal)
|
|
|
}
|
|
|
indeterminate[type] = checkedLen < typeAll.length && checkedLen > 0
|
|
|
checkAll[type] = checkedLen === typeAll.length
|
|
@@ -374,7 +375,7 @@ function clearAll(all = false) {
|
|
|
const currentList = form.value.layeringType === '广域分层' ? layersListBig : layersListSmall.value
|
|
|
currentList.forEach((i) => {
|
|
|
if ([...lastBigLayers, ...lastSmallLayers].includes(i.value)) {
|
|
|
- toggleSingleLayer({ id: i.id, value: i.value })
|
|
|
+ toggleSingleLayer({ id: i.id, value: i.value }, false)
|
|
|
}
|
|
|
})
|
|
|
lastBigLayers = []
|
|
@@ -450,5 +451,9 @@ onBeforeUnmount(() => {
|
|
|
width: 105px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .mr-0 {
|
|
|
+ margin-right: 0 !important;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|