Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
王刘锁
/
jianlin-tms-view
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5e902f7f
authored
Oct 24, 2022
by
王刘锁
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
设备类型
parent
8d05f656
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
src/views/modules/equipmentAdmin/equipmentAccount/add.vue
src/views/modules/siteAdmin/positionAdmin/add.vue
src/views/modules/equipmentAdmin/equipmentAccount/add.vue
View file @
5e902f7f
...
...
@@ -30,7 +30,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"点位:"
prop=
"pointId"
>
<el-form-item
label=
"点位:"
prop=
"pointId"
:rules=
"[
{ message: '请选择地图类型', trigger: 'change' },]"
>
<el-select
v-model=
"formData.pointId"
filterable
placeholder=
"点位"
>
<el-option
v-for=
"item in formData.pointOptions"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
...
...
@@ -123,6 +123,11 @@ export default {
// 打开弹窗
open
()
{
this
.
dialogVisible
=
!
this
.
dialogVisible
if
(
this
.
formData
.
mapId
)
{
this
.
PositionAdmin
.
getPointList
({
mapId
:
this
.
formData
.
mapId
}).
then
(({
data
})
=>
{
this
.
$set
(
this
.
formData
,
'pointOptions'
,
data
)
})
}
},
// 获取详情接口
async
getInfo
(
id
)
{
...
...
@@ -179,6 +184,7 @@ export default {
},
mounted
()
{
this
.
getMapList
()
}
}
</
script
>
...
...
src/views/modules/siteAdmin/positionAdmin/add.vue
View file @
5e902f7f
...
...
@@ -33,6 +33,12 @@
<el-radio
label=
"0"
>
禁用
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"库位管理:"
>
<el-radio-group
v-model=
"formData.manager"
>
<el-radio
label=
"1"
>
启用
</el-radio>
<el-radio
label=
"0"
>
禁用
</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
v-if=
"dialogConfig.type === 'add'"
type=
"primary"
@
click=
"getPointAdd('ruleForm')"
>
新 增
</el-button>
...
...
@@ -74,6 +80,7 @@ export default {
remark
:
''
,
sort
:
'0'
,
status
:
'1'
,
manager
:
'1'
},
rules
:
{
equipmentType
:
[
...
...
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