This commit is contained in:
fan 2023-07-31 15:47:02 +08:00
commit 4adaffd770
2 changed files with 3 additions and 6 deletions

View File

@ -23,7 +23,7 @@ export class PagingQueryParams extends PageQueryDto {
export function publishDraft(data: {
name: string;
lineId?: number;
draftingId: number;
draftId: number;
}) {
return api.post(`${PublishUriBase}/publish`, data);
}

View File

@ -315,13 +315,10 @@ async function publishGraphics() {
pubForm.value?.validate().then(async (res) => {
if (res) {
try {
const params: { draftingId: number; name: string; lineId?: number } = {
draftingId: +publishForm.id,
const params: { draftId: number; name: string; lineId?: number } = {
draftId: +publishForm.id,
name: publishForm.pubName,
};
// if (publishForm.type == 'Line') {
// params.lineId = +publishForm.lineId;
// }
await publishDraft(params);
publishFormShow.value = false;
$q.notify({