From 260f0d5027f22213f8377f7b9724250f93ac519f Mon Sep 17 00:00:00 2001 From: chenrui <1950717904@qq.com> Date: Tue, 3 Sep 2024 09:54:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=90=9C=E7=B4=A2=E6=A1=86?= =?UTF-8?q?=EF=BC=8C=E8=A1=A5=E5=85=85=E6=B8=85=E9=99=A4=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/util.js | 7 +++++++ src/views/administrative/appointment.vue | 3 +++ src/views/administrative/deptFilter.vue | 3 ++- src/views/administrative/userFilter.vue | 2 +- src/views/enforce/earlyWarning.vue | 23 ++++++++++++++++++++++- src/views/enforce/enforcementPlan.vue | 22 ++++++++++++++++++++-- 6 files changed, 55 insertions(+), 5 deletions(-) diff --git a/src/util/util.js b/src/util/util.js index 8929541..fcda374 100644 --- a/src/util/util.js +++ b/src/util/util.js @@ -91,4 +91,11 @@ const formattedTime = (dateTime) =>{ return `${year}-${month}-${day} ${hour}:${minute}:${second}`; } +const alignNames = (name) =>{ + if(name.length == 2){ + name = name.substring(0,1) + " " + name.substring(1,2); + } + return name; +} + export { setGoodsNum, isObject, comparisonObject, isElementHidden ,formattedTimeYYYYmmdd,formattedTime}; diff --git a/src/views/administrative/appointment.vue b/src/views/administrative/appointment.vue index 5a8f290..d75d56e 100644 --- a/src/views/administrative/appointment.vue +++ b/src/views/administrative/appointment.vue @@ -232,6 +232,7 @@ @@ -312,6 +313,7 @@ ga_columns: [], item_columns: [], currentDate: [], + minDate: [], checked: false, deptChecked: false, deptContent: '', @@ -391,6 +393,7 @@ const month = (now.getMonth() + 1).toString().padStart(2, '0'); const day = now.getDate().toString().padStart(2, '0'); data.currentDate = [year, month, day] + data.minDate = new Date(year, month-1, day); } const onConfirm = (time) => { diff --git a/src/views/administrative/deptFilter.vue b/src/views/administrative/deptFilter.vue index 00d3a0e..c2fd9e1 100644 --- a/src/views/administrative/deptFilter.vue +++ b/src/views/administrative/deptFilter.vue @@ -73,7 +73,7 @@