diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index 43f478a..104768d 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -961,7 +961,7 @@ declare namespace Api { /** 负责人id */ owerId: string; /** 负责人名 */ - owerName: string; + owerName?: string; /** 通知场景ids */ notifyIds: number[]; /** 任务名称 */ diff --git a/src/views/job/task/index.vue b/src/views/job/task/index.vue index 3701482..e6d5f64 100644 --- a/src/views/job/task/index.vue +++ b/src/views/job/task/index.vue @@ -299,6 +299,11 @@ async function handleBatchDelete() { onBatchDeleted(); } +function add() { + editingData.value = null; + handleAdd(); +} + function edit(id: string) { handleEdit(id); } @@ -353,7 +358,7 @@ function handleExport() { :loading="loading" :disabled-delete="checkedRowKeys.length === 0" :show-delete="hasAuth('R_ADMIN')" - @add="handleAdd" + @add="add" @delete="handleBatchDelete" @refresh="getData" > diff --git a/src/views/job/task/modules/job-task-operate-drawer.vue b/src/views/job/task/modules/job-task-operate-drawer.vue index 838048b..8d5838e 100644 --- a/src/views/job/task/modules/job-task-operate-drawer.vue +++ b/src/views/job/task/modules/job-task-operate-drawer.vue @@ -1,5 +1,5 @@