From e921f14f600ed33bb24c921968a048a0b39e882c Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 24 十一月 2021 19:05:27 +0800 Subject: [PATCH] 恢复测试前的代码 --- src/pages/library/components/personList.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pages/library/components/personList.vue b/src/pages/library/components/personList.vue index 073c8a1..8149120 100644 --- a/src/pages/library/components/personList.vue +++ b/src/pages/library/components/personList.vue @@ -175,10 +175,13 @@ </div> <div class="pt5" style="height:40px;position:relative"> <el-pagination + @size-change="handleSizeChange" @current-change="refrash" :current-page="BaseManageData.page" :page-size="BaseManageData.size" + :page-sizes="[10,20,50,100]" style="position:absolute;right:10px;bottom:5px" + layout="total,sizes,prev,pager,next,jumper" :total="BaseManageData.total" ></el-pagination> </div> @@ -661,8 +664,8 @@ confirmButtonClass: "comfirm-class-sure" }) .then(_ => { - fetch(`/data/api-v/dbperson/deleteDbPersonById/${id}`, { - method: "POST", + fetch(`/data/api-v/dbperson/deleteDbPersonById?id=${id}`, { + method: "GET", headers: { "Content-Type": "application/json", Authorization: token @@ -725,6 +728,11 @@ this.BaseManageData.page = current; this.getPersonList(); }, + handleSizeChange(val) { + //this.pageSize = val; + this.BaseManageData.size = val; + this.getPersonList(); + }, handleClick(row) { this.form = row; this.dialogFormVisible = true; -- Gitblit v1.8.0