| | |
| | | <el-form ref="form" :model="btmType" show-message="true" inline size="medium" label-suffix=":" class="btmTypeForm" |
| | | :rules="rules" @resetFields="resetForm" status-icon="true"> |
| | | <el-form-item label="英文名称" label-width="100px" required="true" prop="id"> |
| | | <el-input v-model="btmType.id" :prefix-icon="icons.key" :disabled="Object.keys(this.btmType).length !== 0 "></el-input> |
| | | <el-input v-model="btmType.id" :prefix-icon="icons.key" :disabled="type !== 'add'"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="中文名称" label-width="100px"> |
| | | <el-input v-model="btmType.name" :prefix-icon="icons.name"></el-input> |
| | |
| | | }, |
| | | icons: { |
| | | type: Array |
| | | }, |
| | | type: { |
| | | type:String, |
| | | } |
| | | }, |
| | | watch: { |
| | | btmType: { |
| | | type: { |
| | | handler(newval, oldval) { |
| | | // console.log('监听', newval, oldval) |
| | | // console.log('监听', newval) |
| | | }, |
| | | deep: true, |
| | | immediate: true |