@@ -26,6 +26,9 @@ const userManageClassManageApi = { | |||||
page(params: SysUserPersonnel.ClassPage) { | page(params: SysUserPersonnel.ClassPage) { | ||||
return http.get("queryAll", params); | return http.get("queryAll", params); | ||||
}, | }, | ||||
getPageList(params: SysUserPersonnel.ClassPage) { | |||||
return http.get("getPageList", params); | |||||
}, | |||||
/** 删除底库 */ | /** 删除底库 */ | ||||
delete(params: ReqId) { | delete(params: ReqId) { | ||||
return http.delete("deleteDfieldD", params); | return http.delete("deleteDfieldD", params); | ||||
@@ -6,14 +6,7 @@ | |||||
<template> | <template> | ||||
<div class="main-box"> | <div class="main-box"> | ||||
<div class="table-box"> | <div class="table-box"> | ||||
<ProTable | |||||
ref="proTable" | |||||
:pagination="false" | |||||
title="班级管理" | |||||
:columns="columns" | |||||
rowKey="personSetId" | |||||
:request-api="userManageClassManageApi.page" | |||||
> | |||||
<ProTable ref="proTable" title="班级管理" :columns="columns" rowKey="personSetId" :request-api="userManageClassManageApi.getPageList"> | |||||
<!-- 表格 header 按钮 --> | <!-- 表格 header 按钮 --> | ||||
<template #tableHeader="scope"> | <template #tableHeader="scope"> | ||||
<s-button suffix="班级" @click="addClass(FormOptEnum.ADD)" /> | <s-button suffix="班级" @click="addClass(FormOptEnum.ADD)" /> | ||||
@@ -71,7 +71,7 @@ const columns: ColumnProps<SysUserPersonnel.SysUserPerInfo>[] = [ | |||||
{ | { | ||||
prop: "name", | prop: "name", | ||||
label: "姓名", | label: "姓名", | ||||
search: {el:'input',span:1,} | |||||
search: {el:'input',span:1,key:'personName'} | |||||
}, | }, | ||||
{ | { | ||||
prop: "personSetName", | prop: "personSetName", | ||||