preview.js 937 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import BaseStore from '@src/stores/base';
  2. export default class PreviewStore extends BaseStore {
  3. list(params) {
  4. return this.apiGet('/preview/list', params);
  5. }
  6. get(params) {
  7. return this.apiGet('/preview/detail', params);
  8. }
  9. add(params) {
  10. return this.apiPost('/preview/add', params);
  11. }
  12. edit(params) {
  13. return this.apiPut('/preview/edit', params);
  14. }
  15. del(params) {
  16. return this.apiDel('/preview/delete', params);
  17. }
  18. listAssign(params) {
  19. return this.apiGet('/preview/assign/list', params);
  20. }
  21. getAssign(params) {
  22. return this.apiGet('/preview/assign/detail', params);
  23. }
  24. addAssign(params) {
  25. return this.apiPost('/preview/assign/add', params);
  26. }
  27. editAssign(params) {
  28. return this.apiPut('/preview/assign/edit', params);
  29. }
  30. delAssign(params) {
  31. return this.apiDel('/preview/assign/delete', params);
  32. }
  33. }
  34. export const Preview = new PreviewStore({ key: 'preview' });