p-production-report-inner-3.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view>
  3. <view class="list">
  4. <view class="item" v-for="(item,index) in list" :key="index" @click="go_container(item.id,item.gzm_name)">
  5. <view class="left">
  6. <view class="icon"></view>
  7. <view class="name">{{item.gzm_name}}</view>
  8. </view>
  9. <view class="right">
  10. <uni-icons type="arrowright"></uni-icons>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. name:"p-production-report-inner-3",
  19. props:[
  20. "mine",
  21. "org_num"
  22. ],
  23. data() {
  24. return {
  25. list:[]
  26. };
  27. },
  28. created() {
  29. this.$p_api.coalmine_working_face({
  30. mine:this.mine,
  31. org_num:this.org_num
  32. }).then((res)=>{
  33. // console.log(res.data.data)
  34. this.list = res.data.data
  35. })
  36. },
  37. methods:{
  38. go_container(id,title){
  39. uni.navigateTo({
  40. url:"../../production/production_report/detail/detail?id=" + id + "&title=" + title
  41. })
  42. }
  43. }
  44. }
  45. </script>
  46. <style lang="scss">
  47. .list{
  48. box-sizing: border-box;
  49. padding: 0 20rpx;
  50. .item{
  51. display: flex;
  52. justify-content: space-between;
  53. line-height: 90rpx;
  54. border-bottom: 1rpx solid #eee;
  55. .left{
  56. display: flex;
  57. align-items: baseline;
  58. .icon{
  59. width: 25rpx;
  60. height: 27rpx;
  61. background-image: url(./icon/icon.png);
  62. background-size: cover;
  63. }
  64. .name{
  65. margin-left: 12rpx;
  66. font-size: 28rpx;
  67. color: #1e1e1e;
  68. }
  69. }
  70. .right{}
  71. }
  72. }
  73. </style>