提交 93b93e29 authored 作者: 何忠建's avatar 何忠建

工作台

上级 c3e8e5b5
......@@ -55,6 +55,7 @@
</div>
<ul>
<li v-for="(item, index) in noticeList" :key="index"><a @click="toDetails(item)">{{ item.noticeTitle}}</a>
<p>{{ item.createTime.slice(0,10)}}</p>
</li>
</ul>
</div>
......@@ -82,14 +83,20 @@
<div class="pay-cost t-box">
<h3 class="box-title">报修统计 </h3>
<pie :dataSource="repairData" />
<div class="number"><p>全部报修 {{pageForm.repairTotal}}</p><p v-for="(item, index) in repairData" :key="index">{{ item.item }} {{ item.count }}</p></div>
<div class="number">
<p>全部报修 {{pageForm.repairTotal}}</p>
<p v-for="(item, index) in repairData" :key="index">{{ item.item }} {{ item.count }}</p>
</div>
</div>
</a-col>
<a-col :sm="24" :md="12" :xl="12" :style="{ marginBottom: '24px' }">
<div class="pay-cost t-box">
<h3 class="box-title">投诉统计</h3>
<pie :dataSource="complaintsData" />
<div class="number"><p>全部投诉 {{pageForm.complaintTotal}}</p><p v-for="(item, index) in complaintsData" :key="index">{{ item.item }} {{ item.count }}</p></div>
<div class="number">
<p>全部投诉 {{pageForm.complaintTotal}}</p>
<p v-for="(item, index) in complaintsData" :key="index">{{ item.item }} {{ item.count }}</p>
</div>
</div>
</a-col>
</a-row>
......@@ -167,7 +174,7 @@ export default {
this.loading = !this.loading
},
async companyNotice() {
let { result } = await companyNoticeList({ pageNo: 1, pageSize: 9 })
let { result } = await companyNoticeList({ pageNo: 1, pageSize: 9, order: 'desc', column: 'createTime'})
this.noticeList = result.records
},
toMore() {
......@@ -193,7 +200,7 @@ export default {
</script>
<style lang="less" scoped>
.hone-content-box {
padding: 16px;
padding: 10px;
.statistics {
// flex: none;
background: #fff;
......@@ -259,11 +266,14 @@ export default {
list-style-type: none;
height: 30px;
line-height: 30px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: flex;
justify-content: space-between;
a {
color: #666;
width: 80%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
......@@ -276,12 +286,12 @@ export default {
margin-right: 20px;
}
}
.number{
.number {
width: 80%;
margin: 0 10%;
display: flex;
justify-content: space-evenly;
p{
p {
font-size: 14px;
margin: 0;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论