修改
This commit is contained in:
parent
67d39e23b3
commit
fa6c4eeb53
@ -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')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user