scriptrecord.vue 2.7 KB

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