Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
super-hive-web
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
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SuperHive
front-end
super-hive-web
Commits
50855918
Commit
50855918
authored
Aug 14, 2020
by
huangcb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into huangcb
parents
7f083249
54590696
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
index.vue
src/views/equipment-management/device-instance/index.vue
+20
-0
No files found.
src/views/equipment-management/device-instance/index.vue
View file @
50855918
...
...
@@ -140,6 +140,16 @@
label-width=
"90px"
:rules=
"rules"
>
<el-form-item
label=
"设备类型:"
prop=
"deviceTypeId"
>
<el-select
v-model=
"instanceForm.deviceTypeId"
>
<el-option
v-for=
"(deviceType, index) in deviceTypeList"
:key=
"index"
:label=
"deviceType.name"
:value=
"deviceType.id"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"设备名称:"
prop=
"name"
...
...
@@ -177,6 +187,7 @@
<
script
>
import
{
getTableData
,
addDeviceInstance
,
updateDeviceInstance
,
deleteDeviceInstance
}
from
'
@/api/equipment-management/device-instance
'
import
{
getAllDeviceModel
}
from
'
@/api/equipment-management/equipment-instance
'
import
dictionary
from
'
@/utils/dictionary
'
export
default
{
name
:
'
DeviceInstance
'
,
...
...
@@ -201,6 +212,7 @@ export default {
add
:
true
,
dialogVisible
:
false
,
tableData
:
[],
deviceTypeList
:
[],
addForm
:
{
input
:
null
,
status
:
null
...
...
@@ -213,6 +225,9 @@ export default {
deviceStatusDialog
:
false
,
deviceHistoryDialog
:
false
,
rules
:
{
deviceTypeId
:
[
{
required
:
true
,
message
:
'
请选择设备类型
'
,
trigger
:
'
blur
'
}
],
name
:
[
{
required
:
true
,
message
:
'
请输入设备名称
'
,
trigger
:
'
blur
'
}
],
...
...
@@ -226,6 +241,11 @@ export default {
},
created
()
{
this
.
getTableData
(
1
)
getAllDeviceModel
()
.
then
(
res
=>
{
this
.
deviceTypeList
=
res
.
data
})
.
catch
(
_
=>
{})
},
mounted
()
{},
methods
:
{
...
...
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