yz3456
2024-07-09 32148fb89c6cbedc24aaf9cb93a215a6cc665f2b
ruoyi-ui/src/views/self/show.vue
@@ -154,7 +154,7 @@
            plain
            icon="el-icon-download"
            size="mini"
            @click="handleExportTemplatem"
            @click="handleExportTemplate"
            v-hasPermi="['family:note:export']"
          >导入模板下载</el-button>
        </el-col>
@@ -903,7 +903,7 @@
  getCertificateList, addCertificate, updateCertificate, delCertificate,
  getAbroadList, addAbroad, updateAbroad, delAbroad, listType,
  getAutobiographyList, getAutobiographyTermList, addAutobiography, updateAutobiography,delAutobiography,
  getCategory,
  getCategory,download
} from "@/api/self/index";
// import { listRole, getRole, delRole, addRole, updateRole, dataScope,changeRoleStatus, deptTreeSelect } from "@/api/system/role";
// import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu";
@@ -1732,10 +1732,10 @@
      }
    },
    handleExportTemplatem(){
    handleExportTemplate(){
      this.download('/zSelfNote/model', {
      }, `zSelfNote${new Date().getTime()}.xlsx`)
      }, `zSelfNote_${new Date().getTime()}.xlsx`)
    },
    /** 导入操作*/
    handleEnportm(params){
@@ -1916,6 +1916,7 @@
        }
      });
      // 清空formDat对象的数据
      this.newOption=undefined
      Object.keys(this.formDat).forEach(key => {
        this.formDat[key] = '';
      });