Commit 171765b7 authored by xioln's avatar xioln

作业令号选择

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