修复修改信息

Merge pull request  from 德仔/develop
This commit is contained in:
德仔 2021-03-30 15:20:18 +08:00 committed by Gitee
commit 9c010900db
2 changed files with 4 additions and 8 deletions
stdiet-ui/src/components
PhysicalSignsDialog
PhysicalSignsEdit

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

@ -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;