Browse Source

feat: 调整树样式

deploy-dev
xuziqiang 5 months ago
parent
commit
149f44a8dd
  1. 4
      hx-ai-intelligent/src/api/deviceManage.ts
  2. 3
      hx-ai-intelligent/src/view/equipmentManage/ledger/config.ts
  3. 2
      hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue
  4. 1
      lib/component/table/props.ts
  5. 1
      lib/component/tree/props.ts

4
hx-ai-intelligent/src/api/deviceManage.ts

@ -9,6 +9,6 @@ export enum device {
export enum group {
queryDeviceGroupTree = `${BASE_URL}/deviceGroup/queryDeviceGroupTree`, // 左侧树
creatOrUpdate = `${BASE_URL}/deviceGroup/creatOrUpdate`, // 左侧树节点新增编辑
del = `${BASE_URL}/deviceGroup/del`, // 左侧树节点新增编辑
move = `${BASE_URL}/deviceGroup/move`, // 左侧树节点新增编辑
del = `${BASE_URL}/deviceGroup/del`,
move = `${BASE_URL}/deviceGroup/move`,
}

3
hx-ai-intelligent/src/view/equipmentManage/ledger/config.ts

@ -33,6 +33,7 @@ export const tableConfig = (orgId) => {
},
},
rowSelection: null,
scroll: { x: 2000 },
columns: [
{
title: '设备名称',
@ -74,7 +75,7 @@ export const tableConfig = (orgId) => {
{
title: '设备厂商纳税人识别号',
dataIndex: 'deviceRatepay',
textNumber: 8,
textNumber: 9,
textEllipsis: true,
},
{

2
hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue

@ -8,6 +8,7 @@
<a-col :span="8" class="tree">
<a-tree
ref="treeRef"
:showLine="{ showLeafIcon: false }"
v-if="deptTreeData?.length"
:tree-data="deptTreeData"
:selectedKeys="deptTreeSelectedKeys"
@ -87,6 +88,7 @@
</a-space>
<a-tree
v-if="roleTreeData.length"
:showLine="{ showLeafIcon: false }"
:tree-data="roleTreeData"
:selectedKeys="roleTreeSelectedKeys"
blockNode

1
lib/component/table/props.ts

@ -34,6 +34,7 @@ export const tableProps = {
scroll: PropTypes.object.def(() => tableConfig.scroll), //操作栏
size: PropTypes.string.def('middle'),
showBack: PropTypes.bool.def(false),
bordered: PropTypes.bool.def(true),
pageField: PropTypes.string.def(tableConfig.pageField),
pageCountField: PropTypes.string.def(tableConfig.pageCount),
listField: PropTypes.string.def(tableConfig.listField),

1
lib/component/tree/props.ts

@ -16,6 +16,7 @@ export const treeProps = {
},
treeData: PropTypes.array.def([]),
params: PropTypes.object.def(() => ({})),
showLine: PropTypes.object.def(() => ({ showLeafIcon: false })),
dynamicParams: PropTypes.oneOfType([
PropTypes.string,
PropTypes.array,

Loading…
Cancel
Save