tidings-detail.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view style="padding-top: 50rpx">
  3. <view class="mx3 my2 p3 bg-color-white" style="border-radius: 16rpx">
  4. <view class="d-flex py3 border-bottom">
  5. <view class="f-size-26 text-color-9" style="width: 100rpx">类型</view>
  6. <view class="f-size-26 text-color-3">{{
  7. typeDict[infoData.detailType]
  8. }}</view>
  9. </view>
  10. <view class="d-flex py3 border-bottom">
  11. <view class="f-size-26 text-color-9" style="width: 100rpx">时间</view>
  12. <view class="f-size-26 text-color-3">{{ infoData.taskCreateTime }}</view>
  13. </view>
  14. <view class="d-flex py3">
  15. <!-- <view class="f-size-26 text-color-9" style="width: 100rpx">内容</view>-->
  16. <view class="f-size-26 text-color-3 ml-3"> <rich-text :nodes="infoData.content"></rich-text></view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. infoData: {},
  26. typeDict: {}
  27. };
  28. },
  29. onLoad(options) {
  30. this.infoData = JSON.parse(options.detail);
  31. this.getDict();
  32. },
  33. methods: {
  34. getDict() {
  35. this.typeDict = this.$DictCache.getLabelByValueMapByType(
  36. this.$DictCache.TYPE.WORKPLACE_BACKLOG_DETAIL_TYPE
  37. );
  38. }
  39. }
  40. };
  41. </script>
  42. <style>
  43. page {
  44. background-color: #f4f4f4;
  45. }
  46. </style>