diff --git a/src/components/qr_code/index.vue b/src/components/qr_code/index.vue index 53e2b44..23a77f1 100644 --- a/src/components/qr_code/index.vue +++ b/src/components/qr_code/index.vue @@ -1,6 +1,6 @@ - + diff --git a/src/views/enterprise_management/information/components/print.vue b/src/views/enterprise_management/information/components/print.vue new file mode 100644 index 0000000..1e867a2 --- /dev/null +++ b/src/views/enterprise_management/information/components/print.vue @@ -0,0 +1,36 @@ + + + + + {{ info.CORP_NAME }} + + + + + 关闭 + 打 印 + + + + + + + diff --git a/src/views/enterprise_management/information/info.vue b/src/views/enterprise_management/information/info.vue index 3ccd75a..93ffada 100644 --- a/src/views/enterprise_management/information/info.vue +++ b/src/views/enterprise_management/information/info.vue @@ -191,26 +191,9 @@ > 修改 - 二维码 + 二维码 - - - - {{ data.info.CORP_NAME }} - - - - - - - 关 闭 - 打 印 - - + @@ -219,18 +202,14 @@ import { getEnterpriseInfo } from "@/request/enterprise_management.js"; import { addingPrefixToFile } from "@/assets/js/utils.js"; import { reactive } from "vue"; import { useRouter } from "vue-router"; -import { useQRCode } from "@vueuse/integrations/useQRCode"; -import { ElMessage } from "element-plus"; +import Print from "./components/print.vue"; const router = useRouter(); const data = reactive({ info: {}, bus_images: [], four_images: [], - qrCodeDialog: { - visible: false, - src: "", - }, + qrCodeDialogVisible: false, }); const fnGetData = async () => { const resData = await getEnterpriseInfo(); @@ -239,21 +218,6 @@ const fnGetData = async () => { data.four_images = addingPrefixToFile(resData.fourImgs); }; fnGetData(); -const fnQrCodeDialogChangeShow = () => { - data.qrCodeDialog.visible = !data.qrCodeDialog.visible; -}; -const fnQrCode = () => { - if (data.info.CORPINFO_ID) { - fnQrCodeDialogChangeShow(); - // TODO: 扫码页面 - data.qrCodeDialog.src = useQRCode(data.info.CORPINFO_ID, { - width: 200, - height: 200, - margin: 1, - correctLevel: "H", - }); - } else ElMessage.error("请重新获取二维码"); -};