1234567891011121314151617181920212223242526272829303132333435363738 |
- var NewTemplate = {
- template: '<div>\
- <div class="title-name c-f16">\
- <span class="c-vam">模板未命名</span>\
- </div>\
- <div class="c-t-center">\
- <img src="../../../images/wushuju_img.png" class="wushuju"/>\
- </div>\
- <div class="c-t-center mt30">\
- <a @click="newTemplate" class="new-temp-btn">创建新模板</a>\
- </div>\
- </div>',
- props: [],
- data: function() {
- return {
- teamCode:''
- }
- },
- mounted: function() {
- var vm = this
- vm.$nextTick(function(){
- EventBus.$on('getTeamCode',function(arg){
- vm.teamCode=arg.teamCode
- })
- })
- },
- methods: {
- newTemplate: function() {
- var vm = this
- vm.$router.push({
- path:'/new-template-form',
- query:{
- teamCode:vm.teamCode
- }
- })
- }
- }
- }
|