Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue into dev
Conflicts:
ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUtils.java
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
ruoyi-ui/package.json
ruoyi-ui/src/main.js
ruoyi-ui/src/views/monitor/job/index.vue
ruoyi-ui/src/views/monitor/job/log.vue
ruoyi-ui/src/views/monitor/logininfor/index.vue
ruoyi-ui/src/views/monitor/operlog/index.vue
ruoyi-ui/src/views/system/config/index.vue
ruoyi-ui/src/views/system/dict/data.vue
ruoyi-ui/src/views/system/dict/index.vue
ruoyi-ui/src/views/system/post/index.vue
ruoyi-ui/src/views/system/role/index.vue
ruoyi-ui/src/views/system/user/index.vue
ruoyi-ui/src/views/tool/build/index.vue
ruoyi-ui/src/views/tool/gen/index.vue
| | |
| | | .append(percentEncodedFileName); |
| | | |
| | | response.setHeader("Content-disposition", contentDispositionValue.toString()); |
| | | response.setHeader("download-filename", percentEncodedFileName); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | /** |
| | | * spring securityé
ç½® |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true) |
| | |
| | | */ |
| | | @Autowired |
| | | private UserDetailsService userDetailsService; |
| | | |
| | | |
| | | /** |
| | | * 认è¯å¤±è´¥å¤çç±» |
| | | */ |
| | |
| | | */ |
| | | @Autowired |
| | | private JwtAuthenticationTokenFilter authenticationTokenFilter; |
| | | |
| | | |
| | | /** |
| | | * è·¨åè¿æ»¤å¨ |
| | | */ |
| | |
| | | "core-js": "3.8.1", |
| | | "echarts": "4.9.0", |
| | | "element-ui": "2.15.5", |
| | | "file-saver": "2.0.4", |
| | | "file-saver": "2.0.5", |
| | | "fuse.js": "6.4.3", |
| | | "highlight.js": "9.18.5", |
| | | "js-beautify": "1.13.0", |
| | |
| | | "eslint-plugin-vue": "7.2.0", |
| | | "lint-staged": "10.5.3", |
| | | "runjs": "4.4.2", |
| | | "sass": "1.32.0", |
| | | "sass": "1.42.1", |
| | | "sass-loader": "10.1.0", |
| | | "script-ext-html-webpack-plugin": "2.1.5", |
| | | "svg-sprite-loader": "5.1.1", |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import { saveAs } from 'file-saver' |
| | | import axios from 'axios' |
| | | import { getToken } from '@/utils/auth' |
| | | |
| | | const baseURL = process.env.VUE_APP_BASE_API |
| | | |
| | | export default { |
| | | name(name, isDelete = true) { |
| | | var url = baseURL + "/common/download?fileName=" + encodeURI(name) + "&delete=" + isDelete |
| | | axios({ |
| | | method: 'get', |
| | | url: url, |
| | | responseType: 'blob', |
| | | headers: { 'Authorization': 'Bearer ' + getToken() } |
| | | }).then(res => { |
| | | const blob = new Blob([res.data]) |
| | | this.saveAs(blob, decodeURI(res.headers['download-filename'])) |
| | | }) |
| | | }, |
| | | resource(resource) { |
| | | var url = baseURL + "/common/download/resource?resource=" + encodeURI(resource); |
| | | axios({ |
| | | method: 'get', |
| | | url: url, |
| | | responseType: 'blob', |
| | | headers: { 'Authorization': 'Bearer ' + getToken() } |
| | | }).then(res => { |
| | | const blob = new Blob([res.data]) |
| | | this.saveAs(blob, decodeURI(res.headers['download-filename'])) |
| | | }) |
| | | }, |
| | | zip(url, name) { |
| | | var url = baseURL + url |
| | | axios({ |
| | | method: 'get', |
| | | url: url, |
| | | responseType: 'blob', |
| | | headers: { 'Authorization': 'Bearer ' + getToken() } |
| | | }).then(res => { |
| | | const blob = new Blob([res.data], { type: 'application/zip' }) |
| | | this.saveAs(blob, name) |
| | | }) |
| | | }, |
| | | saveAs(text, name, opts) { |
| | | saveAs(text, name, opts); |
| | | } |
| | | } |
| | | |
| | |
| | | import cache from './cache'
|
| | | import modal from './modal'
|
| | | import download from './download'
|
| | |
|
| | | export default {
|
| | | install(Vue) {
|
| | |
| | | Vue.prototype.$cache = cache
|
| | | // æ¨¡ææ¡å¯¹è±¡
|
| | | Vue.prototype.$modal = modal
|
| | | // ä¸è½½æä»¶
|
| | | Vue.prototype.$download = download
|
| | | }
|
| | | }
|
| | |
| | | * Copyright (c) 2019 ruoyi |
| | | */ |
| | | |
| | | const baseURL = process.env.VUE_APP_BASE_API |
| | | |
| | | // æ¥ææ ¼å¼å |
| | | export function parseTime(time, pattern) { |
| | | if (arguments.length === 0 || !time) { |
| | |
| | | |
| | | <script> |
| | | import draggable from 'vuedraggable' |
| | | import { saveAs } from 'file-saver' |
| | | import beautifier from 'js-beautify' |
| | | import ClipboardJS from 'clipboard' |
| | | import render from '@/utils/generator/render' |
| | | import RightPanel from './RightPanel' |
| | | import { |
| | | inputComponents, |
| | | selectComponents, |
| | | layoutComponents, |
| | | formConf |
| | | } from '@/utils/generator/config' |
| | | import { |
| | | exportDefault, beautifierConf, isNumberStr, titleCase |
| | | } from '@/utils/index' |
| | | import { |
| | | makeUpHtml, vueTemplate, vueScript, cssStyle |
| | | } from '@/utils/generator/html' |
| | | import { inputComponents, selectComponents, layoutComponents, formConf } from '@/utils/generator/config' |
| | | import { beautifierConf, titleCase } from '@/utils/index' |
| | | import { makeUpHtml, vueTemplate, vueScript, cssStyle } from '@/utils/generator/html' |
| | | import { makeUpJs } from '@/utils/generator/js' |
| | | import { makeUpCss } from '@/utils/generator/css' |
| | | import drawingDefalut from '@/utils/generator/drawingDefalut' |
| | |
| | | import CodeTypeDialog from './CodeTypeDialog' |
| | | import DraggableItem from './DraggableItem' |
| | | |
| | | const emptyActiveData = { style: {}, autosize: {} } |
| | | let oldActiveId |
| | | let tempActiveData |
| | | |
| | |
| | | execDownload(data) { |
| | | const codeStr = this.generateCode() |
| | | const blob = new Blob([codeStr], { type: 'text/plain;charset=utf-8' }) |
| | | saveAs(blob, data.fileName) |
| | | this.$download.saveAs(blob, data.fileName) |
| | | }, |
| | | execCopy(data) { |
| | | document.getElementById('copyNode').click() |
| | |
| | | this.$modal.msgSuccess("æåçæå°èªå®ä¹è·¯å¾ï¼" + row.genPath); |
| | | }); |
| | | } else { |
| | | downLoadZip("/tool/gen/batchGenCode?tables=" + tableNames, "ruoyi"); |
| | | this.$download.zip("/tool/gen/batchGenCode?tables=" + tableNames, "ruoyi"); |
| | | } |
| | | }, |
| | | /** åæ¥æ°æ®åºæä½ */ |