|
@@ -28,9 +28,9 @@
|
|
|
data.templateName
|
|
|
}}</span>
|
|
|
<span v-if="data.id == -1" style="position: absolute; right: 10px;">
|
|
|
- <el-button type="text" size="mini" title="新建报表" @click="addReportEvent"
|
|
|
+ <el-button type="text" size="mini" title="新建报表" @click="addReportEvent" :disabled="isLoadingStatus"
|
|
|
icon="el-icon-document-add" style="font-size: 18px"></el-button>
|
|
|
- <el-button type="text" size="mini" style="margin-left: 5px;font-size: 18px"
|
|
|
+ <el-button type="text" size="mini" style="margin-left: 5px;font-size: 18px" :disabled="isLoadingStatus"
|
|
|
title="导入报表" @click="importReportEvent" icon="el-icon-upload2"></el-button>
|
|
|
<input ref="importFileNode" class="import-file-node" type="file" @change="loadExcel"
|
|
|
accept=".xlsx" style="display: none;"></input>
|
|
@@ -180,7 +180,9 @@
|
|
|
if (json.cmd === 'close') {
|
|
|
//_this.$router.go(-1)
|
|
|
} else if (json.cmd === 'newsave') {
|
|
|
- _this.getAllTableTemplate()
|
|
|
+ _this.getAllTableTemplate()
|
|
|
+ } else if(json.cmd === 'complete'){
|
|
|
+ _this.isLoadingStatus = false;
|
|
|
} else if (json.cmd === 'updated') {
|
|
|
//console.log(json)
|
|
|
if (json.updatecnt > 0) {
|
|
@@ -218,6 +220,7 @@
|
|
|
return;
|
|
|
}
|
|
|
const _this = this
|
|
|
+ _this.isLoadingStatus = true;
|
|
|
const files = localStorage.getItem('IMPORT_FILES_JSON')
|
|
|
_this.sendMsg({
|
|
|
cmd: 'init',
|
|
@@ -229,6 +232,7 @@
|
|
|
files
|
|
|
}
|
|
|
})
|
|
|
+ //_this.isLoadingStatus = false;
|
|
|
localStorage.setItem('IMPORT_FILES_JSON', '')
|
|
|
},
|
|
|
addEventListener() {
|
|
@@ -577,4 +581,4 @@
|
|
|
opacity: unset !important;
|
|
|
background: #2c3e50 !important;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|