fix: bug#10669、10679、10680
This commit is contained in:
parent
7e2ea45ad8
commit
c70dcf6f62
|
|
@ -120,7 +120,11 @@ function getTree(cb?: Function) {
|
|||
getTreeData_api(params)
|
||||
.then((resp: any) => {
|
||||
selectedKeys.value = [resp.result[0].id];
|
||||
sourceTree.value = resp.result; // 报存源数据
|
||||
sourceTree.value = resp.result.sort((a: any, b: any) =>
|
||||
a.sortIndex === b.sortIndex
|
||||
? b.createTime - a.createTime
|
||||
: a.sortIndex - b.sortIndex,
|
||||
); // 报存源数据
|
||||
handleTreeMap(resp.result); // 将树形结构转换为map结构
|
||||
treeData.value = resp.result; // 第一次不用进行过滤
|
||||
cb && cb();
|
||||
|
|
|
|||
|
|
@ -267,6 +267,7 @@ const columns = [
|
|||
ellipsis: true,
|
||||
search: {
|
||||
type: 'string',
|
||||
first: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,8 +14,13 @@
|
|||
model="TABLE"
|
||||
:params="queryParams"
|
||||
:defaultParams="{
|
||||
pageSize: 10,
|
||||
sorts: [{ name: 'createTime', order: 'desc' }],
|
||||
}"
|
||||
:pagination="{
|
||||
showSizeChanger: true,
|
||||
pageSizeOptions: ['10', '20', '50', '100'],
|
||||
}"
|
||||
>
|
||||
<template #headerTitle>
|
||||
<PermissionButton
|
||||
|
|
@ -128,7 +133,7 @@ const permission = 'system/User';
|
|||
|
||||
const columns = [
|
||||
{
|
||||
title: '名称',
|
||||
title: '姓名',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
ellipsis: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue