From 561a373e40dffa88fb50e9ffec73aa7f384eabe1 Mon Sep 17 00:00:00 2001 From: sd <1504629600@qq.com> Date: Mon, 2 Mar 2026 15:20:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=98=E7=89=B9=E5=9B=BE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/babel.config.js | 6 +- ruoyi-ui/package.json | 6 +- ruoyi-ui/src/views/ganttChart/index.vue | 669 +++++++++++++++++++++++++++----- 3 files changed, 575 insertions(+), 106 deletions(-) diff --git a/ruoyi-ui/babel.config.js b/ruoyi-ui/babel.config.js index c8267b2..3ba7e5e 100644 --- a/ruoyi-ui/babel.config.js +++ b/ruoyi-ui/babel.config.js @@ -1,12 +1,12 @@ module.exports = { presets: [ - // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app '@vue/cli-plugin-babel/preset' ], + plugins: [ + '@babel/plugin-proposal-object-rest-spread' + ], 'env': { 'development': { - // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require(). - // This plugin can significantly increase the speed of hot updates, when you have a large number of pages. 'plugins': ['dynamic-import-node'] } } diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index 4aa7fcd..765bdd4 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -35,9 +35,11 @@ "file-saver": "2.0.5", "fuse.js": "6.4.3", "highlight.js": "9.18.5", + "html2canvas": "^1.4.1", "js-beautify": "1.13.0", "js-cookie": "3.0.1", "jsencrypt": "3.0.0-rc.1", + "jspdf": "^2.5.1", "mammoth": "^1.11.0", "nprogress": "0.2.0", "quill": "2.0.2", @@ -50,9 +52,11 @@ "vue-i18n": "^8.28.2", "vue-router": "3.4.9", "vuedraggable": "2.24.3", - "vuex": "3.6.0" + "vuex": "3.6.0", + "xlsx": "^0.18.5" }, "devDependencies": { + "@babel/plugin-proposal-object-rest-spread": "^7.20.7", "@babel/plugin-transform-nullish-coalescing-operator": "^7.28.6", "@babel/plugin-transform-optional-chaining": "^7.28.6", "@open-wc/webpack-import-meta-loader": "^0.4.7", diff --git a/ruoyi-ui/src/views/ganttChart/index.vue b/ruoyi-ui/src/views/ganttChart/index.vue index 0f3b6d5..e152c49 100644 --- a/ruoyi-ui/src/views/ganttChart/index.vue +++ b/ruoyi-ui/src/views/ganttChart/index.vue @@ -1,10 +1,19 @@