Browse Source

判断修改

lex-xin 6 months ago
parent
commit
2847fbfd44
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/setting/components/schoolInfo/index.tsx

+ 2 - 2
src/views/setting/components/schoolInfo/index.tsx

@@ -144,7 +144,7 @@ export default defineComponent({
               <NButton
                 type="primary"
                 text
-                disabled={btnStatus(row)}
+                disabled={row.id !== user.info.id && btnStatus(row)}
                 onClick={() => {
                   data.resetMessage = `重置"${row.nickname}"的密码,是否继续?`;
                   data.resetVisiable = true;
@@ -191,7 +191,7 @@ export default defineComponent({
     };
 
 
-    const btnStatus = (row: any) => {
+    const btnStatus = (row: any, type?: string) => {
       // 管理员
       if(user.info.teacherJobType === "ADMIN" && ["ADMIN", "HEADMASTER"].includes(row.jobType)) {
         return true