Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TFMOM
TF-MOM-WEB
Commits
218251e1
Commit
218251e1
authored
Apr 15, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通用试验申请可以进行多架次选择
parent
0f9923ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
config.js
.../privateComponents/components/SortiesNameSelect/config.js
+8
-0
index.vue
.../privateComponents/components/SortiesNameSelect/index.vue
+17
-5
No files found.
applications/dee-mes/src/privateComponents/components/SortiesNameSelect/config.js
View file @
218251e1
...
...
@@ -11,6 +11,14 @@ export default {
defaultValue
:
'airModel'
,
name
:
'el-input'
}
},
{
key
:
'component.multiple'
,
title
:
'多选'
,
disabled
:
false
,
component
:
{
name
:
'el-switch'
}
}
]
}
...
...
applications/dee-mes/src/privateComponents/components/SortiesNameSelect/index.vue
View file @
218251e1
...
...
@@ -5,7 +5,7 @@
*/
<
template
>
<div
class=
"getSorties-select"
>
<el-select
v-model=
"selVal"
placeholder=
"请选择"
size=
"mini"
:disabled=
"disabledVal"
@
change=
"changeVal"
>
<el-select
v-model=
"selVal"
placeholder=
"请选择"
size=
"mini"
:
multiple=
"isMultiple"
:
disabled=
"disabledVal"
@
change=
"changeVal"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
...
...
@@ -37,7 +37,7 @@ export default {
default
:
()
=>
{}
},
value
:
{
type
:
[
Number
,
String
,
Object
],
type
:
[
Number
,
String
,
Object
,
Array
],
default
:
()
=>
''
}
},
...
...
@@ -49,7 +49,11 @@ export default {
linkageValue
:
''
}
},
computed
:
{},
computed
:
{
isMultiple
()
{
return
this
.
itemObj
.
multiple
||
this
.
$utils
.
_get
(
this
.
itemObj
,
'component.multiple'
)
||
false
}
},
watch
:
{
form
:
{
immediate
:
true
,
...
...
@@ -81,7 +85,11 @@ export default {
deep
:
true
,
handler
(
v
)
{
if
(
v
)
{
this
.
selVal
=
this
.
value
if
(
this
.
isMultiple
)
{
this
.
selVal
=
this
.
value
&&
this
.
value
.
split
(
','
)
}
else
{
this
.
selVal
=
this
.
value
}
}
}
}
...
...
@@ -109,7 +117,11 @@ export default {
}
},
changeVal
()
{
this
.
$emit
(
'input'
,
this
.
selVal
)
if
(
this
.
isMultiple
)
{
this
.
$emit
(
'input'
,
this
.
selVal
&&
this
.
selVal
.
length
>
1
&&
this
.
selVal
.
join
(
','
)
||
this
.
selVal
[
0
])
}
else
{
this
.
$emit
(
'input'
,
this
.
selVal
)
}
}
}
}
...
...
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