Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DC-TOM
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
刘照晖
DC-TOM
Commits
474d0900
Commit
474d0900
authored
Jul 14, 2025
by
liuzhaoh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理原因分析字段添加
parent
d5a0e74b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
6 deletions
+44
-6
AboutView.vue
src/views/AboutView/AboutView.vue
+34
-1
suspendManagement.vue
...uipmentManagement/suspendManagement/suspendManagement.vue
+10
-5
No files found.
src/views/AboutView/AboutView.vue
View file @
474d0900
...
...
@@ -140,6 +140,14 @@
popper-class=
"date-picker-popper"
/>
</el-form-item>
<el-form-item
label=
"原因分类"
prop=
"reasonCategory"
>
<el-select
v-model=
"equSubmitInfo.reasonCategory"
style=
"width: 220px;"
>
<el-option
v-for=
"item in reasonCategoryList"
:key=
"item.key"
:value=
"item.key"
:label=
"item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"原因描述"
prop=
"reasonDescription"
style=
"padding-left: 10px;"
>
<el-input
v-model=
"equSubmitInfo.reasonDescription"
type=
"textarea"
style=
"width: 220px;"
></el-input>
</el-form-item>
</el-form>
</div>
...
...
@@ -161,6 +169,7 @@ import CommonTable from "@/components/commonTable/index.vue";
import
{
useRoute
,
useRouter
}
from
"vue-router"
;
import
{
getDataFun
,
postDataJSON
}
from
"@/request/method.js"
;
import
moment
from
"moment"
;
import
{
ElMessage
}
from
"element-plus"
;
const
router
=
useRouter
();
const
route
=
useRoute
();
...
...
@@ -244,6 +253,7 @@ const rules = {
message
:
"请填写结束时间"
,
},
],
reasonCategory
:
[{
required
:
true
,
message
:
"请选择原因分类"
,
trigger
:
"blur"
}],
};
const
tableData
=
reactive
({
...
...
@@ -341,6 +351,8 @@ const equSubmitInfo = ref({
noAlarm
:
"0"
,
startTime
:
""
,
endTime
:
""
,
reasonCategory
:
""
,
// 原因分类
reasonDescription
:
""
,
// 原因描述
});
const
equPending
=
async
(
formEl
)
=>
{
...
...
@@ -359,6 +371,8 @@ const equPending = async (formEl) => {
"YYYY-MM-DD HH:mm:ss"
)
:
""
,
reasonCategory
:
equSubmitInfo
.
value
.
reasonCategory
,
// 原因分类
reasonDescription
:
equSubmitInfo
.
value
.
reasonDescription
,
// 原因描述
};
await
formEl
.
validate
((
valid
,
fields
)
=>
{
if
(
valid
)
{
...
...
@@ -367,12 +381,30 @@ const equPending = async (formEl) => {
equDialog
.
value
=
false
;
getAlarmList
();
}
});
ElMessage
.
success
(
res
&&
res
.
data
);
}).
catch
((
err
)
=>
{
ElMessage
.
error
(
res
&&
res
.
data
);
})
;
}
else
{
}
});
};
// 原因分类
const
reasonCategoryList
=
ref
([])
const
getReasonCategoryList
=
()
=>
{
const
url
=
'/alarm/reasonCategoryEnumList'
const
params
=
{}
getDataFun
(
url
,
params
).
then
(
res
=>
{
if
(
res
&&
res
.
code
==
1
)
{
reasonCategoryList
.
value
=
res
.
data
}
}).
catch
(
err
=>
{
})
}
onMounted
(
async
()
=>
{
if
(
route
.
query
)
{
const
{
deviceName
,
suspendStartTime
,
suspendEndTime
,
suspendFlag
}
=
...
...
@@ -393,6 +425,7 @@ onMounted(async () => {
getTypeList
();
getAlarmList
();
getReasonCategoryList
();
});
onBeforeUnmount
(()
=>
{});
...
...
src/views/equipmentManagement/suspendManagement/suspendManagement.vue
View file @
474d0900
...
...
@@ -86,7 +86,7 @@ const router = useRouter();
const
formInline
=
ref
({
projectId
:
""
,
deviceType
:
""
,
reasonCategory
:
""
,
reasonCategory
:
-
1
,
});
const
currentPage
=
ref
(
1
);
...
...
@@ -207,15 +207,20 @@ const getTypeList = () => {
};
const
reasonList
=
reactive
({
list
:
[],
list
:
[
{
value
:
"全部"
,
key
:
-
1
},
],
});
const
getReasonList
=
()
=>
{
const
url
=
"/alarm/reasonCategoryEnumList"
;
return
getDataFun
(
url
,
""
).
then
((
res
)
=>
{
if
(
res
&&
res
.
data
)
{
reasonList
.
list
=
res
.
data
||
[]
;
reasonList
.
list
.
push
(...
res
.
data
)
;
}
}).
catch
(
err
=>
{
reasonList
.
list
=
[{
value
:
"全部"
,
key
:
null
}];
throw
err
;
});
};
...
...
@@ -239,7 +244,7 @@ const pageRef = ref(null);
const
onReset
=
()
=>
{
formInline
.
value
=
{
deviceType
:
""
,
reasonCategory
:
""
,
reasonCategory
:
-
1
,
projectId
:
""
,
};
currentPage
.
value
=
1
;
...
...
@@ -253,7 +258,7 @@ const getManagementList = () => {
const
url
=
"/alarm/getSuspendDeviceListPage"
;
const
params
=
{
deviceType
:
formInline
.
value
.
deviceType
,
reasonCategory
:
formInline
.
value
.
reasonCategory
,
reasonCategory
:
formInline
.
value
.
reasonCategory
==
-
1
?
null
:
formInline
.
value
.
reasonCategory
,
projectId
:
formInline
.
value
.
projectId
,
pageNo
:
currentPage
.
value
,
pageSize
:
pageSize
.
value
,
...
...
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