1002110156_edit.jsp 9.1 KB

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