This commit is contained in:
yanran200730
2023-03-24 10:37:39 +08:00
2 changed files with 2 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ export default {
{dictValue: "web", dictName: "web端"},
{dictValue: "mp", dictName: "小程序"},
{dictValue: "h5", dictName: "移动端H5"},
{dictValue: "wxwork", dictName: "企微端"},
]
}])
this.dict.load('yesOrNo')

View File

@@ -101,10 +101,7 @@ export default {
header: levelLabels[i], list
})).slice(Math.max(0, this.startLevel), this.endLevel)
if (this.startLevel > 0 && ops.length > 0) {
const tmp = this.$copy(ops[0]?.list?.[0] || {})
const prev = +tmp.type - 1
const prevId = tmp.parentId
prev > -1 && ops.unshift({header: levelLabels[prev], list: [this.hashMap[prevId]]})
ops[0].list = ops[0].list.filter(e => e.id == this.selectedMap[this.startLevel])
}
return ops
}