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
e2bbbff2
authored
Sep 05, 2022
by
郑艺斌
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 地图增加厂区
parent
38e8c73b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
src/views/modules/siteAdmin/mapAdmin/add.vue
src/views/modules/siteAdmin/mapAdmin/add.vue
View file @
e2bbbff2
...
...
@@ -8,6 +8,12 @@
<el-form-item
label=
"地图ID"
prop=
"thirdId"
>
<el-input
v-model=
"formData.thirdId"
placeholder=
"地图ID"
></el-input>
</el-form-item>
<el-form-item
label=
"厂区:"
prop=
"factoryId"
>
<el-select
v-model=
"formData.factoryId"
placeholder=
"请选择厂区"
>
<el-option
v-for=
"item in factoryOptions"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"备注:"
>
<el-input
type=
"textarea"
v-model=
"formData.remark"
:rows=
"3"
></el-input>
</el-form-item>
...
...
@@ -32,9 +38,11 @@
<
script
>
import
MapAdmin
from
'@/api/siteAdmin/MapAdmin'
import
FactoryAdmin
from
'@/api/siteAdmin/FactoryAdmin'
export
default
{
MapAdmin
:
null
,
FactoryAdmin
:
null
,
name
:
''
,
components
:
{},
props
:
{
...
...
@@ -68,10 +76,14 @@ export default {
thirdId
:
[
{
required
:
true
,
message
:
'请输入地图ID'
,
trigger
:
'blur'
},
],
factoryId
:
[
{
required
:
true
,
message
:
'请选择厂区'
,
trigger
:
'change'
},
],
sort
:
[
{
required
:
true
,
message
:
'请输入排序'
,
trigger
:
'blur'
},
]
}
],
},
factoryOptions
:
[]
}
},
watch
:
{},
...
...
@@ -132,12 +144,19 @@ export default {
dialogClose
()
{
this
.
$parent
.
_data
.
dialogConfig
.
open
=
false
},
// 获取厂区下拉列表
getFactoryList
()
{
this
.
FactoryAdmin
.
getFactoryList
().
then
(({
data
})
=>
{
this
.
factoryOptions
=
data
})
},
},
created
()
{
this
.
MapAdmin
=
new
MapAdmin
()
this
.
FactoryAdmin
=
new
FactoryAdmin
()
},
mounted
()
{
this
.
getFactoryList
()
}
}
</
script
>
...
...
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