| | |
| | | import { useUserInfo } from '/@/stores/userInfo'; |
| | | // import { base64ToFile } from '/@/utils/base64Conver'; |
| | | import CropperDialog from '/@/components/cropper/index.vue'; |
| | | import VueGridLayout from 'vue-grid-layout'; |
| | | import { ADMIN_TYPE_MAP } from '/@/views/types'; |
| | | import { clearAccessTokens } from '/@/utils/request'; |
| | | import { ResetSystemLoginPwd, UpdateSystemLoginPwd } from '/@/api/auth/userManage'; |
| | |
| | | const { userInfos } = storeToRefs(stores); |
| | | const uploadSignRef = ref<UploadInstance>(); |
| | | //const uploadAvatarRef = ref<UploadInstance>(); |
| | | const signaturePadRef = ref<InstanceType<typeof VueGridLayout>>(); |
| | | const ruleFormBaseRef = ref<InstanceType<typeof ElForm>>(); |
| | | const ruleFormPasswordRef = ref<InstanceType<typeof ElForm>>(); |
| | | const cropperDialogRef = ref<InstanceType<typeof CropperDialog>>(); |
| | |
| | | ruleFormPassword: {} as any, |
| | | showPasswdNew: false, |
| | | showPassWdNew2: false, |
| | | signOptions: { |
| | | penColor: '#000000', |
| | | minWidth: 1.0, |
| | | onBegin: () => { |
| | | signaturePadRef.value.resizeCanvas(); |
| | | }, |
| | | }, |
| | | |
| | | signFileList: [] as any, |
| | | passwordNew2: '', |
| | | cropperTitle: '', |
| | |
| | | state.loading = false; |
| | | }); |
| | | |
| | | watch(state.signOptions, () => { |
| | | signaturePadRef.value.signaturePad.penColor = state.signOptions.penColor; |
| | | signaturePadRef.value.signaturePad.minWidth = state.signOptions.minWidth; |
| | | }); |
| | | |
| | | |
| | | // 上传头像图片 |
| | | const uploadCropperImg = async (e: any) => { |
| | |
| | | // userInfos.value.avatar = res.data.result?.filePath + '/' + res.data.result?.name; |
| | | }; |
| | | |
| | | // 清空电子签名 |
| | | const clearSign = () => { |
| | | signaturePadRef.value.clearSignature(); |
| | | }; |
| | | |
| | | // 获得电子签名文件列表 |
| | | const handleChangeSignFile = (_file: any, fileList: []) => { |