1001710072_edit.jsp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <html>
  2. <head>
  3. <style>
  4. .wsicon img {
  5. padding: 0px;
  6. }
  7. .cropper-img {
  8. padding: 6px
  9. }
  10. </style>
  11. </head>
  12. <body>
  13. <div id="space-content">
  14. <div class="space-info-table">
  15. <table>
  16. <tr>
  17. <th>
  18. 名称
  19. </th>
  20. <td>
  21. ${website.name}
  22. </td>
  23. <th>
  24. 类别
  25. </th>
  26. <td>
  27. <app:codeBookTranslate name="wtcode" filter="{'wtcode':'${website.wtcode }'}" />
  28. </td>
  29. </tr>
  30. <tr>
  31. <th>
  32. 协议
  33. </th>
  34. <td>
  35. ${website.protocol}
  36. </td>
  37. <th>
  38. 端口
  39. </th>
  40. <td>
  41. ${website.port}
  42. </td>
  43. </tr>
  44. <tr>
  45. <th>
  46. 模板
  47. </th>
  48. <td>
  49. <span>
  50. <a :href="templatePreviewURL" target="_blank"
  51. style="text-decoration: underline;color: #409eff;">{{ templateName }}</a>
  52. </span>
  53. </td>
  54. <th>
  55. 上级
  56. </th>
  57. <td>
  58. <app:codeBookTranslate name="website" filter="{'websiteid':'${website.parentWid }'}" />
  59. </td>
  60. </tr>
  61. <tr>
  62. <th>
  63. 网站标题
  64. </th>
  65. <td>
  66. ${website.seoTitle}
  67. </td>
  68. <th>
  69. 网站关键字
  70. </th>
  71. <td>
  72. ${website.seoKeywords}
  73. </td>
  74. </tr>
  75. <tr>
  76. <th>
  77. 状态
  78. </th>
  79. <td>
  80. <app:codeBookTranslate name="sys.dcode" filter="{'dcode':'${website.dcode }'}" />
  81. </td>
  82. <th>
  83. 创建时间
  84. </th>
  85. <td>
  86. <app:dateTime type="format" key="yyyy-MM-dd" value="${website.createTime}" />
  87. </td>
  88. </tr>
  89. <tr>
  90. <th>
  91. 网站描述
  92. </th>
  93. <td colspan="3">
  94. ${website.seoDescription}
  95. </td>
  96. </tr>
  97. <tr>
  98. <th>
  99. 域名
  100. </th>
  101. <td>
  102. <el-link v-for="item in domainsAry" :href="item" target="_blank" style="margin-right: 10px;" type="primary">{{item}}/</el-link>
  103. </td>
  104. <th>图标</th>
  105. <td>
  106. <space-preview-img paths="${website.seoIcon}"></space-preview-img>
  107. </td>
  108. </tr>
  109. <tr>
  110. <th>
  111. 徽标
  112. </th>
  113. <td>
  114. <c:if test="${website.logo != ''}">
  115. <div class="cropper-img-content" style="max-width: 200px;">
  116. <space-preview-img paths="${website.logo}">
  117. </space-preview-img>
  118. </div>
  119. </c:if>
  120. </td>
  121. <th>
  122. 纯白徽标
  123. </th>
  124. <td>
  125. <c:if test="${website.whiteLogoFile != ''}">
  126. <div class="cropper-img-content" style="max-width: 200px;">
  127. <space-preview-img paths="${website.whiteLogoFile}" color="blue">
  128. </space-preview-img>
  129. </div>
  130. </c:if>
  131. </td>
  132. </tr>
  133. </table>
  134. </div>
  135. </div>
  136. </body>
  137. <script type="text/javascript">
  138. space.vue = new Vue({
  139. el: space.appContent,
  140. data() {
  141. return {
  142. templateName: '',
  143. templatePreviewURL: '',
  144. domainsAry: []
  145. }
  146. },
  147. created: function () {
  148. space.utils.formatDateByEls('yyyy-MM-dd hh:mm', $("span.c_date"));
  149. var _this = this;
  150. space.utils.ajax({
  151. url: '@service{ name:`websiteTemplate_info`, params: `{"wtid": "${website.wtid}"}` }@',
  152. dataType: 'json',
  153. callback: function (data) {
  154. _this.templateName = data.data.name;
  155. _this.templatePreviewURL = data.data.previewUrl;
  156. }
  157. })
  158. this.initDomainAry();
  159. },
  160. methods: {
  161. initDomainAry: function() {
  162. this.domainsAry = [];
  163. var protocol = '${website.protocol}://';
  164. var port = '${website.port}' == 80 ? '' : ':${website.port}';
  165. var domainList = '${website.domains}'.split(';');
  166. for (var i = 0;i < domainList.length;i++) {
  167. if (domainList[i]) {
  168. var url = protocol + domainList[i] + port;
  169. this.domainsAry.push(url);
  170. }
  171. }
  172. }
  173. }
  174. })
  175. </script>
  176. </html>