scriptrecord.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view style="position: relative;">
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view style="margin-top: 160rpx;"></view>
  6. <view class="script" v-for="item in List">
  7. <view style="margin: 20rpx;">
  8. <p style="margin-bottom: 10rpx;">上传时间:{{item.create_at}}</p>
  9. <p>{{item.title}}</p>
  10. <text>{{item.content}}</text>
  11. </view>
  12. <view class="heng-line" v-if="item.is_review && !item.is_ok"></view>
  13. <view style="margin: 20rpx;color: red;" v-if="item.is_review && !item.is_ok">
  14. <p style="margin-bottom: 10rpx;">驳回时间:{{item.reject_at}}</p>
  15. <text>{{item.revise_opinion}}</text>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. import mvBar from "@/components/mys_navBar/mysNavBar";
  22. export default {
  23. components: {
  24. mvBar,
  25. },
  26. data() {
  27. return {
  28. List: [],
  29. // List: [{
  30. // create_at: "2022-7-10 13:00",
  31. // content: "脚本内容",
  32. // reject_at: "2022-7-11 13:00",
  33. // revise_opinion: "驳回意见",
  34. // is_review: 1,
  35. // }, {
  36. // create_at: "2022-7-11 13:00",
  37. // content: "脚本内容2",
  38. // reject_at: "2022-7-12 13:00",
  39. // revise_opinion: "驳回意见2",
  40. // is_review: 1,
  41. // }, {
  42. // create_at: "2022-7-11 13:00",
  43. // content: "脚本内容3",
  44. // reject_at: "",
  45. // revise_opinion: "",
  46. // is_review: 0,
  47. // }],
  48. mysNavConfig: {
  49. /* 开启单页显示首页图标 */
  50. isHome: true,
  51. /* 固定导航 */
  52. navFixed: true,
  53. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  54. navTitle: {
  55. text: "查看修改/反馈记录",
  56. color: "",
  57. fontSize: "32rpx", // px upx rpx
  58. fontWeight: "normal", // 100 - 700
  59. },
  60. btnType: "type2",
  61. onLeftClick: '',
  62. /* type2 按钮 */
  63. type2Config: {
  64. // 左图标
  65. leftPath: "/static/img/png2.png",
  66. // 右图标
  67. rightPath: "/static/img/png4.png",
  68. // 圆角
  69. radius: "40rpx",
  70. },
  71. },
  72. }
  73. },
  74. onShow() {
  75. this.getList();
  76. },
  77. onLoad(options) {
  78. let data = options.textObj.replace(/""/g, "");
  79. data = JSON.parse(decodeURIComponent(data))
  80. this.taskId = data.taskId
  81. console.log(this.taskId)
  82. },
  83. methods: {
  84. // 获取脚本审阅记录
  85. getList() {
  86. this.$https.get('/youngee/c/t/g/get-task-script' +
  87. "?" +
  88. "task_id" +
  89. "=" +
  90. this.taskId)
  91. .then(res => {
  92. console.log(res)
  93. this.List = res.data.data
  94. })
  95. },
  96. }
  97. }
  98. </script>
  99. <style lang="scss" scoped>
  100. .script {
  101. margin-bottom: 100rpx;
  102. }
  103. .heng-line {
  104. width: 100%;
  105. border-bottom: 1rpx solid #dadada;
  106. }
  107. </style>