operation.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. (function (exports) {
  2. var operation = {
  3. //接收包列表
  4. tabArr: [{
  5. index: 0,
  6. name: '接收异常'
  7. },
  8. {
  9. index: 1,
  10. name: '解析异常'
  11. },
  12. {
  13. index: 2,
  14. name: '资源化异常'
  15. },
  16. {
  17. index: 3,
  18. name: '平台上传异常'
  19. },
  20. {
  21. index: 4,
  22. name: '平台上传失败'
  23. },
  24. ],
  25. clicktab: function (item) {
  26. setTimeout(function () {
  27. GlobalEventBus.$emit('setLoading', {
  28. loading: true
  29. }); //触发
  30. switch (item.index) {
  31. case 0:
  32. window.location.href='platform-receive.html'
  33. break;
  34. case 1:
  35. window.location.href='parse-fail.html'
  36. break;
  37. case 2:
  38. window.location.href='resources-abnormal.html'
  39. break;
  40. case 3:
  41. window.location.href='platform-abnormal.html'
  42. break;
  43. case 4:
  44. window.location.href='upload-faill.html'
  45. break;
  46. }
  47. }, 100)
  48. },
  49. }
  50. window.onload=function(){
  51. GlobalEventBus.$emit('setLoading', {
  52. loading: false
  53. }); //触发
  54. }
  55. exports.operation = operation;
  56. })(window)