scriptrecord.vue 2.7 KB

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