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
341695fa
Commit
341695fa
authored
Jul 21, 2023
by
张耀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
修复编辑指标时报错问题
parent
2508951b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/page/main/forewarning/indicator-config/modules/warning-scope.vue
...in/forewarning/indicator-config/modules/warning-scope.vue
+2
-2
No files found.
src/page/main/forewarning/indicator-config/modules/warning-scope.vue
View file @
341695fa
...
...
@@ -199,10 +199,10 @@ watch(
);
// 选择第一级,获取第二级数据
const
chooseTreeFirst
=
(
index
,
data
,
isInfo
=
false
)
=>
{
state
.
form
.
warningScopeRows
[
index
].
lastOptionsLoading
=
true
;
let
i
=
""
;
// 是否是父组件传过来的默认展示数据
if
(
!
isInfo
)
{
state
.
form
.
warningScopeRows
[
index
].
lastOptionsLoading
=
true
;
inputRef
.
value
[
index
].
focus
();
i
=
state
.
form
.
warningScopeRows
[
index
].
firstOptions
.
findIndex
((
e
)
=>
e
.
label
==
data
.
label
);
state
.
form
.
warningScopeRows
[
index
].
firstOptions
[
i
].
isLoading
=
true
;
...
...
@@ -223,8 +223,8 @@ const chooseTreeFirst = (index, data, isInfo = false) => {
}
})
.
finally
(()
=>
{
state
.
form
.
warningScopeRows
[
index
].
lastOptionsLoading
=
false
;
if
(
i
===
""
)
return
;
state
.
form
.
warningScopeRows
[
index
].
lastOptionsLoading
=
false
;
state
.
form
.
warningScopeRows
[
index
].
firstOptions
[
i
].
isLoading
=
false
;
});
};
...
...
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