diff --git a/public/static/images/menu_icon/6-actvie.png b/public/static/images/menu_icon/6-actvie.png deleted file mode 100644 index 89186a6..0000000 Binary files a/public/static/images/menu_icon/6-actvie.png and /dev/null differ diff --git a/public/static/images/menu_icon/6.png b/public/static/images/menu_icon/6.png index 73d9a75..baf4d78 100644 Binary files a/public/static/images/menu_icon/6.png and b/public/static/images/menu_icon/6.png differ diff --git a/src/components/registration/CardDefault.vue b/src/components/registration/CardDefault.vue index 0d3de58..2ca2756 100644 --- a/src/components/registration/CardDefault.vue +++ b/src/components/registration/CardDefault.vue @@ -6,7 +6,7 @@ import natys from "@/assets/config/directory/antys.json"; import psnCertTypes from "@/assets/config/directory/psnCertTypes.json"; import insutypes from "@/assets/config/directory/insutypes.json"; import {onMounted, onUnmounted, ref} from "vue"; -import {ElMessage} from "element-plus"; +import {ElMessage, ElMessageBox} from "element-plus"; import {post} from "@/utils/request.ts"; import type {Request, Response} from "@/utils/ws.ts"; import {useWsStore} from "@/stores/wsStore.ts"; @@ -67,15 +67,23 @@ const reciceMessage = (response: Response) => { } getInfoFor1101(params) } -const emit = defineEmits(['socialCardUpdate']) +const loading = ref(false) +const emit = defineEmits(['socialCardUpdate', 'close']) const getInfoFor1101 = (params: any) => { + loading.value = true post("social/person/getCustomSocialInfo", {data: params}).then((res: any) => { socialCard.value.data = res; socialCard.value.mdtrtCertType = params.mdtrtCertType; socialCard.value.mdtrtCertNo = params.mdtrtCertNo; - emit('socialCardUpdate',socialCard.value) + ElMessage({ + message: "读取成功", + type: 'success', + }); + emit('socialCardUpdate', socialCard.value) + loading.value = false }).finally(() => { isReading.value = false; + loading.value = false }) } @@ -85,37 +93,32 @@ onMounted(async () => { onUnmounted(() => { wsStore.removeAllMessageCallback() }) +const close = () => { + ElMessageBox.confirm("退出识别", "提示", { + confirmButtonText: '确定', + cancelButtonText: '取消', + callback: (action: any) => { + if (action == "confirm") { + socialCard.value.data = null + emit('close') + } + if (action == "cancel") { + emit('socialCardUpdate', socialCard.value) + } + + }, + }); +}