From d9b1b7643c4c8d0db32aae07fc2276364553d4be Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 15 八月 2024 17:28:49 +0800 Subject: [PATCH] fix:消息管理、客户首页修改样式 --- pages/driver-page/appointment/appointment.vue | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/pages/driver-page/appointment/appointment.vue b/pages/driver-page/appointment/appointment.vue index 79d282f..e801625 100644 --- a/pages/driver-page/appointment/appointment.vue +++ b/pages/driver-page/appointment/appointment.vue @@ -5,7 +5,7 @@ *鎮ㄥ綋鍓嶇殑棰勭害鏃堕棿娈�<text>{{yuYueSection}}</text> </view> <combined-title - :title="yuYueData.length != 0 ? yuYueData[0].filedName + '鈥斺��' + yuYueData[0].sendDate : '鏆傛棤棰勭害鍒楄〃'"></combined-title> + :title="yuYueData.length != 0 ? yuYueData[0].filedName + '鈥斺��' + yuYueSection : '鏆傛棤棰勭害鍒楄〃'"></combined-title> <view class="appointment-table"> <uni-table border stripe @@ -65,11 +65,14 @@ }; }, onLoad(params) { + console.log(params,'params') if (params.type == '鍏ュ満鐢宠') { this.isRCSQ = true; this.rcsqData.originalYyId = params.yyId; - this.yuYueSection = params.yuYueSection + // this.yuYueSection = params.yuYueSection + this.yuYueSection = this.getNowFormatDate(); } + this.yuYueSection = this.getNowFormatDate(); this.yuYuePostParams.takeCoalId = params.takeCoalId; this.yuYueListParams.filedId = params.filedId; this.yuYueListParams.deptId = params.deptId; @@ -127,6 +130,18 @@ } }) }, + //鑾峰彇褰撳ぉ鏃ユ湡 + //鑾峰彇褰撳墠鏃ユ湡鍑芥暟 + getNowFormatDate() { + let date = new Date(), + year = date.getFullYear(), //鑾峰彇瀹屾暣鐨勫勾浠�(4浣�) + month = date.getMonth() + 1, //鑾峰彇褰撳墠鏈堜唤(0-11,0浠h〃1鏈�) + strDate = date.getDate() // 鑾峰彇褰撳墠鏃�(1-31) + if (month < 10) month = `0${month}` // 濡傛灉鏈堜唤鏄釜浣嶆暟锛屽湪鍓嶉潰琛�0 + if (strDate < 10) strDate = `0${strDate}` // 濡傛灉鏃ユ槸涓綅鏁帮紝鍦ㄥ墠闈㈣ˉ0 + + return `${year}-${month}-${strDate}` + }, // 鏇存崲棰勭害鏃堕棿娈� saveRCSQ(value) { this.rcsqData.yyId = value.id; -- Gitblit v1.9.1