fix: bug#10669、10679、10680

This commit is contained in:
JiangQiming 2023-03-21 18:15:59 +08:00
parent 7e2ea45ad8
commit c70dcf6f62
3 changed files with 12 additions and 2 deletions

View File

@ -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();

View File

@ -267,6 +267,7 @@ const columns = [
ellipsis: true,
search: {
type: 'string',
first: true,
},
},
{

View File

@ -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,