Vue.component('signal-source', { template: '
号  源
\ \
', props: ['detailtime'], data: function () { return {} }, mounted: function () {}, methods: { looking: function (list) { this.$emit('booking', list) }, handleTime: function (data) { var time = data.split(' ')[1], str = this.add0(time.split(':')[0]) + ':' + time.split(':')[1] return str }, add0: function (num) { if (num < 10) { return '0' + num } return num } } })