|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div class="table"> |
|
|
|
<el-table :data="list" max-height="363px" height="363px"> |
|
|
|
<el-table v-if="list.length > 0" :data="list" max-height="363px" height="363px"> |
|
|
|
<el-table-column label="序号" type="index" width="80" /> |
|
|
|
<el-table-column label="事件类型" prop="categorycode" width="" /> |
|
|
|
<el-table-column label="事件描述" prop="eventcontent" width="" /> |
|
|
@ -13,14 +13,12 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<Pagination |
|
|
|
v-show="total > 0" |
|
|
|
:total="total" |
|
|
|
:page.sync="queryParams.pageNo" |
|
|
|
:limit.sync="queryParams.pageSize" |
|
|
|
@pagination="getList" |
|
|
|
/> |
|
|
|
<eventDetails :showDialog="showDialog" :resiId="this.rowId" @close="close" /> |
|
|
|
<div v-else style="width: 100%; height: 100%; text-align: center; padding-top: 20px"> |
|
|
|
<img width="268px" height="128px" src="~@/assets/images/overview/zanwu.png" /> |
|
|
|
<div style="color: #fff">暂无数据</div> |
|
|
|
</div> |
|
|
|
<Pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize" @pagination="getList" /> |
|
|
|
<eventDetails :showDialog="showDialog" :resiId="this.rowId" @close="close" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -77,19 +75,17 @@ export default { |
|
|
|
closed_case: "已办结", |
|
|
|
}; |
|
|
|
const marktypes = ["普通事件", "难点读点", "矛盾纠纷", "自身问题"]; |
|
|
|
this.$http |
|
|
|
.post("/actual/base/peopleRoomOverview/eventPageList", this.queryParams) |
|
|
|
.then(({ data: res }) => { |
|
|
|
this.list = res.data.list.map((item) => { |
|
|
|
return { |
|
|
|
...item, |
|
|
|
status: item.status ? statusArr[item.status] : null, |
|
|
|
marktype: marktypes[item.marktype], |
|
|
|
}; |
|
|
|
}); |
|
|
|
this.total = res.data.total; |
|
|
|
this.$emit("changeTotal", { name: 0, total: this.total }); |
|
|
|
this.$http.post("/actual/base/peopleRoomOverview/eventPageList", this.queryParams).then(({ data: res }) => { |
|
|
|
this.list = res.data.list.map((item) => { |
|
|
|
return { |
|
|
|
...item, |
|
|
|
status: item.status ? statusArr[item.status] : null, |
|
|
|
marktype: marktypes[item.marktype], |
|
|
|
}; |
|
|
|
}); |
|
|
|
this.total = res.data.total; |
|
|
|
this.$emit("changeTotal", { name: 0, total: this.total }); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|