qushaowei
2023-08-31 b5e4adfc3a55490ad1cd49f50dfcc9dfb7b57d33
src/views/eam/modules/dailyMaintenanceStandard/MaintenanceStandardWorkInstructionModal.vue
@@ -30,11 +30,18 @@
        <a-row :gutter="24">
          <a-col :span="24">
            <a-form-item
              :labelCol="{span:3}"
              :wrapperCol="{span:21}"
              :labelCol="{span:4}"
              :wrapperCol="{span:18}"
              label="文件类型"
            >
              <a-radio-group
              <j-dict-select-tag
                allow-clear
                placeholder="请选择文档类型"
                :triggerChange="true"
                dictCode="mom_eam_document_type,name,id, del_flag!='1'"
                v-decorator="['fileType', validatorRules.fileType ]"
              />
              <!-- <a-radio-group
                v-for="(item,index) in fileTypes"
                :key="index"
                button-style="solid"
@@ -45,7 +52,7 @@
                <a-radio-button :value="item.value">
                  {{item.text}}
                </a-radio-button>
              </a-radio-group>
              </a-radio-group> -->
            </a-form-item>
          </a-col>
@@ -300,18 +307,18 @@
    handleCancel() {
      this.close();
    },
    initFileTypes() {
      ajaxGetDictItems("common_upload_type", null).then((res) => {
        if (res.success) {
          this.fileTypes = res.result;
        }
      })
    },
    // initFileTypes() {
    //   ajaxGetDictItems("common_upload_type", null).then((res) => {
    //     if (res.success) {
    //       this.fileTypes = res.result;
    //     }
    //   })
    // },
  },
  created() {
    this.initFileTypes();
    // this.initFileTypes();
    const token = Vue.ls.get(ACCESS_TOKEN);
    const tenantid = Vue.ls.get(TENANT_ID)
    this.headers = {