Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
1f0769b4
Commit
1f0769b4
authored
Sep 04, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf:优化报表下载
parent
b69af704
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
55 deletions
+50
-55
portal-manager-ui/admin/src/App.vue
portal-manager-ui/admin/src/App.vue
+3
-0
portal-manager-ui/admin/src/views/dataAdmin/components/easyPoliticsShow/PoliticsShow.vue
...ws/dataAdmin/components/easyPoliticsShow/PoliticsShow.vue
+1
-1
portal-manager-ui/admin/src/views/dataAdmin/components/fillRecordReport/fillForm.vue
.../views/dataAdmin/components/fillRecordReport/fillForm.vue
+11
-26
portal-manager-ui/admin/src/views/dataAdmin/components/networkGovernance/callRecordForm.vue
...dataAdmin/components/networkGovernance/callRecordForm.vue
+2
-2
portal-manager-ui/admin/src/views/dataAdmin/components/networkGovernance/letterRecordForm.vue
...taAdmin/components/networkGovernance/letterRecordForm.vue
+24
-2
portal-manager-ui/admin/src/views/dataAdmin/components/sampleRecordReport/sampleForm.vue
...ws/dataAdmin/components/sampleRecordReport/sampleForm.vue
+9
-24
No files found.
portal-manager-ui/admin/src/App.vue
View file @
1f0769b4
...
...
@@ -69,4 +69,7 @@ export default {
.ant-calendar-next-year-btn::after {
border-color: rgba(0, 0, 0, 1) !important;
}
.ant-progress-text {
color: #fff !important;
}
</
style
>
\ No newline at end of file
portal-manager-ui/admin/src/views/dataAdmin/components/easyPoliticsShow/PoliticsShow.vue
View file @
1f0769b4
...
...
@@ -96,7 +96,7 @@ const filterVal = [
"
organization
"
,
"
customerDesignPictures
"
,
"
customerDesignVideos
"
,
"
memberLevel
"
,
"
levelName
"
,
"
lastLoginTime
"
,
"
status
"
,
];
// 导出的表头字段名,需要导出表格字段名
...
...
portal-manager-ui/admin/src/views/dataAdmin/components/fillRecordReport/fillForm.vue
View file @
1f0769b4
...
...
@@ -209,31 +209,15 @@ export default {
// 获取报表
async
getPrintList
()
{
this
.
loading
=
true
;
let
pramse
=
{
page
:
this
.
current
,
size
:
this
.
size
,
siteId
:
this
.
siteId
,
type
:
this
.
searchForm
.
status
,
createTimeStart
:
this
.
searchForm
.
time
[
0
],
createTimeEnd
:
this
.
searchForm
.
time
[
1
],
};
if
(
this
.
searchForm
.
type
==
1
)
{
pramse
.
matterName
=
`%
${
this
.
searchForm
.
searchName
}
%`
;
}
else
{
pramse
.
materialName
=
`%
${
this
.
searchForm
.
searchName
}
%`
;
}
let
res
=
await
getPrintList
(
pramse
);
if
(
res
.
code
==
1
)
{
let
{
data
,
total
}
=
res
.
data
;
this
.
total
=
total
;
this
.
tableData
=
data
;
this
.
$emit
(
"
update
"
,
{
total
,
time
:
this
.
searchForm
.
time
});
}
let
{
total
,
data
}
=
await
this
.
getDataList
();
this
.
total
=
total
;
this
.
tableData
=
data
;
this
.
$emit
(
"
update
"
,
{
total
,
time
:
this
.
searchForm
.
time
});
this
.
loading
=
false
;
},
// 获取
导出数据
async
get
ExportPrintList
(
)
{
// 获取
数据函数
async
get
DataList
(
searchForm
)
{
let
list
=
[];
let
listTotal
=
0
;
let
pramse
=
{
...
...
@@ -243,6 +227,7 @@ export default {
type
:
this
.
searchForm
.
status
,
createTimeStart
:
this
.
searchForm
.
time
[
0
],
createTimeEnd
:
this
.
searchForm
.
time
[
1
],
...
searchForm
,
};
if
(
this
.
searchForm
.
type
==
1
)
{
pramse
.
matterName
=
`%
${
this
.
searchForm
.
searchName
}
%`
;
...
...
@@ -250,10 +235,10 @@ export default {
pramse
.
materialName
=
`%
${
this
.
searchForm
.
searchName
}
%`
;
}
let
res
=
await
getPrintList
(
pramse
);
if
(
res
.
data
.
code
==
1
)
{
let
{
data
,
total
}
=
res
.
data
.
data
;
list
=
data
;
if
(
res
.
code
==
1
)
{
let
{
data
,
total
}
=
res
.
data
;
listTotal
=
total
;
list
=
data
;
}
return
{
data
:
list
,
...
...
@@ -304,7 +289,7 @@ export default {
"
填单记录报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
);
}
else
{
this
.
dataSection
(
this
.
get
ExportPrint
List
,
{},
(
data
)
=>
{
this
.
dataSection
(
this
.
get
Data
List
,
{},
(
data
)
=>
{
if
(
!
data
.
length
)
{
this
.
$message
.
warning
(
"
暂无数据
"
);
return
;
...
...
portal-manager-ui/admin/src/views/dataAdmin/components/networkGovernance/callRecordForm.vue
View file @
1f0769b4
...
...
@@ -32,8 +32,8 @@ import { mapState } from "vuex";
import
storage
from
"
@/utils/js/Storage
"
;
import
{
export2Excel
}
from
"
@/utils/js/exportExcel
"
;
import
{
getSys12345
}
from
"
@/api/dataAdmin
"
;
const
tHeader
=
[
"
序号
"
,
"
微信号
"
,
"
电话号码
"
,
"
拨打位置
"
,
"
拨打时间
"
];
// 导出的表头名信息
const
filterVal
=
[
"
index
"
,
"
nickname
"
,
"
phone
"
,
"
address
"
,
"
create_time
"
];
// 导出的表头字段名,需要导出表格字段名
const
tHeader
=
[
"
微信号
"
,
"
电话号码
"
,
"
拨打位置
"
,
"
拨打时间
"
];
// 导出的表头名信息
const
filterVal
=
[
"
nickname
"
,
"
phone
"
,
"
address
"
,
"
create_time
"
];
// 导出的表头字段名,需要导出表格字段名
export
default
{
components
:
{},
data
()
{
...
...
portal-manager-ui/admin/src/views/dataAdmin/components/networkGovernance/letterRecordForm.vue
View file @
1f0769b4
...
...
@@ -50,7 +50,6 @@ import FormDetails from "./components/FormDetails.vue";
import
{
export2Excel
}
from
"
@/utils/js/exportExcel
"
;
import
{
adminList
,
letterInfo
}
from
"
@/api/dataAdmin
"
;
const
tHeader
=
[
"
序号
"
,
"
工单编号
"
,
"
信件标题
"
,
"
信件类别
"
,
...
...
@@ -64,7 +63,6 @@ const tHeader = [
"
办理部门
"
,
];
// 导出的表头名信息
const
filterVal
=
[
"
index
"
,
"
LetterCode
"
,
"
strTitle
"
,
"
strType
"
,
...
...
@@ -294,6 +292,18 @@ export default {
if
(
this
.
selectedRowKeys
.
length
&&
this
.
excelData
.
length
)
{
// 深度克隆避免影响页面表格展示
let
data
=
this
.
$_
.
cloneDeep
(
this
.
excelData
);
for
(
let
item
of
data
)
{
item
.
strGender
=
item
.
strGender
==
0
?
"
无
"
:
item
.
strGender
==
1
?
"
男
"
:
"
女
"
;
item
.
source
=
item
.
source
==
1
?
"
微官网
"
:
item
.
source
==
2
?
"
自助服务系统
"
:
item
.
source
==
3
?
"
数字填单系统
"
:
"
无
"
;
}
export2Excel
(
this
.
tHeader
,
this
.
filterVal
,
...
...
@@ -306,6 +316,18 @@ export default {
this
.
$message
.
warning
(
"
暂无数据
"
);
return
;
}
for
(
let
item
of
data
)
{
item
.
strGender
=
item
.
strGender
==
0
?
"
无
"
:
item
.
strGender
==
1
?
"
男
"
:
"
女
"
;
item
.
source
=
item
.
source
==
1
?
"
微官网
"
:
item
.
source
==
2
?
"
自助服务系统
"
:
item
.
source
==
3
?
"
数字填单系统
"
:
"
无
"
;
}
export2Excel
(
this
.
tHeader
,
this
.
filterVal
,
...
...
portal-manager-ui/admin/src/views/dataAdmin/components/sampleRecordReport/sampleForm.vue
View file @
1f0769b4
...
...
@@ -173,31 +173,15 @@ export default {
// 获取报表
async
getBillList
()
{
this
.
loading
=
true
;
let
pramse
=
{
page
:
this
.
current
,
size
:
this
.
size
,
siteId
:
this
.
siteId
,
type
:
this
.
searchForm
.
status
,
operTimeStart
:
this
.
searchForm
.
time
[
0
],
operTimeEnd
:
this
.
searchForm
.
time
[
1
],
};
if
(
this
.
searchForm
.
type
==
1
)
{
pramse
.
matterName
=
`%
${
this
.
searchForm
.
searchName
}
%`
;
}
else
{
pramse
.
materialName
=
`%
${
this
.
searchForm
.
searchName
}
%`
;
}
let
res
=
await
getBillList
(
pramse
);
if
(
res
.
code
==
1
)
{
let
{
data
,
total
}
=
res
.
data
;
this
.
total
=
total
;
this
.
tableData
=
data
;
this
.
$emit
(
"
update
"
,
{
total
,
time
:
this
.
searchForm
.
time
});
}
let
{
total
,
data
}
=
await
this
.
getDataList
();
this
.
total
=
total
;
this
.
tableData
=
data
;
this
.
$emit
(
"
update
"
,
{
total
,
time
:
this
.
searchForm
.
time
});
this
.
loading
=
false
;
},
// 获取
导出数据
async
get
ExportPrintList
(
)
{
// 获取
数据函数
async
get
DataList
(
searchForm
)
{
let
list
=
[];
let
listTotal
=
0
;
let
pramse
=
{
...
...
@@ -207,6 +191,7 @@ export default {
type
:
this
.
searchForm
.
status
,
operTimeStart
:
this
.
searchForm
.
time
[
0
],
operTimeEnd
:
this
.
searchForm
.
time
[
1
],
...
searchForm
,
};
if
(
this
.
searchForm
.
type
==
1
)
{
pramse
.
matterName
=
`%
${
this
.
searchForm
.
searchName
}
%`
;
...
...
@@ -216,8 +201,8 @@ export default {
let
res
=
await
getBillList
(
pramse
);
if
(
res
.
code
==
1
)
{
let
{
data
,
total
}
=
res
.
data
;
list
=
data
;
listTotal
=
total
;
list
=
data
;
}
return
{
data
:
list
,
...
...
@@ -257,7 +242,7 @@ export default {
"
样表记录报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
);
}
else
{
this
.
dataSection
(
this
.
get
ExportPrint
List
,
{},
(
data
)
=>
{
this
.
dataSection
(
this
.
get
Data
List
,
{},
(
data
)
=>
{
if
(
!
data
.
length
)
{
this
.
$message
.
warning
(
"
暂无数据
"
);
return
;
...
...
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