Commit c8fc9728 authored by 王晓旭's avatar 王晓旭

菜单管理模糊搜索

parent 58b72822
......@@ -218,10 +218,12 @@ export default {
// 搜索
async searchData() {
if (this.searchForm.parentId || this.searchForm.name) {
let obj = {...this.searchForm}
obj.name = '%'+this.searchForm.name+'%'
let res = await menuList({
page: this.tablePagination.current,
size: -1,
...this.searchForm,
...obj,
});
let { data, total } = res.data;
this.tablePagination.total = total;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment