Browse Source

修改权限表示 增加标签判断,移除注册

xiewenjie 3 years ago
parent
commit
c6248c9f12
2 changed files with 11 additions and 11 deletions
  1. 10 10
      src/view/system/login.vue
  2. 1 1
      src/view/user/index.vue

+ 10 - 10
src/view/system/login.vue

@@ -13,7 +13,7 @@
         <p class="err-info">{{verification.psw}}</p>
         <el-input v-model="form.psw" placeholder="密码" type="password" @keydown.enter="submitClick"></el-input>
       </el-form-item>
-      
+
       <el-form-item class="panel-form-item code-form-item">
         <p class="err-info">{{verification.code}}</p>
         <el-input v-model="form.code" placeholder="验证码" @keydown.enter="submitClick" class="code-input">
@@ -22,14 +22,14 @@
           </template>
         </el-input>
       </el-form-item>
-      
+
       <el-form-item class="panel-form-item">
         <el-button type="primary" class="fill" @click="submitClick">登录</el-button>
       </el-form-item>
 
       <div class="more">
         <a @click="$router.push({name: 'forget'})">忘记密码</a>
-        <a @click="$router.push({name: 'register'})">账号注册</a>
+<!--        <a @click="$router.push({name: 'register'})">账号注册</a>-->
       </div>
     </el-form>
   </div>
@@ -55,7 +55,7 @@ export default {
     })
     const verification = reactive({ phone: '', psw: '', code: '' })
 
-  
+
 
     watch(form, () => {
       console.log('form',form)
@@ -188,7 +188,7 @@ export default {
   min-width: 1200px;
   img {
     position: absolute;
-    right: 0;    
+    right: 0;
   }
 }
 .login {
@@ -197,7 +197,7 @@ export default {
   position: relative;
   display: inline-block;
 
-    
+
 
   h2 {
     padding-left: 0;
@@ -213,12 +213,12 @@ export default {
     }
   }
 
-  
+
   .panel-form-item {
     padding-left: 0;
     padding-right: 0;
   }
-  
+
   .more a:first-child::after {
     content: '';
     position: absolute;
@@ -252,7 +252,7 @@ export default {
   align-items: center;
   justify-content: center;
   padding: 0;
-  
+
 }
 
 .login .code-form-item .el-input__inner {
@@ -264,4 +264,4 @@ export default {
   border-radius: 4px;
 }
 
-</style>
+</style>

+ 1 - 1
src/view/user/index.vue

@@ -120,7 +120,7 @@
         <el-form-item label="用户角色" class="roleName mandatory">
          <com-role v-model="newData.roleId" style="width: 100%" allText="请选择" hideAll :notDefault="true" />
         </el-form-item>
-        <el-form-item label="所属架构:" v-if="user.roleKey == 'admin'">
+        <el-form-item label="所属架构:" v-if="user.roleKey == 'admin' || user.roleKey == 'admin-super' ">
           <com-select v-model="newData.deptId" />
         </el-form-item>
         <el-form-item label="用户账号" class="mandatory">