同上修改

This commit is contained in:
BOE\10867418
2023-04-04 18:28:17 +08:00
parent 77b95429b0
commit 39b8c2ffbb
6 changed files with 48 additions and 6 deletions

View File

@@ -24,7 +24,7 @@
</a-input> </a-input>
</div> </div>
<div style="display: flex; margin-bottom: 20px"> <div style="display: flex; margin-bottom: 20px">
<div class="btnzx btnzx1" @click="getTableData"> <div class="btnzx btnzx1" @click="searchData">
<div class="search"></div> <div class="search"></div>
<div class="btnzText">搜索</div> <div class="btnzText">搜索</div>
</div> </div>
@@ -176,6 +176,11 @@ export default {
} }
}; };
// 表格数据 // 表格数据
const searchData=async()=>{
state.pageNo=1
state.pageSize=10
getTableData()
}
const getTableData = async () => { const getTableData = async () => {
state.tableLoading = true; state.tableLoading = true;
const params = { page: state.pageNo, size: state.pageSize }; const params = { page: state.pageNo, size: state.pageSize };
@@ -200,6 +205,7 @@ export default {
} }
}; };
const resetClick = () => { const resetClick = () => {
state.selectedRowKeys = [];
state.createName = ""; state.createName = "";
state.title = ""; state.title = "";
getTableData(); getTableData();
@@ -293,6 +299,7 @@ export default {
}); });
return { return {
...toRefs(state), ...toRefs(state),
searchData,
dayjs, dayjs,
onSelectChange, onSelectChange,
resetClick, resetClick,

View File

@@ -24,7 +24,7 @@
</a-input> </a-input>
</div> </div>
<div style="display: flex; margin-bottom: 20px"> <div style="display: flex; margin-bottom: 20px">
<div class="btnzx btnzx1" @click="getTableData"> <div class="btnzx btnzx1" @click="searchData">
<div class="search"></div> <div class="search"></div>
<div class="btnzText">搜索</div> <div class="btnzText">搜索</div>
</div> </div>
@@ -207,12 +207,18 @@ export default {
}; };
// 重置按钮 // 重置按钮
const reset = async () => { const reset = async () => {
state.idList = [];
state.tableLoading = true; state.tableLoading = true;
state.title = ""; state.title = "";
state.authorName = ""; state.authorName = "";
state.author = ""; state.author = "";
getTableData(); getTableData();
}; };
const searchData=async()=>{
state.pageNo=1
state.pageSize=10
getTableData()
}
// 导出列表信息 // 导出列表信息
const exportAllbtnz = async () => { const exportAllbtnz = async () => {
if (state.selectedRowKeys?.length > 0) { if (state.selectedRowKeys?.length > 0) {
@@ -259,6 +265,7 @@ export default {
}); });
return { return {
...toRefs(state), ...toRefs(state),
searchData,
tableData, tableData,
columns, columns,
changePagination, changePagination,

View File

@@ -55,7 +55,7 @@
</a-input> </a-input>
</div> </div>
<div style="display: flex; margin-bottom: 20px"> <div style="display: flex; margin-bottom: 20px">
<div class="btnzx btnzx1" @click="getTableData"> <div class="btnzx btnzx1" @click="searchData">
<div class="search"></div> <div class="search"></div>
<div class="btnzText">搜索</div> <div class="btnzText">搜索</div>
</div> </div>
@@ -159,6 +159,11 @@ export default {
selectedRowKeys: [], selectedRowKeys: [],
typeOption:[] typeOption:[]
}); });
const searchData=async()=>{
state.pageNo=1
state.pageSize=10
getTableData()
}
// 分类选项接口 // 分类选项接口
const getOption = async () => {}; const getOption = async () => {};
//请求组织接口 //请求组织接口
@@ -386,6 +391,7 @@ export default {
const resetClick = () => { const resetClick = () => {
state.name = ""; state.name = "";
state.orgId = state.resetOrgId; state.orgId = state.resetOrgId;
state.selectedRowKeys = [];
state.pageNo = 1; state.pageNo = 1;
state.pageSize = 10; state.pageSize = 10;
state.type = null; state.type = null;
@@ -588,6 +594,7 @@ export default {
onSelectChange, onSelectChange,
exportDetailClick, exportDetailClick,
getOption, getOption,
searchData,
}; };
}, },
}; };

View File

@@ -39,7 +39,7 @@
</a-input> </a-input>
</div> </div>
<div style="display: flex; margin-bottom: 20px"> <div style="display: flex; margin-bottom: 20px">
<div class="btnzx btnzx1" @click="getTableData"> <div class="btnzx btnzx1" @click="searchData">
<div class="search"></div> <div class="search"></div>
<div class="btnzText">搜索</div> <div class="btnzText">搜索</div>
</div> </div>
@@ -164,6 +164,11 @@ export default {
return item.boeRouterInfoId; return item.boeRouterInfoId;
}); });
}; };
const searchData=async()=>{
state.pageNo=1
state.pageSize=10
getTableData()
}
//请求组织接口 //请求组织接口
const getOrgList = async () => { const getOrgList = async () => {
const res = await api.userGetUserOrg({}); const res = await api.userGetUserOrg({});
@@ -356,6 +361,7 @@ export default {
state.createName = ""; state.createName = "";
state.routerName = ""; state.routerName = "";
state.orgId = state.resetOrgId; state.orgId = state.resetOrgId;
state.selectedRowKeys = [];
getTableData(); getTableData();
}; };
//导出详细信息 //导出详细信息
@@ -451,6 +457,7 @@ export default {
columns, columns,
changePagination, changePagination,
dayjs, dayjs,
searchData,
}; };
}, },
}; };

View File

@@ -48,7 +48,7 @@
</a-input> </a-input>
</div> </div>
<div style="display: flex; margin-bottom: 20px"> <div style="display: flex; margin-bottom: 20px">
<div class="btnzx btnzx1" @click="getTableData"> <div class="btnzx btnzx1" @click="searchData">
<div class="search"></div> <div class="search"></div>
<div class="btnzText">搜索</div> <div class="btnzText">搜索</div>
</div> </div>
@@ -308,9 +308,15 @@ export default {
state.pageSize = 10; state.pageSize = 10;
state.projectName = ""; state.projectName = "";
state.createName = ""; state.createName = "";
state.selectedRowKeys = [];
state.status = null; state.status = null;
getTableData(); getTableData();
}; };
const searchData=async()=>{
state.pageNo=1
state.pageSize=10
getTableData()
}
// 获取table数据 // 获取table数据
const getTableData = async () => { const getTableData = async () => {
state.tableLoading = true; state.tableLoading = true;
@@ -497,6 +503,7 @@ export default {
onSelectChange, onSelectChange,
exportDetailClick, exportDetailClick,
exportAllClick, exportAllClick,
searchData,
}; };
}, },
}; };

View File

@@ -24,7 +24,7 @@
</a-input> </a-input>
</div> </div>
<div style="display: flex; margin-bottom: 20px"> <div style="display: flex; margin-bottom: 20px">
<div class="btnzx btnzx1" @click="getTableData"> <div class="btnzx btnzx1" @click="searchData">
<div class="search"></div> <div class="search"></div>
<div class="btnzText">搜索</div> <div class="btnzText">搜索</div>
</div> </div>
@@ -110,6 +110,7 @@ export default {
const reset = async () => { const reset = async () => {
state.createName = ""; state.createName = "";
state.title = ""; state.title = "";
state.selectedRowKeys = []
getTableData(); getTableData();
}; };
const getTableData = async () => { const getTableData = async () => {
@@ -247,6 +248,11 @@ export default {
); );
} }
}; };
const searchData=async()=>{
state.pageNo=1
state.pageSize=10
getTableData()
}
//table 分页事件 //table 分页事件
const changePagination = (page) => { const changePagination = (page) => {
state.pageNo = page; state.pageNo = page;
@@ -268,6 +274,7 @@ export default {
getTableData, getTableData,
reset, reset,
exportList, exportList,
searchData,
}; };
}, },
}; };