tb-port-news-info.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>口岸资讯-详情</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <!-- 所有的 css js 资源 -->
  8. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  9. <link rel="stylesheet" href="../../static/sa.css">
  10. <script src="../../static/kj/vue.min.js"></script>
  11. <script src="../../static/kj/element-ui/index.js"></script>
  12. <script src="../../static/kj/httpVueLoader.js"></script>
  13. <script src="../../static/kj/jquery.min.js"></script>
  14. <script src="../../static/kj/layer/layer.js"></script>
  15. <script src="../../static/sa.js"></script>
  16. <style type="text/css">
  17. .c-panel .c-label {
  18. width: 8em;
  19. }
  20. .c-item .image-box-2 {
  21. height: 90px;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  27. <!-- ------- 内容部分 ------- -->
  28. <div class="s-body">
  29. <div class="c-panel">
  30. <el-form v-if="m">
  31. <el-row :gutter="50">
  32. <el-col :span="12">
  33. <sa-info name="标题" br>{{m.title}}</sa-info>
  34. <sa-info type="img" name="封面图片" :value="m.cover" br></sa-info>
  35. <sa-info name="链接地址" br>{{m.url}}</sa-info>
  36. <sa-info name="来源" br>{{m.source}}</sa-info>
  37. </el-col>
  38. <el-col :span="12">
  39. <sa-info name="阅读量" br>{{m.readCount}}</sa-info>
  40. <sa-info type="enum" name="发布状态" :value="m.isRelease" :jv="{0: '未发布', 1: '发布'}" br></sa-info>
  41. <sa-info name="发布时间" br>{{m.releaseTime}}</sa-info>
  42. <sa-info type="enum" name="状态" :value="m.status" :jv="{0: '禁用', 1: '启用'}" br></sa-info>
  43. </el-col>
  44. </el-row>
  45. <sa-info name="内容" br><div style="margin: 5px 150px;" v-html="m.content"></div></sa-info>
  46. </el-form>
  47. </div>
  48. </div>
  49. <!-- ------- 底部按钮 ------- -->
  50. <div class="s-foot">
  51. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  52. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  53. </div>
  54. </div>
  55. <script>
  56. var app = new Vue({
  57. components: {
  58. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  59. },
  60. el: '.vue-box',
  61. data: {
  62. id: sa.p('id', 0), // 获取数据ID
  63. m: null
  64. },
  65. methods: {
  66. },
  67. mounted: function() {
  68. sa.ajax('/level-one-server/TbPortNews/getById?id=' + this.id, function(res) {
  69. this.m = res.data;
  70. if(res.data == null) {
  71. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  72. }
  73. }.bind(this))
  74. }
  75. })
  76. </script>
  77. </body>
  78. </html>