index-copyvue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <view>
  3. <Navbar title="工作台" bgColor="#fff" :hideBtn="true" :h5Show="false"></Navbar>
  4. <view class="mobile-item-container">
  5. <view style="font-size: 40rpx; font-weight: bold; padding: 0 0 40rpx 0;">待处理</view>
  6. <u-grid col="3">
  7. <u-grid-item @click="navigateTo('/pages/work/notice/list')">
  8. <view style="position: relative;">
  9. <u-icon name="chat" color="#2979ff" size="60rpx"></u-icon>
  10. <u-badge style="position: absolute; top: -5rpx; right: -10rpx;" type="error" numberType="overflow" max="99" v-model="todo.notice"></u-badge>
  11. </view>
  12. <text class="btn-text">通知公告</text>
  13. </u-grid-item>
  14. <u-grid-item>
  15. <view style="position: relative;">
  16. <u-icon name="list-dot" color="#2979ff" size="60rpx"></u-icon>
  17. <u-badge style="position: absolute; top: -5rpx; right: -10rpx;" type="error" numberType="overflow" max="99" v-model="todo.task"></u-badge>
  18. </view>
  19. <text class="btn-text">待办任务</text>
  20. </u-grid-item>
  21. <u-grid-item>
  22. <view style="position: relative;">
  23. <u-icon name="warning" color="#2979ff" size="60rpx"></u-icon>
  24. <u-badge style="position: absolute; top: -5rpx; right: -10rpx;" type="error" numberType="overflow" max="99" v-model="todo.error"></u-badge>
  25. </view>
  26. <text class="btn-text">异常信息</text>
  27. </u-grid-item>
  28. </u-grid>
  29. </view>
  30. <Gap />
  31. <view class="mobile-item-container">
  32. <view style="font-size: 40rpx; font-weight: bold; padding: 0 0 40rpx 0;">统计报表</view>
  33. <u-grid col="3">
  34. <u-grid-item>
  35. <u-icon name="star" color="#2979ff" size="60rpx"></u-icon>
  36. <text class="btn-text">访问量统计</text>
  37. </u-grid-item>
  38. <u-grid-item>
  39. <u-icon name="share-square" color="#2979ff" size="60rpx"></u-icon>
  40. <text class="btn-text">分享统计</text>
  41. </u-grid-item>
  42. </u-grid>
  43. </view>
  44. <Gap />
  45. <view style="padding: 40rpx; background-color: #fff; margin-top: 40rpx; min-height: 600rpx;">
  46. <u-tabs
  47. :activeStyle="{
  48. color: '#303133',
  49. fontSize: '40rpx',
  50. fontWeight: 'bold',
  51. transform: 'scale(1.05)'
  52. }"
  53. :inactiveStyle="{
  54. color: '#606266',
  55. fontSize: '36rpx',
  56. transform: 'scale(1)'
  57. }"
  58. :list="tabs"
  59. @change="tabChange">
  60. </u-tabs>
  61. <view v-if="activeKey == 'work'" style="padding: 40rpx 0;">
  62. <u-grid col="3">
  63. <u-grid-item @click="navigateTo('/pages/work/notice/manage')">
  64. <u-icon name="edit-pen" color="#2979ff" size="60rpx"></u-icon>
  65. <text class="btn-text">公告管理</text>
  66. </u-grid-item>
  67. <u-grid-item @click="navigateTo('/pages/work/user/list')">
  68. <u-icon name="plus-people-fill" color="#2979ff" size="60rpx"></u-icon>
  69. <text class="btn-text">用户管理</text>
  70. </u-grid-item>
  71. <u-grid-item>
  72. <u-icon name="tags" color="#2979ff" size="60rpx"></u-icon>
  73. <text class="btn-text">部门管理</text>
  74. </u-grid-item>
  75. </u-grid>
  76. <u-grid col="3" style="margin-top: 40rpx;">
  77. <u-grid-item>
  78. <u-icon name="bookmark" color="#2979ff" size="60rpx"></u-icon>
  79. <text class="btn-text">岗位管理</text>
  80. </u-grid-item>
  81. <u-grid-item @click="navigateTo('/pages/work/approve/list')">
  82. <u-icon name="checkbox-mark" color="#2979ff" size="60rpx"></u-icon>
  83. <text class="btn-text">审批</text>
  84. </u-grid-item>
  85. </u-grid>
  86. </view>
  87. <view v-if="activeKey == 'plugin'" style="padding: 40rpx 0;">
  88. <u-grid col="3">
  89. <u-grid-item>
  90. <u-icon name="order" color="#2979ff" size="60rpx"></u-icon>
  91. <text class="btn-text">表单样例</text>
  92. </u-grid-item>
  93. </u-grid>
  94. </view>
  95. </view>
  96. </view>
  97. </template>
  98. <script>
  99. import Navbar from '@/components/navbar/Navbar'
  100. import Gap from '@/components/gap/Gap'
  101. export default {
  102. components: {
  103. Gap,
  104. Navbar,
  105. },
  106. data () {
  107. return {
  108. activeKey: 'work',
  109. tabs: [{
  110. name: '日常工作',
  111. key: 'work'
  112. }, {
  113. name: '插件',
  114. key: 'plugin'
  115. }],
  116. todo: {
  117. notice: 2,
  118. task: 5,
  119. error: 1
  120. }
  121. }
  122. },
  123. methods: {
  124. tabChange (item) {
  125. this.activeKey = item.key;
  126. },
  127. navigateTo (url) {
  128. uni.navigateTo({ url: url })
  129. }
  130. }
  131. }
  132. </script>
  133. <style lang="scss">
  134. </style>