Jelajahi Sumber

更新 文案;路由逻辑;移除index

wzh 3 tahun lalu
induk
melakukan
b85c60dcf9

+ 1 - 1
src/apis/fetch.js

@@ -48,7 +48,7 @@ export default {
     return $http("/voyage/getCarLoadRecordList", data);
   },
 
-  // 添加角色
+  // 添加职位
   addRole(data) {
     return $http("/role/permission/addRole", data);
   },

+ 3 - 3
src/auth/menuData.js

@@ -42,14 +42,14 @@ let menuData = [
     items: [
       {
         path: "/accountManage/subAccountList",
-        name: "子账户列表",
+        name: "员工列表",
         code: "ACCOUNTLIST",
       },
     ],
   },
   {
     icon: "el-icon-s-data",
-    title: "部门权限管理",
+    title: "权限管理",
     code: "PERMISSIONMANAGE",
     items: [
       {
@@ -59,7 +59,7 @@ let menuData = [
       },
       {
         path: "/authManage/roleList",
-        name: "角色列表",
+        name: "职位列表",
         code: "ROLELIST",
       },
     ],

+ 6 - 11
src/router/index.js

@@ -10,11 +10,6 @@ import VoyageList from "../views/voyage/voyageList.vue";
 const router = createRouter({
   history: createWebHashHistory(),
   routes: [
-    {
-      path: "/",
-      name: "index",
-      component: () => import("../views/index/Index.vue"),
-    },
     {
       path: "/login",
       name: "login",
@@ -45,7 +40,7 @@ const router = createRouter({
       path: "/accountManage/subAccountList",
       name: "subAccountList",
       meta: {
-        title: "子账户列表",
+        title: "员工列表",
         code: "ACCOUNTLIST",
       },
       component: () => import("../views/accountManage/subAccountList.vue"),
@@ -63,7 +58,7 @@ const router = createRouter({
       path: "/authManage/roleList",
       name: "roleList",
       meta: {
-        title: "角色列表",
+        title: "职位列表",
         code: "ROLELIST",
       },
       component: () => import("../views/authManage/roleList.vue"),
@@ -81,7 +76,7 @@ const router = createRouter({
       path: "/authManage/addRole",
       name: "addRole",
       meta: {
-        title: "新增角色",
+        title: "新增职位",
         code: "ADDUPDATEROLE",
       },
       component: () => import("../views/authManage/addRole.vue"),
@@ -103,7 +98,7 @@ export const asyncRouterList = [
     path: "/accountManage/subAccountList",
     name: "subAccountList",
     meta: {
-      title: "子账户列表",
+      title: "员工列表",
       code: "ACCOUNTLIST",
     },
     component: () => import("../views/accountManage/subAccountList.vue"),
@@ -121,7 +116,7 @@ export const asyncRouterList = [
     path: "/authManage/roleList",
     name: "roleList",
     meta: {
-      title: "角色列表",
+      title: "职位列表",
       code: "ROLELIST",
     },
     component: () => import("../views/authManage/roleList.vue"),
@@ -130,7 +125,7 @@ export const asyncRouterList = [
     path: "/authManage/addRole",
     name: "addRole",
     meta: {
-      title: "新增角色",
+      title: "新增职位",
       code: "ADDUPDATEROLE",
     },
     component: () => import("../views/authManage/addRole.vue"),

+ 7 - 7
src/views/accountManage/subAccountList.vue

@@ -12,13 +12,13 @@
         <div class="seach-btn" @click="getSubAccountList">查询</div>
       </div>
       <el-button v-auth="'ADDACCOUNT'" type="primary" @click="showAddModal"
-        >添加账号</el-button
+        >添加员工</el-button
       >
     </div>
 
     <el-dialog
       v-model="visable"
-      :title="accountId ? '修改角色' : '添加账号'"
+      :title="accountId ? '修改员工' : '添加员工'"
       width="550px"
       @close="resetForm()"
     >
@@ -55,11 +55,11 @@
                 />
               </el-select>
             </el-form-item>
-            <el-form-item v-if="ruleForm.deptId" prop="roleId" label="角色">
+            <el-form-item v-if="ruleForm.deptId" prop="roleId" label="部门">
               <el-select
                 style="width: 280px"
                 v-model="ruleForm.roleId"
-                placeholder="请选择角色"
+                placeholder="请选择职位"
               >
                 <el-option
                   v-for="item in roleSelect"
@@ -116,7 +116,7 @@
         ></el-table-column>
         <el-table-column
           prop="roleName"
-          label="角色权限"
+          label="职位"
           min-width="80"
           align="center"
         ></el-table-column>
@@ -153,7 +153,7 @@
                 @click="showUpdateModal(scope.row)"
                 size="small"
                 type="primary"
-                >修改角色权限</el-button
+                >修改员工权限</el-button
               >
             </div>
           </template>
@@ -207,7 +207,7 @@ const rules = reactive({
   roleId: [
     {
       required: true,
-      message: "请选择角色",
+      message: "请选择员工",
       trigger: "blur",
     },
   ],

+ 4 - 4
src/views/authManage/addRole.vue

@@ -7,10 +7,10 @@
       label-width="110px"
       label-position="left"
     >
-      <el-form-item prop="roleName" label="角色名称">
+      <el-form-item prop="roleName" label="职位名称">
         <el-input style="width: 280px" v-model="ruleForm.roleName"></el-input>
       </el-form-item>
-      <el-form-item prop="deptId" label="角色">
+      <el-form-item prop="deptId" label="部门">
         <el-select
           style="width: 280px"
           v-model="ruleForm.deptId"
@@ -41,7 +41,7 @@
     />
     <div class="df aic jcfe mt50">
       <el-button type="primary" @click="addRole">{{
-        roleId ? "修改角色" : "添加角色"
+        roleId ? "修改员工" : "添加职位"
       }}</el-button>
     </div>
   </el-card>
@@ -182,7 +182,7 @@ onMounted(() => {
   if (id) {
     getRoleDetail(id);
     roleId.value = id;
-    store.commit("changefirstTitle", "修改角色");
+    store.commit("changefirstTitle", "修改员工");
   }
 });
 </script>

+ 3 - 3
src/views/authManage/roleList.vue

@@ -3,7 +3,7 @@
     <div style="display: flex; justify-content: space-between">
       <div style="display: flex">
         <el-input
-          placeholder="请输入部门/角色名称"
+          placeholder="请输入部门/职位名称"
           prefix-icon="el-icon-search"
           v-model="term"
           clearable
@@ -12,7 +12,7 @@
         <div class="seach-btn" @click="getRoleList">查询</div>
       </div>
       <el-button v-auth="'ADDUPDATEROLE'" type="primary" @click="addRole"
-        >添加角色</el-button
+        >添加职位</el-button
       >
     </div>
     <div style="margin-top: 24px">
@@ -25,7 +25,7 @@
         ></el-table-column>
         <el-table-column
           prop="roleName"
-          label="角色名称"
+          label="职位名称"
           min-width="100"
           align="center"
         ></el-table-column>

+ 2 - 16
src/views/index/Index.vue

@@ -1,17 +1,3 @@
-<template>
-  index
-  <div v-for="i in arr" :key="i">
-    <p>{{ i }}</p>
-  </div>
-</template>
-<script>
-export default {
-  data() {
-    return {
-      arr: ["a", "b", "c"],
-    };
-  },
-  methods: {},
-  created() {},
-};
+<template>主页</template>
+<script setup>
 </script>