Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
3c2504d6
Commit
3c2504d6
authored
Mar 01, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改站点请求地址
parent
2ccf1687
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
9 deletions
+31
-9
device-manager-ui/admin/src/views/device/list.vue
device-manager-ui/admin/src/views/device/list.vue
+31
-9
No files found.
device-manager-ui/admin/src/views/device/list.vue
View file @
3c2504d6
...
...
@@ -61,7 +61,7 @@
slot=
"table-body-head"
size=
"mini"
class=
"cursord"
@
click=
"changeStat
(null
)"
@
click=
"changeStat
All(
)"
>
设备总数:
{{
tableData
.
totalCount
}}
台
</el-tag
>
...
...
@@ -91,7 +91,7 @@
style=
"margin: 5px"
type=
"danger"
class=
"cursord"
@
click=
"changeStat
(null,
0)"
@
click=
"changeStat
Enabled(
0)"
>
停用:
{{
tableData
.
stopCount
}}
台
</el-tag
>
...
...
@@ -318,22 +318,33 @@ export default {
this
.
$refs
.
drawerViewform
.
view
(
row
);
},
changeStat
(
val
,
enabled
)
{
//去除其它条件
changeStatAll
()
{
delete
this
.
query
[
"
productId
"
]
delete
this
.
query
[
"
deviceName
"
]
delete
this
.
query
[
"
deviceCode
"
]
if
(
val
!=
null
){
this
.
query
=
Object
.
assign
(
this
.
query
,
{
deviceStatus
:
val
});
}
delete
this
.
query
[
"
deviceStatus
"
]
this
.
query
[
"
page
"
]
=
1
this
.
query
=
Object
.
assign
(
this
.
query
,
{
deviceStatusList
:
[
1
,
2
],
enabled
:
1
,
});
this
.
getData
();
},
changeStatEnabled
(
enabled
)
{
//去除其它条件
// delete this.query["productId"]
//delete this.query["deviceName"]
//delete this.query["deviceCode"]
this
.
query
[
"
page
"
]
=
1
if
(
!
enabled
)
{
this
.
query
=
Object
.
assign
(
this
.
query
,
{
deviceStatusList
:
[
1
,
2
],
enabled
:
enabled
,
});
}
this
.
getData
();
// delete this.query.deviceStatus
...
...
@@ -341,6 +352,17 @@ export default {
// delete this.query.deviceStatusList
},
changeStat
(
val
)
{
//去除其它条件
// delete this.query["productId"]
//delete this.query["deviceName"]
// delete this.query["deviceCode"]
this
.
query
=
Object
.
assign
(
this
.
query
,
{
deviceStatus
:
val
});
this
.
query
[
"
page
"
]
=
1
this
.
getData
();
},
activeDevice
(
row
)
{
this
.
$post
(
"
/device/active
"
,
{
...
...
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