Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
emport-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘泽志
emport-web
Commits
32d5b974
Commit
32d5b974
authored
Mar 06, 2023
by
刘泽志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量异常推送
parent
f9542c93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
index.vue
src/views/emport/emport/index.vue
+6
-5
No files found.
src/views/emport/emport/index.vue
View file @
32d5b974
...
...
@@ -45,12 +45,12 @@
<el-divider
class=
"divider1"
></el-divider>
<el-form
inline
size=
"small"
>
<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
size=
"small"
style=
"margin-left:6px;"
@
click=
"analyzeExport"
>
分析并导出
</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>
...
...
@@ -1307,15 +1307,15 @@ export default {
// 数据分析并导出
analyzeExport
()
{
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('请先导入数据文件')
return
}
}
*/
this
.
analyzeData
.
content
=
`正在分析
${
template
.
orgName
}
数据...`
this
.
analyzeData
.
loading
=
true
DataImport
.
analyzeExport
(
template
.
id
)
.
then
(
res
=>
{
saveAs
(
res
,
'分析结果.
xlsx
'
)
saveAs
(
res
,
'分析结果.
zip
'
)
}).
finally
(
_
=>
this
.
analyzeData
.
loading
=
false
)
},
// 清空数据
...
...
@@ -1354,9 +1354,10 @@ export default {
this
.
queryTemplateRule
()
this
.
templateRuleDialog
.
show
=
true
DataTemplate
.
getAllTemplateField
(
row
.
id
).
then
(
res
=>
{
console
.
log
(
'模板规则查询'
,
res
)
this
.
templateRuleDialog
.
fieldList
=
res
.
data
.
map
(
item
=>
{
return
{
value
:
item
.
i
d
,
value
:
item
.
fiel
d
,
label
:
StringUtil
.
mergeRule
(
item
.
code
,
item
.
title
)
}
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment