sz-mx-cabin-yjb
Advanced tools
Comparing version 0.0.39 to 0.0.40
@@ -109,3 +109,3 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
formdata[formkey] = data[key][formkey][0]; | ||
data[name] = [].push(data[key][formkey]); | ||
newDataLoad[formkey] = [].push(data[key][formkey]); | ||
} | ||
@@ -116,3 +116,3 @@ } | ||
formdata[formkey] = Number(data[key][formkey]); | ||
data[name] = data[key][formkey]; | ||
newDataLoad[formkey] = data[key][formkey]; | ||
} | ||
@@ -123,3 +123,3 @@ | ||
formdata[formkey] = moment(data[key][formkey]).format(format); | ||
data[name] = new Date(Date.parse(data[key][formkey])); | ||
newDataLoad[formkey] = new Date(Date.parse(data[key][formkey])); | ||
} | ||
@@ -160,5 +160,8 @@ | ||
sessionStorage.setItem('data', JSON.stringify(newdata)); // 数据初始化 | ||
sessionStorage.setItem('data', JSON.stringify(newdata)); | ||
console.log('看看这玩意?????', newDataLoad); // 数据初始化 | ||
formInstance.setFieldsValue(_extends({}, data[name])); | ||
formInstance.setFieldsValue({// ...data[name], | ||
// ...newDataLoad, | ||
}); | ||
}, [data]); | ||
@@ -165,0 +168,0 @@ |
@@ -130,3 +130,3 @@ "use strict"; | ||
formdata[formkey] = data[key][formkey][0]; | ||
data[name] = [].push(data[key][formkey]); | ||
newDataLoad[formkey] = [].push(data[key][formkey]); | ||
} | ||
@@ -137,3 +137,3 @@ } | ||
formdata[formkey] = Number(data[key][formkey]); | ||
data[name] = data[key][formkey]; | ||
newDataLoad[formkey] = data[key][formkey]; | ||
} | ||
@@ -144,3 +144,3 @@ | ||
formdata[formkey] = (0, _moment["default"])(data[key][formkey]).format(format); | ||
data[name] = new Date(Date.parse(data[key][formkey])); | ||
newDataLoad[formkey] = new Date(Date.parse(data[key][formkey])); | ||
} | ||
@@ -181,5 +181,8 @@ | ||
sessionStorage.setItem('data', JSON.stringify(newdata)); // 数据初始化 | ||
sessionStorage.setItem('data', JSON.stringify(newdata)); | ||
console.log('看看这玩意?????', newDataLoad); // 数据初始化 | ||
formInstance.setFieldsValue(_extends({}, data[name])); | ||
formInstance.setFieldsValue({// ...data[name], | ||
// ...newDataLoad, | ||
}); | ||
}, [data]); | ||
@@ -186,0 +189,0 @@ |
{ | ||
"name": "sz-mx-cabin-yjb", | ||
"version": "0.0.39", | ||
"version": "0.0.40", | ||
"description": "reactCabin", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
1217099
26253