From f34d9b3a7d64eee78aa572d7b5988b7562600657 Mon Sep 17 00:00:00 2001 From: zeyan <258785420@qq.com> Date: Sat, 16 Aug 2025 19:03:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CommunicationRecords.php | 8 ++--- .../study-plan-popup/study-plan-popup.vue | 30 ++++++++++++++----- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/niucloud/app/adminapi/controller/communication_records/CommunicationRecords.php b/niucloud/app/adminapi/controller/communication_records/CommunicationRecords.php index c8bf5a89..19f22579 100644 --- a/niucloud/app/adminapi/controller/communication_records/CommunicationRecords.php +++ b/niucloud/app/adminapi/controller/communication_records/CommunicationRecords.php @@ -56,12 +56,12 @@ class CommunicationRecords extends BaseAdminController ["resource_type",""], ["communication_type",""], ["communication_result",""], - ["communication_time","2025-05-19 13:11:39"], + ["communication_time",date('Y-m-d H:i:s')], ["remarks",""], ["tag",""], ]); - $this->validate($data, 'app\validate\communication_records\CommunicationRecords.add'); +// $this->validate($data, 'app\validate\communication_records\CommunicationRecords.add'); return (new CommunicationRecordsService())->add($data); } @@ -76,12 +76,12 @@ class CommunicationRecords extends BaseAdminController ["resource_type",""], ["communication_type",""], ["communication_result",""], - ["communication_time","2025-05-19 13:11:39"], + ["communication_time",date('Y-m-d H:i:s')], ["remarks",""], ["tag",""], ]); - $this->validate($data, 'app\validate\communication_records\CommunicationRecords.edit'); +// $this->validate($data, 'app\validate\communication_records\CommunicationRecords.edit'); return (new CommunicationRecordsService())->edit($id, $data); } diff --git a/uniapp/components/study-plan-popup/study-plan-popup.vue b/uniapp/components/study-plan-popup/study-plan-popup.vue index d14b3587..37278209 100644 --- a/uniapp/components/study-plan-popup/study-plan-popup.vue +++ b/uniapp/components/study-plan-popup/study-plan-popup.vue @@ -17,14 +17,22 @@ 开始日期 - + + + {{ planData.start_date || '请选择开始日期' }} + + 结束日期 - + + + {{ planData.end_date || '请选择结束日期' }} + + @@ -214,6 +222,16 @@ export default { + // 开始日期选择 + onStartDateChange(e) { + this.planData.start_date = e.detail.value + }, + + // 结束日期选择 + onEndDateChange(e) { + this.planData.end_date = e.detail.value + }, + // 状态选择 onStatusChange(e) { this.statusIndex = e.detail.value @@ -328,11 +346,9 @@ export default { padding: 20rpx; color: #ffffff; font-size: 28rpx; - - &:empty::before { - content: attr(placeholder); - color: #999999; - } + min-height: 50rpx; + display: flex; + align-items: center; } .popup-footer {