Bläddra i källkod

项目结构调整 x 11 : 修改前端项目为 yudao-admin-ui

YunaiV 4 år sedan
förälder
incheckning
f336b801b9
100 ändrade filer med 1230 tillägg och 1226 borttagningar
  1. 15 0
      pom.xml
  2. 0 11
      yudao-admin-server/pom.xml
  3. 22 22
      yudao-admin-ui/.editorconfig
  4. 0 0
      yudao-admin-ui/.env.demo1024
  5. 9 9
      yudao-admin-ui/.env.development
  6. 5 5
      yudao-admin-ui/.env.production
  7. 10 10
      yudao-admin-ui/.env.staging
  8. 9 9
      yudao-admin-ui/.eslintignore
  9. 199 199
      yudao-admin-ui/.eslintrc.js
  10. 23 23
      yudao-admin-ui/.gitignore
  11. 13 13
      yudao-admin-ui/babel.config.js
  12. 0 0
      yudao-admin-ui/bin/build.bat
  13. 11 11
      yudao-admin-ui/bin/package.bat
  14. 11 11
      yudao-admin-ui/bin/run-web.bat
  15. 35 35
      yudao-admin-ui/build/index.js
  16. 88 88
      yudao-admin-ui/package.json
  17. 0 0
      yudao-admin-ui/public/favicon.ico
  18. 207 207
      yudao-admin-ui/public/index.html
  19. 1 1
      yudao-admin-ui/public/robots.txt
  20. 11 11
      yudao-admin-ui/src/App.vue
  21. 0 0
      yudao-admin-ui/src/api/infra/apiAccessLog.js
  22. 0 0
      yudao-admin-ui/src/api/infra/apiErrorLog.js
  23. 0 0
      yudao-admin-ui/src/api/infra/config.js
  24. 0 0
      yudao-admin-ui/src/api/infra/dbDoc.js
  25. 0 0
      yudao-admin-ui/src/api/infra/file.js
  26. 0 0
      yudao-admin-ui/src/api/infra/job.js
  27. 0 0
      yudao-admin-ui/src/api/infra/jobLog.js
  28. 0 0
      yudao-admin-ui/src/api/infra/redis.js
  29. 40 40
      yudao-admin-ui/src/api/login.js
  30. 9 9
      yudao-admin-ui/src/api/menu.js
  31. 60 60
      yudao-admin-ui/src/api/system/dept.js
  32. 70 70
      yudao-admin-ui/src/api/system/dict/data.js
  33. 62 62
      yudao-admin-ui/src/api/system/dict/type.js
  34. 0 0
      yudao-admin-ui/src/api/system/errorCode.js
  35. 0 0
      yudao-admin-ui/src/api/system/loginlog.js
  36. 0 0
      yudao-admin-ui/src/api/system/menu.js
  37. 44 44
      yudao-admin-ui/src/api/system/notice.js
  38. 0 0
      yudao-admin-ui/src/api/system/operatelog.js
  39. 0 0
      yudao-admin-ui/src/api/system/permission.js
  40. 62 62
      yudao-admin-ui/src/api/system/post.js
  41. 75 75
      yudao-admin-ui/src/api/system/role.js
  42. 0 0
      yudao-admin-ui/src/api/system/session.js
  43. 0 0
      yudao-admin-ui/src/api/system/sms/smsChannel.js
  44. 0 0
      yudao-admin-ui/src/api/system/sms/smsLog.js
  45. 0 0
      yudao-admin-ui/src/api/system/sms/smsTemplate.js
  46. 129 129
      yudao-admin-ui/src/api/system/user.js
  47. 0 0
      yudao-admin-ui/src/api/tool/codegen.js
  48. 0 0
      yudao-admin-ui/src/api/tool/testDemo.js
  49. 0 0
      yudao-admin-ui/src/assets/401_images/401.gif
  50. 0 0
      yudao-admin-ui/src/assets/404_images/404.png
  51. 0 0
      yudao-admin-ui/src/assets/404_images/404_cloud.png
  52. 9 9
      yudao-admin-ui/src/assets/icons/index.js
  53. 0 0
      yudao-admin-ui/src/assets/icons/svg/404.svg
  54. 0 0
      yudao-admin-ui/src/assets/icons/svg/bug.svg
  55. 0 0
      yudao-admin-ui/src/assets/icons/svg/build.svg
  56. 0 0
      yudao-admin-ui/src/assets/icons/svg/button.svg
  57. 0 0
      yudao-admin-ui/src/assets/icons/svg/cascader.svg
  58. 0 0
      yudao-admin-ui/src/assets/icons/svg/chart.svg
  59. 0 0
      yudao-admin-ui/src/assets/icons/svg/checkbox.svg
  60. 0 0
      yudao-admin-ui/src/assets/icons/svg/clipboard.svg
  61. 0 0
      yudao-admin-ui/src/assets/icons/svg/code.svg
  62. 0 0
      yudao-admin-ui/src/assets/icons/svg/color.svg
  63. 0 0
      yudao-admin-ui/src/assets/icons/svg/component.svg
  64. 0 0
      yudao-admin-ui/src/assets/icons/svg/dashboard.svg
  65. 0 0
      yudao-admin-ui/src/assets/icons/svg/date-range.svg
  66. 0 0
      yudao-admin-ui/src/assets/icons/svg/date.svg
  67. 0 0
      yudao-admin-ui/src/assets/icons/svg/dict.svg
  68. 0 0
      yudao-admin-ui/src/assets/icons/svg/documentation.svg
  69. 0 0
      yudao-admin-ui/src/assets/icons/svg/download.svg
  70. 0 0
      yudao-admin-ui/src/assets/icons/svg/drag.svg
  71. 0 0
      yudao-admin-ui/src/assets/icons/svg/druid.svg
  72. 0 0
      yudao-admin-ui/src/assets/icons/svg/edit.svg
  73. 0 0
      yudao-admin-ui/src/assets/icons/svg/education.svg
  74. 0 0
      yudao-admin-ui/src/assets/icons/svg/email.svg
  75. 0 0
      yudao-admin-ui/src/assets/icons/svg/example.svg
  76. 0 0
      yudao-admin-ui/src/assets/icons/svg/excel.svg
  77. 0 0
      yudao-admin-ui/src/assets/icons/svg/exit-fullscreen.svg
  78. 0 0
      yudao-admin-ui/src/assets/icons/svg/eye-open.svg
  79. 0 0
      yudao-admin-ui/src/assets/icons/svg/eye.svg
  80. 0 0
      yudao-admin-ui/src/assets/icons/svg/form.svg
  81. 0 0
      yudao-admin-ui/src/assets/icons/svg/fullscreen.svg
  82. 0 0
      yudao-admin-ui/src/assets/icons/svg/github.svg
  83. 0 0
      yudao-admin-ui/src/assets/icons/svg/guide.svg
  84. 0 0
      yudao-admin-ui/src/assets/icons/svg/icon.svg
  85. 0 0
      yudao-admin-ui/src/assets/icons/svg/input.svg
  86. 0 0
      yudao-admin-ui/src/assets/icons/svg/international.svg
  87. 0 0
      yudao-admin-ui/src/assets/icons/svg/job.svg
  88. 0 0
      yudao-admin-ui/src/assets/icons/svg/language.svg
  89. 0 0
      yudao-admin-ui/src/assets/icons/svg/link.svg
  90. 0 0
      yudao-admin-ui/src/assets/icons/svg/list.svg
  91. 0 0
      yudao-admin-ui/src/assets/icons/svg/lock.svg
  92. 0 0
      yudao-admin-ui/src/assets/icons/svg/log.svg
  93. 0 0
      yudao-admin-ui/src/assets/icons/svg/logininfor.svg
  94. 0 0
      yudao-admin-ui/src/assets/icons/svg/message.svg
  95. 0 0
      yudao-admin-ui/src/assets/icons/svg/money.svg
  96. 1 1
      yudao-admin-ui/src/assets/icons/svg/monitor.svg
  97. 0 0
      yudao-admin-ui/src/assets/icons/svg/nested.svg
  98. 0 0
      yudao-admin-ui/src/assets/icons/svg/number.svg
  99. 0 0
      yudao-admin-ui/src/assets/icons/svg/online.svg
  100. 0 0
      yudao-admin-ui/src/assets/icons/svg/password.svg

+ 15 - 0
pom.xml

@@ -24,6 +24,7 @@
         <java.version>1.8</java.version>
         <maven.compiler.source>${java.version}</maven.compiler.source>
         <maven.compiler.target>${java.version}</maven.compiler.target>
+        <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
     </properties>
 
     <dependencyManagement>
@@ -38,6 +39,20 @@
         </dependencies>
     </dependencyManagement>
 
+    <build>
+        <pluginManagement>
+            <plugins>
+                <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
+                <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-surefire-plugin</artifactId>
+                    <version>${maven-surefire-plugin.version}</version>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+    </build>
+
     <!-- 使用 aliyun 的 Maven 源,提升下载速度 -->
     <repositories>
         <repository>

+ 0 - 11
yudao-admin-server/pom.xml

@@ -68,17 +68,6 @@
                     </execution>
                 </executions>
             </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-surefire-plugin</artifactId>
-                <version>3.0.0-M5</version>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-failsafe-plugin</artifactId>
-                <version>3.0.0-M5</version>
-            </plugin>
         </plugins>
     </build>
 

+ 22 - 22
ruoyi-ui/.editorconfig → yudao-admin-ui/.editorconfig

@@ -1,22 +1,22 @@
-# 告诉EditorConfig插件,这是根文件,不用继续往上查找
-root = true
-
-# 匹配全部文件
-[*]
-# 设置字符集
-charset = utf-8
-# 缩进风格,可选space、tab
-indent_style = space
-# 缩进的空格数
-indent_size = 2
-# 结尾换行符,可选lf、cr、crlf
-end_of_line = lf
-# 在文件结尾插入新行
-insert_final_newline = true
-# 删除一行中的前后空格
-trim_trailing_whitespace = true
-
-# 匹配md结尾的文件
-[*.md]
-insert_final_newline = false
-trim_trailing_whitespace = false
+# 告诉EditorConfig插件,这是根文件,不用继续往上查找
+root = true
+
+# 匹配全部文件
+[*]
+# 设置字符集
+charset = utf-8
+# 缩进风格,可选space、tab
+indent_style = space
+# 缩进的空格数
+indent_size = 2
+# 结尾换行符,可选lf、cr、crlf
+end_of_line = lf
+# 在文件结尾插入新行
+insert_final_newline = true
+# 删除一行中的前后空格
+trim_trailing_whitespace = true
+
+# 匹配md结尾的文件
+[*.md]
+insert_final_newline = false
+trim_trailing_whitespace = false

+ 0 - 0
ruoyi-ui/.env.demo1024 → yudao-admin-ui/.env.demo1024


+ 9 - 9
ruoyi-ui/.env.development → yudao-admin-ui/.env.development

@@ -1,9 +1,9 @@
-# 开发环境配置
-ENV = 'development'
-
-# 芋道管理系统/开发环境
-VUE_APP_BASE_API = '/dev-api'
-# VUE_APP_BASE_API = '/api'
-
-# 路由懒加载
-VUE_CLI_BABEL_TRANSPILE_MODULES = true
+# 开发环境配置
+ENV = 'development'
+
+# 芋道管理系统/开发环境
+VUE_APP_BASE_API = '/dev-api'
+# VUE_APP_BASE_API = '/api'
+
+# 路由懒加载
+VUE_CLI_BABEL_TRANSPILE_MODULES = true

+ 5 - 5
ruoyi-ui/.env.production → yudao-admin-ui/.env.production

@@ -1,5 +1,5 @@
-# 生产环境配置
-ENV = 'production'
-
-# 芋道管理系统/生产环境
-VUE_APP_BASE_API = '/prod-api'
+# 生产环境配置
+ENV = 'production'
+
+# 芋道管理系统/生产环境
+VUE_APP_BASE_API = '/prod-api'

+ 10 - 10
ruoyi-ui/.env.staging → yudao-admin-ui/.env.staging

@@ -1,10 +1,10 @@
-NODE_ENV = production
-
-# 测试环境配置
-ENV = 'staging'
-
-# 芋道管理系统/测试环境
-VUE_APP_BASE_API = 'http://api-dashboard.yudao.iocoder.cn'
-
-# 静态资源地址
-PUBLIC_PATH = 'http://static.yudao.iocoder.cn/'
+NODE_ENV = production
+
+# 测试环境配置
+ENV = 'staging'
+
+# 芋道管理系统/测试环境
+VUE_APP_BASE_API = 'http://api-dashboard.yudao.iocoder.cn'
+
+# 静态资源地址
+PUBLIC_PATH = 'http://static.yudao.iocoder.cn/'

+ 9 - 9
ruoyi-ui/.eslintignore → yudao-admin-ui/.eslintignore

@@ -1,10 +1,10 @@
-# 忽略build目录下类型为js的文件的语法检查
-build/*.js
-# 忽略src/assets目录下文件的语法检查
-src/assets
-# 忽略public目录下文件的语法检查
-public
-# 忽略当前目录下为js的文件的语法检查
-*.js
-# 忽略当前目录下为vue的文件的语法检查
+# 忽略build目录下类型为js的文件的语法检查
+build/*.js
+# 忽略src/assets目录下文件的语法检查
+src/assets
+# 忽略public目录下文件的语法检查
+public
+# 忽略当前目录下为js的文件的语法检查
+*.js
+# 忽略当前目录下为vue的文件的语法检查
 *.vue

+ 199 - 199
ruoyi-ui/.eslintrc.js → yudao-admin-ui/.eslintrc.js

@@ -1,199 +1,199 @@
-// ESlint 检查配置
-module.exports = {
-  root: true,
-  parserOptions: {
-    parser: 'babel-eslint',
-    sourceType: 'module'
-  },
-  env: {
-    browser: true,
-    node: true,
-    es6: true,
-  },
-  extends: ['plugin:vue/recommended', 'eslint:recommended'],
-
-  // add your custom rules here
-  //it is base on https://github.com/vuejs/eslint-config-vue
-  rules: {
-    "vue/max-attributes-per-line": [2, {
-      "singleline": 10,
-      "multiline": {
-        "max": 1,
-        "allowFirstLine": false
-      }
-    }],
-    "vue/singleline-html-element-content-newline": "off",
-    "vue/multiline-html-element-content-newline":"off",
-    "vue/name-property-casing": ["error", "PascalCase"],
-    "vue/no-v-html": "off",
-    'accessor-pairs': 2,
-    'arrow-spacing': [2, {
-      'before': true,
-      'after': true
-    }],
-    'block-spacing': [2, 'always'],
-    'brace-style': [2, '1tbs', {
-      'allowSingleLine': true
-    }],
-    'camelcase': [0, {
-      'properties': 'always'
-    }],
-    'comma-dangle': [2, 'never'],
-    'comma-spacing': [2, {
-      'before': false,
-      'after': true
-    }],
-    'comma-style': [2, 'last'],
-    'constructor-super': 2,
-    'curly': [2, 'multi-line'],
-    'dot-location': [2, 'property'],
-    'eol-last': 2,
-    'eqeqeq': ["error", "always", {"null": "ignore"}],
-    'generator-star-spacing': [2, {
-      'before': true,
-      'after': true
-    }],
-    'handle-callback-err': [2, '^(err|error)$'],
-    'indent': [2, 2, {
-      'SwitchCase': 1
-    }],
-    'jsx-quotes': [2, 'prefer-single'],
-    'key-spacing': [2, {
-      'beforeColon': false,
-      'afterColon': true
-    }],
-    'keyword-spacing': [2, {
-      'before': true,
-      'after': true
-    }],
-    'new-cap': [2, {
-      'newIsCap': true,
-      'capIsNew': false
-    }],
-    'new-parens': 2,
-    'no-array-constructor': 2,
-    'no-caller': 2,
-    'no-console': 'off',
-    'no-class-assign': 2,
-    'no-cond-assign': 2,
-    'no-const-assign': 2,
-    'no-control-regex': 0,
-    'no-delete-var': 2,
-    'no-dupe-args': 2,
-    'no-dupe-class-members': 2,
-    'no-dupe-keys': 2,
-    'no-duplicate-case': 2,
-    'no-empty-character-class': 2,
-    'no-empty-pattern': 2,
-    'no-eval': 2,
-    'no-ex-assign': 2,
-    'no-extend-native': 2,
-    'no-extra-bind': 2,
-    'no-extra-boolean-cast': 2,
-    'no-extra-parens': [2, 'functions'],
-    'no-fallthrough': 2,
-    'no-floating-decimal': 2,
-    'no-func-assign': 2,
-    'no-implied-eval': 2,
-    'no-inner-declarations': [2, 'functions'],
-    'no-invalid-regexp': 2,
-    'no-irregular-whitespace': 2,
-    'no-iterator': 2,
-    'no-label-var': 2,
-    'no-labels': [2, {
-      'allowLoop': false,
-      'allowSwitch': false
-    }],
-    'no-lone-blocks': 2,
-    'no-mixed-spaces-and-tabs': 2,
-    'no-multi-spaces': 2,
-    'no-multi-str': 2,
-    'no-multiple-empty-lines': [2, {
-      'max': 1
-    }],
-    'no-native-reassign': 2,
-    'no-negated-in-lhs': 2,
-    'no-new-object': 2,
-    'no-new-require': 2,
-    'no-new-symbol': 2,
-    'no-new-wrappers': 2,
-    'no-obj-calls': 2,
-    'no-octal': 2,
-    'no-octal-escape': 2,
-    'no-path-concat': 2,
-    'no-proto': 2,
-    'no-redeclare': 2,
-    'no-regex-spaces': 2,
-    'no-return-assign': [2, 'except-parens'],
-    'no-self-assign': 2,
-    'no-self-compare': 2,
-    'no-sequences': 2,
-    'no-shadow-restricted-names': 2,
-    'no-spaced-func': 2,
-    'no-sparse-arrays': 2,
-    'no-this-before-super': 2,
-    'no-throw-literal': 2,
-    'no-trailing-spaces': 2,
-    'no-undef': 2,
-    'no-undef-init': 2,
-    'no-unexpected-multiline': 2,
-    'no-unmodified-loop-condition': 2,
-    'no-unneeded-ternary': [2, {
-      'defaultAssignment': false
-    }],
-    'no-unreachable': 2,
-    'no-unsafe-finally': 2,
-    'no-unused-vars': [2, {
-      'vars': 'all',
-      'args': 'none'
-    }],
-    'no-useless-call': 2,
-    'no-useless-computed-key': 2,
-    'no-useless-constructor': 2,
-    'no-useless-escape': 0,
-    'no-whitespace-before-property': 2,
-    'no-with': 2,
-    'one-var': [2, {
-      'initialized': 'never'
-    }],
-    'operator-linebreak': [2, 'after', {
-      'overrides': {
-        '?': 'before',
-        ':': 'before'
-      }
-    }],
-    'padded-blocks': [2, 'never'],
-    'quotes': [2, 'single', {
-      'avoidEscape': true,
-      'allowTemplateLiterals': true
-    }],
-    'semi': [2, 'never'],
-    'semi-spacing': [2, {
-      'before': false,
-      'after': true
-    }],
-    'space-before-blocks': [2, 'always'],
-    'space-before-function-paren': [2, 'never'],
-    'space-in-parens': [2, 'never'],
-    'space-infix-ops': 2,
-    'space-unary-ops': [2, {
-      'words': true,
-      'nonwords': false
-    }],
-    'spaced-comment': [2, 'always', {
-      'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
-    }],
-    'template-curly-spacing': [2, 'never'],
-    'use-isnan': 2,
-    'valid-typeof': 2,
-    'wrap-iife': [2, 'any'],
-    'yield-star-spacing': [2, 'both'],
-    'yoda': [2, 'never'],
-    'prefer-const': 2,
-    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
-    'object-curly-spacing': [2, 'always', {
-      objectsInObjects: false
-    }],
-    'array-bracket-spacing': [2, 'never']
-  }
-}
+// ESlint 检查配置
+module.exports = {
+  root: true,
+  parserOptions: {
+    parser: 'babel-eslint',
+    sourceType: 'module'
+  },
+  env: {
+    browser: true,
+    node: true,
+    es6: true,
+  },
+  extends: ['plugin:vue/recommended', 'eslint:recommended'],
+
+  // add your custom rules here
+  //it is base on https://github.com/vuejs/eslint-config-vue
+  rules: {
+    "vue/max-attributes-per-line": [2, {
+      "singleline": 10,
+      "multiline": {
+        "max": 1,
+        "allowFirstLine": false
+      }
+    }],
+    "vue/singleline-html-element-content-newline": "off",
+    "vue/multiline-html-element-content-newline":"off",
+    "vue/name-property-casing": ["error", "PascalCase"],
+    "vue/no-v-html": "off",
+    'accessor-pairs': 2,
+    'arrow-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'block-spacing': [2, 'always'],
+    'brace-style': [2, '1tbs', {
+      'allowSingleLine': true
+    }],
+    'camelcase': [0, {
+      'properties': 'always'
+    }],
+    'comma-dangle': [2, 'never'],
+    'comma-spacing': [2, {
+      'before': false,
+      'after': true
+    }],
+    'comma-style': [2, 'last'],
+    'constructor-super': 2,
+    'curly': [2, 'multi-line'],
+    'dot-location': [2, 'property'],
+    'eol-last': 2,
+    'eqeqeq': ["error", "always", {"null": "ignore"}],
+    'generator-star-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'handle-callback-err': [2, '^(err|error)$'],
+    'indent': [2, 2, {
+      'SwitchCase': 1
+    }],
+    'jsx-quotes': [2, 'prefer-single'],
+    'key-spacing': [2, {
+      'beforeColon': false,
+      'afterColon': true
+    }],
+    'keyword-spacing': [2, {
+      'before': true,
+      'after': true
+    }],
+    'new-cap': [2, {
+      'newIsCap': true,
+      'capIsNew': false
+    }],
+    'new-parens': 2,
+    'no-array-constructor': 2,
+    'no-caller': 2,
+    'no-console': 'off',
+    'no-class-assign': 2,
+    'no-cond-assign': 2,
+    'no-const-assign': 2,
+    'no-control-regex': 0,
+    'no-delete-var': 2,
+    'no-dupe-args': 2,
+    'no-dupe-class-members': 2,
+    'no-dupe-keys': 2,
+    'no-duplicate-case': 2,
+    'no-empty-character-class': 2,
+    'no-empty-pattern': 2,
+    'no-eval': 2,
+    'no-ex-assign': 2,
+    'no-extend-native': 2,
+    'no-extra-bind': 2,
+    'no-extra-boolean-cast': 2,
+    'no-extra-parens': [2, 'functions'],
+    'no-fallthrough': 2,
+    'no-floating-decimal': 2,
+    'no-func-assign': 2,
+    'no-implied-eval': 2,
+    'no-inner-declarations': [2, 'functions'],
+    'no-invalid-regexp': 2,
+    'no-irregular-whitespace': 2,
+    'no-iterator': 2,
+    'no-label-var': 2,
+    'no-labels': [2, {
+      'allowLoop': false,
+      'allowSwitch': false
+    }],
+    'no-lone-blocks': 2,
+    'no-mixed-spaces-and-tabs': 2,
+    'no-multi-spaces': 2,
+    'no-multi-str': 2,
+    'no-multiple-empty-lines': [2, {
+      'max': 1
+    }],
+    'no-native-reassign': 2,
+    'no-negated-in-lhs': 2,
+    'no-new-object': 2,
+    'no-new-require': 2,
+    'no-new-symbol': 2,
+    'no-new-wrappers': 2,
+    'no-obj-calls': 2,
+    'no-octal': 2,
+    'no-octal-escape': 2,
+    'no-path-concat': 2,
+    'no-proto': 2,
+    'no-redeclare': 2,
+    'no-regex-spaces': 2,
+    'no-return-assign': [2, 'except-parens'],
+    'no-self-assign': 2,
+    'no-self-compare': 2,
+    'no-sequences': 2,
+    'no-shadow-restricted-names': 2,
+    'no-spaced-func': 2,
+    'no-sparse-arrays': 2,
+    'no-this-before-super': 2,
+    'no-throw-literal': 2,
+    'no-trailing-spaces': 2,
+    'no-undef': 2,
+    'no-undef-init': 2,
+    'no-unexpected-multiline': 2,
+    'no-unmodified-loop-condition': 2,
+    'no-unneeded-ternary': [2, {
+      'defaultAssignment': false
+    }],
+    'no-unreachable': 2,
+    'no-unsafe-finally': 2,
+    'no-unused-vars': [2, {
+      'vars': 'all',
+      'args': 'none'
+    }],
+    'no-useless-call': 2,
+    'no-useless-computed-key': 2,
+    'no-useless-constructor': 2,
+    'no-useless-escape': 0,
+    'no-whitespace-before-property': 2,
+    'no-with': 2,
+    'one-var': [2, {
+      'initialized': 'never'
+    }],
+    'operator-linebreak': [2, 'after', {
+      'overrides': {
+        '?': 'before',
+        ':': 'before'
+      }
+    }],
+    'padded-blocks': [2, 'never'],
+    'quotes': [2, 'single', {
+      'avoidEscape': true,
+      'allowTemplateLiterals': true
+    }],
+    'semi': [2, 'never'],
+    'semi-spacing': [2, {
+      'before': false,
+      'after': true
+    }],
+    'space-before-blocks': [2, 'always'],
+    'space-before-function-paren': [2, 'never'],
+    'space-in-parens': [2, 'never'],
+    'space-infix-ops': 2,
+    'space-unary-ops': [2, {
+      'words': true,
+      'nonwords': false
+    }],
+    'spaced-comment': [2, 'always', {
+      'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
+    }],
+    'template-curly-spacing': [2, 'never'],
+    'use-isnan': 2,
+    'valid-typeof': 2,
+    'wrap-iife': [2, 'any'],
+    'yield-star-spacing': [2, 'both'],
+    'yoda': [2, 'never'],
+    'prefer-const': 2,
+    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
+    'object-curly-spacing': [2, 'always', {
+      objectsInObjects: false
+    }],
+    'array-bracket-spacing': [2, 'never']
+  }
+}

+ 23 - 23
ruoyi-ui/.gitignore → yudao-admin-ui/.gitignore

@@ -1,23 +1,23 @@
-.DS_Store
-node_modules/
-dist/
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-**/*.log
-
-tests/**/coverage/
-tests/e2e/reports
-selenium-debug.log
-
-# Editor directories and files
-.idea
-.vscode
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.local
-
-package-lock.json
-yarn.lock
+.DS_Store
+node_modules/
+dist/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+**/*.log
+
+tests/**/coverage/
+tests/e2e/reports
+selenium-debug.log
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.local
+
+package-lock.json
+yarn.lock

+ 13 - 13
ruoyi-ui/babel.config.js → yudao-admin-ui/babel.config.js

@@ -1,13 +1,13 @@
-module.exports = {
-  presets: [
-    // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
-    '@vue/cli-plugin-babel/preset'
-  ],
-  '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']
-    }
-  }
-}
+module.exports = {
+  presets: [
+    // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
+    '@vue/cli-plugin-babel/preset'
+  ],
+  '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']
+    }
+  }
+}

+ 0 - 0
ruoyi-ui/bin/build.bat → yudao-admin-ui/bin/build.bat


+ 11 - 11
ruoyi-ui/bin/package.bat → yudao-admin-ui/bin/package.bat

@@ -1,12 +1,12 @@
-@echo off
-echo.
-echo [信息] 安装Web工程,生成node_modules文件。
-echo.
-
-%~d0
-cd %~dp0
-
-cd ..
-npm install --registry=https://registry.npm.taobao.org
-
+@echo off
+echo.
+echo [信息] 安装Web工程,生成node_modules文件。
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm install --registry=https://registry.npm.taobao.org
+
 pause

+ 11 - 11
ruoyi-ui/bin/run-web.bat → yudao-admin-ui/bin/run-web.bat

@@ -1,12 +1,12 @@
-@echo off
-echo.
-echo [信息] 使用 Vue 运行 Web 工程。
-echo.
-
-%~d0
-cd %~dp0
-
-cd ..
-npm run dev
-
+@echo off
+echo.
+echo [信息] 使用 Vue 运行 Web 工程。
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm run dev
+
 pause

+ 35 - 35
ruoyi-ui/build/index.js → yudao-admin-ui/build/index.js

@@ -1,35 +1,35 @@
-const { run } = require('runjs')
-const chalk = require('chalk')
-const config = require('../vue.config.js')
-const rawArgv = process.argv.slice(2)
-const args = rawArgv.join(' ')
-
-if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
-  const report = rawArgv.includes('--report')
-
-  run(`vue-cli-service build ${args}`)
-
-  const port = 9526
-  const publicPath = config.publicPath
-
-  var connect = require('connect')
-  var serveStatic = require('serve-static')
-  const app = connect()
-
-  app.use(
-    publicPath,
-    serveStatic('./dist', {
-      index: ['index.html', '/']
-    })
-  )
-
-  app.listen(port, function () {
-    console.log(chalk.green(`> Preview at  http://localhost:${port}${publicPath}`))
-    if (report) {
-      console.log(chalk.green(`> Report at  http://localhost:${port}${publicPath}report.html`))
-    }
-
-  })
-} else {
-  run(`vue-cli-service build ${args}`)
-}
+const { run } = require('runjs')
+const chalk = require('chalk')
+const config = require('../vue.config.js')
+const rawArgv = process.argv.slice(2)
+const args = rawArgv.join(' ')
+
+if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
+  const report = rawArgv.includes('--report')
+
+  run(`vue-cli-service build ${args}`)
+
+  const port = 9526
+  const publicPath = config.publicPath
+
+  var connect = require('connect')
+  var serveStatic = require('serve-static')
+  const app = connect()
+
+  app.use(
+    publicPath,
+    serveStatic('./dist', {
+      index: ['index.html', '/']
+    })
+  )
+
+  app.listen(port, function () {
+    console.log(chalk.green(`> Preview at  http://localhost:${port}${publicPath}`))
+    if (report) {
+      console.log(chalk.green(`> Report at  http://localhost:${port}${publicPath}report.html`))
+    }
+
+  })
+} else {
+  run(`vue-cli-service build ${args}`)
+}

+ 88 - 88
ruoyi-ui/package.json → yudao-admin-ui/package.json

@@ -1,88 +1,88 @@
-{
-  "name": "ruoyi",
-  "version": "3.3.0",
-  "description": "芋道管理系统",
-  "author": "芋道",
-  "license": "MIT",
-  "scripts": {
-    "dev": "vue-cli-service serve",
-    "build:prod": "vue-cli-service build",
-    "build:stage": "vue-cli-service build --mode staging",
-    "build:demo1024": "vue-cli-service build --mode demo1024",
-    "preview": "node build/index.js --preview",
-    "lint": "eslint --ext .js,.vue src"
-  },
-  "husky": {
-    "hooks": {
-      "pre-commit": "lint-staged"
-    }
-  },
-  "lint-staged": {
-    "src/**/*.{js,vue}": [
-      "eslint --fix",
-      "git add"
-    ]
-  },
-  "keywords": [
-    "vue",
-    "admin",
-    "dashboard",
-    "element-ui",
-    "boilerplate",
-    "admin-template",
-    "management-system"
-  ],
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/YunaiV/ruoyi-vue-pro"
-  },
-  "dependencies": {
-    "@riophae/vue-treeselect": "0.4.0",
-    "axios": "0.21.0",
-    "clipboard": "2.0.6",
-    "core-js": "3.8.1",
-    "echarts": "4.9.0",
-    "element-ui": "2.15.0",
-    "file-saver": "2.0.4",
-    "fuse.js": "6.4.3",
-    "highlight.js": "9.18.5",
-    "js-beautify": "1.13.0",
-    "js-cookie": "2.2.1",
-    "jsencrypt": "3.0.0-rc.1",
-    "nprogress": "0.2.0",
-    "quill": "1.3.7",
-    "screenfull": "5.0.2",
-    "sortablejs": "1.10.2",
-    "vue": "2.6.12",
-    "vue-count-to": "1.0.13",
-    "vue-cropper": "0.5.5",
-    "vue-router": "3.4.9",
-    "vuedraggable": "2.24.3",
-    "vuex": "3.6.0"
-  },
-  "devDependencies": {
-    "@vue/cli-plugin-babel": "4.4.6",
-    "@vue/cli-plugin-eslint": "4.4.6",
-    "@vue/cli-service": "4.4.6",
-    "babel-eslint": "10.1.0",
-    "chalk": "4.1.0",
-    "connect": "3.6.6",
-    "eslint": "7.15.0",
-    "eslint-plugin-vue": "7.2.0",
-    "lint-staged": "10.5.3",
-    "sass": "1.30.0",
-    "runjs": "4.4.2",
-    "sass-loader": "10.1.0",
-    "script-ext-html-webpack-plugin": "2.1.5",
-    "svg-sprite-loader": "5.1.1",
-    "vue-template-compiler": "2.6.12"
-  },
-  "engines": {
-    "node": ">=8.9",
-    "npm": ">= 3.0.0"
-  },
-  "browserslist": [
-    "> 1%",
-    "last 2 versions"
-  ]
-}
+{
+  "name": "ruoyi",
+  "version": "3.3.0",
+  "description": "芋道管理系统",
+  "author": "芋道",
+  "license": "MIT",
+  "scripts": {
+    "dev": "vue-cli-service serve",
+    "build:prod": "vue-cli-service build",
+    "build:stage": "vue-cli-service build --mode staging",
+    "build:demo1024": "vue-cli-service build --mode demo1024",
+    "preview": "node build/index.js --preview",
+    "lint": "eslint --ext .js,.vue src"
+  },
+  "husky": {
+    "hooks": {
+      "pre-commit": "lint-staged"
+    }
+  },
+  "lint-staged": {
+    "src/**/*.{js,vue}": [
+      "eslint --fix",
+      "git add"
+    ]
+  },
+  "keywords": [
+    "vue",
+    "admin",
+    "dashboard",
+    "element-ui",
+    "boilerplate",
+    "admin-template",
+    "management-system"
+  ],
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/YunaiV/ruoyi-vue-pro"
+  },
+  "dependencies": {
+    "@riophae/vue-treeselect": "0.4.0",
+    "axios": "0.21.0",
+    "clipboard": "2.0.6",
+    "core-js": "3.8.1",
+    "echarts": "4.9.0",
+    "element-ui": "2.15.0",
+    "file-saver": "2.0.4",
+    "fuse.js": "6.4.3",
+    "highlight.js": "9.18.5",
+    "js-beautify": "1.13.0",
+    "js-cookie": "2.2.1",
+    "jsencrypt": "3.0.0-rc.1",
+    "nprogress": "0.2.0",
+    "quill": "1.3.7",
+    "screenfull": "5.0.2",
+    "sortablejs": "1.10.2",
+    "vue": "2.6.12",
+    "vue-count-to": "1.0.13",
+    "vue-cropper": "0.5.5",
+    "vue-router": "3.4.9",
+    "vuedraggable": "2.24.3",
+    "vuex": "3.6.0"
+  },
+  "devDependencies": {
+    "@vue/cli-plugin-babel": "4.4.6",
+    "@vue/cli-plugin-eslint": "4.4.6",
+    "@vue/cli-service": "4.4.6",
+    "babel-eslint": "10.1.0",
+    "chalk": "4.1.0",
+    "connect": "3.6.6",
+    "eslint": "7.15.0",
+    "eslint-plugin-vue": "7.2.0",
+    "lint-staged": "10.5.3",
+    "sass": "1.30.0",
+    "runjs": "4.4.2",
+    "sass-loader": "10.1.0",
+    "script-ext-html-webpack-plugin": "2.1.5",
+    "svg-sprite-loader": "5.1.1",
+    "vue-template-compiler": "2.6.12"
+  },
+  "engines": {
+    "node": ">=8.9",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions"
+  ]
+}

+ 0 - 0
ruoyi-ui/public/favicon.ico → yudao-admin-ui/public/favicon.ico


+ 207 - 207
ruoyi-ui/public/index.html → yudao-admin-ui/public/index.html

@@ -1,207 +1,207 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="renderer" content="webkit">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
-    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-    <title><%= webpackConfig.name %></title>
-	  <style>
-    html,
-    body,
-    #app {
-      height: 100%;
-      margin: 0px;
-      padding: 0px;
-    }
-    .chromeframe {
-      margin: 0.2em 0;
-      background: #ccc;
-      color: #000;
-      padding: 0.2em 0;
-    }
-
-    #loader-wrapper {
-      position: fixed;
-      top: 0;
-      left: 0;
-      width: 100%;
-      height: 100%;
-      z-index: 999999;
-    }
-
-    #loader {
-      display: block;
-      position: relative;
-      left: 50%;
-      top: 50%;
-      width: 150px;
-      height: 150px;
-      margin: -75px 0 0 -75px;
-      border-radius: 50%;
-      border: 3px solid transparent;
-      border-top-color: #FFF;
-      -webkit-animation: spin 2s linear infinite;
-      -ms-animation: spin 2s linear infinite;
-      -moz-animation: spin 2s linear infinite;
-      -o-animation: spin 2s linear infinite;
-      animation: spin 2s linear infinite;
-      z-index: 1001;
-    }
-
-    #loader:before {
-      content: "";
-      position: absolute;
-      top: 5px;
-      left: 5px;
-      right: 5px;
-      bottom: 5px;
-      border-radius: 50%;
-      border: 3px solid transparent;
-      border-top-color: #FFF;
-      -webkit-animation: spin 3s linear infinite;
-      -moz-animation: spin 3s linear infinite;
-      -o-animation: spin 3s linear infinite;
-      -ms-animation: spin 3s linear infinite;
-      animation: spin 3s linear infinite;
-    }
-
-    #loader:after {
-      content: "";
-      position: absolute;
-      top: 15px;
-      left: 15px;
-      right: 15px;
-      bottom: 15px;
-      border-radius: 50%;
-      border: 3px solid transparent;
-      border-top-color: #FFF;
-      -moz-animation: spin 1.5s linear infinite;
-      -o-animation: spin 1.5s linear infinite;
-      -ms-animation: spin 1.5s linear infinite;
-      -webkit-animation: spin 1.5s linear infinite;
-      animation: spin 1.5s linear infinite;
-    }
-
-
-    @-webkit-keyframes spin {
-      0% {
-        -webkit-transform: rotate(0deg);
-        -ms-transform: rotate(0deg);
-        transform: rotate(0deg);
-      }
-      100% {
-        -webkit-transform: rotate(360deg);
-        -ms-transform: rotate(360deg);
-        transform: rotate(360deg);
-      }
-    }
-
-    @keyframes spin {
-      0% {
-        -webkit-transform: rotate(0deg);
-        -ms-transform: rotate(0deg);
-        transform: rotate(0deg);
-      }
-      100% {
-        -webkit-transform: rotate(360deg);
-        -ms-transform: rotate(360deg);
-        transform: rotate(360deg);
-      }
-    }
-
-
-    #loader-wrapper .loader-section {
-      position: fixed;
-      top: 0;
-      width: 51%;
-      height: 100%;
-      background: #7171C6;
-      z-index: 1000;
-      -webkit-transform: translateX(0);
-      -ms-transform: translateX(0);
-      transform: translateX(0);
-    }
-
-    #loader-wrapper .loader-section.section-left {
-      left: 0;
-    }
-
-    #loader-wrapper .loader-section.section-right {
-      right: 0;
-    }
-
-
-    .loaded #loader-wrapper .loader-section.section-left {
-      -webkit-transform: translateX(-100%);
-      -ms-transform: translateX(-100%);
-      transform: translateX(-100%);
-      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
-      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
-    }
-
-    .loaded #loader-wrapper .loader-section.section-right {
-      -webkit-transform: translateX(100%);
-      -ms-transform: translateX(100%);
-      transform: translateX(100%);
-      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
-      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
-    }
-
-    .loaded #loader {
-      opacity: 0;
-      -webkit-transition: all 0.3s ease-out;
-      transition: all 0.3s ease-out;
-    }
-
-    .loaded #loader-wrapper {
-      visibility: hidden;
-      -webkit-transform: translateY(-100%);
-      -ms-transform: translateY(-100%);
-      transform: translateY(-100%);
-      -webkit-transition: all 0.3s 1s ease-out;
-      transition: all 0.3s 1s ease-out;
-    }
-
-    .no-js #loader-wrapper {
-      display: none;
-    }
-
-    .no-js h1 {
-      color: #222222;
-    }
-
-    #loader-wrapper .load_title {
-      font-family: 'Open Sans';
-      color: #FFF;
-      font-size: 19px;
-      width: 100%;
-      text-align: center;
-      z-index: 9999999999999;
-      position: absolute;
-      top: 60%;
-      opacity: 1;
-      line-height: 30px;
-    }
-
-    #loader-wrapper .load_title span {
-      font-weight: normal;
-      font-style: italic;
-      font-size: 13px;
-      color: #FFF;
-      opacity: 0.5;
-    }
-  </style>
-  </head>
-  <body>
-    <div id="app">
-	    <div id="loader-wrapper">
-		    <div id="loader"></div>
-		    <div class="loader-section section-left"></div>
-		    <div class="loader-section section-right"></div>
-		    <div class="load_title">正在加载系统资源,请耐心等待</div>
-        </div>
-	</div>
-  </body>
-</html>
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="renderer" content="webkit">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <title><%= webpackConfig.name %></title>
+	  <style>
+    html,
+    body,
+    #app {
+      height: 100%;
+      margin: 0px;
+      padding: 0px;
+    }
+    .chromeframe {
+      margin: 0.2em 0;
+      background: #ccc;
+      color: #000;
+      padding: 0.2em 0;
+    }
+
+    #loader-wrapper {
+      position: fixed;
+      top: 0;
+      left: 0;
+      width: 100%;
+      height: 100%;
+      z-index: 999999;
+    }
+
+    #loader {
+      display: block;
+      position: relative;
+      left: 50%;
+      top: 50%;
+      width: 150px;
+      height: 150px;
+      margin: -75px 0 0 -75px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 2s linear infinite;
+      -ms-animation: spin 2s linear infinite;
+      -moz-animation: spin 2s linear infinite;
+      -o-animation: spin 2s linear infinite;
+      animation: spin 2s linear infinite;
+      z-index: 1001;
+    }
+
+    #loader:before {
+      content: "";
+      position: absolute;
+      top: 5px;
+      left: 5px;
+      right: 5px;
+      bottom: 5px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -webkit-animation: spin 3s linear infinite;
+      -moz-animation: spin 3s linear infinite;
+      -o-animation: spin 3s linear infinite;
+      -ms-animation: spin 3s linear infinite;
+      animation: spin 3s linear infinite;
+    }
+
+    #loader:after {
+      content: "";
+      position: absolute;
+      top: 15px;
+      left: 15px;
+      right: 15px;
+      bottom: 15px;
+      border-radius: 50%;
+      border: 3px solid transparent;
+      border-top-color: #FFF;
+      -moz-animation: spin 1.5s linear infinite;
+      -o-animation: spin 1.5s linear infinite;
+      -ms-animation: spin 1.5s linear infinite;
+      -webkit-animation: spin 1.5s linear infinite;
+      animation: spin 1.5s linear infinite;
+    }
+
+
+    @-webkit-keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+    @keyframes spin {
+      0% {
+        -webkit-transform: rotate(0deg);
+        -ms-transform: rotate(0deg);
+        transform: rotate(0deg);
+      }
+      100% {
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg);
+      }
+    }
+
+
+    #loader-wrapper .loader-section {
+      position: fixed;
+      top: 0;
+      width: 51%;
+      height: 100%;
+      background: #7171C6;
+      z-index: 1000;
+      -webkit-transform: translateX(0);
+      -ms-transform: translateX(0);
+      transform: translateX(0);
+    }
+
+    #loader-wrapper .loader-section.section-left {
+      left: 0;
+    }
+
+    #loader-wrapper .loader-section.section-right {
+      right: 0;
+    }
+
+
+    .loaded #loader-wrapper .loader-section.section-left {
+      -webkit-transform: translateX(-100%);
+      -ms-transform: translateX(-100%);
+      transform: translateX(-100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader-wrapper .loader-section.section-right {
+      -webkit-transform: translateX(100%);
+      -ms-transform: translateX(100%);
+      transform: translateX(100%);
+      -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+      transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
+    }
+
+    .loaded #loader {
+      opacity: 0;
+      -webkit-transition: all 0.3s ease-out;
+      transition: all 0.3s ease-out;
+    }
+
+    .loaded #loader-wrapper {
+      visibility: hidden;
+      -webkit-transform: translateY(-100%);
+      -ms-transform: translateY(-100%);
+      transform: translateY(-100%);
+      -webkit-transition: all 0.3s 1s ease-out;
+      transition: all 0.3s 1s ease-out;
+    }
+
+    .no-js #loader-wrapper {
+      display: none;
+    }
+
+    .no-js h1 {
+      color: #222222;
+    }
+
+    #loader-wrapper .load_title {
+      font-family: 'Open Sans';
+      color: #FFF;
+      font-size: 19px;
+      width: 100%;
+      text-align: center;
+      z-index: 9999999999999;
+      position: absolute;
+      top: 60%;
+      opacity: 1;
+      line-height: 30px;
+    }
+
+    #loader-wrapper .load_title span {
+      font-weight: normal;
+      font-style: italic;
+      font-size: 13px;
+      color: #FFF;
+      opacity: 0.5;
+    }
+  </style>
+  </head>
+  <body>
+    <div id="app">
+	    <div id="loader-wrapper">
+		    <div id="loader"></div>
+		    <div class="loader-section section-left"></div>
+		    <div class="loader-section section-right"></div>
+		    <div class="load_title">正在加载系统资源,请耐心等待</div>
+        </div>
+	</div>
+  </body>
+</html>

+ 1 - 1
ruoyi-ui/public/robots.txt → yudao-admin-ui/public/robots.txt

@@ -1,2 +1,2 @@
-User-agent: *
+User-agent: *
 Disallow: /

+ 11 - 11
ruoyi-ui/src/App.vue → yudao-admin-ui/src/App.vue

@@ -1,11 +1,11 @@
-<template>
-  <div id="app">
-    <router-view />
-  </div>
-</template>
-
-<script>
-export default  {
-  name:  'App'
-}
-</script>
+<template>
+  <div id="app">
+    <router-view />
+  </div>
+</template>
+
+<script>
+export default  {
+  name:  'App'
+}
+</script>

+ 0 - 0
ruoyi-ui/src/api/infra/apiAccessLog.js → yudao-admin-ui/src/api/infra/apiAccessLog.js


+ 0 - 0
ruoyi-ui/src/api/infra/apiErrorLog.js → yudao-admin-ui/src/api/infra/apiErrorLog.js


+ 0 - 0
ruoyi-ui/src/api/infra/config.js → yudao-admin-ui/src/api/infra/config.js


+ 0 - 0
ruoyi-ui/src/api/infra/dbDoc.js → yudao-admin-ui/src/api/infra/dbDoc.js


+ 0 - 0
ruoyi-ui/src/api/infra/file.js → yudao-admin-ui/src/api/infra/file.js


+ 0 - 0
ruoyi-ui/src/api/infra/job.js → yudao-admin-ui/src/api/infra/job.js


+ 0 - 0
ruoyi-ui/src/api/infra/jobLog.js → yudao-admin-ui/src/api/infra/jobLog.js


+ 0 - 0
ruoyi-ui/src/api/infra/redis.js → yudao-admin-ui/src/api/infra/redis.js


+ 40 - 40
ruoyi-ui/src/api/login.js → yudao-admin-ui/src/api/login.js

@@ -1,40 +1,40 @@
-import request from '@/utils/request'
-
-// 登录方法
-export function login(username, password, code, uuid) {
-  const data = {
-    username,
-    password,
-    code,
-    uuid
-  }
-  return request({
-    url: '/login',
-    method: 'post',
-    data: data
-  })
-}
-
-// 获取用户详细信息
-export function getInfo() {
-  return request({
-    url: '/get-permission-info',
-    method: 'get'
-  })
-}
-
-// 退出方法
-export function logout() {
-  return request({
-    url: '/logout',
-    method: 'post'
-  })
-}
-
-// 获取验证码
-export function getCodeImg() {
-  return request({
-    url: '/system/captcha/get-image',
-    method: 'get'
-  })
-}
+import request from '@/utils/request'
+
+// 登录方法
+export function login(username, password, code, uuid) {
+  const data = {
+    username,
+    password,
+    code,
+    uuid
+  }
+  return request({
+    url: '/login',
+    method: 'post',
+    data: data
+  })
+}
+
+// 获取用户详细信息
+export function getInfo() {
+  return request({
+    url: '/get-permission-info',
+    method: 'get'
+  })
+}
+
+// 退出方法
+export function logout() {
+  return request({
+    url: '/logout',
+    method: 'post'
+  })
+}
+
+// 获取验证码
+export function getCodeImg() {
+  return request({
+    url: '/system/captcha/get-image',
+    method: 'get'
+  })
+}

+ 9 - 9
ruoyi-ui/src/api/menu.js → yudao-admin-ui/src/api/menu.js

@@ -1,9 +1,9 @@
-import request from '@/utils/request'
-
-// 获取路由
-export const getRouters = () => {
-  return request({
-    url: '/list-menus',
-    method: 'get'
-  })
-}
+import request from '@/utils/request'
+
+// 获取路由
+export const getRouters = () => {
+  return request({
+    url: '/list-menus',
+    method: 'get'
+  })
+}

+ 60 - 60
ruoyi-ui/src/api/system/dept.js → yudao-admin-ui/src/api/system/dept.js

@@ -1,60 +1,60 @@
-import request from '@/utils/request'
-
-// 查询部门列表
-export function listDept(query) {
-  return request({
-    url: '/system/dept/list',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询部门列表(排除节点)
-export function listDeptExcludeChild(deptId) {
-  return request({
-    url: '/system/dept/list/exclude/' + deptId,
-    method: 'get'
-  })
-}
-
-// 查询部门详细
-export function getDept(deptId) {
-  return request({
-    url: '/system/dept/get?id=' + deptId,
-    method: 'get'
-  })
-}
-
-// 获取部门精简信息列表
-export function listSimpleDepts() {
-  return request({
-    url: '/system/dept/list-all-simple',
-    method: 'get'
-  })
-}
-
-// 新增部门
-export function addDept(data) {
-  return request({
-    url: '/system/dept/create',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改部门
-export function updateDept(data) {
-  return request({
-    url: '/system/dept/update',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除部门
-export function delDept(id) {
-  return request({
-    url: '/system/dept/delete?id=' + id,
-    method: 'delete'
-  })
-}
+import request from '@/utils/request'
+
+// 查询部门列表
+export function listDept(query) {
+  return request({
+    url: '/system/dept/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询部门列表(排除节点)
+export function listDeptExcludeChild(deptId) {
+  return request({
+    url: '/system/dept/list/exclude/' + deptId,
+    method: 'get'
+  })
+}
+
+// 查询部门详细
+export function getDept(deptId) {
+  return request({
+    url: '/system/dept/get?id=' + deptId,
+    method: 'get'
+  })
+}
+
+// 获取部门精简信息列表
+export function listSimpleDepts() {
+  return request({
+    url: '/system/dept/list-all-simple',
+    method: 'get'
+  })
+}
+
+// 新增部门
+export function addDept(data) {
+  return request({
+    url: '/system/dept/create',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改部门
+export function updateDept(data) {
+  return request({
+    url: '/system/dept/update',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除部门
+export function delDept(id) {
+  return request({
+    url: '/system/dept/delete?id=' + id,
+    method: 'delete'
+  })
+}

+ 70 - 70
ruoyi-ui/src/api/system/dict/data.js → yudao-admin-ui/src/api/system/dict/data.js

@@ -1,70 +1,70 @@
-import request from '@/utils/request'
-
-// 查询字典数据列表
-export function listData(query) {
-  return request({
-    url: '/system/dict-data/page',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询字典数据详细
-export function getData(dictCode) {
-  return request({
-    url: '/system/dict-data/get?id=' + dictCode,
-    method: 'get'
-  })
-}
-
-// 根据字典类型查询字典数据信息
-export function getDicts(dictType) {
-  return request({
-    url: '/system/dict-data/type/' + dictType,
-    method: 'get'
-  })
-}
-
-// 新增字典数据
-export function addData(data) {
-  return request({
-    url: '/system/dict-data/create',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改字典数据
-export function updateData(data) {
-  return request({
-    url: '/system/dict-data/update',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除字典数据
-export function delData(dictCode) {
-  return request({
-    url: '/system/dict-data/delete?id=' + dictCode,
-    method: 'delete'
-  })
-}
-
-// 导出字典数据
-export function exportData(query) {
-  return request({
-    url: '/system/dict-data/export',
-    method: 'get',
-    params: query,
-    responseType: 'blob'
-  })
-}
-
-// 查询全部字典数据列表
-export function listSimpleDictDatas() {
-  return request({
-    url: '/system/dict-data/list-all-simple',
-    method: 'get',
-  })
-}
+import request from '@/utils/request'
+
+// 查询字典数据列表
+export function listData(query) {
+  return request({
+    url: '/system/dict-data/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询字典数据详细
+export function getData(dictCode) {
+  return request({
+    url: '/system/dict-data/get?id=' + dictCode,
+    method: 'get'
+  })
+}
+
+// 根据字典类型查询字典数据信息
+export function getDicts(dictType) {
+  return request({
+    url: '/system/dict-data/type/' + dictType,
+    method: 'get'
+  })
+}
+
+// 新增字典数据
+export function addData(data) {
+  return request({
+    url: '/system/dict-data/create',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改字典数据
+export function updateData(data) {
+  return request({
+    url: '/system/dict-data/update',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除字典数据
+export function delData(dictCode) {
+  return request({
+    url: '/system/dict-data/delete?id=' + dictCode,
+    method: 'delete'
+  })
+}
+
+// 导出字典数据
+export function exportData(query) {
+  return request({
+    url: '/system/dict-data/export',
+    method: 'get',
+    params: query,
+    responseType: 'blob'
+  })
+}
+
+// 查询全部字典数据列表
+export function listSimpleDictDatas() {
+  return request({
+    url: '/system/dict-data/list-all-simple',
+    method: 'get',
+  })
+}

+ 62 - 62
ruoyi-ui/src/api/system/dict/type.js → yudao-admin-ui/src/api/system/dict/type.js

@@ -1,62 +1,62 @@
-import request from '@/utils/request'
-
-// 查询字典类型列表
-export function listType(query) {
-  return request({
-    url: '/system/dict-type/page',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询字典类型详细
-export function getType(dictId) {
-  return request({
-    url: '/system/dict-type/get?id=' + dictId,
-    method: 'get'
-  })
-}
-
-// 新增字典类型
-export function addType(data) {
-  return request({
-    url: '/system/dict-type/create',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改字典类型
-export function updateType(data) {
-  return request({
-    url: '/system/dict-type/update',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除字典类型
-export function delType(dictId) {
-  return request({
-    url: '/system/dict-type/delete?id=' + dictId,
-    method: 'delete'
-  })
-}
-
-// 导出字典类型
-export function exportType(query) {
-  return request({
-    url: '/system/dict-type/export',
-    method: 'get',
-    params: query,
-    responseType: 'blob'
-  })
-}
-
-// 获取字典选择框列表
-export function listAllSimple() {
-  return request({
-    url: '/system/dict-type/list-all-simple',
-    method: 'get'
-  })
-}
+import request from '@/utils/request'
+
+// 查询字典类型列表
+export function listType(query) {
+  return request({
+    url: '/system/dict-type/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询字典类型详细
+export function getType(dictId) {
+  return request({
+    url: '/system/dict-type/get?id=' + dictId,
+    method: 'get'
+  })
+}
+
+// 新增字典类型
+export function addType(data) {
+  return request({
+    url: '/system/dict-type/create',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改字典类型
+export function updateType(data) {
+  return request({
+    url: '/system/dict-type/update',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除字典类型
+export function delType(dictId) {
+  return request({
+    url: '/system/dict-type/delete?id=' + dictId,
+    method: 'delete'
+  })
+}
+
+// 导出字典类型
+export function exportType(query) {
+  return request({
+    url: '/system/dict-type/export',
+    method: 'get',
+    params: query,
+    responseType: 'blob'
+  })
+}
+
+// 获取字典选择框列表
+export function listAllSimple() {
+  return request({
+    url: '/system/dict-type/list-all-simple',
+    method: 'get'
+  })
+}

+ 0 - 0
ruoyi-ui/src/api/system/errorCode.js → yudao-admin-ui/src/api/system/errorCode.js


+ 0 - 0
ruoyi-ui/src/api/system/loginlog.js → yudao-admin-ui/src/api/system/loginlog.js


+ 0 - 0
ruoyi-ui/src/api/system/menu.js → yudao-admin-ui/src/api/system/menu.js


+ 44 - 44
ruoyi-ui/src/api/system/notice.js → yudao-admin-ui/src/api/system/notice.js

@@ -1,44 +1,44 @@
-import request from '@/utils/request'
-
-// 查询公告列表
-export function listNotice(query) {
-  return request({
-    url: '/system/notice/page',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询公告详细
-export function getNotice(noticeId) {
-  return request({
-    url: '/system/notice/get?id=' + noticeId,
-    method: 'get'
-  })
-}
-
-// 新增公告
-export function addNotice(data) {
-  return request({
-    url: '/system/notice/create',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改公告
-export function updateNotice(data) {
-  return request({
-    url: '/system/notice/update',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除公告
-export function delNotice(noticeId) {
-  return request({
-    url: '/system/notice/delete?id=' + noticeId,
-    method: 'delete'
-  })
-}
+import request from '@/utils/request'
+
+// 查询公告列表
+export function listNotice(query) {
+  return request({
+    url: '/system/notice/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询公告详细
+export function getNotice(noticeId) {
+  return request({
+    url: '/system/notice/get?id=' + noticeId,
+    method: 'get'
+  })
+}
+
+// 新增公告
+export function addNotice(data) {
+  return request({
+    url: '/system/notice/create',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改公告
+export function updateNotice(data) {
+  return request({
+    url: '/system/notice/update',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除公告
+export function delNotice(noticeId) {
+  return request({
+    url: '/system/notice/delete?id=' + noticeId,
+    method: 'delete'
+  })
+}

+ 0 - 0
ruoyi-ui/src/api/system/operatelog.js → yudao-admin-ui/src/api/system/operatelog.js


+ 0 - 0
ruoyi-ui/src/api/system/permission.js → yudao-admin-ui/src/api/system/permission.js


+ 62 - 62
ruoyi-ui/src/api/system/post.js → yudao-admin-ui/src/api/system/post.js

@@ -1,62 +1,62 @@
-import request from '@/utils/request'
-
-// 查询岗位列表
-export function listPost(query) {
-  return request({
-    url: '/system/post/page',
-    method: 'get',
-    params: query
-  })
-}
-
-// 获取岗位精简信息列表
-export function listSimplePosts() {
-  return request({
-    url: '/system/post/list-all-simple',
-    method: 'get'
-  })
-}
-
-// 查询岗位详细
-export function getPost(postId) {
-  return request({
-    url: '/system/post/get?id=' + postId,
-    method: 'get'
-  })
-}
-
-// 新增岗位
-export function addPost(data) {
-  return request({
-    url: '/system/post/create',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改岗位
-export function updatePost(data) {
-  return request({
-    url: '/system/post/update',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除岗位
-export function delPost(postId) {
-  return request({
-    url: '/system/post/delete?id=' + postId,
-    method: 'delete'
-  })
-}
-
-// 导出岗位
-export function exportPost(query) {
-  return request({
-    url: '/system/post/export',
-    method: 'get',
-    params: query,
-    responseType: 'blob'
-  })
-}
+import request from '@/utils/request'
+
+// 查询岗位列表
+export function listPost(query) {
+  return request({
+    url: '/system/post/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 获取岗位精简信息列表
+export function listSimplePosts() {
+  return request({
+    url: '/system/post/list-all-simple',
+    method: 'get'
+  })
+}
+
+// 查询岗位详细
+export function getPost(postId) {
+  return request({
+    url: '/system/post/get?id=' + postId,
+    method: 'get'
+  })
+}
+
+// 新增岗位
+export function addPost(data) {
+  return request({
+    url: '/system/post/create',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改岗位
+export function updatePost(data) {
+  return request({
+    url: '/system/post/update',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除岗位
+export function delPost(postId) {
+  return request({
+    url: '/system/post/delete?id=' + postId,
+    method: 'delete'
+  })
+}
+
+// 导出岗位
+export function exportPost(query) {
+  return request({
+    url: '/system/post/export',
+    method: 'get',
+    params: query,
+    responseType: 'blob'
+  })
+}

+ 75 - 75
ruoyi-ui/src/api/system/role.js → yudao-admin-ui/src/api/system/role.js

@@ -1,75 +1,75 @@
-import request from '@/utils/request'
-
-// 查询角色列表
-export function listRole(query) {
-  return request({
-    url: '/system/role/page',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询角色(精简)列表
-export function listSimpleRoles() {
-  return request({
-    url: '/system/role/list-all-simple',
-    method: 'get'
-  })
-}
-
-// 查询角色详细
-export function getRole(roleId) {
-  return request({
-    url: '/system/role/get?id=' + roleId,
-    method: 'get'
-  })
-}
-
-// 新增角色
-export function addRole(data) {
-  return request({
-    url: '/system/role/create',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改角色
-export function updateRole(data) {
-  return request({
-    url: '/system/role/update',
-    method: 'put',
-    data: data
-  })
-}
-
-// 角色状态修改
-export function changeRoleStatus(id, status) {
-  const data = {
-    id,
-    status
-  }
-  return request({
-    url: '/system/role/update-status',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除角色
-export function delRole(roleId) {
-  return request({
-    url: '/system/role/delete?id=' + roleId,
-    method: 'delete'
-  })
-}
-
-// 导出角色
-export function exportRole(query) {
-  return request({
-    url: '/system/role/export',
-    method: 'get',
-    params: query,
-    responseType: 'blob'
-  })
-}
+import request from '@/utils/request'
+
+// 查询角色列表
+export function listRole(query) {
+  return request({
+    url: '/system/role/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询角色(精简)列表
+export function listSimpleRoles() {
+  return request({
+    url: '/system/role/list-all-simple',
+    method: 'get'
+  })
+}
+
+// 查询角色详细
+export function getRole(roleId) {
+  return request({
+    url: '/system/role/get?id=' + roleId,
+    method: 'get'
+  })
+}
+
+// 新增角色
+export function addRole(data) {
+  return request({
+    url: '/system/role/create',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改角色
+export function updateRole(data) {
+  return request({
+    url: '/system/role/update',
+    method: 'put',
+    data: data
+  })
+}
+
+// 角色状态修改
+export function changeRoleStatus(id, status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/system/role/update-status',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除角色
+export function delRole(roleId) {
+  return request({
+    url: '/system/role/delete?id=' + roleId,
+    method: 'delete'
+  })
+}
+
+// 导出角色
+export function exportRole(query) {
+  return request({
+    url: '/system/role/export',
+    method: 'get',
+    params: query,
+    responseType: 'blob'
+  })
+}

+ 0 - 0
ruoyi-ui/src/api/system/session.js → yudao-admin-ui/src/api/system/session.js


+ 0 - 0
ruoyi-ui/src/api/system/sms/smsChannel.js → yudao-admin-ui/src/api/system/sms/smsChannel.js


+ 0 - 0
ruoyi-ui/src/api/system/sms/smsLog.js → yudao-admin-ui/src/api/system/sms/smsLog.js


+ 0 - 0
ruoyi-ui/src/api/system/sms/smsTemplate.js → yudao-admin-ui/src/api/system/sms/smsTemplate.js


+ 129 - 129
ruoyi-ui/src/api/system/user.js → yudao-admin-ui/src/api/system/user.js

@@ -1,129 +1,129 @@
-import request from '@/utils/request'
-import { praseStrEmpty } from "@/utils/ruoyi";
-
-// 查询用户列表
-export function listUser(query) {
-  return request({
-    url: '/system/user/page',
-    method: 'get',
-    params: query
-  })
-}
-
-// 查询用户详细
-export function getUser(userId) {
-  return request({
-    url: '/system/user/get?id=' + praseStrEmpty(userId),
-    method: 'get'
-  })
-}
-
-// 新增用户
-export function addUser(data) {
-  return request({
-    url: '/system/user/create',
-    method: 'post',
-    data: data
-  })
-}
-
-// 修改用户
-export function updateUser(data) {
-  return request({
-    url: '/system/user/update',
-    method: 'put',
-    data: data
-  })
-}
-
-// 删除用户
-export function delUser(userId) {
-  return request({
-    url: '/system/user/delete?id=' + userId,
-    method: 'delete'
-  })
-}
-
-// 导出用户
-export function exportUser(query) {
-  return request({
-    url: '/system/user/export',
-    method: 'get',
-    params: query,
-    responseType: 'blob'
-  })
-}
-
-// 用户密码重置
-export function resetUserPwd(id, password) {
-  const data = {
-    id,
-    password
-  }
-  return request({
-    url: '/system/user/update-password',
-    method: 'put',
-    data: data
-  })
-}
-
-// 用户状态修改
-export function changeUserStatus(id, status) {
-  const data = {
-    id,
-    status
-  }
-  return request({
-    url: '/system/user/update-status',
-    method: 'put',
-    data: data
-  })
-}
-
-// 查询用户个人信息
-export function getUserProfile() {
-  return request({
-    url: '/system/user/profile/get',
-    method: 'get'
-  })
-}
-
-// 修改用户个人信息
-export function updateUserProfile(data) {
-  return request({
-    url: '/system/user/profile/update',
-    method: 'put',
-    data: data
-  })
-}
-
-// 用户密码重置
-export function updateUserPwd(oldPassword, newPassword) {
-  const data = {
-    oldPassword,
-    newPassword
-  }
-  return request({
-    url: '/system/user/profile/update-password',
-    method: 'put',
-    data: data
-  })
-}
-
-// 用户头像上传
-export function uploadAvatar(data) {
-  return request({
-    url: '/system/user/profile/avatar',
-    method: 'put',
-    data: data
-  })
-}
-
-// 下载用户导入模板
-export function importTemplate() {
-  return request({
-    url: '/system/user/get-import-template',
-    method: 'get',
-    responseType: 'blob'
-  })
-}
+import request from '@/utils/request'
+import { praseStrEmpty } from "@/utils/ruoyi";
+
+// 查询用户列表
+export function listUser(query) {
+  return request({
+    url: '/system/user/page',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询用户详细
+export function getUser(userId) {
+  return request({
+    url: '/system/user/get?id=' + praseStrEmpty(userId),
+    method: 'get'
+  })
+}
+
+// 新增用户
+export function addUser(data) {
+  return request({
+    url: '/system/user/create',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改用户
+export function updateUser(data) {
+  return request({
+    url: '/system/user/update',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除用户
+export function delUser(userId) {
+  return request({
+    url: '/system/user/delete?id=' + userId,
+    method: 'delete'
+  })
+}
+
+// 导出用户
+export function exportUser(query) {
+  return request({
+    url: '/system/user/export',
+    method: 'get',
+    params: query,
+    responseType: 'blob'
+  })
+}
+
+// 用户密码重置
+export function resetUserPwd(id, password) {
+  const data = {
+    id,
+    password
+  }
+  return request({
+    url: '/system/user/update-password',
+    method: 'put',
+    data: data
+  })
+}
+
+// 用户状态修改
+export function changeUserStatus(id, status) {
+  const data = {
+    id,
+    status
+  }
+  return request({
+    url: '/system/user/update-status',
+    method: 'put',
+    data: data
+  })
+}
+
+// 查询用户个人信息
+export function getUserProfile() {
+  return request({
+    url: '/system/user/profile/get',
+    method: 'get'
+  })
+}
+
+// 修改用户个人信息
+export function updateUserProfile(data) {
+  return request({
+    url: '/system/user/profile/update',
+    method: 'put',
+    data: data
+  })
+}
+
+// 用户密码重置
+export function updateUserPwd(oldPassword, newPassword) {
+  const data = {
+    oldPassword,
+    newPassword
+  }
+  return request({
+    url: '/system/user/profile/update-password',
+    method: 'put',
+    data: data
+  })
+}
+
+// 用户头像上传
+export function uploadAvatar(data) {
+  return request({
+    url: '/system/user/profile/avatar',
+    method: 'put',
+    data: data
+  })
+}
+
+// 下载用户导入模板
+export function importTemplate() {
+  return request({
+    url: '/system/user/get-import-template',
+    method: 'get',
+    responseType: 'blob'
+  })
+}

+ 0 - 0
ruoyi-ui/src/api/tool/codegen.js → yudao-admin-ui/src/api/tool/codegen.js


+ 0 - 0
ruoyi-ui/src/api/tool/testDemo.js → yudao-admin-ui/src/api/tool/testDemo.js


+ 0 - 0
ruoyi-ui/src/assets/401_images/401.gif → yudao-admin-ui/src/assets/401_images/401.gif


+ 0 - 0
ruoyi-ui/src/assets/404_images/404.png → yudao-admin-ui/src/assets/404_images/404.png


+ 0 - 0
ruoyi-ui/src/assets/404_images/404_cloud.png → yudao-admin-ui/src/assets/404_images/404_cloud.png


+ 9 - 9
ruoyi-ui/src/assets/icons/index.js → yudao-admin-ui/src/assets/icons/index.js

@@ -1,9 +1,9 @@
-import Vue from 'vue'
-import SvgIcon from '@/components/SvgIcon'// svg component
-
-// register globally
-Vue.component('svg-icon', SvgIcon)
-
-const req = require.context('./svg', false, /\.svg$/)
-const requireAll = requireContext => requireContext.keys().map(requireContext)
-requireAll(req)
+import Vue from 'vue'
+import SvgIcon from '@/components/SvgIcon'// svg component
+
+// register globally
+Vue.component('svg-icon', SvgIcon)
+
+const req = require.context('./svg', false, /\.svg$/)
+const requireAll = requireContext => requireContext.keys().map(requireContext)
+requireAll(req)

+ 0 - 0
ruoyi-ui/src/assets/icons/svg/404.svg → yudao-admin-ui/src/assets/icons/svg/404.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/bug.svg → yudao-admin-ui/src/assets/icons/svg/bug.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/build.svg → yudao-admin-ui/src/assets/icons/svg/build.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/button.svg → yudao-admin-ui/src/assets/icons/svg/button.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/cascader.svg → yudao-admin-ui/src/assets/icons/svg/cascader.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/chart.svg → yudao-admin-ui/src/assets/icons/svg/chart.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/checkbox.svg → yudao-admin-ui/src/assets/icons/svg/checkbox.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/clipboard.svg → yudao-admin-ui/src/assets/icons/svg/clipboard.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/code.svg → yudao-admin-ui/src/assets/icons/svg/code.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/color.svg → yudao-admin-ui/src/assets/icons/svg/color.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/component.svg → yudao-admin-ui/src/assets/icons/svg/component.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/dashboard.svg → yudao-admin-ui/src/assets/icons/svg/dashboard.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/date-range.svg → yudao-admin-ui/src/assets/icons/svg/date-range.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/date.svg → yudao-admin-ui/src/assets/icons/svg/date.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/dict.svg → yudao-admin-ui/src/assets/icons/svg/dict.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/documentation.svg → yudao-admin-ui/src/assets/icons/svg/documentation.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/download.svg → yudao-admin-ui/src/assets/icons/svg/download.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/drag.svg → yudao-admin-ui/src/assets/icons/svg/drag.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/druid.svg → yudao-admin-ui/src/assets/icons/svg/druid.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/edit.svg → yudao-admin-ui/src/assets/icons/svg/edit.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/education.svg → yudao-admin-ui/src/assets/icons/svg/education.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/email.svg → yudao-admin-ui/src/assets/icons/svg/email.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/example.svg → yudao-admin-ui/src/assets/icons/svg/example.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/excel.svg → yudao-admin-ui/src/assets/icons/svg/excel.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/exit-fullscreen.svg → yudao-admin-ui/src/assets/icons/svg/exit-fullscreen.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/eye-open.svg → yudao-admin-ui/src/assets/icons/svg/eye-open.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/eye.svg → yudao-admin-ui/src/assets/icons/svg/eye.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/form.svg → yudao-admin-ui/src/assets/icons/svg/form.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/fullscreen.svg → yudao-admin-ui/src/assets/icons/svg/fullscreen.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/github.svg → yudao-admin-ui/src/assets/icons/svg/github.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/guide.svg → yudao-admin-ui/src/assets/icons/svg/guide.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/icon.svg → yudao-admin-ui/src/assets/icons/svg/icon.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/input.svg → yudao-admin-ui/src/assets/icons/svg/input.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/international.svg → yudao-admin-ui/src/assets/icons/svg/international.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/job.svg → yudao-admin-ui/src/assets/icons/svg/job.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/language.svg → yudao-admin-ui/src/assets/icons/svg/language.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/link.svg → yudao-admin-ui/src/assets/icons/svg/link.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/list.svg → yudao-admin-ui/src/assets/icons/svg/list.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/lock.svg → yudao-admin-ui/src/assets/icons/svg/lock.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/log.svg → yudao-admin-ui/src/assets/icons/svg/log.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/logininfor.svg → yudao-admin-ui/src/assets/icons/svg/logininfor.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/message.svg → yudao-admin-ui/src/assets/icons/svg/message.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/money.svg → yudao-admin-ui/src/assets/icons/svg/money.svg


+ 1 - 1
ruoyi-ui/src/assets/icons/svg/monitor.svg → yudao-admin-ui/src/assets/icons/svg/monitor.svg

@@ -1,2 +1,2 @@
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1543827393750" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4695" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: rbicon; src: url("chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2") format("woff2"); font-weight: normal; font-style: normal; }
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1543827393750" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4695" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css">@font-face { font-family: rbicon; src: url("chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2") format("woff2"); font-weight: normal; font-style: normal; }
 </style></defs><path d="M64 64V640H896V64H64zM0 0h960v704H0V0z" p-id="4696"></path><path d="M192 896H768v64H192zM448 640H512v256h-64z" p-id="4697"></path><path d="M479.232 561.604267l309.9904-348.330667-47.803733-42.5472-259.566934 291.669333L303.957333 240.008533 163.208533 438.6048l52.224 37.009067 91.6224-129.28z" p-id="4698"></path></svg>

+ 0 - 0
ruoyi-ui/src/assets/icons/svg/nested.svg → yudao-admin-ui/src/assets/icons/svg/nested.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/number.svg → yudao-admin-ui/src/assets/icons/svg/number.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/online.svg → yudao-admin-ui/src/assets/icons/svg/online.svg


+ 0 - 0
ruoyi-ui/src/assets/icons/svg/password.svg → yudao-admin-ui/src/assets/icons/svg/password.svg


Vissa filer visades inte eftersom för många filer har ändrats