修改查询-liyuchen

This commit is contained in:
李宇辰 2023-04-12 10:08:51 +08:00
parent 6d64d9996d
commit 5c1c311084
1 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
<div class="system-role-container layout-padding"> <div class="system-role-container layout-padding">
<div class="system-role-padding layout-padding-auto layout-padding-view"> <div class="system-role-padding layout-padding-auto layout-padding-view">
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;"> <div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
<el-input size="default" placeholder="please enter username" style="max-width: 180px" v-model="state.searchName" <el-input size="default" placeholder="please enter manager name" style="max-width: 200px" v-model="state.searchName"
clearable></el-input> clearable></el-input>
<el-button size="default" type="primary" class="ml10" @click="getTableData"> <el-button size="default" type="primary" class="ml10" @click="getTableData">
<el-icon> <el-icon>
@ -121,7 +121,7 @@ const auditManager = (row) => {
// //
const getTableData = () => { const getTableData = () => {
state.tableData.loading = true; state.tableData.loading = true;
getAdminManagerPage(state.tableData.param.pageNum,state.tableData.param.pageSize,{}).then(res=>{ getAdminManagerPage(state.tableData.param.pageNum,state.tableData.param.pageSize,{"managerName":state.searchName}).then(res=>{
console.log("分页数据",res); console.log("分页数据",res);
state.tableData.data = res.records; state.tableData.data = res.records;
state.tableData.total = res.total; state.tableData.total = res.total;
@ -133,7 +133,7 @@ const getTableData = () => {
}; };
// //
const addUser = () => { const addUser = () => {
administratorRef.value.openDialog(); //administratorRef.value.openDialog();
}; };
// //
const onOpenEditRole = (type, row) => { const onOpenEditRole = (type, row) => {
@ -147,10 +147,10 @@ const deleteUser = (row) => {
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
remove(row.id).then(res=>{ /* remove(row.id).then(res=>{
getTableData(); getTableData();
ElMessage.success('Deleted successfully'); ElMessage.success('Deleted successfully');
}) })*/
}) })
.catch(() => {}); .catch(() => {});
}; };