田源
2023-12-08 159c95cafb4f0eb3955c9e4adc3134585512455d
Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
@@ -11,7 +11,7 @@
    <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>
@@ -199,12 +199,15 @@
    },
    icons: {
      type: Array
    },
    type: {
      type:String,
    }
  },
  watch: {
    btmType: {
    type: {
      handler(newval, oldval) {
        // console.log('监听', newval, oldval)
        // console.log('监听', newval)
      },
      deep: true,
      immediate: true