workbench.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <template>
  2. <view class="main">
  3. <cu-custom bgColor="bg-blue">
  4. <block slot="content">工作台</block>
  5. </cu-custom>
  6. <swiper class="screen-swiper square-dot bg-blue" :indicator-dots="true" :circular="true" :autoplay="true"
  7. interval="2000" duration="500">
  8. <swiper-item v-for="(item,index) in swiperList" :key="index">
  9. <image :src="item.url" mode="aspectFill" v-if="item.type=='image'"></image>
  10. <video :src="item.url" autoplay loop muted :show-play-btn="false" :controls="false" objectFit="cover"
  11. v-if="item.type=='video'"></video>
  12. </swiper-item>
  13. </swiper>
  14. <view class="cu-list grid col-4 no-border fixed">
  15. <view @click="toList(5)" class="circle-button-box">
  16. <view class="text-primary text_font_size">{{statistics.allcount?statistics.allcount:0}}</view>
  17. <text>总数</text>
  18. </view>
  19. <view @click="toList(1)" class="circle-button-box">
  20. <view class="text-danger text_font_size">{{statistics.db?statistics.db:0}}</view>
  21. <text>待办</text>
  22. </view>
  23. <view @click="toList(4)" class="circle-button-box">
  24. <view class="text-success text_font_size">{{statistics.yb?statistics.yb:0}}</view>
  25. <text>已办</text>
  26. </view>
  27. <view @click="toList(3)" class="circle-button-box">
  28. <view class="text-warning text_font_size">{{statistics.gdcount?statistics.gdcount:0}}</view>
  29. <text>归档</text>
  30. </view>
  31. </view>
  32. <scroll-view scroll-y class="page">
  33. <view class="cu-bar bg-white solid-bottom margin-top">
  34. <view class="action">
  35. <text class=" text-orange font-b">快捷入口</text>
  36. </view>
  37. </view>
  38. <uni-section class="mb-10" title="文件传阅" type="line"></uni-section>
  39. <view class="cu-list grid col-4 no-border">
  40. <view @tap="add(1)" class="circle-button-box">
  41. <view><u--image src="/static/index/icon4.png" width="40px" height="40px"></u--image></view>
  42. <text>新增</text>
  43. </view>
  44. <view @tap="toList(1)" class="circle-button-box">
  45. <view><u--image src="/static/index/icon1.png" width="40px" height="40px"></u--image></view>
  46. <text>待办</text>
  47. </view>
  48. <view @tap="toList(4)" class="circle-button-box">
  49. <view><u--image src="/static/index/icon5.png" width="40px" height="40px"></u--image></view>
  50. <text>已办</text>
  51. </view>
  52. <view @tap="toList(3)" class="circle-button-box">
  53. <view><u--image src="/static/index/icon2.png" width="40px" height="40px"></u--image></view>
  54. <text>已归档</text>
  55. </view>
  56. </view>
  57. <uni-section class="mb-10" title="用章审批" type="line"></uni-section>
  58. <view class="cu-list grid col-4 no-border">
  59. <view @tap="add(2)" class="circle-button-box">
  60. <view><u--image src="/static/index/icon4.png" width="40px" height="40px"></u--image></view>
  61. <text>新增</text>
  62. </view>
  63. <view @tap="toCommonList(1)" class="circle-button-box">
  64. <view><u--image src="/static/index/icon1.png" width="40px" height="40px"></u--image></view>
  65. <text>待办</text>
  66. </view>
  67. <view @tap="toCommonList(4)" class="circle-button-box">
  68. <view><u--image src="/static/index/icon5.png" width="40px" height="40px"></u--image></view>
  69. <text>已办</text>
  70. </view>
  71. <view @tap="toCommonList(3)" class="circle-button-box">
  72. <view><u--image src="/static/index/icon2.png" width="40px" height="40px"></u--image></view>
  73. <text>已归档</text>
  74. </view>
  75. </view>
  76. <uni-section class="mb-10" title="公文统计" type="line"></uni-section>
  77. <view class="cu-list grid col-4 no-border">
  78. <view @tap="toApplyList" class="circle-button-box">
  79. <view><u--image src="/static/index/icon6.png" width="40px" height="40px"></u--image></view>
  80. <text>公文统计</text>
  81. </view>
  82. </view>
  83. <u-gap height="80" bgColor="#fff"></u-gap>
  84. </scroll-view>
  85. </view>
  86. </template>
  87. <script>
  88. import moment from 'moment'
  89. import {
  90. mapState,
  91. mapMutations,
  92. mapActions
  93. } from 'vuex'
  94. import actCategoryService from "@/api/flowable/actCategoryService"
  95. import processService from "@/api/flowable/processService"
  96. import taskService from "@/api/flowable/taskService"
  97. import gwCirculationCard2Service from '@/api/circulation/gwCirculationCard2.js'
  98. export default {
  99. data() {
  100. return {
  101. cardCur: 0,
  102. dataList: [],
  103. categoryList: [],
  104. processMap: new Map(),
  105. swiperList: [{
  106. id: 0,
  107. type: 'image',
  108. url: '/static/swiper/1.svg'
  109. }, {
  110. id: 1,
  111. type: 'image',
  112. url: '/static/swiper/2.svg'
  113. }, {
  114. id: 2,
  115. type: 'image',
  116. url: '/static/swiper/3.svg'
  117. }, {
  118. id: 3,
  119. type: 'image',
  120. url: '/static/swiper/4.svg'
  121. }, {
  122. id: 4,
  123. type: 'image',
  124. url: '/static/swiper/5.svg'
  125. }, {
  126. id: 5,
  127. type: 'image',
  128. url: '/static/swiper/6.svg'
  129. }, {
  130. id: 6,
  131. type: 'image',
  132. url: '/static/swiper/7.svg'
  133. }],
  134. dotStyle: false,
  135. towerStart: 0,
  136. direction: '',
  137. statistics: {},
  138. };
  139. },
  140. computed: mapState({
  141. username: (state) => state.user.username
  142. }),
  143. async mounted() {
  144. gwCirculationCard2Service.getStatistics().then(data => {
  145. this.statistics = data
  146. })
  147. },
  148. created() {
  149. if (!this.username) {
  150. this.refreshUserInfo()
  151. }
  152. },
  153. methods: {
  154. ...mapActions(['refreshUserInfo']),
  155. toApplyList(mail) {
  156. uni.navigateTo({
  157. url: '/pages/fileTransmit/statistics'
  158. })
  159. },
  160. add(mail) {
  161. if(mail == 1){
  162. uni.navigateTo({
  163. url: '/pages/fileTransmit/addFileTransmit'
  164. })
  165. }else {
  166. uni.navigateTo({
  167. url: '/pages/commonseal/addCommon'
  168. })
  169. }
  170. },
  171. toPerson(mail) {
  172. uni.navigateTo({
  173. url: "/pages/index/index?type='addressbook'"
  174. })
  175. },
  176. toList(type) {
  177. uni.navigateTo({
  178. url: '/pages/fileTransmit/fileTransmitList?type=' + type
  179. })
  180. },
  181. toCommonList(type) {
  182. uni.navigateTo({
  183. url: '/pages/commonseal/commonList?type=' + type
  184. })
  185. },
  186. }
  187. }
  188. </script>
  189. <style>
  190. .page .uni-section {
  191. border-bottom: 1px solid #ededed;
  192. padding-left: 10px;
  193. }
  194. .cu-list.card-menu {
  195. overflow: hidden;
  196. margin-right: 5px;
  197. margin-left: 5px;
  198. border-radius: 7px;
  199. }
  200. .cu-list.card-menu.margin-top-20 {
  201. margin-top: -20px;
  202. }
  203. .cu-list.menu>.cu-item .content>uni-view:first-child {
  204. display: -webkit-box;
  205. display: -webkit-flex;
  206. display: flex;
  207. -webkit-box-align: center;
  208. /* -webkit-align-items: center; */
  209. /* align-items: center; */
  210. display: inline-block;
  211. margin-right: 5px;
  212. width: 1.6em;
  213. text-align: center;
  214. }
  215. .text_font_size {
  216. font-size: 28px !important;
  217. margin-bottom: 10px;
  218. }
  219. .circle-button {
  220. width: 44px;
  221. height: 44px;
  222. border-radius: 18px;
  223. padding-top: 4px;
  224. }
  225. .circle-button-box {
  226. width: 25%;
  227. margin-top: 10px;
  228. display: -webkit-box;
  229. display: -webkit-flex;
  230. display: flex;
  231. -webkit-box-orient: vertical;
  232. -webkit-box-direction: normal;
  233. -webkit-flex-direction: column;
  234. flex-direction: column;
  235. -webkit-box-align: center;
  236. -webkit-align-items: center;
  237. align-items: center;
  238. -webkit-box-pack: center;
  239. -webkit-justify-content: center;
  240. justify-content: center;
  241. box-sizing: border-box;
  242. }
  243. .font-b {
  244. vertical-align: middle;
  245. font-size: 18px;
  246. font-weight: 500;
  247. color: #3a3a3a;
  248. }
  249. </style>