From 8e439604817c3d08f894e28be30987b5ff8fbfdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=BA=86=E6=B3=B0?= <12369755+htcloud1@user.noreply.gitee.com> Date: Tue, 18 Aug 2026 22:06:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(manager/Projects):=20=E5=88=A0=204=20?= =?UTF-8?q?=E5=A4=84=20console=20=E8=B0=83=E8=AF=95=20+=20=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E9=80=89=E6=8B=A9=E5=99=A8=20value-format=20=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删 console.info/error 4 处 (line 299, 302, 306, 874): 原 review §10 #5 (P1) - el-date-picker type=date + value-format YYYY-MM-DD HH:mm:ss 不匹配 (line 17, 19): 改 value-format 为 YYYY-MM-DD, 跟 type=date 对齐; MySQL 对 datetime 列做隐式转换 原 review §10 #9 (P1) --- ry-vue3/src/views/manager/Projects.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ry-vue3/src/views/manager/Projects.vue b/ry-vue3/src/views/manager/Projects.vue index 3b05f3e..fa0fbad 100644 --- a/ry-vue3/src/views/manager/Projects.vue +++ b/ry-vue3/src/views/manager/Projects.vue @@ -14,9 +14,9 @@ - + - + @@ -296,14 +296,11 @@ const page = reactive({ pageNum: 1, pageSize: 10, total: 0 }) async function load() { loading.value = true try { - console.info('[manager-projects.load] START, q=', JSON.stringify(q.value), 'page=', JSON.stringify(page)) // axios 拦截器已将 TableDataInfo 归一化为 {code, msg, data: {total, rows}} const { data } = await bizList('project', { ...q.value, pageNum: page.pageNum, pageSize: page.pageSize }) - console.info('[manager-projects.load] OK, total=', data?.total, 'rows.length=', data?.rows?.length, 'firstRow=', JSON.stringify(data?.rows?.[0] || null)) rows.value = data?.rows || [] page.total = data?.total || 0 } catch (e) { - console.error('[manager-projects.load] FAILED', e) rows.value = []; page.total = 0 } finally { loading.value = false } } @@ -871,7 +868,6 @@ onMounted(load) // 监听路由变化 (从 /manager/projects/new 跳回时强制重载) watch(() => route.fullPath, (newPath, oldPath) => { if (newPath === '/manager/projects') { - console.info('[manager-projects] route watch reload, from=', oldPath, 'to=', newPath) load() } })