jiaxiaoqiang 10 hónapja
szülő
commit
53f609bffa

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 3 - 0
src/assets/icons/back.svg


+ 2 - 1
src/layout/components/header.vue

@@ -12,7 +12,8 @@
     <div class="middle-title">
       {{ routeMeta.title }}
     </div>
-    <div>
+    <div v-if="routeMeta.back"></div>
+    <div v-else>
       <el-space>
         <div>
           <svg-icon

+ 2 - 1
src/plugins/permission.ts

@@ -11,7 +11,8 @@ export function setupPermission() {
     if (hasToken) {
       if (to.path === "/login") {
         // 如果已登录,跳转首页
-        next({ path: "/" });
+        localStorage.removeItem("token");
+        next();
         NProgress.done();
       } else {
         next();

+ 6 - 6
src/router/index.ts

@@ -38,6 +38,12 @@ export const constantRoutes: RouteRecordRaw[] = [
           icon: "homepage",
         },
       },
+      {
+        path: "/users",
+        component: () => import("@/views/sets/users.vue"),
+        name: "users",
+        meta: { hidden: true, back: true, title: "用户权限管理" },
+      },
     ],
   },
   {
@@ -70,12 +76,6 @@ export const constantRoutes: RouteRecordRaw[] = [
     name: "deviceScreen",
     meta: { hidden: true },
   },
-  {
-    path: "/users",
-    component: () => import("@/views/sets/users.vue"),
-    name: "users",
-    meta: { hidden: true },
-  },
 
   {
     path: "/:pathMatch(.*)*", // 必备

+ 2 - 2
src/store/modules/common.ts

@@ -18,8 +18,8 @@ export const useCommonStore = defineStore("commonStore", {
     mainSRT12: "ProductionTaskStatistics",
     mainSRT13: "ProductionCapacitySituation",
     mainS076: "DailyProductionS",
-    mainS077: "EquipmentMonitoring",
-    mainS078: "ProductionSituation",
+    mainS077: "ProductionSituation",
+    mainS078: "EquipmentMonitoring",
     // ====
     qualityTOP01: "DistributionOfUnqualifiedProducts",
     qualityTOP02: "ProductionPassThroughRate",

+ 3 - 0
src/views/main/screenEntry.vue

@@ -35,6 +35,9 @@ const gotoScreen = (routeName: string) => {
   if (!isFullscreen.value) {
     enter();
   }
+  // document.body.style.transform = "scale(1)";
+  // document.body.style.transformOrigin = "top left";
+  // document.body.style.zoom = "100%";
 };
 </script>