Explorar el Código

Merge branch 'beta' of https://git.cocorobo.cn/CocoRoboLabs/pbl-teacher-table into beta

lsc hace 11 meses
padre
commit
cb7f355c18
Se han modificado 2 ficheros con 6 adiciones y 6 borrados
  1. 3 3
      src/components/pages/data.vue
  2. 3 3
      src/components/pages/tencent/data.vue

+ 3 - 3
src/components/pages/data.vue

@@ -36,7 +36,7 @@
         </div>
         <div class="data_nav">
           <span @click="type = 1" :class="{ active: type == 1 }">我的资料</span>
-          <!-- <span @click="type = 2" :class="{ active: type == 2 }">修改密码</span> -->
+          <span @click="type = 2" v-if="ruleForm.type !== '学生'" :class="{ active: type == 2 }">修改密码</span>
         </div>
         <el-form
           v-if="type == 1"
@@ -152,9 +152,9 @@
             ></el-input>
           </el-form-item> -->
           <el-form-item>
-            <!-- <el-button type="primary" @click="submitForm('ruleForm')"
+            <el-button type="primary"  v-if="ruleForm.type !== '学生'" @click="submitForm('ruleForm')"
               >保存</el-button
-            > -->
+            >
           </el-form-item>
         </el-form>
         <div class="password" v-if="type == 2">

+ 3 - 3
src/components/pages/tencent/data.vue

@@ -33,7 +33,7 @@
         </div>
         <div class="data_nav">
           <span @click="type = 1" :class="{ active: type == 1 }">我的资料</span>
-          <!-- <span @click="type = 2" :class="{ active: type == 2 }">修改密码</span> -->
+          <span @click="type = 2"  v-if="ruleForm.type !== '学生'" :class="{ active: type == 2 }">修改密码</span>
         </div>
         <el-form
           v-if="type == 1"
@@ -119,9 +119,9 @@
             </el-select>
           </el-form-item>
           <el-form-item>
-            <!-- <el-button type="primary" @click="submitForm('ruleForm')"
+            <el-button type="primary"  v-if="ruleForm.type !== '学生'" @click="submitForm('ruleForm')"
               >修改</el-button
-            > -->
+            >
           </el-form-item>
         </el-form>
         <div class="password" v-if="type == 2">