|
|
@ -60,7 +60,7 @@ |
|
|
:src=" |
|
|
:src=" |
|
|
item.pictureFilename.indexOf('http') > -1 |
|
|
item.pictureFilename.indexOf('http') > -1 |
|
|
? item.pictureFilename |
|
|
? item.pictureFilename |
|
|
: apiUrl + item.pictureFilename |
|
|
|
|
|
|
|
|
: sysConfig.apiUrl + item.pictureFilename |
|
|
" |
|
|
" |
|
|
:preview-src-list="previewSrcList(checkPictures,item)" |
|
|
:preview-src-list="previewSrcList(checkPictures,item)" |
|
|
> |
|
|
> |
|
|
@ -110,7 +110,7 @@ import { mapState } from "vuex"; |
|
|
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 CheckPictureUpload from "./CheckPictureUpload.vue"; |
|
|
import CheckPictureUpload from "./CheckPictureUpload.vue"; |
|
|
import server from "../../utlis/mm"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
@ -118,6 +118,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
sysConfig:{}, // |
|
|
pagePriv:{ |
|
|
pagePriv:{ |
|
|
routeUrlorPageName:'doctorCheck', //当前页面归属路由或归属页面权限名称 |
|
|
routeUrlorPageName:'doctorCheck', //当前页面归属路由或归属页面权限名称 |
|
|
privs:[] // 页面权限 |
|
|
privs:[] // 页面权限 |
|
|
@ -140,8 +141,6 @@ export default { |
|
|
"https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg", |
|
|
"https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg", |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
|
|
|
|
|
|
apiUrl: server.apiurl, |
|
|
|
|
|
//图片上传 |
|
|
//图片上传 |
|
|
dialogCheckPictureUpload: false, |
|
|
dialogCheckPictureUpload: false, |
|
|
uploadSeq: 0, //第几次点图片上传,每点一次清空前次所选图片 |
|
|
uploadSeq: 0, //第几次点图片上传,每点一次清空前次所选图片 |
|
|
@ -155,7 +154,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//挂载完成 |
|
|
//挂载完成 |
|
|
mounted() {}, |
|
|
|
|
|
|
|
|
mounted() { |
|
|
|
|
|
this.sysConfig = JSON.parse(window.sessionStorage.getItem('sysConfig')) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
computed: { |
|
|
computed: { |
|
|
...mapState([ |
|
|
...mapState([ |
|
|
@ -211,7 +212,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.apiUrl + curImag.pictureFilename; |
|
|
|
|
|
|
|
|
: 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){ |
|
|
@ -219,14 +220,14 @@ export default { |
|
|
let e = oriList[i]; |
|
|
let e = oriList[i]; |
|
|
image = e.pictureFilename.indexOf('http') > -1 |
|
|
image = e.pictureFilename.indexOf('http') > -1 |
|
|
? e.pictureFilename |
|
|
? e.pictureFilename |
|
|
: this.apiUrl + e.pictureFilename; |
|
|
|
|
|
|
|
|
: this.sysConfig.apiUrl + e.pictureFilename; |
|
|
srcList.push(image) |
|
|
srcList.push(image) |
|
|
} |
|
|
} |
|
|
for (let index = 0; index < lfind; index++) { |
|
|
for (let index = 0; index < lfind; index++) { |
|
|
let e = oriList[index]; |
|
|
let e = oriList[index]; |
|
|
image = e.pictureFilename.indexOf('http') > -1 |
|
|
image = e.pictureFilename.indexOf('http') > -1 |
|
|
? e.pictureFilename |
|
|
? e.pictureFilename |
|
|
: this.apiUrl + e.pictureFilename; |
|
|
|
|
|
|
|
|
: this.sysConfig.apiUrl + e.pictureFilename; |
|
|
srcList.push(image) |
|
|
srcList.push(image) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|