修复修改信息

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

@ -443,7 +443,9 @@ export default {
if (res.data.customerHealthy) { if (res.data.customerHealthy) {
// //
this.dataType = res.data.type; this.dataType = res.data.type;
this.healthyData = res.data.customerHealthy; this.healthyData = JSON.parse(
JSON.stringify(res.data.customerHealthy)
);
this.dataList = []; this.dataList = [];
this.remarkList[0].remarkValue = this.healthyData.remark; this.remarkList[0].remarkValue = this.healthyData.remark;
if (this.dataType == 0) { if (this.dataType == 0) {

View File

@ -153,13 +153,7 @@ export default {
let healthy = Object.assign({}, customerHealthyData); let healthy = Object.assign({}, customerHealthyData);
if (data && customerHealthyData) { if (data && customerHealthyData) {
this.healthyData["arrayName"].forEach((item) => { 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.form = healthy;
this.visible = true; this.visible = true;