From 205525b9f47b5d755f81344069a9456fdab9dd8d Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 06 May 2021 18:34:57 +0800
Subject: [PATCH] 体温导出参数修改,设备管理修改时,新增判断组织机构是否为数组
---
src/views/clientManagement/clientManagement.vue | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/views/clientManagement/clientManagement.vue b/src/views/clientManagement/clientManagement.vue
index 27d5927..560c1c8 100644
--- a/src/views/clientManagement/clientManagement.vue
+++ b/src/views/clientManagement/clientManagement.vue
@@ -730,17 +730,13 @@
this.form.street = address.substring(address.indexOf("区")+1,address.length);
}
//写入新的省市区
- that.form.province = "11";
- that.form.city = "1101";
- that.form.district = "110101";
- // that.form.province = val.addressComponent.province;
- // if(val.addressComponent.city==""){
- // that.form.city = val.addressComponent.province;
- // }else{
- // that.form.city = val.addressComponent.city;
- // }
- // that.form.district = val.addressComponent.district;
- //调用接口获取省市区编号
+ that.form.province = val.addressComponent.province;
+ if(val.addressComponent.city==""){
+ that.form.city = val.addressComponent.province;
+ }else{
+ that.form.city = val.addressComponent.city;
+ }
+ that.form.district = val.addressComponent.district;
}
},
immediate: true,
@@ -865,6 +861,10 @@
});
},
rowUpdate(row, index, done, loading) {
+ debugger;
+ if(Array.isArray(row.deptId)){
+ row.deptId = row.deptId.join(",");
+ }
update(row).then(() => {
// this.initFlag = false;
this.onLoad(this.page);
--
Gitblit v1.9.3