修改查询-liyuchen
This commit is contained in:
parent
6d64d9996d
commit
5c1c311084
|
@ -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(() => {});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue