审核时处理图片的接口

This commit is contained in:
yy2205 2025-05-16 10:27:49 +08:00
parent def2e553a4
commit 5491ab64b9
3 changed files with 40 additions and 5 deletions

View File

@ -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
}
}
}

View File

@ -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 {

View File

@ -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' })