From 1f2b7958a59831aeaa7414bf8fc8276cae8ab778 Mon Sep 17 00:00:00 2001 From: jakcic <63526115+jakcic@users.noreply.github.com> Date: Tue, 21 Dec 2021 11:59:37 +0800 Subject: [PATCH] =?UTF-8?q?myDialog=E7=BB=84=E4=BB=B6=E9=87=8D=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/.babelrc | 4 + ruoyi-ui/.env.production | 6 +- ruoyi-ui/.eslintignore | 4 +- ruoyi-ui/babel.config.js | 5 +- ruoyi-ui/package.json | 9 + ruoyi-ui/src/config.js | 2 +- .../src/layout/components/InnerLink/index.vue | 4 +- ruoyi-ui/src/main.js | 24 +- ruoyi-ui/src/mixins/index.js | 36 +- ruoyi-ui/src/option/components/table.vue | 50 +-- ruoyi-ui/src/page/group/container.vue | 83 ++-- ruoyi-ui/src/page/group/myDialog.vue | 349 +++++++++-------- ruoyi-ui/src/page/group/subgroup.vue | 20 +- ruoyi-ui/src/router/index.js | 134 ++++--- ruoyi-ui/src/styles/style.scss | 2 +- ruoyi-ui/src/utils/time.js | 10 + ruoyi-ui/src/views/screen/page/build.vue | 361 +----------------- .../views/screen/page/group/contentmenu.vue | 3 +- ruoyi-ui/vue.config.js | 11 +- .../controller/FactorIconController.java | 103 +++++ .../com/ruoyi/system/domain/FactorIcon.java | 79 ++++ .../ruoyi/system/mapper/FactorIconMapper.java | 61 +++ .../system/service/IFactorIconService.java | 61 +++ .../service/impl/FactorIconServiceImpl.java | 93 +++++ .../mapper/system/FactorIconMapper.xml | 66 ++++ 25 files changed, 867 insertions(+), 713 deletions(-) create mode 100644 ruoyi-ui/.babelrc create mode 100644 ruoyi-ui/src/utils/time.js create mode 100644 src/main/java/com/ruoyi/system/controller/FactorIconController.java create mode 100644 src/main/java/com/ruoyi/system/domain/FactorIcon.java create mode 100644 src/main/java/com/ruoyi/system/mapper/FactorIconMapper.java create mode 100644 src/main/java/com/ruoyi/system/service/IFactorIconService.java create mode 100644 src/main/java/com/ruoyi/system/service/impl/FactorIconServiceImpl.java create mode 100644 src/main/resources/mapper/system/FactorIconMapper.xml diff --git a/ruoyi-ui/.babelrc b/ruoyi-ui/.babelrc new file mode 100644 index 000000000..1e5e4d639 --- /dev/null +++ b/ruoyi-ui/.babelrc @@ -0,0 +1,4 @@ +{ + "presets":["@babel/preset-env"], + "plugins":["transform-vue-jsx"] +} \ No newline at end of file diff --git a/ruoyi-ui/.env.production b/ruoyi-ui/.env.production index c446eb32a..8764b6660 100644 --- a/ruoyi-ui/.env.production +++ b/ruoyi-ui/.env.production @@ -6,10 +6,10 @@ ENV = 'production' # 若依管理系统/生产环境 # VUE_APP_BASE_API = 'prod-api' -VUE_APP_BASE_API = 'http://192.168.1.183:8080' +VUE_APP_BASE_API = 'http://172.17.172.240:8080' # 图片上传接口 -VUE_APP_IMAGE_API = 'http://192.168.1.183:8080/system/visualImage/upload' +VUE_APP_IMAGE_API = 'http://172.17.172.240:8080/system/visualImage/upload' # 图片上传文件夹 -VUE_APP_IMAGE_PATH ='http://192.168.1.183:8080/profile/images/' +VUE_APP_IMAGE_PATH ='http://172.17.172.240:8080/profile/images/' diff --git a/ruoyi-ui/.eslintignore b/ruoyi-ui/.eslintignore index 89be6f659..09bfa9361 100644 --- a/ruoyi-ui/.eslintignore +++ b/ruoyi-ui/.eslintignore @@ -7,4 +7,6 @@ public # 忽略当前目录下为js的文件的语法检查 *.js # 忽略当前目录下为vue的文件的语法检查 -*.vue \ No newline at end of file +*.vue + +*.babelrc \ No newline at end of file diff --git a/ruoyi-ui/babel.config.js b/ruoyi-ui/babel.config.js index b99f00148..485a9a2f3 100644 --- a/ruoyi-ui/babel.config.js +++ b/ruoyi-ui/babel.config.js @@ -1,7 +1,8 @@ module.exports = { presets: [ // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app - '@vue/cli-plugin-babel/preset' + '@vue/cli-plugin-babel/preset', + // '@vue/babel-preset-jsx' ], 'env': { 'development': { @@ -9,5 +10,5 @@ module.exports = { // 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 fd3d96488..99ef64e7b 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -36,7 +36,10 @@ "url": "https://gitee.com/y_project/RuoYi-Vue.git" }, "dependencies": { + "@babel/preset-env": "^7.16.5", "@riophae/vue-treeselect": "0.4.0", + "@vue/babel-helper-vue-jsx-merge-props": "^1.2.1", + "@vue/babel-preset-jsx": "^1.2.4", "axios": "0.21.0", "clipboard": "2.0.6", "codemirror": "^5.63.3", @@ -49,6 +52,7 @@ "js-beautify": "1.13.0", "js-cookie": "2.2.1", "jsencrypt": "3.0.0-rc.1", + "lodash": "^4.17.21", "mockjs": "^1.1.0", "nprogress": "0.2.0", "quill": "1.3.7", @@ -68,6 +72,11 @@ "@vue/cli-plugin-eslint": "4.4.6", "@vue/cli-service": "4.4.6", "babel-eslint": "10.1.0", + "babel-helper-vue-jsx-merge-props": "^2.0.3", + "babel-plugin-jsx-v-model": "^2.0.3", + "babel-plugin-syntax-jsx": "^6.18.0", + "babel-plugin-transform-vue-jsx": "^3.7.0", + "babel-preset-env": "^1.7.0", "chalk": "4.1.0", "connect": "3.6.6", "echarts": "^4.9.0", diff --git a/ruoyi-ui/src/config.js b/ruoyi-ui/src/config.js index ebe694016..34e00dd42 100644 --- a/ruoyi-ui/src/config.js +++ b/ruoyi-ui/src/config.js @@ -13,4 +13,4 @@ export default { } // export const url = 'https://data.bladex.vip/blade-visual' // export const url = 'http://localhost:8080/avue/api' -export const url = 'http://192.168.1.183:8080/avue/api' +export const url = 'http://172.17.172.240:8080/avue/api' diff --git a/ruoyi-ui/src/layout/components/InnerLink/index.vue b/ruoyi-ui/src/layout/components/InnerLink/index.vue index a45d1a4a4..c6372ff20 100644 --- a/ruoyi-ui/src/layout/components/InnerLink/index.vue +++ b/ruoyi-ui/src/layout/components/InnerLink/index.vue @@ -1,9 +1,9 @@ - - + diff --git a/ruoyi-ui/src/page/group/myDialog.vue b/ruoyi-ui/src/page/group/myDialog.vue index 9319f6e71..f072dff88 100644 --- a/ruoyi-ui/src/page/group/myDialog.vue +++ b/ruoyi-ui/src/page/group/myDialog.vue @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/ruoyi-ui/src/views/screen/page/group/contentmenu.vue b/ruoyi-ui/src/views/screen/page/group/contentmenu.vue index 60f833831..cab268c2f 100644 --- a/ruoyi-ui/src/views/screen/page/group/contentmenu.vue +++ b/ruoyi-ui/src/views/screen/page/group/contentmenu.vue @@ -33,6 +33,7 @@