|  | @@ -52,18 +52,19 @@
 | 
	
		
			
				|  |  |              v-for="(item, index) in list"
 | 
	
		
			
				|  |  |              :key="index"
 | 
	
		
			
				|  |  |              class="sources-item"
 | 
	
		
			
				|  |  | -            :class="[select_sources_id === item.id ? 'active' : '', type_index === 5 ? 'sources-item-txt' : '']"
 | 
	
		
			
				|  |  | +            :class="[select_sources_id === item.id ? 'active' : '']"
 | 
	
		
			
				|  |  |              @click="selectSourceNode(item)"
 | 
	
		
			
				|  |  |            >
 | 
	
		
			
				|  |  |              <template v-if="type_index === 0"> <el-image :src="item.file_url" fit="contain" /></template>
 | 
	
		
			
				|  |  |              <template v-else-if="type_index === 1">
 | 
	
		
			
				|  |  | -              <AudioLine
 | 
	
		
			
				|  |  | +              <!-- <AudioLine
 | 
	
		
			
				|  |  |                  ref="audioLine"
 | 
	
		
			
				|  |  |                  :audio-id="'resource-audio-' + index"
 | 
	
		
			
				|  |  |                  :mp3="item.file_url"
 | 
	
		
			
				|  |  |                  :get-cur-time="getCurTime"
 | 
	
		
			
				|  |  |                  :width="200"
 | 
	
		
			
				|  |  | -              />
 | 
	
		
			
				|  |  | +              /> -->
 | 
	
		
			
				|  |  | +              <!-- {{ item.media_duration }} -->
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |              <template v-else-if="type_index === 2">
 | 
	
		
			
				|  |  |                <video
 | 
	
	
		
			
				|  | @@ -86,13 +87,13 @@
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |              <template v-else-if="type_index === 4"> </template>
 | 
	
		
			
				|  |  |              <template v-else-if="type_index === 5">
 | 
	
		
			
				|  |  | -              <iframe
 | 
	
		
			
				|  |  | +              <!-- <iframe
 | 
	
		
			
				|  |  |                  class="sources-item-border"
 | 
	
		
			
				|  |  |                  :src="item.new_path"
 | 
	
		
			
				|  |  |                  width="100%"
 | 
	
		
			
				|  |  |                  height="300px"
 | 
	
		
			
				|  |  |                  frameborder="0"
 | 
	
		
			
				|  |  | -              ></iframe>
 | 
	
		
			
				|  |  | +              ></iframe> -->
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              <el-popover placement="bottom" width="300" trigger="hover">
 | 
	
	
		
			
				|  | @@ -108,7 +109,9 @@
 | 
	
		
			
				|  |  |                    <p class="name">
 | 
	
		
			
				|  |  |                      {{ item.name }}
 | 
	
		
			
				|  |  |                      <SvgIcon
 | 
	
		
			
				|  |  | -                      v-show="item.file_id && (type_index === 3 || type_index === 2)"
 | 
	
		
			
				|  |  | +                      v-show="
 | 
	
		
			
				|  |  | +                        item.file_id && (type_index === 5 || type_index === 3 || type_index === 2 || type_index === 1)
 | 
	
		
			
				|  |  | +                      "
 | 
	
		
			
				|  |  |                        icon-class="uploadPreview"
 | 
	
		
			
				|  |  |                        size="16"
 | 
	
		
			
				|  |  |                        @click="viewDialog(item)"
 | 
	
	
		
			
				|  | @@ -231,7 +234,7 @@ import UploadFile from './components/UploadFile.vue';
 | 
	
		
			
				|  |  |  import AudioLine from './components/AudioLine.vue';
 | 
	
		
			
				|  |  |  const Base64 = require('js-base64').Base64;
 | 
	
		
			
				|  |  |  import { getConfig } from '@/utils/auth';
 | 
	
		
			
				|  |  | -import { H5StartupFile } from '@/api/app';
 | 
	
		
			
				|  |  | +import { H5StartupFile, GetFileURLMap } from '@/api/app';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: 'ProjectResourceManager',
 | 
	
	
		
			
				|  | @@ -303,7 +306,7 @@ export default {
 | 
	
		
			
				|  |  |        file_id_list: [],
 | 
	
		
			
				|  |  |        file_list: [],
 | 
	
		
			
				|  |  |        loading: false,
 | 
	
		
			
				|  |  | -      acceptFileTypeList: ['.jpg,.png,.jpeg', '.mp3', '.mp4', '.zip', '*', '.txt'],
 | 
	
		
			
				|  |  | +      acceptFileTypeList: ['.jpg,.png,.jpeg', '.mp3', '.mp4', '.zip', '.fbx,.obj,.gltf,.glb', '.txt'],
 | 
	
		
			
				|  |  |        limit: 10,
 | 
	
		
			
				|  |  |        uploadTip: '',
 | 
	
		
			
				|  |  |        boxLoading: false,
 | 
	
	
		
			
				|  | @@ -486,12 +489,12 @@ export default {
 | 
	
		
			
				|  |  |        PageQueryProjectResourceList(datas)
 | 
	
		
			
				|  |  |          .then(({ total_count, resource_list }) => {
 | 
	
		
			
				|  |  |            this.total = total_count;
 | 
	
		
			
				|  |  | -          if (this.type_index === 5) {
 | 
	
		
			
				|  |  | -            resource_list.forEach((item) => {
 | 
	
		
			
				|  |  | -              item.new_path = `${this.file_preview_url}onlinePreview?url=${Base64.encode(item.file_url)}`;
 | 
	
		
			
				|  |  | -            });
 | 
	
		
			
				|  |  | -            this.boxLoading = false;
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | +          // if (this.type_index === 5) {
 | 
	
		
			
				|  |  | +          //   resource_list.forEach((item) => {
 | 
	
		
			
				|  |  | +          //     item.new_path = `${this.file_preview_url}onlinePreview?url=${Base64.encode(item.file_url)}`;
 | 
	
		
			
				|  |  | +          //   });
 | 
	
		
			
				|  |  | +          //   this.boxLoading = false;
 | 
	
		
			
				|  |  | +          // }
 | 
	
		
			
				|  |  |            // else if (this.type_index === 3) {
 | 
	
		
			
				|  |  |            //   resource_list.forEach((item) => {
 | 
	
		
			
				|  |  |            //     H5StartupFile({ file_id: item.file_id, index_file_name: 'index.html' }).then((res) => {
 | 
	
	
		
			
				|  | @@ -500,9 +503,9 @@ export default {
 | 
	
		
			
				|  |  |            //     });
 | 
	
		
			
				|  |  |            //   });
 | 
	
		
			
				|  |  |            // }
 | 
	
		
			
				|  |  | -          else {
 | 
	
		
			
				|  |  | -            this.boxLoading = false;
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | +          // else {
 | 
	
		
			
				|  |  | +          this.boxLoading = false;
 | 
	
		
			
				|  |  | +          // }
 | 
	
		
			
				|  |  |            this.list = resource_list;
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          .catch(() => {
 | 
	
	
		
			
				|  | @@ -625,8 +628,10 @@ export default {
 | 
	
		
			
				|  |  |            this.visible = true;
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  | -        this.newpath = `${this.file_preview_url}onlinePreview?url=${Base64.encode(file.file_url)}`;
 | 
	
		
			
				|  |  | -        this.visible = true;
 | 
	
		
			
				|  |  | +        GetFileURLMap({ file_id_list: [file.file_id] }).then(({ url_map }) => {
 | 
	
		
			
				|  |  | +          this.newpath = `${this.file_preview_url}onlinePreview?url=${Base64.encode(url_map[file.file_id])}`;
 | 
	
		
			
				|  |  | +          this.visible = true;
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    },
 |