diff --git a/20220313_Excel/TempTask.WebEntry/Views/Home/Index.cshtml b/20220313_Excel/TempTask.WebEntry/Views/Home/Index.cshtml
index 7825a0d..d596cf3 100644
--- a/20220313_Excel/TempTask.WebEntry/Views/Home/Index.cshtml
+++ b/20220313_Excel/TempTask.WebEntry/Views/Home/Index.cshtml
@@ -18,14 +18,23 @@
-
年
-
月 第
-
周
+
年:
+
月:
+
+ 周:
+
- 下载文件-总表
- 下载文件-城市更新
- 下载文件-房地产业
+
+
+ 下载文件
+
+
+ 总表
+ 城市更新
+ 房地产业
+
+
@@ -34,9 +43,7 @@
el: '#app',
data: function () {
return {
- loading_zongbiao: false,
- loading_chengshigengxin: false,
- loading_fangdichan: false,
+ loading: false,
year: '',
month: '',
week: ''
@@ -49,27 +56,22 @@
this.week = this.getMonthWeek(now);
},
methods: {
-
- //总表
- loading_zongbiao_false() { this.loading_zongbiao = false },
- downloadfile_zongbiao() {
- this.loading_zongbiao = true;
- let url = '/api/num-zj/download';
- this.download(url, 1, "总表.xlsx", this.loading_zongbiao_false);
- },
- //城市更新
- loading_chengshigengxin_false() { this.loading_chengshigengxin = false },
- downloadfile_chengshigengxin() {
- this.loading_chengshigengxin = true;
- let url = '/api/num-zj/download';
- this.download(url, 2, "住建系统抓投资情况通报(城市更新).xlsx", this.loading_chengshigengxin_false);
- },
- //房地产业
- loading_fangdichan_false() { this.loading_fangdichan = false },
- downloadfile_fangdichan() {
- this.loading_fangdichan = true;
- let url = '/api/num-zj/download';
- this.download(url, 3, "住建系统抓投资情况通报(房地产业+GDP支撑性指标).xlsx", this.loading_fangdichan_false);
+ loading_false() { this.loading = false },
+ downloadfile(a) {
+ let excel_name;
+ switch (a) {
+ case "1":
+ excel_name = "总表.xlsx";
+ break;
+ case "2":
+ excel_name = "住建系统抓投资情况通报(城市更新).xlsx";
+ break;
+ case "3":
+ excel_name = "住建系统抓投资情况通报(房地产业+GDP支撑性指标).xlsx";
+ break;
+ }
+ this.loading = true;
+ this.download('/api/num-zj/download', a, excel_name, this.loading_false);
},
download(url, type, filename, callback) {
let _this = this;
diff --git a/20220313_Excel/TempTask.WebEntry/wwwroot/ExcelTemplate/住建系统抓投资情况通报(城市更新)样表.xlsx b/20220313_Excel/TempTask.WebEntry/wwwroot/ExcelTemplate/住建系统抓投资情况通报(城市更新)样表.xlsx
index e104b89..053dd23 100644
Binary files a/20220313_Excel/TempTask.WebEntry/wwwroot/ExcelTemplate/住建系统抓投资情况通报(城市更新)样表.xlsx and b/20220313_Excel/TempTask.WebEntry/wwwroot/ExcelTemplate/住建系统抓投资情况通报(城市更新)样表.xlsx differ
diff --git a/20220313_Excel/TempTask.WebEntry/wwwroot/ExcelTemplate/总表(样表).xls b/20220313_Excel/TempTask.WebEntry/wwwroot/ExcelTemplate/总表(样表).xls
index f6fdcab..6ae90a3 100644
Binary files a/20220313_Excel/TempTask.WebEntry/wwwroot/ExcelTemplate/总表(样表).xls and b/20220313_Excel/TempTask.WebEntry/wwwroot/ExcelTemplate/总表(样表).xls differ