From 54051120c1b27732f05b8c2f4a0112ac02323696 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Wed, 14 Sep 2022 17:36:40 +0800
Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/gtqt
---
src/api/specialWorkSystem/workPlan/workAppoint/index.ts | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/src/api/specialWorkSystem/workPlan/workAppoint/index.ts b/src/api/specialWorkSystem/workPlan/workAppoint/index.ts
new file mode 100644
index 0000000..9d44e51
--- /dev/null
+++ b/src/api/specialWorkSystem/workPlan/workAppoint/index.ts
@@ -0,0 +1,50 @@
+import request from '/@/utils/request';
+
+export function workAppointApi() {
+ return {
+ // 分页获取列表
+ getAppointListPage: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/specialWork/appointment/listAll`,
+ method: 'post',
+ data: data
+ });
+ },
+
+ // 新增列表
+ addRecord: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/specialWork/appointment/save`,
+ method: 'post',
+ data: data
+ });
+ },
+
+ //修改列表
+ editRecord: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/specialWork/appointment/update`,
+ method: 'post',
+ data: data
+ });
+ },
+
+ //删除列表
+ deleteRecord: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/specialWork/appointment/delete`,
+ method: 'post',
+ data: data
+ });
+ },
+
+ //获取各部门各作业的数量
+ getAllRecords: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/specialWork/appointment/statistics`,
+ method: 'post',
+ data: data
+ });
+ }
+ };
+}
--
Gitblit v1.9.2