app-role-info.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. </style>
  19. </head>
  20. <body>
  21. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  22. <!-- ------- 内容部分 ------- -->
  23. <div class="s-body">
  24. <div class="c-panel">
  25. <el-form v-if="m">
  26. <el-row :gutter="50">
  27. <el-col :span="12">
  28. <sa-info name="角色名称" br>{{m.roleName}}</sa-info>
  29. </el-col>
  30. <el-col :span="12">
  31. <sa-item type="enum" name="类型" v-model="m.userType" :jv="{1: '边民', 2: '组长', 3: '商户', 4: '收购商', 5: '司机'}" jtype="3" br></sa-item>
  32. </el-col>
  33. </el-row>
  34. </el-form>
  35. </div>
  36. </div>
  37. <!-- ------- 底部按钮 ------- -->
  38. <div class="s-foot">
  39. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  40. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  41. </div>
  42. </div>
  43. <script>
  44. var app = new Vue({
  45. components: {
  46. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  47. },
  48. el: '.vue-box',
  49. data: {
  50. id: sa.p('id', 0), // 获取数据ID
  51. m: null
  52. },
  53. methods: {
  54. },
  55. mounted: function() {
  56. sa.ajax('/sp-admin/AppRole/getById?id=' + this.id, function(res) {
  57. this.m = res.data;
  58. if(res.data == null) {
  59. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  60. }
  61. }.bind(this))
  62. }
  63. })
  64. </script>
  65. </body>
  66. </html>