diff --git a/public/test1.xlsx b/public/test1.xlsx
index f41b11957..e474a9554 100644
Binary files a/public/test1.xlsx and b/public/test1.xlsx differ
diff --git a/src/App.vue b/src/App.vue
index 4b94e1e4f..4f304d28a 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -275,4 +275,8 @@ export default {
color: #fff;
}
}
+input[aria-hidden=true]{
+ display: none !important;
+}
+
diff --git a/src/views/modules/base/smartExcel/cpts/excel-add.vue b/src/views/modules/base/smartExcel/cpts/excel-add.vue
index 9db561a19..c40515dd4 100644
--- a/src/views/modules/base/smartExcel/cpts/excel-add.vue
+++ b/src/views/modules/base/smartExcel/cpts/excel-add.vue
@@ -1,41 +1,254 @@
-
-
-
- 上传报表模板
-
-
+
+
+
+
新建任务
+ 返回
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 一次性
+ 每周
+
+
+ (说明:当任务周期选择每周/每月/每半月/每季度时,系统会于每个时间阶段的第一天自动创建阶段性子任务)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ tag.name }}
+
+
+
+
+
+
+ 上传报表模板
+
+
+
+
+ {{ fileName }}
+ 删除
+
+
+
+
+
+
+
+ 取
+ 消
+ 发布任务
+
+
+
-
+
-
+
\ No newline at end of file
diff --git a/src/views/modules/base/smartExcel/cpts/excel-summary.vue b/src/views/modules/base/smartExcel/cpts/excel-summary.vue
index 281235e4a..2d25cd514 100644
--- a/src/views/modules/base/smartExcel/cpts/excel-summary.vue
+++ b/src/views/modules/base/smartExcel/cpts/excel-summary.vue
@@ -12,7 +12,7 @@
提报的文件
-
+
{{ item.title }}周期更新表
({{ item.state }})
@@ -20,7 +20,7 @@
-
+
@@ -66,7 +66,8 @@ export default {
title: '嘉定山社区',
state: '未提交'
},
- ]
+ ],
+ workbookId:''
};
},
created() { },
@@ -77,9 +78,10 @@ export default {
handleClickBack() {
this.$emit('close')
},
- handleClickShowView(){
+ handleClickShowView(val){
this.$store.state.sidebarFold = true;
this.showView = true;
+ this.workbookId = val
},
},
components: { excelView },
diff --git a/src/views/modules/base/smartExcel/cpts/excel-template-confirmation.vue b/src/views/modules/base/smartExcel/cpts/excel-template-confirmation.vue
index 7129fd578..c7b92527e 100644
--- a/src/views/modules/base/smartExcel/cpts/excel-template-confirmation.vue
+++ b/src/views/modules/base/smartExcel/cpts/excel-template-confirmation.vue
@@ -5,7 +5,7 @@
@@ -46,28 +46,31 @@ export default {
}
},
uploadExcel(files) {
- console.log(files,'files');
if (!files) return alert('没有文件等待导入');
+ let that = this
LuckyExcel.transformExcelToLucky(files, function (exportJson, luckysheetfile) {
+ console.log(exportJson,'获取到导入的JSON');
+ that.exportJson = exportJson
if (exportJson.sheets == null || exportJson.sheets.length == 0) return alert('读取excel文件内容失败, 目前不支持XLS文件!');
window.luckysheet.destroy();
window.luckysheet.create({
...options,
data: exportJson.sheets,
title: exportJson.info.name,
- hook: {
-
- },
+ hook: {},
});
});
},
handleCancel(){
this.$emit('handelHideTemplate')
+ },
+ handleConfirm(){
+ this.$emit('saveLuckysheetJson',this.exportJson)
}
},
mounted() {
console.log(this.fileUrl, 'fileUrl===');
- this.urlToFile('http://localhost:9001/epmet-work-pc/test1.xlsx')
+ this.urlToFile('http://localhost:9001/epmet-work-pc/test1.xlsx',this.fileName)
this.$nextTick(() => {
window.luckysheet.destroy();
options.title = '模板确认'
@@ -88,7 +91,11 @@ export default {
fileUrl: {
type: String,
default: ''
- }
+ },
+ fileName: {
+ type: String,
+ default: ''
+ },
},
components: {},
computed: {},
diff --git a/src/views/modules/base/smartExcel/cpts/excel-view.vue b/src/views/modules/base/smartExcel/cpts/excel-view.vue
index c99d97903..835cc2bc2 100644
--- a/src/views/modules/base/smartExcel/cpts/excel-view.vue
+++ b/src/views/modules/base/smartExcel/cpts/excel-view.vue
@@ -9,8 +9,8 @@
上传报表模板
- -->
-
+ -->
+
{{ item.name }}
@@ -27,7 +27,7 @@
审核存档
-
+