diff --git a/src/assets/NeptuneLogo.png b/src/assets/NeptuneLogo.png new file mode 100644 index 0000000..f730c82 Binary files /dev/null and b/src/assets/NeptuneLogo.png differ diff --git a/src/views/dashboard/Editor.vue b/src/views/dashboard/Editor.vue index 58ab249..d5cdd40 100644 --- a/src/views/dashboard/Editor.vue +++ b/src/views/dashboard/Editor.vue @@ -12,7 +12,7 @@ class="pt-0" > mdi-content-save Save - mdi-play Compile + mdi-play Save and Compile mdi-delete Delete mdi-cloud-download Download mdi-cloud-upload Upload @@ -280,7 +280,7 @@ export default { createfile: function(event) { console.log("TEST"); }, - savefile: function(event) { + savefile() { let self = this self.isloading = true console.log("save the file", this.code); diff --git a/src/views/dashboard/Solutions.vue b/src/views/dashboard/Solutions.vue index f457b2b..964359f 100644 --- a/src/views/dashboard/Solutions.vue +++ b/src/views/dashboard/Solutions.vue @@ -190,7 +190,6 @@ document.body.appendChild(link) link.click() }) - }, openpreview(fid){ alert(fid) @@ -218,7 +217,23 @@ } }, downloadjobfiles(jid){ - alert(jid) + // alert(jid); + for (let fid of this.jobobjects[jid].files){ + axios.get('/api/v1/file', { + params: { + id: fid + } + }) + .then((response) => { + var fileData = response.data; + console.log(fileData) + this.downloadfile(fileData); + }) + .catch((error) => { + console.log(error) + }) + + } }, complete (index) { this.list[index] = !this.list[index] diff --git a/src/views/dashboard/components/core/Drawer.vue b/src/views/dashboard/components/core/Drawer.vue index fc0e937..52be8fd 100644 --- a/src/views/dashboard/components/core/Drawer.vue +++ b/src/views/dashboard/components/core/Drawer.vue @@ -94,7 +94,7 @@ }, data: () => ({ - logo: './images/NeptuneLogo.png', + logo: require('@/assets/NeptuneLogo.png'), items: [ { icon: 'mdi-view-dashboard',