Преглед на файлове

fix: 修改返回系统通知列表路由

qindao преди 1 година
родител
ревизия
1fbbaec2d7
променени са 2 файла, в които са добавени 13 реда и са изтрити 7 реда
  1. 2 2
      src/views/message/sysnotion-config/SysnotionConfig.vue
  2. 11 5
      src/views/system/user/user.vue

+ 2 - 2
src/views/message/sysnotion-config/SysnotionConfig.vue

@@ -128,7 +128,7 @@
       type: 'warning',
     })
       .then(() => {
-        router.push('/message/systemNotifications');
+        router.push('/message/sys-notification');
       })
       .catch(() => {});
   };
@@ -184,7 +184,7 @@
           message: '下发成功!',
           type: 'success',
         });
-        router.push('/message/systemNotifications');
+        router.push('/message/sys-notification');
       });
     } catch (error) {
       ElMessage.error(error as string);

+ 11 - 5
src/views/system/user/user.vue

@@ -47,9 +47,9 @@
             </div>
           </template>
         </el-table-column>
-        <el-table-column label="登录账号" prop="username" >
+        <el-table-column label="登录账号" prop="username" width="150">
           <template #default="scope">
-            <div >
+            <div class="account">
             {{ scope.row.username }}
              <el-tooltip
               class="box-item"
@@ -59,7 +59,7 @@
               v-if="scope.row.roleType === RoleTypeEnum.TENANT_ADMIN"
             >
               <el-icon color="#409efc">
-                <WarningFilled />
+                <Stamp />
               </el-icon>
             </el-tooltip>
             </div>
@@ -129,7 +129,7 @@
   import { reactive, ref, onMounted } from 'vue';
   import { storeToRefs } from 'pinia';
   import { ElMessage, ElMessageBox } from 'element-plus';
-  import { Plus, DocumentAdd, Edit, Delete, WarningFilled } from '@element-plus/icons-vue';
+  import { Plus, DocumentAdd, Edit, Delete, Stamp } from '@element-plus/icons-vue';
   import { EditType, OptionsProps, SearchParamsProps } from './types';
   import { RoleTypeEnum } from '@/types/role/constants';
   import useSceneInfos from '@/hooks/useSceneInfos';
@@ -372,10 +372,16 @@
   .box-item{
     position: absolute;
     top: 0;
-    right: 0;
+    left: 0;
   }
 
   .el-space__item:hover {
     cursor: pointer;
   }
+
+  .account {
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
+  }
 </style>