审核时处理图片的接口
This commit is contained in:
parent
def2e553a4
commit
5491ab64b9
31
src/api/processImage/index.ts
Normal file
31
src/api/processImage/index.ts
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
@ -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 {
|
||||
|
@ -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' })
|
||||
|
Loading…
Reference in New Issue
Block a user