Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-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
赵啸非
attendance-performance-platform
Commits
d298661e
Commit
d298661e
authored
Jul 17, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加360报告导出
parent
c118e33d
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
508 additions
and
39 deletions
+508
-39
attendance-performance-manager-ui/admin/package.json
attendance-performance-manager-ui/admin/package.json
+1
-0
attendance-performance-manager-ui/admin/src/App.vue
attendance-performance-manager-ui/admin/src/App.vue
+55
-1
attendance-performance-manager-ui/admin/src/assets/utils/exportExcel.js
...formance-manager-ui/admin/src/assets/utils/exportExcel.js
+25
-0
attendance-performance-manager-ui/admin/src/main.js
attendance-performance-manager-ui/admin/src/main.js
+18
-16
attendance-performance-manager-ui/admin/src/views/homeCharts/record/list.vue
...nce-manager-ui/admin/src/views/homeCharts/record/list.vue
+290
-21
attendance-performance-manager-ui/admin/yarn.lock
attendance-performance-manager-ui/admin/yarn.lock
+119
-1
No files found.
attendance-performance-manager-ui/admin/package.json
View file @
d298661e
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
"file-saver"
:
"2.0.4"
,
"file-saver"
:
"2.0.4"
,
"fuse.js"
:
"6.4.3"
,
"fuse.js"
:
"6.4.3"
,
"js-cookie"
:
"2.2.1"
,
"js-cookie"
:
"2.2.1"
,
"js-export-excel"
:
"^1.1.4"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"json-bigint"
:
"^0.3.0"
,
"json-bigint"
:
"^0.3.0"
,
"jwt-decode"
:
"3.1.2"
,
"jwt-decode"
:
"3.1.2"
,
...
...
attendance-performance-manager-ui/admin/src/App.vue
View file @
d298661e
<
template
>
<
template
>
<div
id=
"app"
>
<div
id=
"app"
>
<router-view/>
<div
class=
"loading"
v-if=
"loading"
>
<div>
<div
class=
"title"
>
{{
title
}}
。。。
</div>
<el-progress
:percentage=
"percentage"
color=
"#1890ff"
></el-progress>
</div>
</div>
<router-view
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
import
Vue
from
"
vue
"
;
export
default
{
data
()
{
return
{
fontStyle
:
null
,
api
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
percentage
:
0
,
loading
:
false
,
title
:
"
报告生成中
"
,
};
},
beforeCreate
()
{
Vue
.
prototype
.
$app
=
this
;
},
created
()
{},
methods
:
{},
};
</
script
>
<
style
lang=
"less"
scoped
>
#app {
.loading {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.3);
position: fixed;
top: 0px;
left: 0px;
z-index: 99999;
.title {
color: #fff;
font-size: 12px;
text-align: center;
}
.el-progress {
width: 300px;
/deep/ .el-progress__text {
color: #fff;
}
}
}
}
</
style
>
attendance-performance-manager-ui/admin/src/assets/utils/exportExcel.js
0 → 100644
View file @
d298661e
// 导出表格数据
import
ExportJsonExcel
from
"
js-export-excel
"
;
/**
* 导出excel
* @param {导出的表头名信息} tHeader
* @param {导出的表头字段名,需要导出表格字段名} filterVal
* @param {导出数据} list
* @param {导出文件名称} fileName
*/
export
const
exportExcel
=
(
tHeader
,
filterVal
,
list
,
fileName
)
=>
{
let
option
=
{
fileName
,
datas
:
[
{
sheetData
:
list
,
sheetName
:
"
sheet
"
,
sheetFilter
:
filterVal
,
sheetHeader
:
tHeader
,
// columnWidths: columnWidths, // 列宽
},
],
};
let
toExcel
=
new
ExportJsonExcel
(
option
);
toExcel
.
saveExcel
();
//保存
};
attendance-performance-manager-ui/admin/src/main.js
View file @
d298661e
...
@@ -14,7 +14,9 @@ import VueAMap from "vue-amap";
...
@@ -14,7 +14,9 @@ import VueAMap from "vue-amap";
import
*
as
echarts
from
"
echarts
"
;
import
*
as
echarts
from
"
echarts
"
;
import
formCreate
from
"
@form-create/element-ui
"
;
import
formCreate
from
"
@form-create/element-ui
"
;
import
FcDesigner
from
"
@form-create/designer
"
;
import
FcDesigner
from
"
@form-create/designer
"
;
// 引入时间处理
import
moment
from
"
moment
"
;
Vue
.
prototype
.
$moment
=
moment
;
// 将自动注册所有组件为全局组件
// 将自动注册所有组件为全局组件
import
dataV
from
"
@jiaminghi/data-view
"
;
import
dataV
from
"
@jiaminghi/data-view
"
;
...
@@ -31,22 +33,22 @@ Vue.use(VueAMap);
...
@@ -31,22 +33,22 @@ Vue.use(VueAMap);
Vue
.
use
(
formCreate
);
Vue
.
use
(
formCreate
);
Vue
.
use
(
FcDesigner
);
Vue
.
use
(
FcDesigner
);
VueAMap
.
initAMapApiLoader
({
VueAMap
.
initAMapApiLoader
({
key
:
"
f45cca59553214543a5a77e50a7e04df
"
,
key
:
"
f45cca59553214543a5a77e50a7e04df
"
,
plugin
:
[
plugin
:
[
"
AMap.Scale
"
,
"
AMap.Scale
"
,
"
AMap.OverView
"
,
"
AMap.OverView
"
,
"
AMap.ToolBar
"
,
"
AMap.ToolBar
"
,
"
AMap.MapType
"
,
"
AMap.MapType
"
,
"
AMap.PlaceSearch
"
,
"
AMap.PlaceSearch
"
,
"
AMap.Geolocation
"
,
"
AMap.Geolocation
"
,
"
AMap.Geocoder
"
,
"
AMap.Geocoder
"
,
],
],
v
:
"
1.4.4
"
,
v
:
"
1.4.4
"
,
uiVersion
:
"
1.0
"
,
uiVersion
:
"
1.0
"
,
});
});
Vue
.
prototype
.
Global
=
Global
;
Vue
.
prototype
.
Global
=
Global
;
new
Vue
({
new
Vue
({
router
,
router
,
store
,
store
,
render
:
(
h
)
=>
h
(
App
),
render
:
(
h
)
=>
h
(
App
),
}).
$mount
(
"
#app
"
);
}).
$mount
(
"
#app
"
);
attendance-performance-manager-ui/admin/src/views/homeCharts/record/list.vue
View file @
d298661e
This diff is collapsed.
Click to expand it.
attendance-performance-manager-ui/admin/yarn.lock
View file @
d298661e
This diff is collapsed.
Click to expand it.
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