修复修改信息

This commit is contained in:
huangdeliang
2021-03-30 15:02:45 +08:00
parent 20466936ce
commit e613c44893
2 changed files with 4 additions and 8 deletions

View File

@ -153,13 +153,7 @@ export default {
let healthy = Object.assign({}, customerHealthyData);
if (data && customerHealthyData) {
this.healthyData["arrayName"].forEach((item) => {
if (item === "bloodData" || item === "moistureDate") {
healthy[item] = healthy[item].map((str) =>
str.substring(0, str.indexOf("."))
);
} else {
healthy[item] = (healthy[item] || "").split(",");
}
healthy[item] = (healthy[item] || "").split(",");
});
this.form = healthy;
this.visible = true;