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
c19a2d10
Commit
c19a2d10
authored
Sep 13, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
架次类型选择组件
parent
14404fe6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
144 additions
and
1 deletion
+144
-1
index.vue
...nts/components/GenerateCreateOrproductionButton/index.vue
+1
-1
config.js
.../privateComponents/components/SoritesLinkSelect/config.js
+32
-0
index.vue
.../privateComponents/components/SoritesLinkSelect/index.vue
+111
-0
No files found.
applications/dee-mes/src/privateComponents/components/GenerateCreateOrproductionButton/index.vue
View file @
c19a2d10
...
@@ -53,7 +53,7 @@ export default {
...
@@ -53,7 +53,7 @@ export default {
'assemblyStartTime'
:
form
.
assemblyTime
[
0
],
'assemblyStartTime'
:
form
.
assemblyTime
[
0
],
'assemblyEndTime'
:
form
.
assemblyTime
[
1
],
'assemblyEndTime'
:
form
.
assemblyTime
[
1
],
'jobNo'
:
form
.
jobNo
,
'jobNo'
:
form
.
jobNo
,
'soritesType
'
:
{
type
:
form
.
soritesType
.
type
}
,
'soritesType
Id'
:
form
.
soritesTypeId
,
'aircraftTypeId'
:
form
.
aircraftTypeId
,
'aircraftTypeId'
:
form
.
aircraftTypeId
,
'aircraftSortiesId'
:
form
.
aircraftSortiesId
'aircraftSortiesId'
:
form
.
aircraftSortiesId
}
}
...
...
applications/dee-mes/src/privateComponents/components/SoritesLinkSelect/config.js
0 → 100644
View file @
c19a2d10
export
default
{
props
:
{},
layoutConfigData
:
[
{
title
:
'高级组件配置'
,
data
:
[
{
key
:
'linkageAttr'
,
title
:
'联动属性'
,
component
:
{
defaultValue
:
'aircraftSortiesId'
,
name
:
'el-input'
,
placeholder
:
'架次ID'
}
}
]
}
],
data
()
{
return
{
}
},
created
()
{
},
computed
:
{
},
methods
:
{
}
}
applications/dee-mes/src/privateComponents/components/SoritesLinkSelect/index.vue
0 → 100644
View file @
c19a2d10
<
template
>
<div>
<el-select
v-model=
"selVal"
:disabled=
"disabledVal"
>
<el-option
v-for=
"(item,i) in options"
:key=
"i"
:label=
"item.label"
:value=
"item.id"
/>
</el-select>
</div>
</
template
>
<
script
>
import
config
from
'./config'
import
_get
from
'lodash.get'
export
default
{
componentName
:
'架次类型'
,
name
:
'SoritesLinkSelect'
,
components
:
{},
mixins
:
[
config
],
props
:
{
form
:
{
type
:
Object
,
default
:
null
},
itemObj
:
{
type
:
Object
,
default
:
null
}
},
data
()
{
return
{
options
:
[],
disabledVal
:
false
,
selVal
:
''
}
},
computed
:
{},
watch
:
{
form
:
{
immediate
:
true
,
deep
:
true
,
handler
(
val
)
{
if
(
val
)
{
if
(
!
this
.
itemObj
.
linkageAttr
)
{
return
}
const
_val
=
_get
(
this
.
form
,
this
.
itemObj
.
linkageAttr
)
if
(
_val
!==
this
.
linkageValue
)
{
this
.
linkageValue
=
_val
this
.
getData
(
_val
)
}
}
}
},
itemObj
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
.
component
.
hasOwnProperty
(
'disabled'
))
{
this
.
disabledVal
=
v
.
component
.
disabled
}
}
}
},
// 生命周期 - 创建完成(可以访问当前this 实例)
created
()
{
},
// 生命周期 - 挂载之前
beforeMount
()
{
},
// 生命周期 - 挂载完成(可以访问 DOM 元素)
mounted
()
{
this
.
$nextTick
(()
=>
{
if
(
this
.
form
.
materialType
)
{
this
.
selVal
=
this
.
form
.
materialType
}
})
},
methods
:
{
getData
(
val
)
{
if
(
val
)
{
const
params
=
{
searchItems
:
{
items
:
[{
'fieldName'
:
'source.id'
,
operator
:
'EQ'
,
value
:
val
}],
operator
:
'AND'
},
'openProps'
:
[{
name
:
'target'
}]
}
this
.
$api
.
searchApi
(
'SoritesLink'
,
params
).
then
(
res
=>
{
this
.
options
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
row
.
target
.
id
,
label
:
row
.
target
.
type
}
})
})
}
},
changeVal
()
{
this
.
$emit
(
'input'
,
this
.
selVal
)
}
}
}
</
script
>
<
style
lang=
'scss'
scoped
>
</
style
>
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