Commit 171765b7 authored by xioln's avatar xioln

作业令号选择

parent abfa76e8
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
*/ */
<template> <template>
<div class="jobNumber-select"> <div class="jobNumber-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 <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
...@@ -42,7 +42,8 @@ export default { ...@@ -42,7 +42,8 @@ export default {
data() { data() {
return { return {
options: [], options: [],
selVal: '' selVal: '',
disabledVal: false
} }
}, },
computed: {}, computed: {},
...@@ -51,7 +52,6 @@ export default { ...@@ -51,7 +52,6 @@ export default {
immediate: true, immediate: true,
deep: true, deep: true,
handler(val) { handler(val) {
console.log('val', val)
if (val) { if (val) {
const params = { const params = {
searchItems: { searchItems: {
...@@ -72,6 +72,15 @@ export default { ...@@ -72,6 +72,15 @@ export default {
}) })
} }
} }
},
itemObj: {
immediate: true,
deep: true,
handler(v) {
if (v.component.hasOwnProperty('disabled')) {
this.disabledVal = v.component.disabled
}
}
} }
}, },
created() { 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