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
fff6b53a
Commit
fff6b53a
authored
Aug 28, 2023
by
旭艳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改指令维护自定义搜索组件1
parent
b7e47258
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
index.vue
.../src/privateComponents/components/SearchSorties/index.vue
+13
-1
No files found.
applications/dee-mes/src/privateComponents/components/SearchSorties/index.vue
View file @
fff6b53a
...
@@ -50,11 +50,20 @@ export default {
...
@@ -50,11 +50,20 @@ export default {
'form.sorties'
:
{
'form.sorties'
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
val
)
{
handler
(
val
)
{
const
sorties
=
this
.
sortiesData
.
find
(
r
=>
r
.
value
===
val
)
this
.
$set
(
this
.
form
,
'sortiesName'
,
sorties
&&
sorties
.
sortiesName
||
''
)
this
.
$utils
.
getDicListByCode
(
'SoriteType'
).
then
(
res
=>
{
this
.
$utils
.
getDicListByCode
(
'SoriteType'
).
then
(
res
=>
{
this
.
SoriteTypeOptions
=
res
this
.
SoriteTypeOptions
=
res
this
.
getStation
(
val
)
this
.
getStation
(
val
)
})
})
}
}
},
'form.postion'
:
{
immediate
:
true
,
handler
(
val
)
{
const
postion
=
this
.
postionList
.
find
(
r
=>
r
.
value
===
val
)
this
.
$set
(
this
.
form
,
'postionName'
,
postion
&&
postion
.
label
||
''
)
}
}
}
},
},
created
()
{
created
()
{
...
@@ -87,6 +96,7 @@ export default {
...
@@ -87,6 +96,7 @@ export default {
}
}
})
})
this
.
$set
(
this
.
form
,
'postion'
,
this
.
postionList
[
0
].
value
)
this
.
$set
(
this
.
form
,
'postion'
,
this
.
postionList
[
0
].
value
)
this
.
$set
(
this
.
form
,
'postionName'
,
this
.
postionList
[
0
].
label
)
}
}
})
})
}
}
...
@@ -100,10 +110,12 @@ export default {
...
@@ -100,10 +110,12 @@ export default {
this
.
sortiesData
=
res
.
items
.
content
.
map
(
row
=>
{
this
.
sortiesData
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
return
{
value
:
`
${
row
.
sourceId
}
:
${
row
.
targetId
}
`
,
value
:
`
${
row
.
sourceId
}
:
${
row
.
targetId
}
`
,
label
:
this
.
getSoritesLabel
(
row
)
label
:
this
.
getSoritesLabel
(
row
),
sortiesName
:
row
.
source
.
defName
}
}
})
})
this
.
$set
(
this
.
form
,
'sorties'
,
this
.
sortiesData
[
0
].
value
)
this
.
$set
(
this
.
form
,
'sorties'
,
this
.
sortiesData
[
0
].
value
)
this
.
$set
(
this
.
form
,
'sortiesName'
,
this
.
sortiesData
[
0
].
sortiesName
)
}
}
})
})
},
},
...
...
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