Commit 32d5b974 by 刘泽志

批量异常推送

parent f9542c93
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
<el-divider class="divider1"></el-divider> <el-divider class="divider1"></el-divider>
<el-form inline size="small"> <el-form inline size="small">
<el-form-item> <el-form-item>
<el-button icon="el-icon-set-up" plain size="small" @click="openOrgDictDialog">设置机构字典</el-button>
<el-button icon="el-icon-pie-chart" plain <el-button icon="el-icon-pie-chart" plain
size="small" size="small"
style="margin-left:6px;" @click="analyzeExport" style="margin-left:6px;" @click="analyzeExport"
>分析并导出 >分析并导出
</el-button> </el-button>
<el-button icon="el-icon-set-up" plain size="small" @click="openOrgDictDialog">设置机构字典</el-button>
<el-button size="small" icon="el-icon-refresh" plain :loading="clearTempLoading" @click="clearTemp"> <el-button size="small" icon="el-icon-refresh" plain :loading="clearTempLoading" @click="clearTemp">
清空数据 清空数据
</el-button> </el-button>
...@@ -1307,15 +1307,15 @@ export default { ...@@ -1307,15 +1307,15 @@ export default {
// 数据分析并导出 // 数据分析并导出
analyzeExport() { analyzeExport() {
let template = this.templateList.find(item => item.orgName === this.queryForm.orgName) let template = this.templateList.find(item => item.orgName === this.queryForm.orgName)
if (!template || !this.queryForm.file || this.queryForm.file.status !== 'success') { /*if (!template || !this.queryForm.file || this.queryForm.file.status !== 'success') {
this.$message.warning('请先导入数据文件') this.$message.warning('请先导入数据文件')
return return
} }*/
this.analyzeData.content = `正在分析 ${template.orgName} 数据...` this.analyzeData.content = `正在分析 ${template.orgName} 数据...`
this.analyzeData.loading = true this.analyzeData.loading = true
DataImport.analyzeExport(template.id) DataImport.analyzeExport(template.id)
.then(res => { .then(res => {
saveAs(res, '分析结果.xlsx') saveAs(res, '分析结果.zip')
}).finally(_ => this.analyzeData.loading = false) }).finally(_ => this.analyzeData.loading = false)
}, },
// 清空数据 // 清空数据
...@@ -1354,9 +1354,10 @@ export default { ...@@ -1354,9 +1354,10 @@ export default {
this.queryTemplateRule() this.queryTemplateRule()
this.templateRuleDialog.show = true this.templateRuleDialog.show = true
DataTemplate.getAllTemplateField(row.id).then(res => { DataTemplate.getAllTemplateField(row.id).then(res => {
console.log('模板规则查询',res)
this.templateRuleDialog.fieldList = res.data.map(item => { this.templateRuleDialog.fieldList = res.data.map(item => {
return { return {
value: item.id, value: item.field,
label: StringUtil.mergeRule(item.code, item.title) label: StringUtil.mergeRule(item.code, item.title)
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment