祖安之光
2025-09-29 b47c081ac3ac59ea5704ab12579c029a55991961
src/views/build/conpanyFunctionConsult/staffManage/staffRegister/components/staffDialog.vue
@@ -229,6 +229,7 @@
import {debounce} from "@/utils";
import Cookies from "js-cookie";
import {getDepart} from "@/api/orgStructure/depart";
import {removeToken} from "@/utils/auth";
const emit = defineEmits(["getList"]);
const dialogVisible = ref(false)
const superRef = ref()
@@ -403,7 +404,7 @@
    // }
  }
  state.title = type === 'add' ? '新增' : type ==='edit' ? '编辑' : type ==='pwd' ? '修改密码' : '查看' ;
  if(type === 'edit' || type === 'view') {
  if(type === 'edit' || type === 'view' || type === 'pwd') {
    startUsername.value = value.username
    if( type === 'view'){
      disabled.value = true
@@ -524,8 +525,8 @@
      const res = await resetPwd(data)
      if(res.code == 200){
        ElMessage.success(res.message)
        emit('getList')
        handleClose()
        removeToken()
        location.href = '/homePage';
      }else{
        ElMessage.warning(res.message)
      }