tb-item-type-info.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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="../../static/kj/element-ui/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="../../static/kj/vue.min.js"></script>
  12. <script src="../../static/kj/element-ui/index.js"></script>
  13. <script src="../../static/kj/httpVueLoader.js"></script>
  14. <script src="../../static/kj/jquery.min.js"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. <script src="../../static/kj/qrocde.js"></script>
  18. <style type="text/css">
  19. .c-panel .c-label {
  20. width: 8em;
  21. }
  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 id="qrcode" style="margin: 50px"></div>
  29. </div>
  30. <!-- ------- 底部按钮 ------- -->
  31. <div class="s-foot">
  32. <el-button type="success" @click="sa.closeCurrIframe()">关闭</el-button>
  33. <!-- <el-button @click="sa.closeCurrIframe()">取消</el-button>-->
  34. </div>
  35. </div>
  36. <script>
  37. var app = new Vue({
  38. components: {
  39. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  40. },
  41. el: '.vue-box',
  42. data: {
  43. id: sa.p('id', 0), // 获取数据ID
  44. m: null
  45. },
  46. methods: {},
  47. mounted: function () {
  48. sa.ajax('/TbItemType/getQrcode?id=' + this.id, function (res) {
  49. var qrcode = new QRCode(document.getElementById("qrcode"), {
  50. text: res.data,
  51. width: 400,
  52. height: 400,
  53. colorDark: "#000000",
  54. colorLight: "#ffffff",
  55. correctLevel: QRCode.CorrectLevel.H
  56. });
  57. }.bind(this))
  58. }
  59. })
  60. </script>
  61. </body>
  62. </html>