修复修改信息
This commit is contained in:
parent
20466936ce
commit
e613c44893
@ -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) {
|
||||||
|
@ -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] || "").split(",");
|
||||||
healthy[item] = healthy[item].map((str) =>
|
|
||||||
str.substring(0, str.indexOf("."))
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
healthy[item] = (healthy[item] || "").split(",");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
this.form = healthy;
|
this.form = healthy;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user