|
@@ -57,12 +57,17 @@ class CLDController {
|
|
if (userData === null || userData === '') {
|
|
if (userData === null || userData === '') {
|
|
throw '不存在该建筑用户';
|
|
throw '不存在该建筑用户';
|
|
}
|
|
}
|
|
|
|
+ userData = JSON.parse(JSON.stringify(userData));
|
|
|
|
+
|
|
|
|
+ userData.company_scale = userData.company_scale === null || userData.company_scale === undefined ? '' : userModel.companyScale[userData.company_scale] + '人';
|
|
|
|
+ userData.company_type = userData.company_type === null || userData.company_type === undefined ? '' : userModel.companyType[userData.company_type];
|
|
|
|
+ userData.province = userModel.province[userData.province];
|
|
|
|
|
|
//获取编办列表
|
|
//获取编办列表
|
|
let compilationModel = new CompilationModel();
|
|
let compilationModel = new CompilationModel();
|
|
let compilationList = JSON.parse(JSON.stringify(await compilationModel.getList()));
|
|
let compilationList = JSON.parse(JSON.stringify(await compilationModel.getList()));
|
|
if (userData.upgrade_list !== undefined) {
|
|
if (userData.upgrade_list !== undefined) {
|
|
- let userUpgradeList = JSON.parse(JSON.stringify(userData.upgrade_list));
|
|
|
|
|
|
+ let userUpgradeList = userData.upgrade_list;
|
|
for (let i in userUpgradeList) {
|
|
for (let i in userUpgradeList) {
|
|
let oneCompilationIndex = await compilationList.findIndex(function (item) {
|
|
let oneCompilationIndex = await compilationList.findIndex(function (item) {
|
|
return item._id === userUpgradeList[i].compilationID;
|
|
return item._id === userUpgradeList[i].compilationID;
|