Source/UBCS-WEB/src/views/modeling/BusinessAdd.vue
@@ -1,7 +1,8 @@
<template>
  <template>
  <el-dialog
    title="业务类型"
    :visible.sync="showSubmitDialog"
    v-loading="loading"
    append-to-body
    @close="closeSubmitDialog"
    width="70%"
@@ -11,7 +12,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"></el-input>
        <el-input v-model="btmType.id" :prefix-icon="icons.key" :disabled="false"></el-input>
      </el-form-item>
      <el-form-item label="中文名称" label-width="100px">
        <el-input v-model="btmType.name" :prefix-icon="icons.name"></el-input>
@@ -191,27 +192,29 @@
  name: 'BusinessAdd',
  props: {
    btmType: {
      type: Object
      type: Object,
      default:{}
    },
    domainOption: {
      type: Array
    },
    icons: {
      type: Array
    },
    type: {
      type:String,
    },
    btmEditType:{
      type:Object,
      default: {}
    }
  },
  watch: {
    btmType: {
      handler(newval, oldval) {
        // console.log('监听', newval, oldval)
      },
      deep: true,
      immediate: true
    }
  },
  data() {
    return {
      form: {},
      loading:false,
      showSubmitDialog: false,
      option: {
        height: "330px",
@@ -232,7 +235,8 @@
          {
            label: '英文名称',
            prop: 'id',
            align: 'center'
            align: 'center',
            disabled:true
          }, {
            label: '中文名称',
            prop: 'name',
@@ -284,6 +288,7 @@
              prop: 'id',
              align: 'left',
              search: true,
              disabled:true,
              width: 230
            }, {
              label: '中文名称',
@@ -356,6 +361,7 @@
            {
              label: '英文名称',
              prop: 'id',
              disabled:true,
              search: true
            },
            {
@@ -420,6 +426,7 @@
            {
              label: '英文名称',
              prop: 'id',
              disabled:true,
              search: true
            },
            {
@@ -477,11 +484,11 @@
    // 关闭组件弹窗
    closeSubmitDialog() {
      this.showSubmitDialog = false;
      this.btmType.attributes = [];
      this.btmType = {};
      this.attrRef.selectData = [];
      this.attrRef.queryNotIn = null;
      this.resetForm();
      // this.btmType.attributes = [];
      // this.btmType = {};
      // this.attrRef.selectData = [];
      // this.attrRef.queryNotIn = null;
      // this.resetForm();
    },
    // 关闭属性池查询弹窗
    closeAttrDialog() {