数据资产登记bug修改
Showing
2 changed files
with
24 additions
and
9 deletions
| ... | @@ -288,7 +288,6 @@ const getDetailInfo = () => { | ... | @@ -288,7 +288,6 @@ const getDetailInfo = () => { |
| 288 | Promise.all(ps).then(() => { | 288 | Promise.all(ps).then(() => { |
| 289 | fullscreenLoading.value = false; | 289 | fullscreenLoading.value = false; |
| 290 | tenantDetail.value = tentData; | 290 | tenantDetail.value = tentData; |
| 291 | console.log(tentData); | ||
| 292 | }).catch(() => { | 291 | }).catch(() => { |
| 293 | fullscreenLoading.value = false; | 292 | fullscreenLoading.value = false; |
| 294 | }); | 293 | }); | ... | ... |
| ... | @@ -12,6 +12,7 @@ import useUserStore from "@/store/modules/user"; | ... | @@ -12,6 +12,7 @@ import useUserStore from "@/store/modules/user"; |
| 12 | import { | 12 | import { |
| 13 | getAreaData, | 13 | getAreaData, |
| 14 | getTenantInfo, | 14 | getTenantInfo, |
| 15 | getTenantDetailInfo, | ||
| 15 | getServiceTenants, | 16 | getServiceTenants, |
| 16 | getTenantAttach, | 17 | getTenantAttach, |
| 17 | getSingleList | 18 | getSingleList |
| ... | @@ -166,10 +167,26 @@ const tenantDetail: any = ref({}); | ... | @@ -166,10 +167,26 @@ const tenantDetail: any = ref({}); |
| 166 | 167 | ||
| 167 | /** 获取当前登录会员,服务商,企业等详情。 */ | 168 | /** 获取当前登录会员,服务商,企业等详情。 */ |
| 168 | const getTenantDetail = () => { | 169 | const getTenantDetail = () => { |
| 169 | getTenantInfo({tenantName: userData.tenantName}).then((res: any) => { | 170 | let ps: any = [], tentData = {}; |
| 170 | if (res.code == proxy.$passCode) { | 171 | ps.push(getTenantDetailInfo(userData.tenantGuid).then((res: any) => { |
| 171 | const data = res.data ?? {}; | 172 | if (res.code == proxy.$passCode) { |
| 172 | tenantDetail.value = data; | 173 | const data = res.data ?? {}; |
| 174 | tentData = {...tentData, ...data}; | ||
| 175 | } else { | ||
| 176 | ElMessage.error(res.msg); | ||
| 177 | } | ||
| 178 | })); | ||
| 179 | ps.push(getTenantInfo({ tenantName: userData.tenantName }).then((res: any) => { | ||
| 180 | if (res.code == proxy.$passCode) { | ||
| 181 | const data = res.data ?? {}; | ||
| 182 | tentData = {...tentData, ...data}; | ||
| 183 | } else { | ||
| 184 | ElMessage.error(res.msg); | ||
| 185 | } | ||
| 186 | })) | ||
| 187 | |||
| 188 | Promise.all(ps).then(() => { | ||
| 189 | tenantDetail.value = tentData; | ||
| 173 | propertyFormItems.value.forEach((item, index) => { | 190 | propertyFormItems.value.forEach((item, index) => { |
| 174 | if (item.field == 'address' || item.field == 'socialCreditCode' || item.field == 'registrationDate' || item.field == 'businessLicenseStartDate' || item.field == 'businessLicenseEndDate') {//在会员详情处获取。 | 191 | if (item.field == 'address' || item.field == 'socialCreditCode' || item.field == 'registrationDate' || item.field == 'businessLicenseStartDate' || item.field == 'businessLicenseEndDate') {//在会员详情处获取。 |
| 175 | item.default = tenantDetail.value[item.field]; | 192 | item.default = tenantDetail.value[item.field]; |
| ... | @@ -186,10 +203,9 @@ const getTenantDetail = () => { | ... | @@ -186,10 +203,9 @@ const getTenantDetail = () => { |
| 186 | } | 203 | } |
| 187 | } | 204 | } |
| 188 | }); | 205 | }); |
| 189 | } else { | 206 | }).catch(() => { |
| 190 | ElMessage.error(res.msg); | 207 | fullscreenLoading.value = false; |
| 191 | } | 208 | }); |
| 192 | }); | ||
| 193 | } | 209 | } |
| 194 | 210 | ||
| 195 | const setBaseFormItemsValue = (info) => { | 211 | const setBaseFormItemsValue = (info) => { | ... | ... |
-
Please register or sign in to post a comment