tb-notices-info.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
  8. <!-- 所有的 css js 资源 -->
  9. <link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="https://unpkg.com/vue@2.6.10/dist/vue.min.js"></script>
  12. <script src="https://unpkg.com/element-ui@2.13.0/lib/index.js"></script>
  13. <script src="https://unpkg.com/http-vue-loader@1.4.2/src/httpVueLoader.js"></script>
  14. <script src="https://unpkg.com/jquery@3.4.1/dist/jquery.js"></script>
  15. <script src="https://www.layuicdn.com/layer-v3.1.1/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label {
  19. width: 8em;
  20. }
  21. /* 富文本样式 */
  22. .content-box {
  23. width: 800px;
  24. min-height: 100px;
  25. border: 1px #ddd solid;
  26. padding: 1em;
  27. transition: all 0.2s;
  28. overflow: hidden;
  29. }
  30. .content-box img {
  31. max-width: 200px !important;
  32. }
  33. .c-item-mline {
  34. width: 800px;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  40. <!-- ------- 内容部分 ------- -->
  41. <div class="s-body">
  42. <div class="c-panel">
  43. <el-form v-if="m">
  44. <!-- <sa-info type="num" name="主键" :value="m.id" br></sa-info>-->
  45. <sa-info name="业务单号" br>{{m.businessNo}}</sa-info>
  46. <!-- <sa-info name="客户id" br>{{m.customerId}}</sa-info>-->
  47. <sa-info name="主题" br>{{m.text}}</sa-info>
  48. <!-- <sa-info type="enum" name="接收人类型" :value="m.receiverType" :jv="{1: '管理员', 2: '企业用户'}" br></sa-info>-->
  49. <sa-info type="enum" name="类型" :value="m.type" :jv="{0:'公告', 1: '业务消息'}" br></sa-info>
  50. <sa-info type="datetime" name="更新时间" :value="m.updateTime" br></sa-info>
  51. <sa-info type="richtext" name="详情内容" :value="m.content" br></sa-info>
  52. </el-form>
  53. </div>
  54. </div>
  55. <!-- ------- 底部按钮 ------- -->
  56. <div class="s-foot">
  57. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  58. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  59. </div>
  60. </div>
  61. <script>
  62. var app = new Vue({
  63. components: {
  64. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  65. },
  66. el: '.vue-box',
  67. data: {
  68. id: sa.p('id', 0), // 获取数据ID
  69. m: null
  70. },
  71. methods: {},
  72. mounted: function () {
  73. sa.ajax('/TbNotices/getById?id=' + this.id, function (res) {
  74. this.m = res.data;
  75. if (res.data == null) {
  76. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  77. }
  78. }.bind(this))
  79. }
  80. })
  81. </script>
  82. </body>
  83. </html>