pengjun 2 years ago
parent
commit
8cac0e32b9
  1. 4
      public/sysConfig.json
  2. 14
      src/components/doctorCheck/CheckPicture.vue

4
public/sysConfig.json

@ -1,5 +1,5 @@
{ {
"apiurl": "http://140.143.162.39:9529",
"apiurl": "http://192.168.2.67:9529/",
"softName": "神豚体检管理系统", "softName": "神豚体检管理系统",
"pacsApi":"http://140.143.162.39:9530"
"pacsApi":"http://192.168.2.74:9529/"
} }

14
src/components/doctorCheck/CheckPicture.vue

@ -69,6 +69,7 @@ import { mapState } from "vuex";
import { Loading } from "element-ui"; import { Loading } from "element-ui";
import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { getPagePriv, checkPagePriv, deepCopy, arrayExistObj } from "../../utlis/proFunc"; import { getPagePriv, checkPagePriv, deepCopy, arrayExistObj } from "../../utlis/proFunc";
import { hadoopGet, hadoopPost, hadoopPut, hadoopDel } from "../../api/hadoopApi"
import CheckPictureUpload from "./CheckPictureUpload.vue"; import CheckPictureUpload from "./CheckPictureUpload.vue";
export default { export default {
@ -154,9 +155,9 @@ export default {
// "creatorId": "3a0c4180-107c-0c89-b25b-0bd34666dcec", // "creatorId": "3a0c4180-107c-0c89-b25b-0bd34666dcec",
// "id": "3a0f6a3c-88a5-d5f7-d59b-ef3b38074901" // "id": "3a0f6a3c-88a5-d5f7-d59b-ef3b38074901"
// } // }
getapi(
`/api/app/registercheckpicture/getregistercheckpictureinregistercheckid?RegisterCheckId=${registerCheckId}`
).then((res) => {
hadoopGet('pacsApi', `/api/app/registercheckpicture/getregistercheckpictureinregistercheckid?RegisterCheckId=${registerCheckId}`)
// getapi(`/api/app/registercheckpicture/getregistercheckpictureinregistercheckid?RegisterCheckId=${registerCheckId}`)
.then((res) => {
if (res.code > -1) { if (res.code > -1) {
this.checkPictures = res.data this.checkPictures = res.data
this.checkPictures.forEach(e => { this.checkPictures.forEach(e => {
@ -171,7 +172,7 @@ export default {
let srcList = [] let srcList = []
let image = curImag.pictureFilename.indexOf('http') > -1 let image = curImag.pictureFilename.indexOf('http') > -1
? curImag.pictureFilename ? curImag.pictureFilename
: this.sysConfig.apiurl + curImag.pictureFilename;
: (this.sysConfig.pacsApi || this.sysConfig.apiurl) + curImag.pictureFilename;
srcList.push(image) srcList.push(image)
let lfind = arrayExistObj(oriList, 'id', curImag.id) let lfind = arrayExistObj(oriList, 'id', curImag.id)
if (lfind > -1) { if (lfind > -1) {
@ -194,7 +195,7 @@ export default {
if (fileName.indexOf('base64') > -1 || fileName.indexOf('http') > -1) { if (fileName.indexOf('base64') > -1 || fileName.indexOf('http') > -1) {
return fileName return fileName
} else { } else {
return this.sysConfig.apiurl + fileName
return (this.sysConfig.pacsApi || this.sysConfig.apiurl) + fileName
} }
}, },
@ -261,7 +262,8 @@ export default {
}] }]
} }
try { try {
await postapi('/api/app/RegisterCheckPicture/InstrumentMapping', body)
//await postapi('/api/app/RegisterCheckPicture/InstrumentMapping', body)
await hadoopPost('pacsApi', '/api/app/RegisterCheckPicture/InstrumentMapping', body)
} catch (error) { } catch (error) {
console.log('btnGetPic err', error) console.log('btnGetPic err', error)
} }

Loading…
Cancel
Save