diff --git a/package.json b/package.json
index b5a383f..b8d26b6 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
"echarts": "^5.0.0",
"element-ui": "^2.15.14",
"exceljs": "^4.4.0",
+ "file-saver": "^2.0.5",
"js-cookie": "2.2.0",
"json-bigint": "^1.0.0",
"moment": "^2.29.4",
@@ -33,7 +34,8 @@
"vuex": "3.1.0",
"vxe-pc-ui": "^3.1.0",
"vxe-table": "^3.8.25",
- "vxe-table-plugin-export-xlsx": "^3.3.4"
+ "vxe-table-plugin-export-xlsx": "^3.3.4",
+ "xlsx": "^0.18.5"
},
"devDependencies": {
"@vue/cli-plugin-babel": "4.4.4",
diff --git a/src/App.vue b/src/App.vue
index 9fb69fa..156cbe5 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -2,7 +2,7 @@
-
+
diff --git a/src/api/chart.js b/src/api/chart.js
new file mode 100644
index 0000000..4e27fda
--- /dev/null
+++ b/src/api/chart.js
@@ -0,0 +1,19 @@
+import request from '@/utils/request'
+
+export function leaveList(params, isLoading = true) {
+ return request({
+ method: 'get',
+ url: '/api/oa/chart/leave',
+ params,
+ isLoading
+ })
+}
+
+export function overtimeList(params,isLoading = true) {
+ return request({
+ method: 'get',
+ url: '/api/oa/chart/overtime',
+ params,
+ isLoading
+ })
+}
diff --git a/src/main.js b/src/main.js
index 191bba7..b12d9a6 100644
--- a/src/main.js
+++ b/src/main.js
@@ -110,4 +110,3 @@ if (window.__POWERED_BY_WUJIE__) {
}
}).$mount("#app")
}
-
diff --git a/src/views/attendance/leavechart.vue b/src/views/attendance/leavechart.vue
new file mode 100644
index 0000000..7336bea
--- /dev/null
+++ b/src/views/attendance/leavechart.vue
@@ -0,0 +1,174 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+ {{row.over_off=='0.00'?'0':row.over_off}}
+
+
+
+
+
+
+ {{row.overtime=='0.00'?'0':row.overtime}}
+
+
+
+
+
+
+ {{row.time_off=='0.00'?'0':row.time_off}}
+
+
+
+
+
+
+ {{row.expire=='0.00'?'0':row.expire}}
+
+
+
+
+
+
+ {{row.has_time_off=='0.00'?'0':row.has_time_off}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/attendance/overtimechart.vue b/src/views/attendance/overtimechart.vue
new file mode 100644
index 0000000..715ac7f
--- /dev/null
+++ b/src/views/attendance/overtimechart.vue
@@ -0,0 +1,294 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+ {{row.kaishiriqi?row.kaishiriqi.substring(0,11):''}}
+
+
+
+
+
+ {{row.kaishiriqi?row.kaishiriqi.substring(11,row.kaishiriqi.length):''}}-{{row.kaishiriqi?row.jieshushijian.substring(11,row.jieshushijian.length):''}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+