Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
energyai_vue
Project
Project
Details
Activity
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
葛齐林
energyai_vue
Commits
2788c53e
Commit
2788c53e
authored
Jul 01, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控制
parent
15eaa0f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
page.vue
src/pages/eq/office/page.vue
+22
-3
No files found.
src/pages/eq/office/page.vue
View file @
2788c53e
...
...
@@ -21,8 +21,8 @@
:currentMode=
"currentModel"
>
<template
v-slot:operation=
"scope"
>
<el-button
type=
"text"
@
click=
"statusHandle"
>
开启
</el-button>
<el-button
type=
"text"
@
click=
"statusHandle"
>
关闭
</el-button>
<el-button
type=
"text"
@
click=
"statusHandle
(scope.scope,1)
"
>
开启
</el-button>
<el-button
type=
"text"
@
click=
"statusHandle
(scope.scope,2)
"
>
关闭
</el-button>
</
template
>
</table-list>
<!-- <en-table
...
...
@@ -286,7 +286,26 @@ export default {
}
}
},
statusHandle
()
{}
statusHandle
(
row
,
status
)
{
console
.
log
(
'row:'
,
row
)
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/equipment/onOrOff'
),
method
:
'post'
,
data
:
{
id
:
row
.
id
,
status
:
status
,
actionName
:
row
.
name
+
status
==
1
?
'开启'
:
'关闭'
,
actionType
:
1
}
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
$message
.
success
(
data
.
msg
)
}
else
{
this
.
$message
.
error
(
data
.
msg
)
}
})
}
}
}
</
script
>
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