accountManage.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="padding">
  3. <view style="width:100%;overflow:auto; height: calc(100vh - 156px);" >
  4. <!-- <table style="width:200%;text-align:center" >
  5. <tr>
  6. <th>人员名称</th>
  7. <th>联系方式</th>
  8. <th>所在单位</th>
  9. <th>角色权限</th>
  10. </tr>
  11. <tr v-for="(item,index) in getData" :key="index">
  12. <td>{{item.username}}</td>
  13. <td>{{item.phone}}</td>
  14. <td>{{item.owner_name}}</td>
  15. <td>{{item.statusid}}</td>
  16. </tr>
  17. </table> -->
  18. <uni-table border stripe emptyText="暂无更多数据" >
  19. <!-- 表头行 -->
  20. <uni-tr>
  21. <uni-th align="center">人员名称</uni-th>
  22. <uni-th align="center">联系方式</uni-th>
  23. <uni-th align="center">所在单位</uni-th>
  24. <uni-th align="center" width="100">角色权限</uni-th>
  25. </uni-tr>
  26. <!-- 表格数据行 -->
  27. <uni-tr v-for="(item,index) in getData" :key="index">
  28. <uni-td align="center">{{item.username}}</uni-td>
  29. <uni-td align="center">{{item.phone}}</uni-td>
  30. <uni-td align="center">{{item.owner_name}}</uni-td>
  31. <uni-td align="center">{{item.statusid}}</uni-td>
  32. </uni-tr>
  33. </uni-table>
  34. </view>
  35. <view class="btn-area submitBottomBtn padding-lr-sm">
  36. <button class="bg-blue round margin-top" @click="goAddPer()">新 增</button>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. getData:[]
  45. }
  46. },
  47. onLoad:function(option){
  48. this.getDataList({'company_code':uni.getStorageSync('selectedCode')})
  49. },
  50. methods: {
  51. // 维保计划列表数据请求
  52. async getDataList(params = {}) {
  53. const res = await this.$myRequest({
  54. url: 'PermissionBinding/getPermissionBindingList',
  55. data:params,
  56. showLoading: true
  57. })
  58. this.getData=res.data.data;
  59. console.log(this.getData)
  60. },
  61. goAddPer() {
  62. uni.navigateTo({
  63. url: '/pages/accountManage/perAdd/perAdd',
  64. });
  65. },
  66. }
  67. }
  68. </script>
  69. <style>
  70. </style>