Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
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
hooloo
web
soss
Commits
ba4a479d
Commit
ba4a479d
authored
Aug 04, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改机器状态
parent
0a28700f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
src/views/machine/machineDetails/machineDetails.vue
+9
-8
src/views/system/base/components/leftImg.vue
+0
-1
No files found.
src/views/machine/machineDetails/machineDetails.vue
View file @
ba4a479d
...
@@ -46,12 +46,12 @@
...
@@ -46,12 +46,12 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
>
<el-table-column
label=
"操作"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
v-show=
"scope.row.state == 4 || scope.row.state == 5"
size=
"mini"
type=
"text"
@
click=
"handle
Binding(
)"
>
下线
</el-button>
<el-button
v-show=
"scope.row.state == 4 || scope.row.state == 5"
size=
"mini"
type=
"text"
@
click=
"handle
Click(scope.row,6
)"
>
下线
</el-button>
<el-button
v-show=
"scope.row.state == 6 || scope.row.state == 7"
size=
"mini"
type=
"text"
@
click=
"handle
Binding(
)"
>
返厂
</el-button>
<el-button
v-show=
"scope.row.state == 6 || scope.row.state == 7"
size=
"mini"
type=
"text"
@
click=
"handle
Click(scope.row,8
)"
>
返厂
</el-button>
<el-button
v-show=
"scope.row.state == 6"
size=
"mini"
type=
"text"
@
click=
"handle
Binding(
)"
>
运维
</el-button>
<el-button
v-show=
"scope.row.state == 6"
size=
"mini"
type=
"text"
@
click=
"handle
Click(scope.row,7
)"
>
运维
</el-button>
<el-button
v-show=
"scope.row.state == 6 || scope.row.state == 7"
size=
"mini"
type=
"text"
@
click=
"handle
Binding(
)"
>
上线
</el-button>
<el-button
v-show=
"scope.row.state == 6 || scope.row.state == 7"
size=
"mini"
type=
"text"
@
click=
"handle
Click(scope.row,4
)"
>
上线
</el-button>
<el-button
v-show=
"scope.row.state == 2"
size=
"mini"
type=
"text"
@
click=
"handleBinding()"
>
店铺绑定
</el-button>
<el-button
v-show=
"scope.row.state == 2"
size=
"mini"
type=
"text"
@
click=
"handleBinding()"
>
店铺绑定
</el-button>
<el-button
v-show=
"scope.row.state == 8"
size=
"mini"
type=
"text"
@
click=
"handle
Binding(
)"
>
重置
</el-button>
<el-button
v-show=
"scope.row.state == 8"
size=
"mini"
type=
"text"
@
click=
"handle
Click(scope.row,1
)"
>
重置
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -149,14 +149,15 @@ export default {
...
@@ -149,14 +149,15 @@ export default {
this
.
$router
.
push
(
"/shop/shop/"
);
this
.
$router
.
push
(
"/shop/shop/"
);
},
},
//更新状态
//更新状态
updateState
(
row
){
handleClick
(
row
,
state
){
let
obj
=
{
let
obj
=
{
"machine_id"
:
row
.
id
,
"machine_id"
:
row
.
id
,
"state"
:
''
"state"
:
state
}
}
updateState
(
obj
).
then
((
response
)
=>
{
updateState
(
obj
).
then
((
response
)
=>
{
if
(
response
.
code
==
0
){
if
(
response
.
code
==
0
){
this
.
$modal
.
msgSuccess
(
"操作成功!"
);
this
.
getList
();
}
}
});
});
}
}
...
...
src/views/system/base/components/leftImg.vue
View file @
ba4a479d
...
@@ -24,7 +24,6 @@ export default {
...
@@ -24,7 +24,6 @@ export default {
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
console
.
log
(
"this.value"
,
this
.
value
)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
updateConfig
({
...
this
.
initValue
,
configValue
:
this
.
value
}).
then
(
res
=>
{
updateConfig
({
...
this
.
initValue
,
configValue
:
this
.
value
}).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
$modal
.
msgSuccess
(
"修改成功"
);
...
...
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