| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <html>
- <head>
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <title>提示</title>
- <style type="text/css">
- .cannotPreview-file {
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 500px;
- }
- .cannotPreview-file dt {
- float: left;
- margin-right: 40px;
- height: 230px;
- }
- .cannotPreview-file dt .el-image {
- width: 128px;
- height: 128px;
- }
- .cannotPreview-file dd {
- color: #666;
- line-height: 30px;
- }
- .cannotPreview-file .file-title {
- font-size: 18px;
- font-weight: bold;
- color: #333;
- }
- .cannotPreview-file .file-txt {
- padding-top: 25px;
- }
- </style>
- </head>
- <body>
- <div id="space-content">
- <div class="space-wrap">
- <dl class="cannotPreview-file">
- <dt>
- <el-image src="${cmsFileInfo.thumbnail}"></el-image>
- </dt>
- <dd class="file-title">
- ${cmsFileInfo.file_name}
- </dd>
- <dd>
- ${cmsFileInfo.file_size_unit}
- </dd>
- <dd v-if="${cmsFileInfo.fileExist == 'true'}">
- <i class="el-icon-warning-outline"></i>
- 此文件暂不可在线预览,请下载到本地后查看
- </dd>
- <dd style="color: red" v-else>
- <i class="el-icon-warning-outline"></i>
- 此文件不存在或已被删除,无法下载和预览
- </dd>
- <dd class="file-txt">
- <el-button icon="el-icon-download" :disabled="${cmsFileInfo.fileExist == 'false'}" type="primary"
- @click='downloadCMSFile'>下载</el-button>
- </dd>
- </dl>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- }
- },
- methods: {
- /**
- * 下载文件
- */
- downloadCMSFile: function () {
- window.open('@service{ name: "downloadCMSData", params: `{ cmsid: "${cmsFileInfo.cmsid}", "cmsfileid": "${cmsFileInfo.cmsfileid}" }` }@');
- }
- }
- })
- </script>
- </html>
|