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
9b5607e1
Commit
9b5607e1
authored
Apr 22, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
架次关联站位编号组件修改
parent
cbc56237
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
5 deletions
+70
-5
index.vue
...ivateComponents/components/GeneralLinkageSelect/index.vue
+0
-1
config.js
.../src/privateComponents/components/StationSelect/config.js
+41
-0
index.vue
.../src/privateComponents/components/StationSelect/index.vue
+29
-4
No files found.
applications/dee-mes/src/privateComponents/components/GeneralLinkageSelect/index.vue
View file @
9b5607e1
...
...
@@ -87,7 +87,6 @@ export default {
}
},
created
()
{
console
.
log
(
http
,
'http'
)
// 初始化数据
},
methods
:
{
...
...
applications/dee-mes/src/privateComponents/components/StationSelect/config.js
0 → 100644
View file @
9b5607e1
export
default
{
props
:
{},
layoutConfigData
:
[
{
title
:
'高级组件配置'
,
data
:
[
{
key
:
'bindKey'
,
title
:
'绑定属性'
,
disabled
:
true
,
component
:
{
defaultValue
:
'positionNumber'
,
name
:
'el-input'
}
},
{
key
:
'relatedAttribute'
,
title
:
'受关联属性'
,
disabled
:
true
,
component
:
{
defaultValue
:
''
,
name
:
'el-input'
}
}
]
}
],
data
()
{
return
{
}
},
created
()
{
},
computed
:
{
},
methods
:
{
}
}
applications/dee-mes/src/privateComponents/components/StationSelect/index.vue
View file @
9b5607e1
<
template
>
<div>
<el-select
:value=
"
value
"
:value=
"
selVal
"
:loading=
"loading"
filterable
remote
...
...
@@ -22,10 +22,11 @@
</
template
>
<
script
>
import
config
from
'./config'
export
default
{
name
:
'StationSelect'
,
componentName
:
'架次关联站位编号'
,
mixins
:
[
config
],
props
:
{
value
:
{
type
:
[
String
,
Number
],
...
...
@@ -47,20 +48,35 @@ export default {
data
()
{
return
{
loading
:
false
,
options
:
[]
options
:
[],
// linkageValue: '',
selVal
:
''
}
},
computed
:
{},
watch
:
{
'form.sorties'
:
{
immediate
:
true
,
deep
:
true
,
//
deep: true,
handler
(
val
)
{
// if (val !== this.linkageValue) {
if
(
this
.
item
.
key
!==
'position'
)
{
// this.linkageValue = val
this
.
$set
(
this
.
form
,
'positionNumber'
,
''
)
this
.
selVal
=
''
}
// }
val
&&
this
.
getOptions
()
}
},
value
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
)
{
this
.
selVal
=
this
.
value
}
}
}
},
methods
:
{
...
...
@@ -104,6 +120,15 @@ export default {
},
change
(
val
)
{
this
.
$emit
(
'input'
,
val
)
this
.
clearRelativeAttr
()
},
clearRelativeAttr
()
{
if
(
this
.
item
.
relatedAttribute
)
{
const
attributes
=
this
.
item
.
relatedAttribute
.
split
(
','
)
||
[]
attributes
.
forEach
(
el
=>
{
el
&&
this
.
$set
(
this
.
form
,
el
,
''
)
})
}
},
clear
()
{
this
.
$emit
(
'input'
)
...
...
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