Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
b2feb1d2
Commit
b2feb1d2
authored
Oct 19, 2023
by
张耀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
修复bug:10740 【研发环境】点击预警规则名称,详情页面未展示出来
parent
1e4b1338
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
src/page/main/forewarning/rule-set/detail/index.vue
src/page/main/forewarning/rule-set/detail/index.vue
+13
-2
No files found.
src/page/main/forewarning/rule-set/detail/index.vue
View file @
b2feb1d2
...
...
@@ -126,6 +126,9 @@ const labelData = [
const
info
=
ref
({});
const
warning_scope_label
=
ref
([]);
const
watning_scope_data
=
ref
({});
const
watning_scope_data_key
=
computed
(()
=>
{
return
Object
.
keys
(
watning_scope_data
.
value
);
});
const
advanced_label
=
[
[
{
...
...
@@ -232,7 +235,11 @@ const getInfoData = () => {
ruleRows
.
value
=
data
.
alert_condition
.
map
((
e
)
=>
{
let
min
=
e
.
thresholds_min
+
unit
;
if
(
e
.
thresholds_min
===
undefined
)
{
if
(
ruleTypeOptions
.
value
[
data
.
alert_rule_type
].
down
!==
""
)
{
if
(
data
.
alert_rule_type
&&
ruleTypeOptions
.
value
[
data
.
alert_rule_type
]
&&
ruleTypeOptions
.
value
[
data
.
alert_rule_type
]?.
down
!==
""
)
{
min
=
ruleTypeOptions
.
value
[
data
.
alert_rule_type
].
down
+
unit
;
}
else
{
min
=
WIELESS_SMALL
;
...
...
@@ -240,7 +247,11 @@ const getInfoData = () => {
}
let
max
=
e
.
thresholds_max
+
unit
;
if
(
e
.
thresholds_max
===
undefined
)
{
if
(
ruleTypeOptions
.
value
[
data
.
alert_rule_type
].
up
!==
""
)
{
if
(
data
.
alert_rule_type
&&
ruleTypeOptions
.
value
[
data
.
alert_rule_type
]
&&
ruleTypeOptions
.
value
[
data
.
alert_rule_type
].
up
!==
""
)
{
max
=
ruleTypeOptions
.
value
[
data
.
alert_rule_type
].
up
+
unit
;
}
else
{
max
=
WIELESS_BIG
;
...
...
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