浏览代码

微型消防站修改

coderbutcher 2 年之前
父节点
当前提交
f131fa0df5

+ 1 - 1
pagesA/fire/fire_station/add_fireStation/add_fireStation.vue

@@ -201,7 +201,7 @@
 					.then(res => {
 						// 因为需要提交的数据和绑定的数据不一样,所以要转换
 						this.formData['status'] = 0;
-						this.formData.builtOn = new Date(this.formData.builtOn).getTime()
+						this.formData.builtOn = this.formData.builtOn
 						console.log(this.formData, '222');
 						this.formData.empList = [this.newEmpList]
 						var jsdata = JSON.stringify(this.formData);

+ 1 - 1
pagesA/fire/fire_station/fireStation_details/fireStation_details.vue

@@ -99,7 +99,7 @@
 			const eventChannel = this.getOpenerEventChannel();
 			eventChannel.on('acceptDataFromOpenerPage', function(val) {
 				that.tableData = val;
-				that.tableData.builtOn=uni.$u.timeFormat(val.builtOn, 'yyyy-mm-dd')
+				that.tableData.builtOn=val.builtOn
 			});
 		   
 			this.tableData.orgName = option.orgName;