Browse Source

媒体缩略图滚动

李富豪 1 year ago
parent
commit
b4a4e6b123
1 changed files with 20 additions and 2 deletions
  1. 20 2
      Web/src/pages/page-web/projects/media/detail/components/FileInfo.vue

+ 20 - 2
Web/src/pages/page-web/projects/media/detail/components/FileInfo.vue

@@ -168,12 +168,10 @@ const props = withDefaults(defineProps<Props>(), {
 
 const state = reactive({
   currentId: props.fileId,
-  move: 0,// 移动
   downloadLoading: false,
   imgLoading: false,// 图片加载
   info: {
     url: '',
-    thumbnail_url: '',// 缩略图
     media_type: 0,
     file_id: '',
     element_id: '',
@@ -300,6 +298,26 @@ const onClickScroll = (type: 'LEFT' | 'RIGHT') => {
 // 点击选中
 const onClickSelected = async (id: string) => {
   state.currentId = id;
+  state.downloadLoading = false;
+  state.imgLoading = false;
+  state.info = {
+    url: '',
+    media_type: 0,
+    file_id: '',
+    element_id: '',
+    file_name: '',
+    picture_type: '',
+    task_name: '',
+    wayline_name: '',
+    image_width: '',// 照片分辨率-宽度
+    image_height: '',// 照片分辨率-高度
+    size: 0,
+    payload: '',
+    picture_time: '',
+    longitude: '',// 经度
+    latitude: '',// 纬度
+  }
+  await init()
 }
 </script>