Vue.component('nav-tab', { template: '
\
\ \ \ \ \
\
\
\ \ 新建指导模板\
\
\
\
\ \ 新建指导模板\
\
\
', props: [], data: function() { return { activeIdx: 0, activetemplate: null, isLeader: storage.docInfo.isLeader } }, created: function() { var vm = this EventBus.$on('active-template', function(template) { vm.activetemplate = template }) EventBus.$on('active-nav-tab', function(idx) { vm.activeIdx = idx }) }, methods: { active: function(idx) { this.activeIdx = idx }, newPersonTemplate: function() { var query = { patient: storage.patient || "", timestemp: $.now() } this.$router.push({path:'/person-new-panel',query:query}) }, newTeamTemplate: function() { var query = { patient: storage.patient || "", timestemp: $.now() } this.$router.push({path:'/team-new-panel',query:query}) } } })