
--- client/views/pages/admin/technology/TechSelectOne.vue
+++ client/views/pages/admin/technology/TechSelectOne.vue
... | ... | @@ -330,6 +330,17 @@ |
330 | 330 |
vm.post = response.data.techPostSelectOne.post; |
331 | 331 |
vm.nextPost = response.data.techPostSelectOne.nextPost; |
332 | 332 |
vm.fileList = response.data.selectFileList; |
333 |
+ vm.thumbnailFileList = [] |
|
334 |
+ vm.attachFileList = [] |
|
335 |
+ for (let i = 0; i < vm.fileList.length; i++) { |
|
336 |
+ if (vm.fileList[i].file_ty === 'thumbnail') { |
|
337 |
+ vm.thumbnailFileList.push(vm.fileList[i]); |
|
338 |
+ } else { |
|
339 |
+ vm.attachFileList.push(vm.fileList[i]); |
|
340 |
+ } |
|
341 |
+ } |
|
342 |
+ vm.src = 'http://localhost:8080' + vm.thumbnailFileList[0].file_path.replace('C:', '') + '/' + vm.thumbnailFileList[0].file_nm + '.' + vm.thumbnailFileList[0].file_extn_nm |
|
343 |
+ |
|
333 | 344 |
|
334 | 345 |
vm.getViewer(vm.post.post_content) |
335 | 346 |
}).catch(function (error) { |
--- client/views/pages/user/Data/TechnologyOne.vue
+++ client/views/pages/user/Data/TechnologyOne.vue
... | ... | @@ -288,6 +288,17 @@ |
288 | 288 |
vm.post = response.data.techPostSelectOne.post; |
289 | 289 |
vm.nextPost = response.data.techPostSelectOne.nextPost; |
290 | 290 |
vm.fileList = response.data.selectFileList; |
291 |
+ vm.thumbnailFileList = [] |
|
292 |
+ vm.attachFileList = [] |
|
293 |
+ for (let i = 0; i < vm.fileList.length; i++) { |
|
294 |
+ if (vm.fileList[i].file_ty === 'thumbnail') { |
|
295 |
+ vm.thumbnailFileList.push(vm.fileList[i]); |
|
296 |
+ } else { |
|
297 |
+ vm.attachFileList.push(vm.fileList[i]); |
|
298 |
+ } |
|
299 |
+ } |
|
300 |
+ vm.src = 'http://localhost:8080' + vm.thumbnailFileList[0].file_path.replace('C:', '') + '/' + vm.thumbnailFileList[0].file_nm + '.' + vm.thumbnailFileList[0].file_extn_nm |
|
301 |
+ |
|
291 | 302 |
vm.getViewer(vm.post.post_content) |
292 | 303 |
}).catch(function (error) { |
293 | 304 |
console.log("error - ", error) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?