This commit is contained in:
andy 2026-07-27 16:37:38 +08:00
parent 67d39e23b3
commit fa6c4eeb53

View File

@ -705,13 +705,12 @@ function flattenTree(list: undefined | any[]) {
const result: any[] = [] const result: any[] = []
function flatten(_list: any[] = []) { function flatten(_list: any[] = []) {
_list.forEach((item) => { _list.forEach((item) => {
result.push(item) //result.push(item)
if(item.childList){ if(item.childList){
flatten(item.childList) flatten(item.childList)
}else{
result.push(item)
} }
// else{
// result.push(item)
// }
}) })
} }
flatten(list) flatten(list)
@ -756,16 +755,19 @@ const issformRef = ref()
function isssavehand() { function isssavehand() {
issformRef.value?.validate((e:any) => { issformRef.value?.validate((e:any) => {
if (!e) { if (!e) {
message.success('操作成功') batchIssue('').then(() => {
setTimeout(() => { message.success('操作成功')
getlist() setTimeout(() => {
issueModel.value = false getlist()
},1500) issueModel.value = false
},1500)
})
} }
}) })
} }
// //
let selectedIds = ref<any>([]) //let selectedIds = ref<any>([])
function handleExport() { function handleExport() {
@ -805,6 +807,7 @@ onMounted(() => {
checkedKeys: value.value, checkedKeys: value.value,
onUpdateCheckedKeys: (checkedKeys: Array<string | number>) => { onUpdateCheckedKeys: (checkedKeys: Array<string | number>) => {
obj.onCheck(checkedKeys) obj.onCheck(checkedKeys)
console.log(value.value,'tree')
} }
}) })
} }