|
@@ -130,12 +130,21 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ <pagination
|
|
|
+ sync
|
|
|
+ :total.sync="pageInfo.total"
|
|
|
+ :page.sync="pageInfo.page"
|
|
|
+ :limit.sync="pageInfo.limit"
|
|
|
+ :page-sizes="pageInfo.page_size"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { Export } from "@/utils/downLoadFile";
|
|
|
+import pagination from "@/components/Pagination/index";
|
|
|
import saveform from "@/components/save-form";
|
|
|
import dayjs from "dayjs";
|
|
|
import histogram from "v-charts/lib/histogram.common";
|
|
@@ -160,6 +169,7 @@ export const getTimes = (times, keys = []) => {
|
|
|
export default {
|
|
|
components: { saveform, "ve-histogram": histogram },
|
|
|
name: "helpCategory",
|
|
|
+ components: { pagination },
|
|
|
data() {
|
|
|
return {
|
|
|
nowIndex: dayjs(dayjs().format("YYYY-MM-DD")).valueOf(),
|
|
@@ -176,7 +186,14 @@ export default {
|
|
|
},
|
|
|
tableList: [],
|
|
|
activeName: "first",
|
|
|
- specialList: []
|
|
|
+ specialList: [],
|
|
|
+ pageInfo: {
|
|
|
+ // 分页规则
|
|
|
+ limit: 10, // 限制显示条数
|
|
|
+ page: 1, // 当前页
|
|
|
+ total: 0, // 总条数
|
|
|
+ page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
async mounted() {
|
|
@@ -266,12 +283,13 @@ export default {
|
|
|
organId
|
|
|
};
|
|
|
const res = await cloudTeacherSumDetail({
|
|
|
- page: 1,
|
|
|
- rows: 10,
|
|
|
+ page: this.pageInfo.page,
|
|
|
+ rows: this.pageInfo.limit,
|
|
|
...params
|
|
|
});
|
|
|
this.tableList = [];
|
|
|
this.tableList = res.data.rows || [];
|
|
|
+ this.pageInfo.total = res.data.total;
|
|
|
} catch {}
|
|
|
}
|
|
|
}
|