Commit d2c9db7a authored by xioln's avatar xioln

架次disabled

parent 2bcbc827
......@@ -6,7 +6,7 @@
*/
<template>
<div class="getSorties-select">
<el-select v-model="selVal" placeholder="请选择" size="mini" @change="changeVal">
<el-select v-model="selVal" placeholder="请选择" size="mini" :disabled="disabledVal" @change="changeVal">
<el-option
v-for="item in options"
:key="item.value"
......@@ -42,7 +42,9 @@ export default {
data() {
return {
options: [],
selVal: ''
selVal: '',
disabledVal: false
}
},
computed: {},
......@@ -68,6 +70,15 @@ export default {
})
}
}
},
itemObj: {
immediate: true,
deep: true,
handler(v) {
if (v.component.hasOwnProperty('disabled')) {
this.disabledVal = v.component.disabled
}
}
}
},
created() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment