代码提交

This commit is contained in:
ym1026
2025-09-12 11:43:32 +08:00
parent f0720439d2
commit 1a66c87a5a
23 changed files with 63 additions and 198 deletions

View File

@@ -176,7 +176,6 @@ export default {
watch: {
workModeIdSelect: {
handler(n) {
console.log(n,'nnnnnnnnnnnnnnnnworkModeIdSelectn')
switch (n) {
case '1':
@@ -371,23 +370,8 @@ export default {
add: '/insertRole',
edit: '/updateRole'
}
const { selectedRowKeys, selectedArr } = this.$refs.treeTable[0]
console.log(selectedRowKeys, selectedArr, 'selectedRowKeys')
// const arr = selectedArr.map((item) => ({
// ...item,
// // 转换操作权限为布尔值
// ...this.getPerOperBoolean(item),
// // 递归处理children
// children: item.children
// ? item.children.map((child) => ({
// ...child,
// ...this.getPerOperBoolean(child),
// }))
// : []
// }))
// console.log(arr,"arr")
const { selectedRowKeys } = this.$refs.treeTable[0]
const data = this.filterTreeData(selectedRowKeys, this.$refs.treeTable[0].tableData)
const arr = data.map((item) => ({