Prechádzať zdrojové kódy

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

wangsisi 4 mesiacov pred
rodič
commit
fd4eca7925
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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="边界点经纬度"