From 62d381280633ccc02f7fe3fcf1dc89e256f9d428 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E4=B9=85=E5=93=A5?= <787952492@qq.com>
Date: Mon, 30 May 2022 19:21:46 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E6=97=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/farm/workHour.js | 54 +++++
src/views/farm/workHour/index.vue | 379 ++++++++++++++++++++++++++++++
2 files changed, 433 insertions(+)
create mode 100644 src/api/farm/workHour.js
create mode 100644 src/views/farm/workHour/index.vue
diff --git a/src/api/farm/workHour.js b/src/api/farm/workHour.js
new file mode 100644
index 0000000..26f996d
--- /dev/null
+++ b/src/api/farm/workHour.js
@@ -0,0 +1,54 @@
+import request from '@/utils/request'
+
+// 创建
+export function createWorkHour(data) {
+ return request({
+ url: '/farm/work-hour/create',
+ method: 'post',
+ data: data
+ })
+}
+
+// 更新
+export function updateWorkHour(data) {
+ return request({
+ url: '/farm/work-hour/update',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除
+export function deleteWorkHour(id) {
+ return request({
+ url: '/farm/work-hour/delete?id=' + id,
+ method: 'delete'
+ })
+}
+
+// 获得
+export function getWorkHour(id) {
+ return request({
+ url: '/farm/work-hour/get?id=' + id,
+ method: 'get'
+ })
+}
+
+// 获得分页
+export function getWorkHourPage(query) {
+ return request({
+ url: '/farm/work-hour/page',
+ method: 'get',
+ params: query
+ })
+}
+
+// 导出 Excel
+export function exportWorkHourExcel(query) {
+ return request({
+ url: '/farm/work-hour/export-excel',
+ method: 'get',
+ params: query,
+ responseType: 'blob'
+ })
+}
diff --git a/src/views/farm/workHour/index.vue b/src/views/farm/workHour/index.vue
new file mode 100644
index 0000000..2cfcd58
--- /dev/null
+++ b/src/views/farm/workHour/index.vue
@@ -0,0 +1,379 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+ {{cpUserList.find(t=>t.id == scope.row.userId).name}}
+
+
+
+
+ {{projectList.find(t=>t.id == scope.row.projectId).name}}
+
+
+
+
+ {{taskList.find(t=>t.id == scope.row.taskId).name}}
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+