|
@@ -66,6 +66,7 @@ import other from '@/utils/other';
|
|
// 引入组件
|
|
// 引入组件
|
|
const OrgAdd = defineAsyncComponent(() => import('@/views/system/organize/component/Org-add.vue')); // 新增组织机构
|
|
const OrgAdd = defineAsyncComponent(() => import('@/views/system/organize/component/Org-add.vue')); // 新增组织机构
|
|
const OrgEdit = defineAsyncComponent(() => import('@/views/system/organize/component/Org-edit.vue')); // 编辑组织机构
|
|
const OrgEdit = defineAsyncComponent(() => import('@/views/system/organize/component/Org-edit.vue')); // 编辑组织机构
|
|
|
|
+const TextTooltip = defineAsyncComponent(() => import('@/components/TextTooltip/index.vue'));
|
|
|
|
|
|
// 定义变量内容
|
|
// 定义变量内容
|
|
const state = reactive<any>({
|
|
const state = reactive<any>({
|
|
@@ -82,18 +83,27 @@ const state = reactive<any>({
|
|
dataKey: 'name',
|
|
dataKey: 'name',
|
|
title: '部门名称',
|
|
title: '部门名称',
|
|
width: 300,
|
|
width: 300,
|
|
|
|
+ cellRenderer: (data: any) => {
|
|
|
|
+ return <TextTooltip content={data.rowData.name} effect="dark" placement="top"></TextTooltip>;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
key: 'shortName',
|
|
key: 'shortName',
|
|
dataKey: 'shortName',
|
|
dataKey: 'shortName',
|
|
title: '部门简称',
|
|
title: '部门简称',
|
|
width: 300,
|
|
width: 300,
|
|
|
|
+ cellRenderer: (data: any) => {
|
|
|
|
+ return <TextTooltip content={data.rowData.shortName} effect="dark" placement="top"></TextTooltip>;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
key: 'parentName',
|
|
key: 'parentName',
|
|
dataKey: 'parentName',
|
|
dataKey: 'parentName',
|
|
title: '上级部门',
|
|
title: '上级部门',
|
|
width: 200,
|
|
width: 200,
|
|
|
|
+ cellRenderer: (data: any) => {
|
|
|
|
+ return <TextTooltip content={data.rowData.parentName} effect="dark" placement="top"></TextTooltip>;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
key: 'orgTypeText',
|
|
key: 'orgTypeText',
|