Parcourir la source

优化提示信息

RuoYi il y a 4 ans
Parent
commit
82779f3c70

+ 1 - 0
ruoyi-ui/src/api/system/role.js

@@ -64,6 +64,7 @@ export function delRole(roleId) {
64 64
     method: 'delete'
65 65
   })
66 66
 }
67
+
67 68
 // 查询角色已授权用户列表
68 69
 export function allocatedUserList(query) {
69 70
   return request({

+ 0 - 15
ruoyi-ui/src/directive/permission/index.js

@@ -1,15 +0,0 @@
1
-import hasRole from './hasRole'
2
-import hasPermi from './hasPermi'
3
-
4
-const install = function(Vue) {
5
-  Vue.directive('hasRole', hasRole)
6
-  Vue.directive('hasPermi', hasPermi)
7
-}
8
-
9
-if (window.Vue) {
10
-  window['hasRole'] = hasRole
11
-  window['hasPermi'] = hasPermi
12
-  Vue.use(install); // eslint-disable-line
13
-}
14
-
15
-export default install

+ 1 - 1
ruoyi-ui/src/layout/components/AppMain.vue

@@ -51,7 +51,7 @@ export default {
51 51
 // fix css style bug in open el-dialog
52 52
 .el-popup-parent--hidden {
53 53
   .fixed-header {
54
-    padding-right: 15px;
54
+    padding-right: 17px;
55 55
   }
56 56
 }
57 57
 </style>

+ 8 - 0
ruoyi-ui/src/plugins/modal.js

@@ -59,6 +59,14 @@ export default {
59 59
       type: "warning",
60 60
     })
61 61
   },
62
+  // 提交内容
63
+  prompt(content) {
64
+    return MessageBox.prompt(content, "系统提示", {
65
+      confirmButtonText: '确定',
66
+      cancelButtonText: '取消',
67
+      type: "warning",
68
+    })
69
+  },
62 70
   // 打开遮罩层
63 71
   loading(content) {
64 72
     loadingInstance = Loading.service({

+ 1 - 1
ruoyi-ui/src/utils/errorCode.js

@@ -2,5 +2,5 @@ export default {
2 2
   '401': '认证失败,无法访问系统资源',
3 3
   '403': '当前操作没有权限',
4 4
   '404': '访问资源不存在',
5
-  'default': '系统未知错误,请反馈给管理员'
5
+  'default': '系统未知错误请反馈给管理员'
6 6
 }

+ 0 - 15
ruoyi-ui/src/views/monitor/druid/index.vue

@@ -1,15 +0,0 @@
1
-<template>
2
-  <i-frame :src="url" />
3
-</template>
4
-<script>
5
-import iFrame from "@/components/iFrame/index";
6
-export default {
7
-  name: "Druid",
8
-  components: { iFrame },
9
-  data() {
10
-    return {
11
-      url: process.env.VUE_APP_BASE_API + "/druid/login.html"
12
-    };
13
-  },
14
-};
15
-</script>

+ 1 - 1
ruoyi-ui/src/views/monitor/online/index.vue

@@ -107,7 +107,7 @@ export default {
107 107
     },
108 108
     /** 强退按钮操作 */
109 109
     handleForceLogout(row) {
110
-      this.$modal.confirm('是否确认强退名称为"' + row.userName + '"的数据项?').then(function() {
110
+      this.$modal.confirm('是否确认强退名称为"' + row.userName + '"的用户?').then(function() {
111 111
         return forceLogout(row.tokenId);
112 112
       }).then(() => {
113 113
         this.getList();

+ 1 - 1
ruoyi-ui/src/views/system/user/index.vue

@@ -596,7 +596,7 @@ export default {
596 596
         cancelButtonText: "取消",
597 597
         closeOnClickModal: false,
598 598
         inputPattern: /^.{5,20}$/,
599
-        inputErrorMessage: "用户密码长度必须介于 5 和 20 之间",
599
+        inputErrorMessage: "用户密码长度必须介于 5 和 20 之间"
600 600
       }).then(({ value }) => {
601 601
           resetUserPwd(row.userId, value).then(response => {
602 602
             this.$modal.msgSuccess("修改成功,新密码是:" + value);

+ 1 - 2
ruoyi-ui/src/views/tool/gen/basicInfoForm.vue

@@ -11,7 +11,6 @@
11 11
           <el-input placeholder="请输入" v-model="info.tableComment" />
12 12
         </el-form-item>
13 13
       </el-col>
14
-
15 14
       <el-col :span="12">
16 15
         <el-form-item label="实体类名称" prop="className">
17 16
           <el-input placeholder="请输入" v-model="info.className" />
@@ -30,9 +29,9 @@
30 29
     </el-row>
31 30
   </el-form>
32 31
 </template>
32
+
33 33
 <script>
34 34
 export default {
35
-  name: "BasicInfoForm",
36 35
   props: {
37 36
     info: {
38 37
       type: Object,

+ 1 - 0
ruoyi-ui/src/views/tool/gen/editTable.vue

@@ -124,6 +124,7 @@
124 124
     </el-form>
125 125
   </el-card>
126 126
 </template>
127
+
127 128
 <script>
128 129
 import { getGenTable, updateGenTable } from "@/api/tool/gen";
129 130
 import { optionselect as getDictOptionselect } from "@/api/system/dict/type";

+ 1 - 2
ruoyi-ui/src/views/tool/gen/genInfoForm.vue

@@ -11,7 +11,6 @@
11 11
           </el-select>
12 12
         </el-form-item>
13 13
       </el-col>
14
-
15 14
       <el-col :span="12">
16 15
         <el-form-item prop="packageName">
17 16
           <span slot="label">
@@ -213,12 +212,12 @@
213 212
     </el-row>
214 213
   </el-form>
215 214
 </template>
215
+
216 216
 <script>
217 217
 import Treeselect from "@riophae/vue-treeselect";
218 218
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
219 219
 
220 220
 export default {
221
-  name: "BasicInfoForm",
222 221
   components: { Treeselect },
223 222
   props: {
224 223
     info: {

+ 1 - 1
ruoyi-ui/vue.config.js

@@ -109,7 +109,7 @@ module.exports = {
109 109
           config.optimization.runtimeChunk('single'),
110 110
           {
111 111
              from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
112
-             to: './', //到根目录下
112
+             to: './' //到根目录下
113 113
           }
114 114
         }
115 115
       )