Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yindong-tongbai-automation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lichunliang
yindong-tongbai-automation
Commits
8212b00e
Commit
8212b00e
authored
Sep 12, 2025
by
sxl
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改接口
parent
f20fffec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
dailyinspection.js
src/api/patrol/dailyinspection.js
+7
-1
index.vue
src/views/inspection/patrol/dailyInspection/index.vue
+1
-2
No files found.
src/api/patrol/dailyinspection.js
View file @
8212b00e
...
@@ -37,8 +37,14 @@ export function addAllocation(data) {
...
@@ -37,8 +37,14 @@ export function addAllocation(data) {
// 修改【请填写功能名称】
// 修改【请填写功能名称】
export
function
updateAllocation
(
data
)
{
export
function
updateAllocation
(
data
)
{
if
(
data
.
inspectionObjectName
)
{
delete
data
.
inspectionObjectName
}
if
(
data
.
responsiblePersonName
)
{
delete
data
.
responsiblePersonName
}
return
request
({
return
request
({
url
:
'
/pc/inspection/allocation/
update
'
,
url
:
'
/pc/inspection/allocation/
edit
'
,
method
:
'
post
'
,
method
:
'
post
'
,
data
:
data
data
:
data
})
})
...
...
src/views/inspection/patrol/dailyInspection/index.vue
View file @
8212b00e
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-switch
<el-switch
v-model=
"scope.row.status"
v-model=
"scope.row.status"
:type=
"scope.row.status ==
=
0 ? '开启' : '关闭'"
:type=
"scope.row.status == 0 ? '开启' : '关闭'"
active-value=
"0"
active-value=
"0"
inactive-value=
"1"
inactive-value=
"1"
@
change=
"handleStatusChange(scope.row)"
@
change=
"handleStatusChange(scope.row)"
...
@@ -544,7 +544,6 @@ export default {
...
@@ -544,7 +544,6 @@ export default {
},
},
//日常巡检任务开关
//日常巡检任务开关
handleStatusChange
(
row
)
{
handleStatusChange
(
row
)
{
row
.
status
=
row
.
status
==
0
?
1
:
0
updateAllocation
(
row
).
then
(
response
=>
{
updateAllocation
(
row
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
'
修改成功
'
)
this
.
$modal
.
msgSuccess
(
'
修改成功
'
)
this
.
getList
()
this
.
getList
()
...
...
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