混凝土运输管理微信小程序、替班
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
1.7 KiB

1 week ago
  1. <template>
  2. <view class="content">
  3. <view class="mt40">
  4. <view class="re-card-p32" v-for="(ele,idx) in lst">
  5. <view class="re-empty" v-if="lst.length<1">
  6. <view>暂无数据</view>
  7. </view>
  8. <view class="flex-sb">
  9. <view>
  10. <image class="re-from-car" src="/static/icons/icon04.png"></image>
  11. <span>{{ele.carNo}}</span>
  12. </view>
  13. </view>
  14. <view class="flex-sb re-card-select mt20">
  15. <view>员工</view>
  16. <view class="flex" style="color: #9E9E9E;">
  17. <view style="color: #0d0d0d;">{{ ele.name }}</view>
  18. </view>
  19. </view>
  20. <view class="flex-sb re-card-select">
  21. <view>手机</view>
  22. <view class="flex" style="color: #0d0d0d;">
  23. <span>{{ ele.mobile }}</span>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="re-end-pand b-fiexd">
  28. <button @click="clickSell()">新增员工</button>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {
  37. lst: []
  38. }
  39. },
  40. onShow() {
  41. this.loadCars()
  42. },
  43. methods: {
  44. clickSell(){
  45. uni.navigateTo({ url: '/pages/base/addyuan' })
  46. },
  47. loadCars(){
  48. uni.showLoading({})
  49. this.$httpGet("/api/emp/list", this.form, (res) => {
  50. uni.hideLoading({})
  51. console.log('[/emp/list]', res);
  52. if(res.data){
  53. this.lst = this.$utils.toArray(res.data)
  54. }
  55. })
  56. },
  57. }
  58. }
  59. </script>
  60. <style>
  61. page {
  62. background-color: #F5F5F5;
  63. }
  64. .re-from-car{
  65. width: 72rpx;
  66. height: 60rpx;
  67. margin: 0 16rpx -20rpx 0;
  68. }
  69. .b-fiexd{
  70. min-height: 88rpx;
  71. width: calc(100vw);
  72. padding: 30rpx 0;
  73. position: fixed;
  74. left: 0;
  75. bottom: 0;
  76. box-shadow: -20rpx 10rpx 10rpx #000;
  77. background-color: #ffffff;
  78. }
  79. </style>