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
a29419ec
Commit
a29419ec
authored
Apr 16, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通用试验记录添加指令搜索条件配置
parent
a9b773d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
135 additions
and
1 deletion
+135
-1
config.js
...ivateComponents/components/SortiesSearchInAoAdd/config.js
+31
-0
index.vue
...ivateComponents/components/SortiesSearchInAoAdd/index.vue
+103
-0
index.vue
.../src/privateComponents/components/StationSelect/index.vue
+1
-1
No files found.
applications/dee-mes/src/privateComponents/components/SortiesSearchInAoAdd/config.js
0 → 100644
View file @
a29419ec
export
default
{
props
:
{},
layoutConfigData
:
[
{
title
:
'高级组件配置'
,
data
:
[
{
key
:
'inheritAttr'
,
title
:
'继承属性'
,
component
:
{
defaultValue
:
'sorties'
,
name
:
'el-input'
}
}
]
}
],
data
()
{
return
{
}
},
created
()
{
},
computed
:
{
},
methods
:
{
}
}
applications/dee-mes/src/privateComponents/components/SortiesSearchInAoAdd/index.vue
0 → 100644
View file @
a29419ec
/**
* @Description: 通用试验申请添加指令
*/
<
template
>
<div
class=
"inherit-select"
>
<el-select
v-model=
"selVal"
placeholder=
"请选择"
size=
"mini"
:disabled=
"disabledVal"
@
change=
"changeVal"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</div>
</
template
>
<
script
>
import
config
from
'./config'
import
_get
from
'lodash.get'
export
default
{
componentName
:
'继承外部数据下拉框'
,
name
:
'InheritSelect'
,
// name写在组件的最前方,自定义组件为必填
components
:
{},
mixins
:
[
config
],
props
:
{
itemObj
:
{
type
:
Object
,
default
:
null
},
form
:
{
type
:
Object
,
default
:
()
=>
{}
},
middleForm
:
{
type
:
Object
,
default
:
()
=>
{}
},
value
:
{
type
:
[
Number
,
String
,
Object
],
default
:
()
=>
''
},
basicData
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{
options
:
[],
selVal
:
''
,
disabledVal
:
false
,
inheritValue
:
''
}
},
computed
:
{},
watch
:
{
basicData
:
{
immediate
:
true
,
deep
:
true
,
handler
(
val
)
{
if
(
val
)
{
if
(
!
this
.
itemObj
.
inheritAttr
)
{
return
}
const
_val
=
_get
(
val
,
this
.
itemObj
.
inheritAttr
)
if
(
_val
!==
this
.
inheritValue
)
{
this
.
inheritValue
=
_val
if
(
this
.
inheritValue
&&
this
.
inheritValue
.
length
)
{
const
data
=
this
.
inheritValue
.
split
(
','
)
this
.
options
=
data
.
map
(
item
=>
{
return
{
value
:
item
,
label
:
item
}
})
}
else
{
this
.
options
=
[]
}
}
}
}
},
value
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
)
{
this
.
selVal
=
this
.
value
}
}
}
},
created
()
{
// 初始化数据
},
methods
:
{
changeVal
()
{
this
.
$emit
(
'input'
,
this
.
selVal
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
</
style
>
applications/dee-mes/src/privateComponents/components/StationSelect/index.vue
View file @
a29419ec
...
@@ -111,7 +111,7 @@ export default {
...
@@ -111,7 +111,7 @@ export default {
if
(
res
&&
res
.
items
&&
res
.
items
.
content
&&
res
.
items
.
content
[
0
].
extPosition
)
{
if
(
res
&&
res
.
items
&&
res
.
items
.
content
&&
res
.
items
.
content
[
0
].
extPosition
)
{
this
.
options
=
res
.
items
.
content
[
0
].
extPosition
.
map
(
v
=>
({
this
.
options
=
res
.
items
.
content
[
0
].
extPosition
.
map
(
v
=>
({
key
:
v
.
id
,
key
:
v
.
id
,
label
:
v
.
name
,
label
:
`
${
v
.
serialNumber
}
-
${
v
.
name
}
`
,
value
:
v
.
serialNumber
value
:
v
.
serialNumber
}))
}))
}
}
...
...
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