综合办公系统
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.vue 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!--
  2. * @Author: ysh
  3. * @Date: 2025-01-21 10:01:39
  4. * @LastEditors: Please set LastEditors
  5. * @LastEditTime: 2025-02-19 15:18:10
  6. -->
  7. <template>
  8. <view class="u-page">
  9. <scroll-view class="scroll-list" scroll-y="true">
  10. <view class="uni-list">
  11. <view class="uni-list-cell">
  12. <view class="uni-media-list" @click="$tab.navigateTo('/pages/message/apply/apply')">
  13. <view style="margin-right: 20rpx;">
  14. <u-image :fade="false" src="@/static/images/message/apply.png" width="40px" height="40px"></u-image>
  15. </view>
  16. <view class="uni-media-list-body">
  17. <view class="uni-media-list-text-top"><span>审批</span>
  18. </view>
  19. <view class="uni-media-list-text-bottom">
  20. <uni-text><span>您有新流程待审批</span></uni-text>
  21. </view>
  22. </view>
  23. <view class="info">
  24. <span style="font-size: 26rpx;color: #999999;">{{ acceptTime }}</span>
  25. <u-badge class="info-badge" type="error" count="2" :max="99" :value="detail"></u-badge>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="uni-list-cell">
  30. <view class="uni-media-list" @click="$tab.navigateTo('/pages/message/completed/index')">
  31. <view style="margin-right: 20rpx;">
  32. <u-image :fade="false" src="@/static/images/message/completed.png" width="40px" height="40px"></u-image>
  33. </view>
  34. <view class="uni-media-list-body">
  35. <view class="uni-media-list-text-top"><span>已办任务</span>
  36. </view>
  37. <view class="uni-media-list-text-bottom">
  38. <uni-text><span>您的已办任务,在此进行撤回或查看已办任务等操作</span></uni-text>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="uni-list-cell">
  44. <view class="uni-media-list" @click="$tab.navigateTo('/pages/message/myProcess/index')">
  45. <view style="margin-right: 20rpx;">
  46. <u-image :fade="false" src="@/static/images/message/flowable.png" width="40px" height="40px"></u-image>
  47. </view>
  48. <view class="uni-media-list-body">
  49. <view class="uni-media-list-text-top"><span>我的流程</span>
  50. </view>
  51. <view class="uni-media-list-text-bottom">
  52. <uni-text><span>您发起的流程,在此可取消流程</span></uni-text>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </scroll-view>
  59. </view>
  60. </template>
  61. <script>
  62. import {
  63. todoList
  64. } from "@/api/flowable/todo";
  65. export default {
  66. data() {
  67. return {
  68. todoList: [],
  69. detail: 0,
  70. acceptTime: ''
  71. };
  72. },
  73. created() {
  74. this.getTodoList();
  75. },
  76. onLoad() {
  77. },
  78. methods: {
  79. getTodoList() {
  80. todoList({
  81. pageNum: 1,
  82. pageSize: 999,
  83. name: null
  84. }).then(response => {
  85. this.detail = response.data.total;
  86. this.todoList = response.data.records;
  87. this.acceptTime = response.data.records[0].createTime;
  88. });
  89. }
  90. },
  91. };
  92. </script>
  93. <style lang="scss">
  94. @import '../common/uni.css';
  95. .info {
  96. position: relative;
  97. .info-badge {
  98. position: absolute;
  99. right: 0;
  100. top: 45rpx;
  101. }
  102. }
  103. </style>
  104. <style>
  105. .icon {
  106. width: 1em;
  107. height: 1em;
  108. vertical-align: -0.15em;
  109. fill: currentColor;
  110. overflow: hidden;
  111. }
  112. </style>