|
@@ -22,7 +22,7 @@
|
|
|
</div>
|
|
|
<div style="text-align: center" v-else>暂无数据</div>
|
|
|
</div>
|
|
|
- <details-dialog :title="'图片'" :iframeSrc="iframeSrc" :dialog="dialog" :setData="imagesArr"></details-dialog>
|
|
|
+ <details-dialog :title="'图片'" :iframeSrc="iframeSrc" :dialog="dialog" :setData="exhibitionImage.arr"></details-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -57,13 +57,6 @@
|
|
|
|
|
|
//上传
|
|
|
uploadAndSubmit(item, key) {
|
|
|
- // var form = document.forms["demoForm"];
|
|
|
-
|
|
|
- // if (form["file"].files.length > 0) {
|
|
|
- // 寻找表单域中的 <input type="file" ... /> 标签
|
|
|
- // var file = form["file"].files[0];
|
|
|
-
|
|
|
- console.log("lalala", item)
|
|
|
let file = item.file;
|
|
|
// try sending
|
|
|
let reader = new FileReader();
|
|
@@ -118,7 +111,7 @@
|
|
|
});
|
|
|
}
|
|
|
if (type == 'mp4') {
|
|
|
- vm.imagesArr.push({
|
|
|
+ vm.videoPicArr.push({
|
|
|
Name: uploadKey + '',
|
|
|
Key: uploadKey + "." + type,
|
|
|
SystemId: "dataPlatform",
|
|
@@ -127,15 +120,15 @@
|
|
|
});
|
|
|
vm.creatImg(vm.imageGetUrl + "&key=" + uploadKey + "." + type, uploadKey)
|
|
|
}
|
|
|
- if (vm.type == "video" && type == "png") {
|
|
|
- vm.videoPicArr.push({
|
|
|
- Name: uploadKey + '',
|
|
|
- Key: uploadKey + "." + type,
|
|
|
- SystemId: "dataPlatform",
|
|
|
- Type: "image_video",
|
|
|
- CreateTime
|
|
|
- })
|
|
|
- }
|
|
|
+ // if (vm.type == "video" && type == "png") {
|
|
|
+ // vm.videoPicArr.push({
|
|
|
+ // Name: uploadKey + '',
|
|
|
+ // Key: uploadKey + "." + type,
|
|
|
+ // SystemId: "dataPlatform",
|
|
|
+ // Type: "image_video",
|
|
|
+ // CreateTime
|
|
|
+ // })
|
|
|
+ // }
|
|
|
vm.$emit("change", vm.imagesArr, vm.defined, vm.videoPicArr);
|
|
|
}
|
|
|
}
|