1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- var routes = [
- { path: '/', component: IndexPage,
- children: [
- {
- path: '/',
- components: {
- leftView: TemplateList,
- rightView: NewTemplate
- }
- },
- {
- path: '/new-template-form',
- components: {
- leftView: TemplateList,
- rightView: NewTemplateForm
- }
- },
- {
- path: '/template-items',
- components: {
- leftView: TemplateItemsSelect,
- rightView: TemplateItems
- }
- },
- {
- path: '/template-items-select',
- components: {
- leftView: TemplateItemsSelect,
- rightView: TemplateItems
- }
- },
- {
- path: '/template-item-detail',
- components: {
- leftView: TemplateItemsSelect,
- rightView: ItemDetail
- }
- },
- ]
- }
- ],
- router = new VueRouter({
- routes: routes
- }),
- storage = {
- docInfo: localStorage.getItem('docInfo')?JSON.parse(localStorage.getItem('docInfo')):null,
- patient: null, // url中patient,用来来判断是否是"发送"模式
- planId: null
- }
- new Vue({
- data: {
- },
- router: router,
- methods: {
- },
- components: {
- }
- }).$mount('#app')
|