qushaowei
2023-11-11 80989ae609bb5dc01191a583a30f8d08ca4f31f3
src/views/eam/modules/site/SiteModel.vue
@@ -21,7 +21,7 @@
              :wrapperCol="{span:18}"
            >
              <a-input
                :readOnly="true"
                :readOnly="codeDisable"
                allow-clear
                placeholder="将由系统自动生成"
                v-decorator="['num', validatorRules.num ]"
@@ -71,7 +71,7 @@
<script>
import pick from 'lodash.pick'
import { getAction,postAction, requestPut } from '@/api/manage'
import { getAction, postAction, requestPut } from '@/api/manage'
import { duplicateCheck } from '@/api/api'
export default {
@@ -118,6 +118,7 @@
        getNum: '/eam/sysIdentity/getNumNew',
      },
      disableSubmit: false,
      codeDisable: false,
      //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性
      alterFlag: ""
    }
@@ -133,6 +134,7 @@
      this.model = Object.assign({}, record);
      this.visible = true;
      this.disableSubmit = false;
      this.$nextTick(() => {
        this.form.setFieldsValue(pick(this.model, 'num', 'name', 'remark'))
      });
@@ -144,7 +146,10 @@
            }
          })
        });
      }
        this.codeDisable = false;
      } else {
        this.codeDisable = true;
      } 4
    },
    close() {
      this.$emit('close');