1002310334_edit.jsp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <html>
  2. <head>
  3. <meta name="viewport"
  4. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  5. <title>提示</title>
  6. <style type="text/css">
  7. .cannotPreview-file {
  8. position: fixed;
  9. top: 50%;
  10. left: 50%;
  11. transform: translate(-50%, -50%);
  12. width: 500px;
  13. }
  14. .cannotPreview-file dt {
  15. float: left;
  16. margin-right: 40px;
  17. height: 230px;
  18. }
  19. .cannotPreview-file dt .el-image {
  20. width: 128px;
  21. height: 128px;
  22. }
  23. .cannotPreview-file dd {
  24. color: #666;
  25. line-height: 30px;
  26. }
  27. .cannotPreview-file .file-title {
  28. font-size: 18px;
  29. font-weight: bold;
  30. color: #333;
  31. }
  32. .cannotPreview-file .file-txt {
  33. padding-top: 25px;
  34. }
  35. </style>
  36. </head>
  37. <body>
  38. <div id="space-content">
  39. <div class="space-wrap">
  40. <dl class="cannotPreview-file">
  41. <dt>
  42. <el-image src="${cmsFileInfo.thumbnail}"></el-image>
  43. </dt>
  44. <dd class="file-title">
  45. ${cmsFileInfo.file_name}
  46. </dd>
  47. <dd>
  48. ${cmsFileInfo.file_size_unit}
  49. </dd>
  50. <dd v-if="${cmsFileInfo.fileExist == 'true'}">
  51. <i class="el-icon-warning-outline"></i>
  52. 此文件暂不可在线预览,请下载到本地后查看
  53. </dd>
  54. <dd style="color: red" v-else>
  55. <i class="el-icon-warning-outline"></i>
  56. 此文件不存在或已被删除,无法下载和预览
  57. </dd>
  58. <dd class="file-txt">
  59. <el-button icon="el-icon-download" :disabled="${cmsFileInfo.fileExist == 'false'}" type="primary"
  60. @click='downloadCMSFile'>下载</el-button>
  61. </dd>
  62. </dl>
  63. </div>
  64. </div>
  65. </body>
  66. <script type="text/javascript">
  67. space.vue = new Vue({
  68. el: space.appContent,
  69. data() {
  70. return {
  71. }
  72. },
  73. methods: {
  74. /**
  75. * 下载文件
  76. */
  77. downloadCMSFile: function () {
  78. window.open('@service{ name: "downloadCMSData", params: `{ cmsid: "${cmsFileInfo.cmsid}", "cmsfileid": "${cmsFileInfo.cmsfileid}" }` }@');
  79. }
  80. }
  81. })
  82. </script>
  83. </html>