1002110156_edit.jsp 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. <html>
  2. <head>
  3. <link rel="stylesheet" type="text/css" href="/apps/space/css/space.editor.css?v=20260703-article-image-fit">
  4. <style>
  5. html,
  6. body {
  7. height: 100%;
  8. width: 100%;
  9. overflow: hidden;
  10. }
  11. #space-content-div {
  12. box-sizing: border-box;
  13. width: 100%;
  14. height: 100%;
  15. margin-top: 0px !important;
  16. margin-left: 0 !important;
  17. padding-top: 10px;
  18. /*padding-left: 20px;*/
  19. }
  20. .el-row,
  21. .el-col {
  22. height: 100%;
  23. }
  24. /*文章查看页面
  25. *左边 */
  26. .article-info {
  27. height: 100%;
  28. overflow: hidden;
  29. }
  30. .article-info-title {
  31. text-align: center;
  32. border-bottom: 1px dashed #dddee0;
  33. margin: 0 20px;
  34. }
  35. .article-info-title h2 {
  36. font-weight: bold;
  37. line-height: 34px;
  38. font-size: 26px;
  39. margin-bottom: 12px;
  40. }
  41. .article-info-title p {
  42. color: #989898;
  43. font-size: 12px;
  44. line-height: 34px;
  45. height: 34px;
  46. }
  47. .article-info-title p span {
  48. margin-right: 16px;
  49. }
  50. .article-info-content {
  51. height: calc(100% - 90px);
  52. padding: 10px 22px 0 30px;
  53. margin-bottom: 10px;
  54. overflow-y: auto;
  55. }
  56. .article-info-content p {
  57. font-size: 16px;
  58. line-height: 30px;
  59. text-indent: 2em;
  60. }
  61. /*右边*/
  62. .article-info-attribute {
  63. height: calc(100% - 10px);
  64. border-left: 1px solid #dddee0;
  65. overflow-y: auto;
  66. }
  67. .article-info-attribute h2 {
  68. font-size: 18px;
  69. font-weight: bold;
  70. margin-left: 24px;
  71. line-height: 54px;
  72. }
  73. .article-info-attribute li {
  74. line-height: 36px;
  75. overflow: hidden;
  76. }
  77. .article-info-attribute li .el-button {
  78. padding-top: 10px;
  79. padding-bottom: 10px;
  80. }
  81. .article-tag-wrap {
  82. margin-bottom: 10px;
  83. }
  84. .article-label {
  85. float: left;
  86. margin-left: 24px;
  87. margin-right: 12px;
  88. color: #7d7d7d;
  89. min-width: 56px;
  90. text-align: left;
  91. }
  92. .article-tag {
  93. margin-left: 66px;
  94. }
  95. .article-tag .el-tag {
  96. margin-right: 10px;
  97. }
  98. .article-info-attribute img {
  99. width: calc(80% - 24px);
  100. margin-left: 24px;
  101. margin-bottom: 10px;
  102. }
  103. .el-popover img {
  104. width: 100%;
  105. }
  106. .article-tag-line {
  107. float: left;
  108. }
  109. .article-tag-line span {
  110. float: left;
  111. }
  112. .article-tag-line .interval {
  113. height: 14px;
  114. margin-top: 11px;
  115. }
  116. .article-tag .article-tag-line:last-child .interval {
  117. width: 0;
  118. }
  119. .interval {
  120. float: left;
  121. width: 1px;
  122. height: 14px;
  123. border-radius: 50%;
  124. background-color: #e0e0e0;
  125. margin-top: 11px;
  126. margin-left: 8px;
  127. margin-right: 8px;
  128. }
  129. /* 缩略图遮罩 */
  130. .fmtp-cover {
  131. position: absolute;
  132. top: 0;
  133. left: 0;
  134. background: rgba(0, 0, 0, .6) url(/apps/space/images/page/enlarge.png) no-repeat center;
  135. opacity: 0;
  136. width: calc(80% - 24px);
  137. height: calc(100% - 10px);
  138. margin-left: 24px;
  139. border-radius: 6px;
  140. color: #fff;
  141. text-align: center;
  142. line-height: 100%;
  143. cursor: pointer;
  144. transition: all .2s;
  145. }
  146. .fmtp-cover i {
  147. font-size: 22px;
  148. vertical-align: middle;
  149. }
  150. .fmtp-cover:hover {
  151. opacity: 1;
  152. }
  153. .article-desc {
  154. box-sizing: border-box;
  155. display: block;
  156. border: 1px solid #f7f7fc;
  157. border-radius: 3px;
  158. padding: 10px 10px;
  159. background-color: #f7f7fc;
  160. color: #999aaa;
  161. margin: 12px 0px 0px 0px;
  162. }
  163. </style>
  164. </head>
  165. <body>
  166. <div id="space-content">
  167. <el-row>
  168. <el-col :span="18">
  169. <div class="article-info">
  170. <div class="article-info-title">
  171. <h2>${article.title}</h2>
  172. <p>
  173. <span>
  174. 来源:<span>${article.source}</span>
  175. </span>
  176. <c:if test="${not empty article.releaseTime}">
  177. <span>
  178. &nbsp;&nbsp;发布时间:<span><app:dateTime type="format" value="${article.releaseTime}" /></span>
  179. </span>
  180. </c:if>
  181. <span>
  182. &nbsp;&nbsp;最后编辑时间:<span><app:dateTime type="format" value="${article.lastChangeTime }" /></span>
  183. </span>
  184. </p>
  185. </div>
  186. <div class="article-info-content niceScroll">
  187. <c:if test="${not empty article.desc}">
  188. <span class="article-desc">摘要:${article.desc}</span>
  189. </c:if>
  190. ${body}
  191. </div>
  192. </div>
  193. </el-col>
  194. <el-col :span="6">
  195. <div class="article-info-attribute niceScroll">
  196. <ul>
  197. <li>
  198. <span class="article-label">栏目</span>
  199. <span>
  200. ${navAllName}
  201. </span>
  202. </li>
  203. <li v-show="copyNavigation.length>0?true:false">
  204. <span class="article-label">抄送</span>
  205. <div class="article-tag">
  206. <div :key="tag" v-for="tag in copyNavigation" class="article-tag-line">
  207. <c:if test="${article.dcode != 61}">
  208. <span>
  209. {{tag.name}}
  210. </span>
  211. </c:if>
  212. <c:if test="${article.dcode == 61}">
  213. <span v-if="tag.dcode == 21 || tag.dcode == 31 || tag.dcode == 41 || tag.dcode == 51">
  214. {{tag.name}}(审核中)
  215. </span>
  216. <span v-else-if="tag.dcode == 11">
  217. {{tag.name}}<span style="color: #f42331;float: right;" >(拒绝)</span>
  218. </span>
  219. <span v-else>
  220. {{tag.name}}
  221. </span>
  222. </c:if>
  223. <div class="interval"></div>
  224. </div>
  225. </div>
  226. </li>
  227. <li>
  228. <span class="article-label">状态</span>
  229. <span>
  230. <app:codeBookTranslate name="sys.dcode" filter="{'dcode':'${article.dcode }'}" />
  231. </span>
  232. </li>
  233. <li>
  234. <span class="article-label">置顶</span>
  235. <span>
  236. {{ ${article.sticktop} === 1 ? "是":"否" }}
  237. </span>
  238. </li>
  239. <li v-show="${article.sticktop} === 1 ? true:false">
  240. <span class="article-label">置顶周期</span>
  241. <span class="r_date">
  242. ${article.sticktopEndTime}
  243. </span>
  244. </li>
  245. <li>
  246. <span class="article-label">缩略图</span>
  247. <br v-show="'${article.thumbnail}'?true:false" />
  248. <div class="" style="position: relative;" v-show="'${article.thumbnail}'?true:false">
  249. <el-popover placement="left" width="800" trigger="click" v-model="popFmt">
  250. <!-- 遮罩 -->
  251. <div class="fmtp-cover" slot="reference" @mouseout="popFmt=false;">
  252. <!--<i class="el-icon-zoom-in"></i> 点击查看大图-->
  253. </div>
  254. <img src="${article.thumbnail}" style="border-radius: 4px;" slot="reference" />
  255. <img src="${article.thumbnail}" style="border-radius: 4px;" />
  256. </el-popover>
  257. </div>
  258. <span v-show="!'${article.thumbnail}'?true:false">
  259. 未上传
  260. </span>
  261. </li>
  262. <li>
  263. <span class="article-label">创建人</span>
  264. <span>
  265. <app:codeBookTranslate name="personnel.person"
  266. filter="{'personid':'${article.createPid }'}" />
  267. </span>
  268. </li>
  269. <li>
  270. <span class="article-label">创建时间</span>
  271. <span class="r_date">
  272. ${article.createTime }
  273. </span>
  274. </li>
  275. <li>
  276. <span class="article-label">最后编辑</span>
  277. <span>
  278. <app:codeBookTranslate name="personnel.person" filter="{'personid':'${article.lastChangePid}'}" />
  279. </span>
  280. </li>
  281. <li>
  282. <span class="article-label">编辑时间</span>
  283. <span class="r_date">
  284. ${article.lastChangeTime }
  285. </span>
  286. </li>
  287. <li>
  288. <span class="article-label">定时发布</span>
  289. <span>
  290. <span>
  291. {{ ${article.release} === 1 ? "是":"否" }}
  292. </span>
  293. <span v-show="'${article.release}' === '1'">
  294. /
  295. <span class="r_date" >${article.releaseTime}</span>
  296. </span>
  297. </span>
  298. </li>
  299. <li>
  300. <span class="article-label">阅读次数</span>
  301. <span>
  302. ${article.readCount }次
  303. </span>
  304. </li>
  305. <li>
  306. <span class="article-label">动作</span>
  307. <span>
  308. ${ajtCode.name}
  309. </span>
  310. </li>
  311. <c:if test="${isShowpreview == true}">
  312. <li>
  313. <span class="article-label">预览</span>
  314. <span>
  315. <i class="el-icon-link"></i>
  316. <a href="${article.url }" target="_blank" v-if="'${ajtCode.ajtcode}' == 10000" rel="noreferrer" style="text-decoration: underline;">点击预览</a>
  317. <a href="${article.url }" target="_blank" v-if="'${ajtCode.ajtcode}' == 10020" rel="noreferrer" style="text-decoration: underline;">点击链接</a>
  318. </span>
  319. </li>
  320. </c:if>
  321. </ul>
  322. </div>
  323. </el-col>
  324. </el-row>
  325. </div>
  326. </body>
  327. <script type="text/javascript">
  328. space.vue = new Vue({
  329. el: space.appContent,
  330. data() {
  331. return {
  332. disable: space.utils.parseBoolean("${article.dcode == '61' }"),
  333. copyNavigation: JSON.parse('${copyNav}'),
  334. popFmt: false //查看缩略图大图
  335. }
  336. },
  337. mounted: function () {
  338. if ($('img').lazyload != undefined) {
  339. $('img').lazyload({ effect: 'fadeIn', container: $('#jquery-lazyload-container').parent() });
  340. }
  341. }
  342. })
  343. space.utils.formatDateByEls('yyyy-MM-dd hh:mm', $("span.r_date"));
  344. </script>
  345. </html>