From a4c5143ee5c7b2058b298f0af6c7427953f3a863 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Tue, 2 Jul 2024 15:03:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Clue/Pool/Comp/DialogClue.vue | 7 +++++++ src/views/SchoolManagement/Class/index.vue | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/views/Clue/Pool/Comp/DialogClue.vue b/src/views/Clue/Pool/Comp/DialogClue.vue index a52c15a..127f7aa 100644 --- a/src/views/Clue/Pool/Comp/DialogClue.vue +++ b/src/views/Clue/Pool/Comp/DialogClue.vue @@ -31,6 +31,8 @@ type="date" placeholder="选择日期时间" :disabled="!row.editable" + format="YYYY-MM-DD" + value-format="YYYY-MM-DD" style="width: 100%" /> @@ -521,6 +523,10 @@ function remoteMethod(searchValue) { function currentSelect(val) { const area = areaList.value.find((it) => it.name == val) if (area) { + defaultLatLng.value = { + lng: area.location?.lng, + lat: area.location?.lat + } addmark(area.location?.lng, area.location?.lat, aMap.value) dialogMap.value.setCenter([area.location?.lng, area.location?.lat], '', 500) regeoCode(area.location?.lng, area.location?.lat) @@ -528,6 +534,7 @@ function currentSelect(val) { } function destroyMap() { + areaValue.value = undefined dialogMap.value = null aMap.value = null } diff --git a/src/views/SchoolManagement/Class/index.vue b/src/views/SchoolManagement/Class/index.vue index 8ba53ac..12e18f7 100644 --- a/src/views/SchoolManagement/Class/index.vue +++ b/src/views/SchoolManagement/Class/index.vue @@ -269,11 +269,17 @@ async function handleChangeStatus(row) { // 删除的二次确认 await message.confirm('是否确认修改状态') // 发起删除 - await ClassApi.updateClassTypeStatus(row.typeId, row.status) + await ClassApi.updateClassTypeStatus({ + typeId: row.typeId, + status: row.status + }) message.success('修改成功') // 刷新列表 await getList() - } catch {} + } catch { + // 取消后,进行恢复按钮 + row.status = row.status === 1 ? 0 : 1 + } } const batchStatusDialogShow = ref(false)