Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-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-platform
Commits
ab5377b9
Commit
ab5377b9
authored
May 10, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改设备新增
parent
facdeac3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
+22
-2
device-manager-ui/admin/src/assets/mixins/table.js
device-manager-ui/admin/src/assets/mixins/table.js
+13
-0
device-manager-ui/admin/src/components/Table.vue
device-manager-ui/admin/src/components/Table.vue
+1
-0
device-manager-ui/admin/src/views/device/list.vue
device-manager-ui/admin/src/views/device/list.vue
+8
-2
No files found.
device-manager-ui/admin/src/assets/mixins/table.js
View file @
ab5377b9
...
...
@@ -143,6 +143,19 @@ export default {
//return content;
return
content
?
<
el
-
tag
type
=
{
'
info
'
}
size
=
'
mini
'
>
{
content
}
<
/el-tag> : va
l
},
formatterYES
(
row
,
column
,
val
)
{
const
content
=
formatter
(
this
.
tableData
,
column
,
val
);
if
(
content
)
{
if
(
val
==
'
0
'
)
{
return
<
el
-
tag
type
=
{
'
danger
'
}
size
=
'
mini
'
>
{
content
}
<
/el-tag
>
}
else
if
(
val
==
'
1
'
)
{
return
<
el
-
tag
type
=
{
'
success
'
}
size
=
'
mini
'
>
{
content
}
<
/el-tag
>
}
}
else
{
return
val
}
},
formatterDictLink
(
row
,
column
,
val
)
{
const
content
=
formatter
(
this
.
tableData
,
column
,
val
);
...
...
device-manager-ui/admin/src/components/Table.vue
View file @
ab5377b9
...
...
@@ -143,6 +143,7 @@ export default {
methods
:
{
// 根据url的query参数判断是否展示查询条件
isShowSearch
(
query
)
{
return
true
;
if
(
!
this
.
config
.
showSearch
)
{
return
false
}
...
...
device-manager-ui/admin/src/views/device/list.vue
View file @
ab5377b9
...
...
@@ -76,7 +76,13 @@ export default {
{
name
:
'
deviceNum
'
,
type
:
'
text
'
,
label
:
'
设备编号
'
,
label
:
'
设备编码
'
,
},
{
name
:
'
deviceType
'
,
type
:
'
select
'
,
label
:
'
设备类型
'
,
},
{
name
:
'
deviceOnlineStatus
'
,
...
...
@@ -96,7 +102,7 @@ export default {
{
label
:
"
在线状态
"
,
prop
:
"
deviceOnlineStatus
"
,
formatter
:
this
.
formatter
,
formatter
:
this
.
formatter
YES
,
},
{
...
...
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