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
8c855f07
Commit
8c855f07
authored
Dec 02, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
993ecec9
9b90e087
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
5 deletions
+62
-5
designData.ts
src/views/taskScheduling/taskFlowDesign/designData.ts
+52
-3
index.vue
src/views/taskScheduling/taskFlowDesign/index.vue
+10
-2
No files found.
src/views/taskScheduling/taskFlowDesign/designData.ts
View file @
8c855f07
...
...
@@ -58,6 +58,55 @@ export const designData = [
type
:
'theme'
,
themeId
:
'1-2'
,
},
{
businessId
:
9
,
name
:
'超时'
,
task
:
null
,
type
:
'twoLevel'
,
themeId
:
'1-1-1'
,
},
{
businessId
:
10
,
name
:
'test'
,
task
:
null
,
type
:
'twoLevel'
,
themeId
:
'1-1-2'
,
},
{
businessId
:
11
,
name
:
'sql'
,
task
:
null
,
type
:
'twoLevel'
,
themeId
:
'1-1-3'
,
},
{
businessId
:
13
,
name
:
'SLA-沟通流水'
,
task
:
null
,
type
:
'twoLevel'
,
themeId
:
'1-2-2'
,
},
{
businessId
:
14
,
name
:
'SLA-实时指标计算'
,
task
:
null
,
type
:
'twoLevel'
,
themeId
:
'1-2-3'
,
},
{
businessId
:
15
,
name
:
'sla分组件指标日批统计历史'
,
task
:
null
,
type
:
'twoLevel'
,
themeId
:
'1-2-4'
,
},
{
businessId
:
16
,
name
:
'SLA'
,
task
:
null
,
type
:
'twoLevel'
,
themeId
:
'1-2-5'
,
},
];
export
const
dataLoadConfigData
=
[
{
...
...
@@ -85,9 +134,9 @@ export const taskTreeData: TreeItem[] = [
level
:
'1'
,
icon
:
'ion:desktop-outline'
,
children
:
[
{
title
:
'超时'
,
key
:
'1-1-1'
,
icon
:
'ion:git-branch-outline'
},
{
title
:
'test'
,
key
:
'1-1-2'
,
icon
:
'ion:git-branch-outline'
},
{
title
:
'sql'
,
key
:
'1-1-3'
,
icon
:
'ion:git-branch-outline'
},
{
title
:
'超时'
,
level
:
'2'
,
key
:
'1-1-1'
,
icon
:
'ion:git-branch-outline'
},
{
title
:
'test'
,
level
:
'2'
,
key
:
'1-1-2'
,
icon
:
'ion:git-branch-outline'
},
{
title
:
'sql'
,
level
:
'2'
,
key
:
'1-1-3'
,
icon
:
'ion:git-branch-outline'
},
],
},
{
...
...
src/views/taskScheduling/taskFlowDesign/index.vue
View file @
8c855f07
...
...
@@ -359,13 +359,21 @@
}
else
{
modelLevel
.
value
=
0
;
}
if
(
modelLevel
.
value
>
1
)
{
if
(
modelLevel
.
value
===
2
)
{
const
regex
=
new
RegExp
(
key
,
'i'
);
const
data
=
tableData
.
value
.
filter
(
(
item
)
=>
item
.
type
===
'model'
&&
regex
.
test
(
item
.
themeId
),
);
setTableData
(
data
);
}
else
{
}
if
(
modelLevel
.
value
===
1
)
{
const
regex
=
new
RegExp
(
key
,
'i'
);
const
data
=
tableData
.
value
.
filter
(
(
item
)
=>
item
.
type
===
'twoLevel'
&&
regex
.
test
(
item
.
themeId
),
);
setTableData
(
data
);
}
if
(
modelLevel
.
value
===
0
)
{
const
regex
=
new
RegExp
(
key
,
'i'
);
const
data
=
tableData
.
value
.
filter
(
(
item
)
=>
item
.
type
===
'theme'
&&
regex
.
test
(
item
.
themeId
),
...
...
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