zenglf
2023-08-19 8611a1ba1696e76cced04ff5d658ba138a05dafd
src/views/eam/modules/equipment/EquipmentModel.vue
@@ -249,22 +249,14 @@
                placeholder="请输入管理组织"
                v-decorator="['manageId', validatorRules.manageId]"
              /> -->
              <!-- <a-select
              <a-select
                :placeholder="disableSubmit?'':'请选择管理组织'"
                :options="this.departs"
                style="width: 100%"
                :disabled="disableSubmit"
                v-decorator="['manageId', validatorRules.manageId]"
              /> -->
              <!-- @change="(e)=>handle3Change(e)" -->
              <a-tree-select
                style="width: 100%"
                :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
                :tree-data="treeData"
                placeholder="请选择管理组织"
                tree-default-expand-all
                v-decorator="['manageId', validatorRules.manageId]"
              />
              <!-- @change="(e)=>handle3Change(e)" -->
            </a-form-item>
          </a-col>
          <a-col :span="24 / 3">
@@ -307,23 +299,23 @@
              :wrapperCol="wrapperCol"
              label="使用部门"
            >
              <a-tree-select
                style="width: 100%"
                :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
                :tree-data="treeData"
                placeholder="请选择部门"
                tree-default-expand-all
              <!-- <j-dict-select-tag
                allow-clear
                :disabled="disableSubmit"
                :placeholder="disableSubmit?'':'请选择使用组织'"
                :triggerChange="true"
                dictCode="sys_depart,depart_name,id,version = '7' and del_flag!='1'"
                v-decorator="['useId', validatorRules.useId]"
              />
              <!-- <a-select
              /> -->
              <a-select
                :placeholder="disableSubmit?'':'请选择使用部门'"
                :options="this.departs"
                style="width: 100%"
                :disabled="disableSubmit"
                v-decorator="['useId', validatorRules.useId]"
              /> -->
              />
              <!-- @change="(e)=>handle2Change(e)" -->
            </a-form-item>
          </a-col>
          <a-col :span="24 / 3">
@@ -561,6 +553,7 @@
        关闭
      </a-button>
      <a-button
        hidden
        v-if="!this.model.id"
        :disabled="disableSubmit || confirmLoading"
        :loading="confirmLoading"
@@ -617,7 +610,6 @@
      precisionParametersTemplateId: '',
      equipmentPhoto: '',
      departs: [],
      treeData: [],
      model: {},
      headers: {},
      labelCol: {
@@ -670,7 +662,6 @@
        add: "/eam/equipment/add",
        edit: "/eam/equipment/edit",
        getSysDeparts: "/eam/equipment/getSysDeparts",
        loadOptions: '/sys/sysDepart/loadDepartTreeOptions',
      },
      //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性
      alterFlag: "",
@@ -678,7 +669,6 @@
  },
  created() {
    this.getSysDeparts()
  },
  methods: {
    moment,
@@ -693,7 +683,6 @@
      this.visible = true;
      this.disableSubmit = false;
      this.fileList = [];
      this.initOptions();
      this.precisionParametersTemplateId = record.precisionParametersTemplateId
      this.processParametersTemplateId = record.processParametersTemplateId
      this.$nextTick(() => {
@@ -946,16 +935,6 @@
        // object-key表示从OSS下载文件时需要指定包含文件后缀在内的完整路径,例如abc/efg/123.jpg。
        return client.signatureUrl(record.path)
      }
    },
    initOptions() {
      getAction(this.url.loadOptions).then(res => {
        if (res.success) {
          this.treeData = res.result
        } else {
          this.$message.warning(res.message)
        }
      })
    },