diff --git a/pages/player.vue b/pages/player.vue index 966eb3b6..1f7f2f32 100644 --- a/pages/player.vue +++ b/pages/player.vue @@ -94,6 +94,13 @@ + @@ -262,9 +269,12 @@ - + + + + + + + @@ -305,6 +325,7 @@ export default { isLoading: false, isPlaying: '', listDate: this.$dayjs().format('YYYY-MM-DD'), + targetDate: this.$dayjs().format('YYYY-MM-DD'), interval: null, extensions: '', videoOptions: {}, @@ -461,7 +482,7 @@ export default { async resetPlaylist () { await this.$store.dispatch('playlist/getPlaylist', { dayStart: this.configPlayout.playlist.day_start, date: this.listDate }) }, - async savePlaylist () { + async savePlaylist (saveDate) { this.$store.commit('playlist/UPDATE_PLAYLIST', this.$processPlaylist( this.configPlayout.playlist.day_start, this.playlist)) @@ -469,8 +490,11 @@ export default { await this.$axios.post( 'api/player/playlist/', - { data: { channel: this.$store.state.config.configGui.channel, date: this.listDate, program: saveList } } + { data: { channel: this.$store.state.config.configGui.channel, date: saveDate, program: saveList } } ) + }, + showCopyModal () { + this.$root.$emit('bv::show::modal', 'copy-modal') } } } @@ -694,3 +718,9 @@ export default { } + +