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
ba5724c5
Commit
ba5724c5
authored
Jul 25, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改样表报表导出
parent
a0484dce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
20 deletions
+54
-20
portal-manager-ui/admin/src/views/dataAdmin/components/fillRecordReport/fillForm.vue
.../views/dataAdmin/components/fillRecordReport/fillForm.vue
+1
-1
portal-manager-ui/admin/src/views/dataAdmin/components/sampleRecordReport/sampleForm.vue
...ws/dataAdmin/components/sampleRecordReport/sampleForm.vue
+53
-19
No files found.
portal-manager-ui/admin/src/views/dataAdmin/components/fillRecordReport/fillForm.vue
View file @
ba5724c5
...
@@ -357,7 +357,7 @@ export default {
...
@@ -357,7 +357,7 @@ export default {
let
page
=
1
;
let
page
=
1
;
let
size
=
1000
;
let
size
=
1000
;
let
execute
=
async
()
=>
{
let
execute
=
async
()
=>
{
let
{
data
,
total
}
=
await
fn
(
page
,
size
,
searchForm
);
let
{
data
,
total
}
=
await
fn
(
{
page
,
size
,
...
searchForm
}
);
dataList
=
[...
dataList
,
...
data
];
dataList
=
[...
dataList
,
...
data
];
this
.
$app
.
progressFile
.
show
=
true
;
this
.
$app
.
progressFile
.
show
=
true
;
this
.
$app
.
progressFile
.
percent
=
parseInt
(
this
.
$app
.
progressFile
.
percent
=
parseInt
(
...
...
portal-manager-ui/admin/src/views/dataAdmin/components/sampleRecordReport/sampleForm.vue
View file @
ba5724c5
...
@@ -190,6 +190,8 @@ export default {
...
@@ -190,6 +190,8 @@ export default {
this
.
togetBillList
();
this
.
togetBillList
();
},
},
async
togetBillList
(
searchForm
=
{})
{
async
togetBillList
(
searchForm
=
{})
{
let
list
=
[];
let
listTotal
=
0
;
let
pramse
=
{
let
pramse
=
{
page
:
this
.
tablePagination
.
current
,
page
:
this
.
tablePagination
.
current
,
size
:
this
.
tablePagination
.
pageSize
,
size
:
this
.
tablePagination
.
pageSize
,
...
@@ -208,8 +210,13 @@ export default {
...
@@ -208,8 +210,13 @@ export default {
if
(
code
==
1
)
{
if
(
code
==
1
)
{
this
.
tableSourceData
=
data
.
data
;
this
.
tableSourceData
=
data
.
data
;
this
.
tablePagination
.
total
=
data
.
total
;
this
.
tablePagination
.
total
=
data
.
total
;
return
data
.
data
;
list
=
data
.
data
;
listTotal
=
data
.
total
;
}
}
return
{
data
:
list
,
total
:
listTotal
,
};
},
},
// 重置
// 重置
...
@@ -248,31 +255,58 @@ export default {
...
@@ -248,31 +255,58 @@ export default {
// 导出
// 导出
async
handleExportTable
()
{
async
handleExportTable
()
{
this
.
btnLoading
=
true
;
this
.
btnLoading
=
true
;
let
data
=
[];
if
(
this
.
tableSelectedKeys
.
length
&&
this
.
tableSelectedRows
.
length
)
{
if
(
this
.
tableSelectedKeys
.
length
&&
this
.
tableSelectedRows
.
length
)
{
let
data
=
[];
// 深度克隆避免影响页面表格展示
// 深度克隆避免影响页面表格展示
data
=
this
.
$_
.
cloneDeep
(
this
.
tableSelectedRows
);
data
=
this
.
$_
.
cloneDeep
(
this
.
tableSelectedRows
);
}
else
{
export2Excel
(
data
=
this
.
$_
.
cloneDeep
(
this
.
tHeader
,
await
this
.
togetBillList
({
page
:
1
,
size
:
-
1
})
this
.
filterVal
,
data
,
"
样表记录报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
);
);
if
(
!
data
.
length
)
return
;
}
else
{
// for (let item of data) {
this
.
dataSection
(
this
.
togetBillList
,
{},
(
data
)
=>
{
// Object.keys(obj).forEach((key) => {
if
(
!
data
.
length
)
{
// if (item.type == key) {
this
.
$message
.
warning
(
"
暂无数据
"
);
// item.type = obj[key];
return
;
// }
}
// });
export2Excel
(
// }
this
.
tHeader
,
this
.
filterVal
,
data
,
"
样表记录报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
);
});
}
}
export2Excel
(
this
.
tHeader
,
this
.
filterVal
,
data
,
"
样表记录报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
);
this
.
btnLoading
=
false
;
this
.
btnLoading
=
false
;
},
},
// 数据切片
async
dataSection
(
fn
,
searchForm
,
callback
)
{
let
dataList
=
[];
let
page
=
1
;
let
size
=
1000
;
let
execute
=
async
()
=>
{
let
{
data
,
total
}
=
await
fn
({
page
,
size
,
...
searchForm
});
dataList
=
[...
dataList
,
...
data
];
this
.
$app
.
progressFile
.
show
=
true
;
this
.
$app
.
progressFile
.
percent
=
parseInt
(
(
dataList
.
length
/
total
)
*
100
);
if
(
dataList
.
length
>=
total
||
data
.
length
==
0
)
{
if
(
callback
)
callback
(
dataList
);
this
.
$app
.
progressFile
.
show
=
false
;
this
.
$app
.
progressFile
.
percent
=
1
;
return
;
}
setTimeout
(()
=>
{
page
+=
1
;
execute
();
});
};
execute
();
},
},
},
};
};
</
script
>
</
script
>
...
...
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