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: { export function publishDraft(data: {
name: string; name: string;
lineId?: number; lineId?: number;
draftingId: number; draftId: number;
}) { }) {
return api.post(`${PublishUriBase}/publish`, data); return api.post(`${PublishUriBase}/publish`, data);
} }

View File

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