|
- <template>
- <view class="page">
- <view v-if="ready">
-
- <view v-for="(item,index) in replyArr" :key="item.RComplaintId">
- <l-textarea title="回复内容" readonly="readonly" :value="item.ReplyContents"></l-textarea>
- </view>
-
- </view>
-
- </view>
- </template>
-
-
- <script>
- /*
- * 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn)
- * Copyright (c) 2013-2020 上海力软信息技术有限公司
- * 创建人:超级管理员
- * 日 期:2020-10-14 12:15
- * 描 述:校长信箱
- */
-
- /**
- * 本段代码由移动端代码生成器输出,移动端须 2.2.0 版本及以上可以使用
- * 请在移动端 /pages.json 中的 pages 字段中添加一条记录:
- * { "path": "pages/EducationalAdministration/Sys_SendComplaint/reply", "style": { "navigationBarTitleText": "表单详情页" } }
- *
- * (navigationBarTitleText 字段为本页面的标题文本,可以修改)
- * (必须自行操作该步骤,力软代码生成器不会自动帮您修改 /pages.json 文件)
- */
-
- import get from 'lodash/get'
- import set from 'lodash/set'
- import moment from 'moment'
- import customPageMixins from '@/common/custompage.js'
-
- export default {
- mixins: [customPageMixins],
-
- data() {
- return {
- // 页面相关参数
- id: null,
- replyArr:[],
- ready: false,
-
- // 表单数据
- current: {},
- origin: {},
-
- // 表单项数据结构
- scheme: { },
-
- // 数据源
- dataSource: { }
- }
- },
-
- async onLoad({ id}) {
- await this.init(id)
- },
-
- methods: {
- // 页面初始化
- async init(id) {
- this.LOADING('加载数据中...')
-
- this.id = id
-
- await this.fetchForm()
-
- this.ready = true
- this.HIDE_LOADING()
- },
-
- // 加载表单数据
- async fetchForm() {
- await this.HTTP_GET('learun/adms/EducationalAdministration/Sys_SendComplaint/replylist', this.id).then(success=>{
- if(success){
- for (var id in success){
- this.replyArr=success[id];
- }
- }
-
- })
-
- },
-
-
- }
- }
- </script>
|