Browse Source

pict seo

master
pengjun 2 years ago
parent
commit
2ade17d0d1
  1. 2
      src/components/doctorCheck/CheckItemList.vue
  2. 35
      src/components/doctorCheck/CheckPicture.vue

2
src/components/doctorCheck/CheckItemList.vue

@ -249,8 +249,6 @@ export default {
})
},
//
rowClick(row) {
this.doctorCheck.checkItem = row;

35
src/components/doctorCheck/CheckPicture.vue

@ -62,11 +62,7 @@
? item.pictureFilename
: apiUrl + item.pictureFilename
"
:preview-src-list="[
item.pictureFilename.indexOf('http') > -1
? item.pictureFilename
: apiUrl + item.pictureFilename,
]"
:preview-src-list="previewSrcList(checkPictures,item)"
>
</el-image>
</div>
@ -112,7 +108,7 @@
import moment from "moment";
import { mapState } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { getPagePriv,checkPagePriv, deepCopy } from "../../utlis/proFunc";
import { getPagePriv,checkPagePriv, deepCopy, arrayExistObj } from "../../utlis/proFunc";
import CheckPictureUpload from "./CheckPictureUpload.vue";
import server from "../../utlis/mm";
@ -210,6 +206,33 @@ export default {
});
},
//
previewSrcList(oriList,curImag){
let srcList = []
let image = curImag.pictureFilename.indexOf('http') > -1
? curImag.pictureFilename
: this.apiUrl + curImag.pictureFilename;
srcList.push(image)
let lfind = arrayExistObj(oriList,'id',curImag.id)
if(lfind > -1){
for (let i = lfind + 1; i < oriList.length; i++) {
let e = oriList[i];
image = e.pictureFilename.indexOf('http') > -1
? e.pictureFilename
: this.apiUrl + e.pictureFilename;
srcList.push(image)
}
for (let index = 0; index < lfind; index++) {
let e = oriList[index];
image = e.pictureFilename.indexOf('http') > -1
? e.pictureFilename
: this.apiUrl + e.pictureFilename;
srcList.push(image)
}
}
return srcList
},
btnGetPic() {
if (!this.doctorCheck.RegisterCheckId) {
this.$message.warning("未选中组合项目!");

Loading…
Cancel
Save