From 91f80f9969a2ce3a7138a6a58ca21d6bab33d7ca Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 12 一月 2020 15:05:39 +0800
Subject: [PATCH] 修复所有时间显示不正确的问题
---
WebService/src/main/resources/components/ownerRepairPackage/edit-ownerRepair/editOwnerRepair.js | 55 ++++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 38 insertions(+), 17 deletions(-)
diff --git a/WebService/src/main/resources/components/ownerRepairPackage/edit-ownerRepair/editOwnerRepair.js b/WebService/src/main/resources/components/ownerRepairPackage/edit-ownerRepair/editOwnerRepair.js
index 30c61e1..0c6af3a 100644
--- a/WebService/src/main/resources/components/ownerRepairPackage/edit-ownerRepair/editOwnerRepair.js
+++ b/WebService/src/main/resources/components/ownerRepairPackage/edit-ownerRepair/editOwnerRepair.js
@@ -4,17 +4,18 @@
data:{
editOwnerRepairInfo:{
repairId:'',
-repairType:'',
-repairName:'',
-tel:'',
-roomId:'',
-appointmentTime:'',
-context:'',
+ repairType:'',
+ repairName:'',
+ tel:'',
+ roomId:'',
+ roomName:'',
+ appointmentTime:'',
+ context:'',
}
},
_initMethod:function(){
-
+ vc.component._initEditOwnerRepairInfo();
},
_initEvent:function(){
vc.on('editOwnerRepair','openEditOwnerRepairModal',function(_params){
@@ -30,19 +31,19 @@
editOwnerRepairInfo:vc.component.editOwnerRepairInfo
},{
'editOwnerRepairInfo.repairType':[
-{
+ {
limit:"required",
param:"",
errInfo:"鎶ヤ慨绫诲瀷涓嶈兘涓虹┖"
},
- {
+ {
limit:"maxin",
param:"2,50",
errInfo:"鎶ヤ慨绫诲瀷閿欒"
},
],
-'editOwnerRepairInfo.repairName':[
-{
+ 'editOwnerRepairInfo.repairName':[
+ {
limit:"required",
param:"",
errInfo:"鎶ヤ慨浜轰笉鑳戒负绌�"
@@ -115,6 +116,7 @@
vc.message(vc.validate.errInfo);
return ;
}
+ vc.component.editOwnerRepairInfo.communityId = vc.getCurrentCommunity().communityId;
vc.http.post(
'editOwnerRepair',
@@ -142,14 +144,33 @@
refreshEditOwnerRepairInfo:function(){
vc.component.editOwnerRepairInfo= {
repairId:'',
-repairType:'',
-repairName:'',
-tel:'',
-roomId:'',
-appointmentTime:'',
-context:'',
+ repairType:'',
+ repairName:'',
+ tel:'',
+ roomId:'',
+ roomName:'',
+ appointmentTime:'',
+ context:'',
}
+ },
+ _initEditOwnerRepairInfo:function(){
+ //vc.component.editOwnerRepairInfo.startTime = vc.dateFormat(new Date().getTime());
+ $('.editAppointmentTime').datetimepicker({
+ language: 'zh-CN',
+ format: 'yyyy-mm-dd hh:ii:ss',
+ initTime: true,
+ initialDate: new Date(),
+ autoClose: 1,
+ todayBtn: true
+
+ });
+ $('.editAppointmentTime').datetimepicker()
+ .on('changeDate', function (ev) {
+ var value = $(".editAppointmentTime").val();
+ vc.component.editOwnerRepairInfo.appointmentTime = value;
+ });
+
}
}
});
--
Gitblit v1.8.0