management.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. var routes = [
  2. { path: '/', component: IndexPage,
  3. children: [
  4. {
  5. path: '/',
  6. components: {
  7. leftView: TemplateList,
  8. rightView: NewTemplate
  9. }
  10. },
  11. {
  12. path: '/new-template-form',
  13. components: {
  14. leftView: TemplateList,
  15. rightView: NewTemplateForm
  16. }
  17. },
  18. {
  19. path: '/template-items',
  20. components: {
  21. leftView: TemplateItemsSelect,
  22. rightView: TemplateItems
  23. }
  24. },
  25. {
  26. path: '/template-items-select',
  27. components: {
  28. leftView: TemplateItemsSelect,
  29. rightView: TemplateItems
  30. }
  31. },
  32. {
  33. path: '/template-item-detail',
  34. components: {
  35. leftView: TemplateItemsSelect,
  36. rightView: ItemDetail
  37. }
  38. },
  39. ]
  40. }
  41. ],
  42. router = new VueRouter({
  43. routes: routes
  44. }),
  45. storage = {
  46. docInfo: localStorage.getItem('docInfo')?JSON.parse(localStorage.getItem('docInfo')):null,
  47. patient: null, // url中patient,用来来判断是否是"发送"模式
  48. planId: null
  49. }
  50. new Vue({
  51. data: {
  52. },
  53. router: router,
  54. methods: {
  55. },
  56. components: {
  57. }
  58. }).$mount('#app')