浏览代码

fix:修改导出表格文件后缀

wangsisi 4 月之前
父节点
当前提交
fd4eca7925
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/utils/index.js
  2. 1 1
      src/views/authentic/index.vue

+ 1 - 1
src/utils/index.js

@@ -134,7 +134,7 @@ export const icons = () => {
     const url = "data:text/xls;charset=utf-8,\ufeff" + encodeURIComponent(dataStr);
     const link = document.createElement("a");
     link.href = url;
-    link.download = fileName + ".xls";
+    link.download = fileName + ".xlsx";
     link.style.display = 'none';
     document.body.appendChild(link);
     link.click();

+ 1 - 1
src/views/authentic/index.vue

@@ -245,7 +245,7 @@
         </el-table-column>
         <el-table-column property="speciesTypeName" label="作物物种" />
         <el-table-column property="masterName" label="客户姓名" />
-        <el-table-column property="masterTel" label="联系电话" />
+        <el-table-column property="masterTel" width="120" label="联系电话" />
         <el-table-column
           property="points"
           label="边界点经纬度"