|
@@ -65,9 +65,8 @@ const searchForm = ref({
|
|
|
current: 1, size: 20, total: 0,
|
|
|
})
|
|
|
const searchClick = () => {
|
|
|
- console.log(searchForm.value)
|
|
|
- //searchForm.value.current = 1
|
|
|
- //getTableData()
|
|
|
+ searchForm.value.current = 1
|
|
|
+ getTableData()
|
|
|
}
|
|
|
|
|
|
//分页
|
|
@@ -109,7 +108,7 @@ const rowNameClick = (row) => {
|
|
|
//批量删除
|
|
|
const delTableItem = async (_, resolve) => {
|
|
|
const ids = arrToId(tableCheckKeys.value)
|
|
|
- const { error, code, msg } = await mainApi.remove({ ids: ids })
|
|
|
+ const { error, code, msg } = await mainApi.del(ids)
|
|
|
if (!error && code === 200) {
|
|
|
window.$message.success('删除成功')
|
|
|
resolve()
|