You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

93 lines
2.1 KiB

  1. <template>
  2. <view class="page">
  3. <view v-if="ready">
  4. <view v-for="(item,index) in replyArr" :key="item.RComplaintId">
  5. <l-textarea title="回复内容" readonly="readonly" :value="item.ReplyContents"></l-textarea>
  6. </view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. /*
  12. * 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn)
  13. * Copyright (c) 2013-2020 上海力软信息技术有限公司
  14. * 创建人:超级管理员
  15. * 日 期:2020-10-14 12:15
  16. * 描 述:校长信箱
  17. */
  18. /**
  19. * 本段代码由移动端代码生成器输出,移动端须 2.2.0 版本及以上可以使用
  20. * 请在移动端 /pages.json 中的 pages 字段中添加一条记录:
  21. * { "path": "pages/EducationalAdministration/Sys_SendComplaint/reply", "style": { "navigationBarTitleText": "表单详情页" } }
  22. *
  23. * (navigationBarTitleText 字段为本页面的标题文本,可以修改)
  24. * (必须自行操作该步骤,力软代码生成器不会自动帮您修改 /pages.json 文件)
  25. */
  26. import get from 'lodash/get'
  27. import set from 'lodash/set'
  28. import moment from 'moment'
  29. import customPageMixins from '@/common/custompage.js'
  30. export default {
  31. mixins: [customPageMixins],
  32. data() {
  33. return {
  34. // 页面相关参数
  35. id: null,
  36. replyArr:[],
  37. ready: false,
  38. // 表单数据
  39. current: {},
  40. origin: {},
  41. // 表单项数据结构
  42. scheme: { },
  43. // 数据源
  44. dataSource: { }
  45. }
  46. },
  47. async onLoad({ id}) {
  48. await this.init(id)
  49. },
  50. methods: {
  51. // 页面初始化
  52. async init(id) {
  53. this.LOADING('加载数据中...')
  54. this.id = id
  55. await this.fetchForm()
  56. this.ready = true
  57. this.HIDE_LOADING()
  58. },
  59. // 加载表单数据
  60. async fetchForm() {
  61. await this.HTTP_GET('learun/adms/EducationalAdministration/Sys_SendComplaint/replylist', this.id).then(success=>{
  62. if(success){
  63. for (var id in success){
  64. this.replyArr=success[id];
  65. }
  66. }
  67. })
  68. },
  69. }
  70. }
  71. </script>