代码调整
This commit is contained in:
parent
7400b2f1f6
commit
2512c6a8ce
@ -1,6 +1,6 @@
|
||||
import { api } from 'src/boot/axios';
|
||||
|
||||
const DraftUriBase = '/api/draft/layout';
|
||||
const DraftUriBase = '/api/drafting';
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
@ -8,11 +8,11 @@ const DraftUriBase = '/api/draft/layout';
|
||||
* @returns
|
||||
*/
|
||||
export function pageQuery(query: {
|
||||
pageNum: number;
|
||||
current: number;
|
||||
size: number;
|
||||
name: string;
|
||||
}) {
|
||||
return api.get(`${DraftUriBase}/page`, { params: query });
|
||||
return api.get(`${DraftUriBase}/paging`, { params: query });
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -164,7 +164,7 @@ async function onRequest(props: any) {
|
||||
loading.value = true;
|
||||
try {
|
||||
let response = await pageQuery({
|
||||
pageNum: page,
|
||||
current: page,
|
||||
size: rowsPerPage,
|
||||
name: filter.name,
|
||||
});
|
||||
@ -178,7 +178,7 @@ async function onRequest(props: any) {
|
||||
} catch (error: any) {
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
message: error,
|
||||
message: error.message,
|
||||
});
|
||||
} finally {
|
||||
loading.value = false;
|
||||
@ -234,7 +234,7 @@ async function publishGraphics() {
|
||||
} catch (error: any) {
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
message: error,
|
||||
message: error.message,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user