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
2bcbc827
Commit
2bcbc827
authored
Aug 18, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
器材类型和库房组件disabled
parent
3664a236
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
5 deletions
+29
-5
index.vue
...-mes/src/privateComponents/components/Warehouse/index.vue
+12
-2
index.vue
...s/src/privateComponents/components/materialType/index.vue
+17
-3
No files found.
applications/dee-mes/src/privateComponents/components/Warehouse/index.vue
View file @
2bcbc827
<
template
>
<
template
>
<el-select
v-model=
"cloneValue"
@
change=
"change"
>
<el-select
v-model=
"cloneValue"
:disabled=
"disabledVal"
@
change=
"change"
>
<el-option
<el-option
v-for=
"(item,i) in warehouseOptions"
v-for=
"(item,i) in warehouseOptions"
:key=
"i"
:key=
"i"
...
@@ -40,7 +40,8 @@ export default {
...
@@ -40,7 +40,8 @@ export default {
cloneValue
:
''
,
cloneValue
:
''
,
linkageValue
:
''
,
linkageValue
:
''
,
dataType
:
'string'
,
dataType
:
'string'
,
isFirst
:
true
isFirst
:
true
,
disabledVal
:
false
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -79,6 +80,15 @@ export default {
...
@@ -79,6 +80,15 @@ export default {
}
}
}
}
}
}
},
itemObj
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
.
component
.
hasOwnProperty
(
'disabled'
))
{
this
.
disabledVal
=
v
.
component
.
disabled
}
}
}
}
},
},
// 生命周期 - 创建完成(可以访问当前this 实例)
// 生命周期 - 创建完成(可以访问当前this 实例)
...
...
applications/dee-mes/src/privateComponents/components/materialType/index.vue
View file @
2bcbc827
<
template
>
<
template
>
<div>
<div>
<el-select
v-model=
"form.materialType"
>
<el-select
v-model=
"form.materialType"
:disabled=
"disabledVal"
>
<el-option
<el-option
v-for=
"(item,i) in materialTypeOptions"
v-for=
"(item,i) in materialTypeOptions"
:key=
"i"
:key=
"i"
...
@@ -20,12 +20,17 @@ export default {
...
@@ -20,12 +20,17 @@ export default {
name
:
'MaterialType'
,
name
:
'MaterialType'
,
components
:
{},
components
:
{},
props
:
{
props
:
{
form
:
{}
form
:
{},
itemObj
:
{
type
:
Object
,
default
:
null
}
},
},
data
()
{
data
()
{
return
{
return
{
materialTypeOptions
:
[],
materialTypeOptions
:
[],
isFirst
:
true
isFirst
:
true
,
disabledVal
:
false
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -38,6 +43,15 @@ export default {
...
@@ -38,6 +43,15 @@ export default {
}
}
this
.
getMaterialType
(
val
)
this
.
getMaterialType
(
val
)
}
}
},
itemObj
:
{
immediate
:
true
,
deep
:
true
,
handler
(
v
)
{
if
(
v
.
component
.
hasOwnProperty
(
'disabled'
))
{
this
.
disabledVal
=
v
.
component
.
disabled
}
}
}
}
},
},
// 生命周期 - 创建完成(可以访问当前this 实例)
// 生命周期 - 创建完成(可以访问当前this 实例)
...
...
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