Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
9f20bdc0
Commit
9f20bdc0
authored
Dec 02, 2024
by
LiXuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商城资源开发-标签主体
parent
2e40a842
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
189 additions
and
17 deletions
+189
-17
index.vue
src/views/mallResourceDevelopment/label/index.vue
+10
-4
labelData.ts
src/views/mallResourceDevelopment/label/labelData.ts
+179
-13
No files found.
src/views/mallResourceDevelopment/label/index.vue
View file @
9f20bdc0
...
...
@@ -14,7 +14,7 @@
<a-button
type=
"link"
style=
"padding: 0"
><SyncOutlined
/></a-button>
</div>
<div
style=
"flex: 9"
>
<PageWrapper
v-if=
"tabName"
:title=
"tabName"
>
<PageWrapper
:title=
"tabName"
>
<template
#
extra
>
<a-button
class=
"top-button"
type=
"primary"
:disabled=
"topButtonDisabled()"
>
移动
</a-button
...
...
@@ -133,6 +133,12 @@
console
.
log
(
'node'
,
node
);
// 获取标题
tabName
.
value
=
node
.
title
;
if
(
node
.
children
)
{
console
.
log
(
'children'
,
node
.
children
);
tabSetTableData
(
node
.
children
);
}
else
{
tabSetTableData
([
node
]);
}
// 获取列表
// console.log('key', key);
// tabName.value = findTitleById(labelTreeData[0], key[0]);
...
...
@@ -187,7 +193,7 @@
query
:
{
...
record
},
});
}
const
[
tabTable
,
{
getRowSelection
:
tabGetRowSelection
}]
=
useTable
({
const
[
tabTable
,
{
setTableData
:
tabSetTableData
,
getRowSelection
:
tabGetRowSelection
}]
=
useTable
({
title
:
''
,
api
:
async
(
params
)
=>
{
console
.
log
(
params
);
...
...
@@ -195,10 +201,10 @@
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
tabTableData
.
length
,
total
:
[]
,
code
:
''
,
message
:
''
,
data
:
tabTableData
,
data
:
[]
,
};
return
{
...
response
};
...
...
src/views/mallResourceDevelopment/label/labelData.ts
View file @
9f20bdc0
...
...
@@ -62,61 +62,227 @@ export const labelTreeData = [
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
{
title
:
'assets_2'
,
key
:
'1-2'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'assets_2'
,
key
:
'1-2'
,
icon
:
'ant-design:table-outlined'
,
name
:
'assets_2'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
],
},
{
title
:
'数据中台演示'
,
key
:
'2'
,
icon
:
'ion:folder-outline'
,
name
:
'数据中台演示'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
children
:
[
{
title
:
'middle_1'
,
key
:
'2-1'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'middle_2'
,
key
:
'2-2'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'middle_1'
,
key
:
'2-1'
,
icon
:
'ant-design:table-outlined'
,
name
:
'middle_1'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
{
title
:
'middle_2'
,
key
:
'2-2'
,
icon
:
'ant-design:table-outlined'
,
name
:
'middle_2'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
],
},
{
title
:
'数据资产-华东'
,
key
:
'3'
,
icon
:
'ion:folder-outline'
,
name
:
'数据资产-华东'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
children
:
[
{
title
:
'assets_EC_1'
,
key
:
'3-1'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'assets_EC_2'
,
key
:
'3-2'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'assets_EC_1'
,
key
:
'3-1'
,
icon
:
'ant-design:table-outlined'
,
name
:
'assets_EC_1'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
{
title
:
'assets_EC_2'
,
key
:
'3-2'
,
icon
:
'ant-design:table-outlined'
,
name
:
'assets_EC_2'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
],
},
{
title
:
'54所网络部'
,
key
:
'4'
,
icon
:
'ion:folder-outline'
,
name
:
'54所网络部'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
children
:
[
{
title
:
'ntd_1'
,
key
:
'4-1'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'ntd_2'
,
key
:
'4-2'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'ntd_1'
,
key
:
'4-1'
,
icon
:
'ant-design:table-outlined'
,
name
:
'ntd_1'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
{
title
:
'ntd_2'
,
key
:
'4-2'
,
icon
:
'ant-design:table-outlined'
,
name
:
'ntd_2'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
],
},
{
title
:
'54WLB'
,
key
:
'5'
,
icon
:
'ion:folder-outline'
,
name
:
'54WLB'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
children
:
[
{
title
:
'wlb_1'
,
key
:
'5-1'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'wlb_2'
,
key
:
'5-2'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'wlb_1'
,
key
:
'5-1'
,
icon
:
'ant-design:table-outlined'
,
name
:
'wlb_1'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
{
title
:
'wlb_2'
,
key
:
'5-2'
,
icon
:
'ant-design:table-outlined'
,
name
:
'wlb_2'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
],
},
{
title
:
'人力资源管理'
,
key
:
'6'
,
icon
:
'ion:folder-outline'
,
name
:
'人力资源管理'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
children
:
[
{
title
:
'hrm_1'
,
key
:
'6-1'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'hrm_2'
,
key
:
'6-2'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'hrm_1'
,
key
:
'6-1'
,
icon
:
'ant-design:table-outlined'
,
name
:
'hrm_1'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
{
title
:
'hrm_2'
,
key
:
'6-2'
,
icon
:
'ant-design:table-outlined'
,
name
:
'hrm_2'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
],
},
{
title
:
'文化休闲'
,
key
:
'7'
,
icon
:
'ion:folder-outline'
,
name
:
'文化休闲'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
children
:
[
{
title
:
'culture_leisure_1'
,
key
:
'7-1'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'culture_leisure_2'
,
key
:
'7-2'
,
icon
:
'ant-design:table-outlined'
},
{
title
:
'culture_leisure_1'
,
key
:
'7-1'
,
icon
:
'ant-design:table-outlined'
,
name
:
'culture_leisure_1'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
{
title
:
'culture_leisure_2'
,
key
:
'7-2'
,
icon
:
'ant-design:table-outlined'
,
name
:
'culture_leisure_2'
,
txt
:
''
,
createdBy
:
'admin'
,
createTime
:
'2023/05/05 14:22:56'
,
updateTime
:
'2023/05/05 14:22:56'
,
originalSubject
:
''
,
},
],
},
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment