audit_info.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <view class="container">
  3. <view class="center">
  4. <view class="auditList_item" v-for="(item,index) in auditList">
  5. <view class="flex">
  6. <view class="auditInfo">{{item.operatorName}}<span>{{item.endTime}}</span> </view>
  7. <view class="result reject" v-if="!item.approved">驳回</view>
  8. <view class="result adopt" v-if="item.approved">通过</view>
  9. </view>
  10. <view class="opinion">
  11. {{item.auditMind}}
  12. </view>
  13. </view>
  14. <view class="auditList_item" v-if="show">
  15. <u-empty
  16. mode="data"
  17. icon="http://cdn.uviewui.com/uview/empty/car.png">
  18. </u-empty>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. workflowId: "",
  28. id: "",
  29. auditList: [],
  30. show:false,
  31. }
  32. },
  33. onLoad(options) {
  34. this.id = options.id
  35. this.workflowId = options.workflowId
  36. },
  37. onShow() {
  38. this.getList()
  39. },
  40. methods: {
  41. getList() {
  42. this.$api.doRequest('get', '/workflowHistory/query/taskHistories', {
  43. businessKey: this.id,
  44. workflowId: this.workflowId
  45. }).then(res => {
  46. this.auditList = res.data.data
  47. if(this.auditList.length == 0 ){
  48. this.show = true
  49. }
  50. }).catch(res => {
  51. if (res.errmsg) {
  52. uni.showToast({
  53. title: res.errmsg,
  54. icon: 'none',
  55. duration: 2000
  56. })
  57. }
  58. });
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .container {
  65. padding: 20rpx 12rpx 250rpx 12rpx;
  66. }
  67. .center {
  68. background: #fff;
  69. margin: 10px;
  70. border-radius: 10px;
  71. padding: 20rpx 30rpx;
  72. .auditList_item {
  73. padding: 40rpx 10rpx;
  74. width: 100%;
  75. border-bottom: 2rpx solid #EEEEEE;
  76. // display: flex;
  77. .auditInfo {
  78. width: 90%;
  79. font-size: 34rpx;
  80. font-weight: 600;
  81. span{
  82. font-size: 26rpx;
  83. margin-left: 30rpx;
  84. font-weight: 500;
  85. }
  86. }
  87. .result {
  88. width: 10%;
  89. display: flex;
  90. justify-content: flex-end;
  91. font-size: 30rpx;
  92. }
  93. .reject{
  94. color: #FE6430;
  95. }
  96. .adopt{
  97. color: #22C572;
  98. }
  99. .opinion{
  100. width: 100%;
  101. color: #AFB3BF;
  102. font-size: 26rpx;
  103. margin-top: 40rpx;
  104. padding: 0 10rpx;
  105. }
  106. }
  107. }
  108. </style>