tb-shop-info.html 2.7 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" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <!-- 所有的 css js 资源 -->
  8. <link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/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. <script src="../../static/kj/upload-util.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label{width: 8em;}
  19. </style>
  20. </head>
  21. <body>
  22. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  23. <!-- ------- 内容部分 ------- -->
  24. <div class="s-body">
  25. <div class="c-panel">
  26. <el-form v-if="m">
  27. <el-row :gutter="50">
  28. <el-col :span="12">
  29. <sa-info name="名称" br>{{m.name}}</sa-info>
  30. </el-col>
  31. <el-col :span="12">
  32. <sa-info name="编号" br>{{m.no}}</sa-info>
  33. </el-col>
  34. </el-row>
  35. <el-row :gutter="50">
  36. <el-col :span="12">
  37. <sa-info type="enum" name="区域" :value="m.area" :jv="{A区: 'A区', B区: 'B区', C区: 'C区'}" br></sa-info>
  38. </el-col>
  39. <el-col :span="12">
  40. <sa-info type="enum" name="是否可用" :value="m.status" :jv="{0: '否', 1: '是'}" br></sa-info>
  41. </el-col>
  42. </el-row>
  43. <el-row :gutter="50">
  44. <el-col :span="12">
  45. <sa-info name="备注" br>{{m.remark}}</sa-info>
  46. </el-col>
  47. <el-col :span="12">
  48. <sa-info name="商家名称" br>{{m.enterpriseName}}</sa-info>
  49. </el-col>
  50. </el-row>
  51. </el-form>
  52. </div>
  53. </div>
  54. <!-- ------- 底部按钮 ------- -->
  55. <div class="s-foot">
  56. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  57. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  58. </div>
  59. </div>
  60. <script>
  61. var app = new Vue({
  62. components: {
  63. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  64. },
  65. el: '.vue-box',
  66. data: {
  67. id: sa.p('id', 0), // 获取数据ID
  68. m: null
  69. },
  70. methods: {
  71. },
  72. mounted: function() {
  73. sa.ajax('/level-one-server/TbShop/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>