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
adbbb9d5
Commit
adbbb9d5
authored
Sep 14, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
架次类型选择器
parent
61dbccc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
index.vue
.../privateComponents/components/SoritesLinkSelect/index.vue
+9
-11
No files found.
applications/dee-mes/src/privateComponents/components/SoritesLinkSelect/index.vue
View file @
adbbb9d5
<
template
>
<div>
<el-select
v-model=
"selVal"
:disabled=
"disabledVal"
>
<el-select
v-model=
"selVal"
:disabled=
"disabledVal"
@
change=
"changeVal"
>
<el-option
v-for=
"
(item,i)
in options"
:key=
"i"
v-for=
"
item
in options"
:key=
"i
tem.value
"
:label=
"item.label"
:value=
"item.
id
"
:value=
"item.
value
"
/>
</el-select>
</div>
...
...
@@ -34,7 +34,8 @@ export default {
return
{
options
:
[],
disabledVal
:
false
,
selVal
:
''
selVal
:
''
,
linkageValue
:
''
}
},
computed
:
{},
...
...
@@ -73,11 +74,7 @@ export default {
},
// 生命周期 - 挂载完成(可以访问 DOM 元素)
mounted
()
{
this
.
$nextTick
(()
=>
{
if
(
this
.
form
.
materialType
)
{
this
.
selVal
=
this
.
form
.
materialType
}
})
},
methods
:
{
getData
(
val
)
{
...
...
@@ -90,12 +87,13 @@ export default {
'openProps'
:
[{
name
:
'target'
}]
}
this
.
$api
.
searchApi
(
'SoritesLink'
,
params
).
then
(
res
=>
{
this
.
options
=
res
.
items
.
content
.
map
(
row
=>
{
const
options
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
row
.
target
.
id
,
label
:
row
.
target
.
type
}
})
this
.
options
=
options
})
}
},
...
...
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