|
@@ -1,51 +1,132 @@
|
|
|
<template>
|
|
|
-<div>
|
|
|
- <header class="mui-bar mui-bar-nav">
|
|
|
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
|
|
|
- <h1 class="mui-title">投诉建议</h1>
|
|
|
- </header>
|
|
|
+ <div>
|
|
|
+ <common ref="common" @asynCallBack="asynCallBack"></common>
|
|
|
+ <top-header :pageTitle="pageTitle"></top-header>
|
|
|
+
|
|
|
<div class="mui-content">
|
|
|
<div class="mui-content-padded">
|
|
|
<ul class="mui-table-view openfyy-list">
|
|
|
- <li class="mui-table-view-cell mui-media">
|
|
|
- <a href="javascript:;" class="mui-navigate-right ">
|
|
|
- <div class="mui-media-body">
|
|
|
- 2019-09-03
|
|
|
- <p class='mui-ellipsis'>已回复</p>
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li class="mui-table-view-cell mui-media">
|
|
|
- <a href="javascript:;" class="mui-navigate-right ">
|
|
|
- <div class="mui-media-body">
|
|
|
- 2019-09-03
|
|
|
- <p class='mui-ellipsis'>待回复</p>
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li class="mui-table-view-cell mui-media">
|
|
|
- <a href="javascript:;" class="mui-navigate-right ">
|
|
|
- <div class="mui-media-body">
|
|
|
- 2019-09-03
|
|
|
- <p class='mui-ellipsis'>已回复</p>
|
|
|
- </div>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li class="mui-table-view-cell mui-media">
|
|
|
- <a href="javascript:;" class="mui-navigate-right ">
|
|
|
+ <li v-for="(item,index) in recordList" class="mui-table-view-cell mui-media">
|
|
|
+ <router-link :to="{name:'MasterPropertyComplaintInfo',query:{id:item.id}}" class="mui-navigate-right ">
|
|
|
<div class="mui-media-body">
|
|
|
- 2019-09-03
|
|
|
- <p class='mui-ellipsis'>已结束</p>
|
|
|
+ {{item.createTime}}
|
|
|
+ <p class='mui-ellipsis' v-text="item.statusN"></p>
|
|
|
</div>
|
|
|
- </a>
|
|
|
+ </router-link>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
-</div>
|
|
|
+
|
|
|
+ <div class="fyy-footer">
|
|
|
+ <div class="bindfyy-btn"><button type="submit" class="mui-btn mui-btn-primary " @click="goToForm()">填写投诉建议</button></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <loading :visible="isLoading"></loading>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import * as API_Property from '@/apis/Master/property'
|
|
|
+ import Common from '$project/components/Common.vue'
|
|
|
+ import Loading from '$project/components/Loading.vue'
|
|
|
+ import TopHeader from '$project/components/TopHeader.vue'
|
|
|
+ import NavMenu from '@/components/NavMenu.vue'
|
|
|
+ import {
|
|
|
+ mapGetters,
|
|
|
+ mapMutations
|
|
|
+ } from 'vuex'
|
|
|
+ import isReachBottom from '$project/utils/isReachBottom'
|
|
|
+ export default {
|
|
|
+ name: 'MasterPropertyComplaintList',
|
|
|
+ components: {
|
|
|
+ Common,
|
|
|
+ Loading,
|
|
|
+ TopHeader,
|
|
|
+ NavMenu
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ isLoading: false,
|
|
|
+
|
|
|
+ pageTitle: '投诉建议',
|
|
|
+
|
|
|
+ listForm: {
|
|
|
+ pageIndex: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ totalPage: 1,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ recordList: [],
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {},
|
|
|
+ methods: {
|
|
|
+ //获取列表
|
|
|
+ getList() {
|
|
|
+ this.isLoading = true;
|
|
|
+ API_Property.getRepairAndComplaintList(this.listForm).then(response => {
|
|
|
+ if (response) {
|
|
|
+ if (this.listForm.pageIndex == 1) {
|
|
|
+ this.recordList = response.data;
|
|
|
+ this.listForm.pageIndex = response.pageNumber;
|
|
|
+ this.listForm.totalPage = response.totalPage;
|
|
|
+ } else {
|
|
|
+ this.recordList = [
|
|
|
+ ...this.recordList,
|
|
|
+ ...response.data
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.listForm.pageIndex++;
|
|
|
+ this.isLoading = false;
|
|
|
+ }).catch(error => {
|
|
|
+ this.isLoading = false;
|
|
|
+ mui.toast(error);
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //下拉事件
|
|
|
+ handleScrool() {
|
|
|
+ if (isReachBottom()) {
|
|
|
+ console.log('到达底部')
|
|
|
+ if (this.listForm.pageIndex <= this.listForm.totalPage && this.isLoading == false) {
|
|
|
+ this.getList();
|
|
|
+ } else {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //填写
|
|
|
+ goToForm() {
|
|
|
+ this.$router.push({
|
|
|
+ name: 'MasterPropertyComplaintForm'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ asynCallBack() {
|
|
|
+
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.getList();
|
|
|
+ //监控下拉加载事件
|
|
|
+ var _this = this;
|
|
|
+ window.addEventListener('scroll', _this.handleScrool);
|
|
|
+ },
|
|
|
+ destroyed() {
|
|
|
+ //销毁监听事件
|
|
|
+ var _this = this;
|
|
|
+ window.removeEventListener('scroll', _this.handleScrool);
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters({
|
|
|
+ openId: 'wx_openid',
|
|
|
+ token: 'token',
|
|
|
+ person_data: 'person_data',
|
|
|
+ person_popedom: 'person_popedom',
|
|
|
+ fun_list: 'fun_list'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<style scoped src="$project/assets/css/xpwyfyy.css"></style>
|