t-o-zaoquan.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <template>
  2. <view>
  3. <view class="list">
  4. <view class="item" v-for="(item,index) in list" :key="index" @click="go_business(item.id,item.title)">
  5. <view class="icon">
  6. <image v-if="item.title == '办公品领用'" src="./icon/bangong.png" mode=""></image>
  7. <image v-if="item.title == '用印申请'" src="./icon/yongyin.png" mode=""></image>
  8. <image v-if="item.title == '请假'" src="./icon/qingjia.png" mode=""></image>
  9. <image v-if="item.title == '其他申请'" src="./icon/qita.png" mode=""></image>
  10. </view>
  11. <view class="text">{{item.title}}</view>
  12. </view>
  13. <!-- <view class="item" @click="go_business()">
  14. <view class="icon">
  15. <image src="./icon/yongyin.png" mode=""></image>
  16. </view>
  17. <view class="text">用印申请</view>
  18. </view>
  19. <view class="item" @click="go_business()">
  20. <view class="icon">
  21. <image src="./icon/qingjia.png" mode=""></image>
  22. </view>
  23. <view class="text">请假</view>
  24. </view>
  25. <view class="item" @click="go_business()">
  26. <view class="icon">
  27. <image src="./icon/qita.png" mode=""></image>
  28. </view>
  29. <view class="text">其他申请</view>
  30. </view> -->
  31. </view>
  32. <view class="content">
  33. <view class="title">
  34. <view class="icon">
  35. <image src="./icon/title_icon.png" mode=""></image>
  36. </view>
  37. <view class="text">国家能源集团枣泉煤矿</view>
  38. </view>
  39. <view class="box">
  40. <view class="item" @click="go_communication_origanization()">
  41. <view class="icon">
  42. <image src="./icon/jiagou.png" mode=""></image>
  43. </view>
  44. <view class="text">组织架构</view>
  45. </view>
  46. <view class="item" @click="go_my_department()">
  47. <view class="icon">
  48. <image src="./icon/bumen.png" mode=""></image>
  49. </view>
  50. <view class="text">我的部门</view>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. export default {
  58. name:"t-o-zaoquan",
  59. data() {
  60. return {
  61. list:[]
  62. };
  63. },
  64. created() {
  65. this.get_worksheet_classify_list()
  66. },
  67. methods:{
  68. // 获取分类
  69. get_worksheet_classify_list(){
  70. this.$api.worksheet_classify_list({
  71. }).then((res)=>{
  72. console.log(res.data.data)
  73. this.list = res.data.data
  74. })
  75. },
  76. // 工单列表
  77. go_business(id,title){
  78. uni.navigateTo({
  79. url:"../../workbench/business_classfication/business_classfication?id="+id+"&title="+title
  80. })
  81. },
  82. go_communication_origanization(){
  83. uni.navigateTo({
  84. url:"../../origanization/communication/origanization/origanization"
  85. })
  86. },
  87. go_my_department(){
  88. uni.navigateTo({
  89. url:"../../origanization/communication/origanization/my_department/my_department"
  90. })
  91. }
  92. }
  93. }
  94. </script>
  95. <style lang="scss">
  96. .list{
  97. background-color: #FFFFFF;
  98. margin-bottom: 20rpx;
  99. box-sizing: border-box;
  100. padding: 50rpx 25rpx;
  101. display: flex;
  102. align-items: center;
  103. justify-content: space-between;
  104. .item{
  105. width: 175rpx;
  106. text-align: center;
  107. .icon{
  108. image{
  109. width: 78rpx;
  110. height: 78rpx;
  111. }
  112. }
  113. .text{
  114. margin-top: 24rpx;
  115. font-size: 32rpx;
  116. }
  117. }
  118. }
  119. .content{
  120. background-color: #FFFFFF;
  121. .title{
  122. height: 110rpx;
  123. display: flex;
  124. align-items: center;
  125. box-sizing: border-box;
  126. padding: 0 36rpx;
  127. border-bottom: 1rpx solid #F3F8F7;
  128. .icon{
  129. display: flex;
  130. align-items: center;
  131. image{
  132. width: 48rpx;
  133. height: 36rpx;
  134. }
  135. }
  136. .text{
  137. margin-left: 20rpx;
  138. font-size: 38rpx;
  139. font-weight: 700;
  140. }
  141. }
  142. .box{
  143. box-sizing: border-box;
  144. padding: 0 50rpx;
  145. .item{
  146. height: 110rpx;
  147. display: flex;
  148. align-items: center;
  149. border-bottom: 1rpx solid #F3F8F7;
  150. .icon{
  151. image{
  152. width: 36rpx;
  153. height: 36rpx;
  154. }
  155. }
  156. .text{
  157. margin-left: 20rpx;
  158. font-size: 32rpx;
  159. }
  160. }
  161. }
  162. }
  163. </style>