tb-port-news-info.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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{width: 8em;}
  18. /* 富文本样式 */
  19. .content-box{width: 800px; min-height: 100px; border: 1px #ddd solid; padding: 1em; transition: all 0.2s;overflow: hidden;}
  20. .content-box img{max-width: 200px !important;}
  21. .c-item-mline{width: 800px;}
  22. </style>
  23. </head>
  24. <body>
  25. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  26. <!-- ------- 内容部分 ------- -->
  27. <div class="s-body">
  28. <div class="c-panel">
  29. <el-form v-if="m">
  30. <el-row :gutter="50">
  31. <el-col :span="12">
  32. <sa-info name="标题" br>{{m.title}}</sa-info>
  33. </el-col>
  34. <el-col :span="12">
  35. <sa-info type="img" name="封面图片" :value="m.cover" br></sa-info>
  36. </el-col>
  37. </el-row>
  38. <el-row>
  39. <el-col>
  40. <sa-info name="链接地址" br>{{m.url}}</sa-info>
  41. </el-col>
  42. </el-row>
  43. <el-row>
  44. <el-col>
  45. <sa-info type="richtext" name="内容" :value="m.content" br></sa-info>
  46. </el-col>
  47. </el-row>
  48. <el-row :gutter="50">
  49. <el-col :span="12">
  50. <sa-info name="来源" br>{{m.source}}</sa-info>
  51. </el-col>
  52. <el-col :span="12">
  53. <sa-info name="阅读量" br>{{m.readCount}}</sa-info>
  54. </el-col>
  55. </el-row>
  56. <el-row :gutter="50">
  57. <el-col :span="12">
  58. <sa-info type="enum" name="发布状态" :value="m.isRelease" :jv="{0: '未发布', 1: '发布'}" br></sa-info>
  59. </el-col>
  60. <el-col :span="12">
  61. <sa-info name="发布时间" br>{{m.releaseTime}}</sa-info>
  62. </el-col>
  63. </el-row>
  64. <el-row :gutter="50">
  65. <el-col :span="12">
  66. <sa-info type="enum" name="状态" :value="m.status" :jv="{0: '禁用', 1: '启用'}" br></sa-info>
  67. </el-col>
  68. </el-row>
  69. </el-form>
  70. </div>
  71. </div>
  72. <!-- ------- 底部按钮 ------- -->
  73. <div class="s-foot">
  74. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  75. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  76. </div>
  77. </div>
  78. <script>
  79. var app = new Vue({
  80. components: {
  81. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  82. },
  83. el: '.vue-box',
  84. data: {
  85. id: sa.p('id', 0), // 获取数据ID
  86. m: null
  87. },
  88. methods: {
  89. },
  90. mounted: function() {
  91. sa.ajax('/level-one-server/TbPortNews/getById?id=' + this.id, function(res) {
  92. this.m = res.data;
  93. if(res.data == null) {
  94. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  95. }
  96. }.bind(this))
  97. }
  98. })
  99. </script>
  100. </body>
  101. </html>