|
|
@@ -31,7 +31,9 @@
|
|
|
</template>
|
|
|
<div
|
|
|
style="display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; position: relative; cursor: pointer; overflow: hidden;">
|
|
|
- <a-image v-if="isImageFile(item)" :preview="false" :src="item.cover" :style="{
|
|
|
+ <a-image v-if="isImageFile(item)" :preview="{
|
|
|
+ src: item.url,
|
|
|
+ }" :src="item.cover" :style="{
|
|
|
width: '100%',
|
|
|
height: '100%',
|
|
|
objectFit: 'cover',
|
|
|
@@ -353,8 +355,6 @@ function beforeUpload(file) {
|
|
|
method: "uploadSuccess",
|
|
|
content: {
|
|
|
serialfilename,
|
|
|
- ownerid: props.ownerid,
|
|
|
- ownertable: props.ownertable,
|
|
|
usetype: "file",
|
|
|
},
|
|
|
}).then((feedback) => {
|
|
|
@@ -362,7 +362,6 @@ function beforeUpload(file) {
|
|
|
if (feedback.code != 1)
|
|
|
return (list.value[file.sequence].exception = "exception");
|
|
|
const attachmentid = feedback.data.attachmentids[0];
|
|
|
- return
|
|
|
Api.requested({
|
|
|
id: 20240407135802,
|
|
|
content: {
|
|
|
@@ -375,35 +374,6 @@ function beforeUpload(file) {
|
|
|
console.log("绑定", binding);
|
|
|
if (binding.code != 1)
|
|
|
return (list.value[file.sequence].exception = "exception");
|
|
|
-
|
|
|
-
|
|
|
- // Api.requested({
|
|
|
- // id: "20240407140002",
|
|
|
- // content: {
|
|
|
- // ownerid: props.ownerid,
|
|
|
- // ownertable: props.ownertable,
|
|
|
- // pageNumber: 1,
|
|
|
- // pageSize: 100,
|
|
|
- // where: {
|
|
|
- // // condition: serialfilename,
|
|
|
- // },
|
|
|
- // },
|
|
|
- // })
|
|
|
- // .then((getList) => {
|
|
|
- // if (getList.code != 1)
|
|
|
- // return (list.value[file.sequence].exception = "exception");
|
|
|
- // list.value[file.sequence] = getList.data
|
|
|
- // .filter((v) => v.attachmentid == attachmentid)
|
|
|
- // .map((v) => {
|
|
|
- // if (v.attinfos && v.attinfos.length) {
|
|
|
- // v = Object.assign(v, v.attinfos[0]);
|
|
|
- // delete v.attinfos;
|
|
|
- // }
|
|
|
- // const subfile = v.subfiles && v.subfiles.length ? v.subfiles.find((s) => s.type == props.coverType) : null;
|
|
|
- // v.cover = props.coverType && subfile ? subfile.url : v.url;
|
|
|
- // return v;
|
|
|
- // })[0];
|
|
|
- // });
|
|
|
});
|
|
|
});
|
|
|
});
|