diff --git a/stdiet-ui/src/components/PhysicalSignsDialog/index.vue b/stdiet-ui/src/components/PhysicalSignsDialog/index.vue index fdfb923be..3368355b0 100644 --- a/stdiet-ui/src/components/PhysicalSignsDialog/index.vue +++ b/stdiet-ui/src/components/PhysicalSignsDialog/index.vue @@ -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) { diff --git a/stdiet-ui/src/components/PhysicalSignsEdit/index.vue b/stdiet-ui/src/components/PhysicalSignsEdit/index.vue index e0e2d7073..16a66599b 100644 --- a/stdiet-ui/src/components/PhysicalSignsEdit/index.vue +++ b/stdiet-ui/src/components/PhysicalSignsEdit/index.vue @@ -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;