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
be71710f
Commit
be71710f
authored
Nov 08, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改知识库
parent
5453c88e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
6 deletions
+48
-6
index.vue
src/views/knowledgeBase/index.vue
+3
-3
knowledgeBaseData.ts
src/views/knowledgeBase/knowledgeBaseData.ts
+45
-3
No files found.
src/views/knowledgeBase/index.vue
View file @
be71710f
...
@@ -83,11 +83,11 @@
...
@@ -83,11 +83,11 @@
let
data
=
[];
let
data
=
[];
if
(
params
.
fileTypeId
==
100
)
{
if
(
params
.
fileTypeId
==
100
)
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
parentId
!==
0
);
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
parentId
!==
0
);
}
else
if
(
params
.
fileTypeId
==
101
)
{
}
else
if
(
params
.
fileTypeId
==
101
||
params
.
fileTypeId
==
111
)
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
fileTypeId
==
101
);
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
fileTypeId
==
101
);
}
else
if
(
params
.
fileTypeId
==
107
)
{
}
else
if
(
params
.
fileTypeId
==
107
||
params
.
fileTypeId
==
112
)
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
fileTypeId
==
107
);
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
fileTypeId
==
107
);
}
else
if
(
params
.
fileTypeId
==
203
)
{
}
else
if
(
params
.
fileTypeId
==
203
||
params
.
fileTypeId
==
113
)
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
fileTypeId
==
''
);
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
fileTypeId
==
''
);
}
else
{
}
else
{
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
parentId
!==
0
);
data
=
tableData
.
value
.
filter
((
item
)
=>
item
.
parentId
!==
0
);
...
...
src/views/knowledgeBase/knowledgeBaseData.ts
View file @
be71710f
...
@@ -13,12 +13,54 @@ export const TreeData: any[] = [
...
@@ -13,12 +13,54 @@ export const TreeData: any[] = [
createTime
:
'2024-10-24 10:04:04'
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
createBy
:
'admin'
,
},
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
111
,
workSpaceName
:
'文件夹1'
,
parentId
:
100
,
'code:'
:
'001'
,
ancestors
:
'0'
,
orderNum
:
0
,
children
:
[],
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
112
,
workSpaceName
:
'文件夹2'
,
parentId
:
100
,
'code:'
:
'001'
,
ancestors
:
'0'
,
orderNum
:
0
,
children
:
[],
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
113
,
workSpaceName
:
'文件夹3'
,
parentId
:
100
,
'code:'
:
'001'
,
ancestors
:
'0'
,
orderNum
:
0
,
children
:
[],
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
},
{
{
delFlag
:
'0'
,
delFlag
:
'0'
,
flag
:
'1'
,
flag
:
'1'
,
businessId
:
101
,
businessId
:
101
,
workSpaceName
:
'test'
,
workSpaceName
:
'test'
,
parentId
:
1
00
,
parentId
:
1
11
,
'code:'
:
'002'
,
'code:'
:
'002'
,
ancestors
:
'0,100'
,
ancestors
:
'0,100'
,
orderNum
:
1
,
orderNum
:
1
,
...
@@ -32,7 +74,7 @@ export const TreeData: any[] = [
...
@@ -32,7 +74,7 @@ export const TreeData: any[] = [
flag
:
'1'
,
flag
:
'1'
,
businessId
:
107
,
businessId
:
107
,
workSpaceName
:
'产品验收'
,
workSpaceName
:
'产品验收'
,
parentId
:
1
00
,
parentId
:
1
12
,
'code:'
:
'003'
,
'code:'
:
'003'
,
ancestors
:
'0,100'
,
ancestors
:
'0,100'
,
orderNum
:
2
,
orderNum
:
2
,
...
@@ -46,7 +88,7 @@ export const TreeData: any[] = [
...
@@ -46,7 +88,7 @@ export const TreeData: any[] = [
flag
:
'0'
,
flag
:
'0'
,
businessId
:
203
,
businessId
:
203
,
workSpaceName
:
'2222222'
,
workSpaceName
:
'2222222'
,
parentId
:
1
00
,
parentId
:
1
13
,
'code:'
:
'010'
,
'code:'
:
'010'
,
ancestors
:
'0,100,107'
,
ancestors
:
'0,100,107'
,
orderNum
:
2
,
orderNum
:
2
,
...
...
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