Commit a84d7dfd authored by 潘自豪's avatar 潘自豪

新增流失客户优化

parent 9bb7c7e1
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<tbody> <tbody>
<tr v-for="(row, idx) in rightDatas" :key="idx" :style="{height: 100 / rightDatas.length + '%'}"> <tr v-for="(row, idx) in rightDatas" :key="idx" :style="{height: 100 / rightDatas.length + '%'}">
<td v-if="showIcon"> <td v-if="showIcon">
<div class="col_number">{{ idx + 21 }}</div> <div class="col_number">{{ idx + (pageSize/2) +1 }}</div>
</td> </td>
<td class="winner_span" :style="columnsStyle['title']">{{ row.title }}</td> <td class="winner_span" :style="columnsStyle['title']">{{ row.title }}</td>
<td v-for="(col, idz) in row.column" :key="idz" :style="columnsStyle[col.key]"> <td v-for="(col, idz) in row.column" :key="idz" :style="columnsStyle[col.key]">
...@@ -44,9 +44,9 @@ ...@@ -44,9 +44,9 @@
export default { export default {
name: "pagingList", name: "pagingList",
props: { props: {
curPage: { pageSize: {
type: menubar, type: Number,
default: 1 default: 40
}, },
showIcon: { showIcon: {
type: Boolean, type: Boolean,
......
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
<paging-list class="list_data" style="overflow: auto;" id="ar_company_list" <paging-list class="list_data" style="overflow: auto;" id="ar_company_list"
:columns-style="{'title':{'width':'30%'}}" :columns-style="{'title':{'width':'30%'}}"
:leftDatas="pageData.leftData" :rightDatas="pageData.rightData" :leftDatas="pageData.leftData" :rightDatas="pageData.rightData"
:curPage = "curPage" :pageSize = "pageSize"
/> />
<div class="bottom"> <div class="bottom">
<el-pagination <el-pagination
background background
:page-size="40" :page-size="pageSize"
:pager-count="11" :pager-count="11"
:current-page="curPage" :current-page="curPage"
layout="prev, pager, next" layout="prev, pager, next"
...@@ -36,6 +36,7 @@ export default { ...@@ -36,6 +36,7 @@ export default {
today: moment().format("yyyy-MM-DD"), today: moment().format("yyyy-MM-DD"),
curPageTitle: this.$route.query.code === 1 ? "新增客户(较去年)" : "流失客户(较去年)", curPageTitle: this.$route.query.code === 1 ? "新增客户(较去年)" : "流失客户(较去年)",
pageData :{}, pageData :{},
pageSize:40,
curPage:1, curPage:1,
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment