Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
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
海康威视
web-project
Commits
49f5cb9a
Commit
49f5cb9a
authored
Dec 17, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了Ai工作站的一键启停bug
parent
9d241f58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
OnekeyStartStopPage.vue
src/views/RemotePage/OnekeyStartStopPage.vue
+7
-1
No files found.
src/views/RemotePage/OnekeyStartStopPage.vue
View file @
49f5cb9a
...
...
@@ -113,6 +113,7 @@ const saveStopStep = ref(-1);
const
activeCloseStep
=
ref
(
-
1
);
const
clientHeight
=
ref
(
"500px"
);
let
options
=
reactive
([]);
const
allOptions
=
reactive
([]);
const
transferId
=
ref
(
null
);
const
stationId
=
ref
(
null
);
const
limit
=
ref
(
0
);
...
...
@@ -383,6 +384,7 @@ function getSupplys() {
let
chi
=
[];
supply
.
transferList
.
forEach
(
unit
=>
{
chi
.
push
({
value
:
unit
.
unitId
,
label
:
unit
.
unitName
,
stationId
:
unit
.
stationId
});
allOptions
.
push
({
value
:
unit
.
unitId
,
label
:
unit
.
unitName
,
stationId
:
unit
.
stationId
})
});
c
.
push
({
children
:
chi
,
label
:
supply
.
supplyName
});
});
...
...
@@ -571,7 +573,11 @@ const onValueChange = (newValue) => {
};
async
function
TransferOpen
()
{
stationId
.
value
=
options
[
0
].
children
[
0
].
children
.
find
(
item
=>
item
.
value
===
transferId
.
value
).
stationId
console
.
log
(
'allOptions=======:'
,
allOptions
)
console
.
log
(
'options[0].children[0].children:'
,
options
[
0
].
children
[
0
].
children
)
console
.
log
(
'options[1].children[0].children:'
,
options
[
1
].
children
[
0
].
children
)
// stationId.value = options[1].children[0].children.find(item => item.value === transferId.value).stationId
stationId
.
value
=
allOptions
.
find
(
item
=>
item
.
value
===
transferId
.
value
).
stationId
// 清理定时任务
clearInterval
(
timerQuery
);
timerQuery
=
null
;
// 清空定时器 ID
...
...
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