diff --git a/src/api/processImage/index.ts b/src/api/processImage/index.ts new file mode 100644 index 00000000..f5110228 --- /dev/null +++ b/src/api/processImage/index.ts @@ -0,0 +1,31 @@ +import axios from 'axios' + +// 超声组件 API +export const processImageApi = { + // 查询模版表数据 + paramsList:[{ + startX:1800, + startY:100, + height:400, + width:900, + options:{watermarkFontSize:40} + },{}], + processImg: async (params: any) => { + try { + const response = await axios({ + method: 'post', + url: 'https://zzxmc.gw12320.com/processImage', + data: params, + headers: { + 'Content-Type': 'application/json', + 'Access-Control-Allow-Origin': '*' + }, + withCredentials: true + }) + return response.data + } catch (error) { + console.error('Error fetching image:', error) + throw error + } + } +} diff --git a/src/views/ECG/ECGForm.vue b/src/views/ECG/ECGForm.vue index 0761db2b..77eeb436 100644 --- a/src/views/ECG/ECGForm.vue +++ b/src/views/ECG/ECGForm.vue @@ -669,6 +669,7 @@ import useClipboard from 'vue-clipboard3' //复制组件 import ECGSB from '@/views/ECG/ECGSB.vue' import { ElLoading } from 'element-plus' import { log } from 'console' +import { processImageApi } from '@/api/processImage' const { toClipboard } = useClipboard() const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调 @@ -800,16 +801,19 @@ const open = async (row: any) => { } //审核功能 async function process() { + const processResponse = await processImageApi.processImg() + console.log(processResponse) if (applyFormVO.value.reportstatus === '已分析') { // 审核确认 await message.delConfirm('是否进行审核操作', '审核') - const response = await PatientexamlistApi.examine(keyid.value,Profilevo.value.doctorname,Profilevo.value.doctorID) - if (response) { + // const response = await PatientexamlistApi.examine(keyid.value,Profilevo.value.doctorname,Profilevo.value.doctorID) + + // if (response) { message.alertSuccess('审核成功') - await getPatientexamlist(keyid.value) + // await getPatientexamlist(keyid.value) emit('success') savedisabled.value = true - } + // } } else if (applyFormVO.value.reportstatus === '已审核') { message.warning('已经审核,无需再次审核') } else { diff --git a/src/views/system/wx/index.vue b/src/views/system/wx/index.vue index 943fd666..b001f8de 100644 --- a/src/views/system/wx/index.vue +++ b/src/views/system/wx/index.vue @@ -140,7 +140,7 @@ import { dateFormatter } from '@/utils/formatTime' import download from '@/utils/download' import { WxApi, WxVO } from '@/api/system/wx' import WxForm from './WxForm.vue' -import { fa } from 'element-plus/es/locale' +import { fa } from 'element-plus/dist/locale/fa.mjs' /** 微信通知管理 列表 */ defineOptions({ name: 'Wx' })