Kaynağa Gözat

修改测试计划--辅导员

plg 4 ay önce
ebeveyn
işleme
7dadb8a98a

+ 6 - 1
src/components/TreeData.vue

@@ -18,13 +18,14 @@
                   size="mini"
                   type="primary"
                   @click="addStock(0)"
-                  v-if="treeData.isAdd"
+                  v-if="treeData.isAdd&&userInfo.roleType!='3'"
                   >添加</el-button
                 >
                 <el-button
                   type="primary"
                   size="mini"
                   @click="addStock(1)"
+                  v-if="userInfo.roleType!='3'"
              
                   >编辑</el-button
                 >
@@ -32,9 +33,13 @@
                   type="primary"
                   size="mini"
                   @click="deleteStock"
+                  v-if="userInfo.roleType!='3'"
               
                   >删除</el-button
                 >
+                <span   v-if="userInfo.roleType=='3'">
+                  暂无权限
+                </span>
               </div>
               <div
                 class="avat"

+ 1 - 1
src/views/loginNew.vue

@@ -162,7 +162,7 @@ export default {
                   // this.$router.push({ path: "/manage/userManage" });
                   this.$router.push({ path: "/manage/generalSituation" });
                 } else if (res.data.user.roleType == "3") {
-                  this.$router.push({ path: "/manage/generalSituation" });
+                  this.$router.push({ path: "/manage/userManage" });
                 } else {
                   this.$message({
                     message: "请使用管理账号登录",

+ 7 - 7
src/views/manage/manageMain.vue

@@ -530,13 +530,13 @@ export default {
         ];
       } else if (this.userType == "3") {
         this.menuList = [
-          {
-            id: "10",
-            name: "概况",
-            icon: require("../../assets/menu/user.png"),
-            showItem: true,
-            path: "/manage/generalSituation",
-          },
+          // {
+          //   id: "10",
+          //   name: "概况",
+          //   icon: require("../../assets/menu/user.png"),
+          //   showItem: true,
+          //   path: "/manage/generalSituation",
+          // },
           {
             id: "0",
             name: "学生管理",