1.批量上传EXCEL的以xlsx结尾
2.第一行为标题行 姓名 手机号 证件号 行动不便者
3.文件是从微信聊天记录中选取或者微信文件传输助手
"
+ content: "1.批量上传EXCEL的以xlsx结尾
2.第一行为标题行 姓名 手机号 证件号 行动不便者
3.文件是从微信聊天记录中选取或者微信文件传输助手
",
+ isTemplate:true
}],
specialtype: false,
specialid: 0,
@@ -610,6 +613,30 @@
this.form.total = this.form.details_list.length;
+ },
+ downLoad() {
+ const downloadTask = uni.downloadFile({
+ url: 'https://leyitest.ali251.langye.net/Template.xlsx', //仅为示例,并非真实的资源
+ success: (res) => {
+ var filePath = res.tempFilePath
+ if (res.statusCode === 200) {
+ uni.openDocument({
+ filePath: filePath,
+ showMenu: true,
+ success: function(res) {
+ console.log('打开文档成功')
+ }
+ })
+ }
+ }
+ });
+
+ downloadTask.onProgressUpdate((res) => {
+ console.log('下载进度' + res.progress);
+ console.log('已经下载的数据长度' + res.totalBytesWritten);
+ console.log('预期需要下载的数据总长度' + res.totalBytesExpectedToWrite);
+
+ });
},
loadConfig() {
diff --git a/utils/util.js b/utils/util.js
index 36c8f53..1b1303a 100755
--- a/utils/util.js
+++ b/utils/util.js
@@ -1,6 +1,6 @@
import md5 from "./md5.min";
const HOSTARR = {
- 'development':'https://leyitest.ali251.langye.net',//'https://leyiyuyue.szgmbwg.org.cn',//
+ 'development':'https://leyiyuyue.szgmbwg.org.cn',//'https://leyitest.ali251.langye.net',//
'production': 'https://leyiyuyue.szgmbwg.org.cn'
}; // 审核状态