fileCount.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import request from '../../utils/request'
  2. // 查询文档协作人员
  3. // data为docid
  4. function getActor(data) {
  5. return request({
  6. url: `/biz/actor/${data}`,
  7. method: "get",
  8. })
  9. }
  10. // 归档
  11. function lockActor(data) {
  12. return request({
  13. url: `/biz/actor/${data}`,
  14. method: "put",
  15. })
  16. }
  17. // 添加协作人员
  18. function addActor(num, data) {
  19. return request({
  20. url: `/biz/actor/${num}`,
  21. method: "post",
  22. data
  23. })
  24. }
  25. // 我发起的
  26. function myCount(data) {
  27. return request({
  28. url: `/biz/actor/initiation?${data}`,
  29. method: "get"
  30. })
  31. }
  32. // 我参与的
  33. function myJoin(data) {
  34. return request({
  35. url: `/biz/actor/participation?${data}`,
  36. method: "get",
  37. })
  38. }
  39. function createFiles(data) {
  40. return request({
  41. url: `/biz/info/create`,
  42. method: "get",
  43. params: data,
  44. })
  45. }
  46. function createFilesOfTemp(data) {
  47. return request({
  48. url: `/biz/info/tmpl/create`,
  49. method: "get",
  50. params: data,
  51. })
  52. }
  53. export default {
  54. getActor,
  55. addActor,
  56. lockActor,
  57. myCount,
  58. myJoin,
  59. createFiles,
  60. createFilesOfTemp
  61. }