Browse Source

日程计划接口

chenc 3 years ago
parent
commit
9a39d9ef92
2 changed files with 24 additions and 0 deletions
  1. 1 0
      src/api/api.js
  2. 23 0
      src/api/oa/cd-schedule.js

+ 1 - 0
src/api/api.js

@@ -111,6 +111,7 @@ const queryList=(params)=>getAction("/tbTableInfo/queryList",params)
 //修改
 const updateTbTableInfo=(params)=>putAction("/tbTableInfo/updateTbTableInfo",params)
 
+
 export {
   // imgView,
   // doMian,

+ 23 - 0
src/api/oa/cd-schedule.js

@@ -0,0 +1,23 @@
+import { getAction,deleteAction,putAction,postAction} from '@/api/manage'
+
+//查询近两年和未来两年的数据
+const scheduleGetListByTime = (params)=>getAction("/oa/cdSchedule/getListByTime",params);
+//根据id查询
+//params:{id:''}
+const scheduleQueryById = (params)=>getAction("/oa/cdSchedule/queryById",params);
+//新增
+const scheduleAdd= (params)=>postAction("/oa/cdSchedule/add",params);
+//查询上月我的计划数量 
+//params:
+//{
+//    createBy:'' ,人员账号(不传则查询全部人员)
+//    whereTimeType:'',时间类型(0无时间筛选1查询上月的)
+//}
+const scheduleGetLastMonth = (params)=>getAction("/oa/cdSchedule/getLastMonth",params);
+
+export {
+    scheduleGetListByTime,
+    scheduleQueryById,
+    scheduleAdd,
+    scheduleGetLastMonth
+}