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
519a7056
Commit
519a7056
authored
Jan 09, 2025
by
方建宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
总管状态-静态数据修改
parent
9eab74aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
23 deletions
+14
-23
PipeStatusPage.vue
src/views/StatusPage/PipeStatusPage.vue
+14
-23
No files found.
src/views/StatusPage/PipeStatusPage.vue
View file @
519a7056
...
...
@@ -578,26 +578,17 @@ function makeFormsData(realData) {
//使用静态数据
async
function
getForms
(
NenterpriseId
,
deviceType
,
supplyIdList
,
sortList
)
{
try
{
// 设置加载状态为 true
// enterpriseId: NenterpriseId,supplyIdList:selectList,transferName:transferName, pageIndex: pageIndex, pageCount: pageCount,sortList:sortList
loading
.
value
=
true
;
// 使用已定义的 pipeStatus 更新表单标题和数据
if
(
pipeStatus
&&
pipeStatus
.
title
&&
pipeStatus
.
realData
)
{
makeFormsTitle
(
pipeStatus
.
title
);
titleData
.
value
=
pipeStatus
.
title
;
makeFormsData
(
pipeStatus
.
realData
);
}
else
{
console
.
error
(
'pipeStatus is not properly defined or lacks necessary properties.'
);
makeFormsData
([]);
// 如果 pipeStatus 不完整,则初始化表单数据为空数组
}
}
catch
(
error
)
{
// 捕获并处理任何发生的错误
console
.
error
(
'Error processing forms data:'
,
error
);
makeFormsData
([]);
// 在发生错误时初始化表单数据为空数组
}
finally
{
// 无论请求成功与否,最后都将加载状态设置为 false
loading
.
value
=
false
;
}
if
(
supplyIdList
==
'b354f45b-23e5-42be-a210-0fb92394f457'
)
{
makeFormsTitle
(
pipeStatus
.
title
);
titleData
.
value
=
pipeStatus
.
title
;
makeFormsData
(
pipeStatus
.
realData
);
}
else
{
makeFormsData
([]);
}
// console.log(tableInfo)
loading
.
value
=
false
}
// 使用动态数据
// async function getForms(NenterpriseId, deviceType, supplyIdList, sortList) {
...
...
@@ -607,11 +598,11 @@ async function getForms(NenterpriseId, deviceType, supplyIdList, sortList) {
// if (result.status === 0) {
// makeFormsTitle(result.data.title);
// titleData.value = result.data.title;
//
//
//
// makeFormsData(result.data.realData);
//
// } else {
// makeFormsData([]);
// }
...
...
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