BUG 28306

This commit is contained in:
aixianling
2022-03-17 17:18:42 +08:00
parent c9e2cb1dce
commit 6e1abeb311

View File

@@ -76,7 +76,7 @@ export default {
dataRange() {
let rules = [10, 8, 6, 3, 0],
level = 0
if (this.all) return (level = 0)
if (this.all || this.disabled) return (level = 0)
rules.some((e, i) => {
let reg = new RegExp(`0{${e}}`, 'g')
if (reg.test(this.root)) {
@@ -236,6 +236,7 @@ export default {
getAreaName(area, name) {
name ? this.areaName = name : this.getFullArea(area).then(list => {
let arr = JSON.parse(JSON.stringify(list))
console.log(arr)
this.areaName = arr?.reverse()?.[0]?.name
})
let fullName = this.fullArea.map(e => e.name).join("")