chenc 3 tahun lalu
induk
melakukan
47cd8b11ff
2 mengubah file dengan 29 tambahan dan 9 penghapusan
  1. 12 0
      src/api/oa/cd-enterprise-announcement.js
  2. 17 9
      src/api/oa/cd-schedule.js

+ 12 - 0
src/api/oa/cd-enterprise-announcement.js

@@ -1,5 +1,8 @@
 import { getAction,deleteAction,putAction,postAction} from '@/api/manage'
 
+/**
+ * 企业公告
+ */
 
 //查询分页数据
 const  enterpriseEList= (params)=>getAction("/oa/cdEnterpriseEnnouncement/list",params);
@@ -10,6 +13,15 @@ const enterpriseEAdd= (params)=>postAction("/oa/cdEnterpriseEnnouncement/add",pa
 const enterpriseEQueryById = (params)=>getAction("/oa/cdEnterpriseEnnouncement/queryById",params);
 //修改
 const enterpriseEUpdate= (params)=>postAction("/oa/cdEnterpriseEnnouncement/edit",params);
+/**
+ * 发布与取消发布接口
+ * @param {*} params 
+ * {
+ *  id:'',//需修改的id
+ *  isRelease:''//修改成需要的发布状态
+ * }
+ */
+const  enterpriseEReleseUpdate= (params)=>getAction("/oa/cdEnterpriseEnnouncement/releaseUpdate",params);
 
 export {
     enterpriseEList,

+ 17 - 9
src/api/oa/cd-schedule.js

@@ -1,5 +1,12 @@
-import { getAction, deleteAction, putAction, postAction } from '@/api/manage'
-
+import {
+  getAction,
+  deleteAction,
+  putAction,
+  postAction
+} from '@/api/manage'
+/**
+ * 日程计划
+ */
 // 查询近两年和未来两年的数据
 const scheduleGetListByTime = (params) => getAction('/oa/cdSchedule/getListByTime', params)
 // 根据id查询
@@ -16,11 +23,12 @@ const scheduleUpdate = (params) => putAction('/oa/cdSchedule/edit', params)
 //    whereTimeType:'',时间类型(0无时间筛选1查询上月的2本月)
 // }
 const scheduleGetLastMonth = (params) => getAction('/oa/cdSchedule/getLastMonth', params)
-
+//列表分页查询
+const scheduleList = (params) => getAction('/oa/cdSchedule/list', params)
 export {
-    scheduleGetListByTime,
-    scheduleQueryById,
-    scheduleAdd,
-    scheduleUpdate,
-    scheduleGetLastMonth
-}
+  scheduleGetListByTime,
+  scheduleQueryById,
+  scheduleAdd,
+  scheduleUpdate,
+  scheduleGetLastMonth
+}