From 3d6addd2c0817b30bd328605cb048ca9698742a6 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 28 二月 2025 16:50:17 +0800 Subject: [PATCH] 修复新建子任务时,未提前建立日任务的bug --- src/views/fysp/task/components/CompSubTaskList.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/fysp/task/components/CompSubTaskList.vue b/src/views/fysp/task/components/CompSubTaskList.vue index ef20ca8..03ef062 100644 --- a/src/views/fysp/task/components/CompSubTaskList.vue +++ b/src/views/fysp/task/components/CompSubTaskList.vue @@ -44,7 +44,11 @@ <div v-else> <el-empty description="鏃犱换鍔¤褰�" /> <el-row v-if="create" justify="center"> - <el-button type="success" size="small" @click="add" + <el-button + type="success" + size="small" + :loading="createLoading" + @click="add" >娣诲姞浠诲姟</el-button > </el-row> @@ -81,7 +85,8 @@ }, // 鏄惁鏄剧ず娣诲姞浠诲姟鎸夐挳 create: Boolean, - loading: Boolean + loading: Boolean, + createLoading:Boolean, }); const dialogVisible = ref(false); @@ -100,7 +105,7 @@ return subtaskApi.deleteSubtask(item.stguid).then(res=>{ if (res == 1) { const index = data.value.indexOf(item); - data.value.splice(index, 1); + data.value.splice(index, 1); emit('update:modelValue', data.value); emit('remove', item); -- Gitblit v1.9.3