| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388 |
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="/apps/space/css/space.editor.css?v=20260703-article-image-fit">
- <style>
- html,
- body {
- height: 100%;
- width: 100%;
- overflow: hidden;
- }
- #space-content-div {
- box-sizing: border-box;
- width: 100%;
- height: 100%;
- margin-top: 0px !important;
- margin-left: 0 !important;
- padding-top: 10px;
- /*padding-left: 20px;*/
- }
- .el-row,
- .el-col {
- height: 100%;
- }
- /*文章查看页面
- *左边 */
- .article-info {
- height: 100%;
- overflow: hidden;
- }
- .article-info-title {
- text-align: center;
- border-bottom: 1px dashed #dddee0;
- margin: 0 20px;
- }
- .article-info-title h2 {
- font-weight: bold;
- line-height: 34px;
- font-size: 26px;
- margin-bottom: 12px;
- }
- .article-info-title p {
- color: #989898;
- font-size: 12px;
- line-height: 34px;
- height: 34px;
- }
- .article-info-title p span {
- margin-right: 16px;
- }
- .article-info-content {
- height: calc(100% - 90px);
- padding: 10px 22px 0 30px;
- margin-bottom: 10px;
- overflow-y: auto;
- }
- .article-info-content p {
- font-size: 16px;
- line-height: 30px;
- text-indent: 2em;
- }
- /*右边*/
- .article-info-attribute {
- height: calc(100% - 10px);
- border-left: 1px solid #dddee0;
- overflow-y: auto;
- }
- .article-info-attribute h2 {
- font-size: 18px;
- font-weight: bold;
- margin-left: 24px;
- line-height: 54px;
- }
- .article-info-attribute li {
- line-height: 36px;
- overflow: hidden;
- }
- .article-info-attribute li .el-button {
- padding-top: 10px;
- padding-bottom: 10px;
- }
- .article-tag-wrap {
- margin-bottom: 10px;
- }
- .article-label {
- float: left;
- margin-left: 24px;
- margin-right: 12px;
- color: #7d7d7d;
- min-width: 56px;
- text-align: left;
- }
- .article-tag {
- margin-left: 66px;
- }
- .article-tag .el-tag {
- margin-right: 10px;
- }
- .article-info-attribute img {
- width: calc(80% - 24px);
- margin-left: 24px;
- margin-bottom: 10px;
- }
- .el-popover img {
- width: 100%;
- }
- .article-tag-line {
- float: left;
- }
- .article-tag-line span {
- float: left;
- }
- .article-tag-line .interval {
- height: 14px;
- margin-top: 11px;
- }
- .article-tag .article-tag-line:last-child .interval {
- width: 0;
- }
- .interval {
- float: left;
- width: 1px;
- height: 14px;
- border-radius: 50%;
- background-color: #e0e0e0;
- margin-top: 11px;
- margin-left: 8px;
- margin-right: 8px;
- }
- /* 缩略图遮罩 */
- .fmtp-cover {
- position: absolute;
- top: 0;
- left: 0;
- background: rgba(0, 0, 0, .6) url(/apps/space/images/page/enlarge.png) no-repeat center;
- opacity: 0;
- width: calc(80% - 24px);
- height: calc(100% - 10px);
- margin-left: 24px;
- border-radius: 6px;
- color: #fff;
- text-align: center;
- line-height: 100%;
- cursor: pointer;
- transition: all .2s;
- }
- .fmtp-cover i {
- font-size: 22px;
- vertical-align: middle;
- }
- .fmtp-cover:hover {
- opacity: 1;
- }
- .article-desc {
- box-sizing: border-box;
- display: block;
- border: 1px solid #f7f7fc;
- border-radius: 3px;
- padding: 10px 10px;
- background-color: #f7f7fc;
- color: #999aaa;
- margin: 12px 0px 0px 0px;
- }
-
- </style>
- </head>
- <body>
- <div id="space-content">
- <el-row>
- <el-col :span="18">
- <div class="article-info">
- <div class="article-info-title">
- <h2>${article.title}</h2>
- <p>
- <span>
- 来源:<span>${article.source}</span>
- </span>
- <c:if test="${not empty article.releaseTime}">
- <span>
- 发布时间:<span><app:dateTime type="format" value="${article.releaseTime}" /></span>
- </span>
- </c:if>
- <span>
- 最后编辑时间:<span><app:dateTime type="format" value="${article.lastChangeTime }" /></span>
- </span>
- </p>
- </div>
- <div class="article-info-content niceScroll">
- <c:if test="${not empty article.desc}">
- <span class="article-desc">摘要:${article.desc}</span>
- </c:if>
- ${body}
- </div>
- </div>
- </el-col>
- <el-col :span="6">
- <div class="article-info-attribute niceScroll">
- <ul>
- <li>
- <span class="article-label">栏目</span>
- <span>
- ${navAllName}
- </span>
- </li>
- <li v-show="copyNavigation.length>0?true:false">
- <span class="article-label">抄送</span>
- <div class="article-tag">
- <div :key="tag" v-for="tag in copyNavigation" class="article-tag-line">
-
- <c:if test="${article.dcode != 61}">
- <span>
- {{tag.name}}
- </span>
- </c:if>
- <c:if test="${article.dcode == 61}">
- <span v-if="tag.dcode == 21 || tag.dcode == 31 || tag.dcode == 41 || tag.dcode == 51">
- {{tag.name}}(审核中)
- </span>
- <span v-else-if="tag.dcode == 11">
- {{tag.name}}<span style="color: #f42331;float: right;" >(拒绝)</span>
- </span>
- <span v-else>
- {{tag.name}}
- </span>
- </c:if>
- <div class="interval"></div>
- </div>
- </div>
- </li>
- <li>
- <span class="article-label">状态</span>
- <span>
- <app:codeBookTranslate name="sys.dcode" filter="{'dcode':'${article.dcode }'}" />
- </span>
- </li>
- <li>
- <span class="article-label">置顶</span>
- <span>
- {{ ${article.sticktop} === 1 ? "是":"否" }}
- </span>
- </li>
- <li v-show="${article.sticktop} === 1 ? true:false">
- <span class="article-label">置顶周期</span>
- <span class="r_date">
- ${article.sticktopEndTime}
- </span>
- </li>
- <li>
- <span class="article-label">缩略图</span>
- <br v-show="'${article.thumbnail}'?true:false" />
- <div class="" style="position: relative;" v-show="'${article.thumbnail}'?true:false">
- <el-popover placement="left" width="800" trigger="click" v-model="popFmt">
- <!-- 遮罩 -->
- <div class="fmtp-cover" slot="reference" @mouseout="popFmt=false;">
- <!--<i class="el-icon-zoom-in"></i> 点击查看大图-->
- </div>
- <img src="${article.thumbnail}" style="border-radius: 4px;" slot="reference" />
- <img src="${article.thumbnail}" style="border-radius: 4px;" />
- </el-popover>
- </div>
- <span v-show="!'${article.thumbnail}'?true:false">
- 未上传
- </span>
- </li>
- <li>
- <span class="article-label">创建人</span>
- <span>
- <app:codeBookTranslate name="personnel.person"
- filter="{'personid':'${article.createPid }'}" />
- </span>
- </li>
- <li>
- <span class="article-label">创建时间</span>
- <span class="r_date">
- ${article.createTime }
- </span>
- </li>
- <li>
- <span class="article-label">最后编辑</span>
- <span>
- <app:codeBookTranslate name="personnel.person" filter="{'personid':'${article.lastChangePid}'}" />
- </span>
- </li>
- <li>
- <span class="article-label">编辑时间</span>
- <span class="r_date">
- ${article.lastChangeTime }
- </span>
- </li>
- <li>
- <span class="article-label">定时发布</span>
- <span>
- <span>
- {{ ${article.release} === 1 ? "是":"否" }}
- </span>
- <span v-show="'${article.release}' === '1'">
- /
- <span class="r_date" >${article.releaseTime}</span>
- </span>
- </span>
- </li>
- <li>
- <span class="article-label">阅读次数</span>
- <span>
- ${article.readCount }次
- </span>
- </li>
- <li>
- <span class="article-label">动作</span>
- <span>
- ${ajtCode.name}
- </span>
- </li>
-
- <c:if test="${isShowpreview == true}">
- <li>
- <span class="article-label">预览</span>
- <span>
- <i class="el-icon-link"></i>
- <a href="${article.url }" target="_blank" v-if="'${ajtCode.ajtcode}' == 10000" rel="noreferrer" style="text-decoration: underline;">点击预览</a>
- <a href="${article.url }" target="_blank" v-if="'${ajtCode.ajtcode}' == 10020" rel="noreferrer" style="text-decoration: underline;">点击链接</a>
- </span>
- </li>
- </c:if>
-
- </ul>
- </div>
- </el-col>
- </el-row>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- disable: space.utils.parseBoolean("${article.dcode == '61' }"),
- copyNavigation: JSON.parse('${copyNav}'),
- popFmt: false //查看缩略图大图
- }
- },
- mounted: function () {
-
- if ($('img').lazyload != undefined) {
- $('img').lazyload({ effect: 'fadeIn', container: $('#jquery-lazyload-container').parent() });
- }
-
- }
- })
- space.utils.formatDateByEls('yyyy-MM-dd hh:mm', $("span.r_date"));
- </script>
- </html>
|