综合办公系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.vue 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <view class="u-page">
  3. <scroll-view class="scroll-list" scroll-y="true">
  4. <view class="uni-list">
  5. <view class="uni-list-cell">
  6. <view class="uni-media-list" @click="$tab.navigateTo('/pages/message/apply/apply')">
  7. <view style="margin-right: 20rpx;">
  8. <u-image :fade="false" src="@/static/images/message/apply.png" width="40px" height="40px"></u-image>
  9. </view>
  10. <view class="uni-media-list-body">
  11. <view class="uni-media-list-text-top"><span>审批</span>
  12. </view>
  13. <view class="uni-media-list-text-bottom">
  14. <uni-text><span>您有新流程待审批</span></uni-text>
  15. </view>
  16. </view>
  17. <view class="info">
  18. <span style="font-size: 26rpx;color: #999999;">{{acceptTime}}</span>
  19. <u-badge class="info-badge" type="error" count="2" :max="99"
  20. :value="detail"></u-badge>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </scroll-view>
  26. </view>
  27. </template>
  28. <script>
  29. import {
  30. todoList
  31. } from "@/api/flowable/todo";
  32. export default {
  33. data() {
  34. return {
  35. todoList: [],
  36. detail: 0,
  37. acceptTime: ''
  38. };
  39. },
  40. created() {
  41. this.getTodoList();
  42. },
  43. onLoad() {
  44. },
  45. methods: {
  46. getTodoList() {
  47. todoList({
  48. pageNum: 1,
  49. pageSize: 999,
  50. name: null
  51. }).then(response => {
  52. console.log(response)
  53. this.detail = response.data.total;
  54. this.todoList = response.data.records;
  55. this.acceptTime = response.data.records[0].createTime;
  56. });
  57. }
  58. },
  59. };
  60. </script>
  61. <style lang="scss">
  62. @import '../common/uni.css';
  63. .info{
  64. position: relative;
  65. .info-badge{
  66. position: absolute;
  67. right: 0;
  68. top:45rpx;
  69. }
  70. }
  71. </style>
  72. <style>
  73. .icon {
  74. width: 1em;
  75. height: 1em;
  76. vertical-align: -0.15em;
  77. fill: currentColor;
  78. overflow: hidden;
  79. }
  80. </style>