@newview/permission-service 1.2.36 → 1.2.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ import { defineComponent, ref, reactive, onMounted, resolveComponent, openBlock,
9
9
  import { PlatformApi, PlatformGroupApi, ModuleApi, RoleApi, RoleModuleApi, InstitutionRoleApi, InstitutionTypeApi, InstitutioninforApi, InstitutionPlatformApi, InstitutionTreeApi, EnterpriseApi, LoginLogApi, UserinforApi, InstitutionUserApi, UserRoleApi, OAuthApi, UserSignApi, InstitutionLinePointApi, InstitutionPointApi, ProjectSummaryApi, DataBoardModuleApi, DataInistitutionRelationApi, DataInstitutionBoardRelationApi } from "@newview/permission-api";
10
10
  import { BaseApi, QueryWrapper, request } from "@newview/infrastructure";
11
11
  import { Icon, Tag, Checkbox, Divider, CheckboxGroup, Space } from "view-ui-plus";
12
- import { SelectPlatform, BaseLogin, PersonSel } from "@newview/permission-ui";
12
+ import { SelectPlatform, BaseLogin, PersonSel, getUserSealImg } from "@newview/permission-ui";
13
13
  import { SignTaskInfoApi } from "@newview/casign-api";
14
14
  import { NvComFormUp } from "@newview/file-ui";
15
15
  import { ProvinceApi, CityApi, AreaApi, DictionaryDetailApi, DictionaryTypeApi } from "@newview/basics-api";
@@ -12297,10 +12297,9 @@ class UserinforInstance2 extends BaseInstance {
12297
12297
  this.message.warning("请输入印章KEY");
12298
12298
  return;
12299
12299
  }
12300
- const apiResult = await this.signTaskInfoApi.GetUserSealCloudInfo(this.selectedPlatform.CABusinessKey, this.userSignFormModel.CAUserSealKey);
12301
- const result = this.utilities.parseApiResult(apiResult);
12300
+ const result = await getUserSealImg(this.userSignFormModel.CAUserSealKey);
12302
12301
  if (result) {
12303
- this.userSignFormModel.CAUserSealImg = "data:image/png;base64," + result.data.sealPic;
12302
+ this.userSignFormModel.CAUserSealImg = result;
12304
12303
  } else {
12305
12304
  this.message.error("读取失败,请稍后重试");
12306
12305
  }
@@ -12333,14 +12332,9 @@ class UserinforInstance2 extends BaseInstance {
12333
12332
  this.message.warning("请输入圆章KEY");
12334
12333
  return;
12335
12334
  }
12336
- const apiResult = await this.signTaskInfoApi.GetUserSealCloudInfo(this.selectedPlatform.CABusinessKey, this.userSignFormModel.CAUserYZKey);
12337
- const result = this.utilities.parseApiResult(apiResult);
12335
+ const result = await getUserSealImg(this.userSignFormModel.CAUserYZKey);
12338
12336
  if (result) {
12339
- if (result.head.code == 10) {
12340
- this.userSignFormModel.CAUserYZImg = "data:image/png;base64," + result.data.sealPic;
12341
- } else {
12342
- this.message.error(result.head.msg);
12343
- }
12337
+ this.userSignFormModel.CAUserYZImg = result;
12344
12338
  } else {
12345
12339
  this.message.error("读取失败,请稍后重试");
12346
12340
  }