diff --git a/js/components/main.vue b/js/components/main.vue index a271e99..fb28d35 100644 --- a/js/components/main.vue +++ b/js/components/main.vue @@ -7,7 +7,8 @@ var mainWindow = { 'selectDepartment': '', 'foundName': "", "user": "", - 'token': "" + 'token': "", + 'is_print': false, } }, created() { @@ -194,6 +195,7 @@ var mainWindow = { } }, 'generatePic': function () { + this.is_print = true; html2canvas(document.getElementById('course-table-div')).then(function (canvas) { var a = document.createElement('a'); a.href = canvas.toDataURL("image/jpeg").replace("image/jpeg", "image/octet-stream"); @@ -206,7 +208,10 @@ var mainWindow = { $('#share').modal('show'); else this.login() - } + }, + 'enableDelete': function () { + this.is_print = !this.is_print; + }, }, components: { 'course-table': courseTable, @@ -249,14 +254,18 @@ var mainWindow = {