tb-agreement-info.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <sa-info type="num" name="类型" :value="m.type" br></sa-info>
  31. <sa-info type="richtext" name="内容" :value="m.content" br></sa-info></br></br>
  32. </el-form>
  33. </div>
  34. </div>
  35. <!-- ------- 底部按钮 ------- -->
  36. <div class="s-foot">
  37. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  38. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  39. </div>
  40. </div>
  41. <script>
  42. var app = new Vue({
  43. components: {
  44. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  45. },
  46. el: '.vue-box',
  47. data: {
  48. id: sa.p('id', 0), // 获取数据ID
  49. m: null
  50. },
  51. methods: {
  52. },
  53. mounted: function() {
  54. sa.ajax('/level-one-server/TbAgreement/getById?id=' + this.id, function(res) {
  55. this.m = res.data;
  56. if(res.data == null) {
  57. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  58. }
  59. }.bind(this))
  60. }
  61. })
  62. </script>
  63. </body>
  64. </html>