@newview/permission-service 1.2.49 → 1.2.50

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.
@@ -5247,12 +5247,32 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
5247
5247
  }));
5248
5248
  __publicField(this, "userSignFormItems", reactive([
5249
5249
  // { model: 'CAUserInfoKey', label: '用户KEY', type: 'Input', prop: 'CAUserInfoKey', span: 24 },
5250
- { model: "CAUserSealKey", label: "印章KEY", type: "Input", prop: "CAUserSealKey", span: 24, inputProp: { append: "选择", onTextClick: () => {
5251
- this.GetUserSealData(3);
5252
- } } },
5253
- { model: "CAUserYZKey", label: "圆章KEY", type: "Input", prop: "CAUserYZKey", span: 24, inputProp: { append: "选择", onTextClick: () => {
5254
- this.GetUserSealData(2);
5255
- } } }
5250
+ {
5251
+ model: "CAUserSealKey",
5252
+ label: "印章KEY",
5253
+ type: "Input",
5254
+ prop: "CAUserSealKey",
5255
+ span: 24,
5256
+ inputProp: {
5257
+ append: "选择",
5258
+ onTextClick: () => {
5259
+ this.GetUserSealData(3);
5260
+ }
5261
+ }
5262
+ },
5263
+ {
5264
+ model: "CAUserYZKey",
5265
+ label: "圆章KEY",
5266
+ type: "Input",
5267
+ prop: "CAUserYZKey",
5268
+ span: 24,
5269
+ inputProp: {
5270
+ append: "选择",
5271
+ onTextClick: () => {
5272
+ this.GetUserSealData(2);
5273
+ }
5274
+ }
5275
+ }
5256
5276
  ]));
5257
5277
  // 私有方法 | private 方法名() {}
5258
5278
  /** 当前所选人 */
@@ -11825,6 +11845,7 @@ class UserinforInstance2 extends BaseInstance {
11825
11845
  CIdNo: "",
11826
11846
  UserIconToken: "",
11827
11847
  UserSignImgToken: "",
11848
+ UserSignatureImgToken: "",
11828
11849
  Account: "",
11829
11850
  AccountType: 0,
11830
11851
  AccountStatus: 1,
@@ -11926,7 +11947,17 @@ class UserinforInstance2 extends BaseInstance {
11926
11947
  model: "UserSignImgToken",
11927
11948
  prop: "UserSignImgToken",
11928
11949
  type: "UploadFile",
11929
- span: 24,
11950
+ span: 12,
11951
+ uploadFileProp: {
11952
+ uploadQuantity: 1
11953
+ }
11954
+ },
11955
+ {
11956
+ label: "签章图片",
11957
+ model: "UserSignatureImgToken",
11958
+ prop: "UserSignatureImgToken",
11959
+ type: "UploadFile",
11960
+ span: 12,
11930
11961
  uploadFileProp: {
11931
11962
  uploadQuantity: 1
11932
11963
  }
@@ -12694,6 +12725,7 @@ class UserinforInstance2 extends BaseInstance {
12694
12725
  this.userFormModel.CIdNo = data.CIdNo;
12695
12726
  this.userFormModel.UserIconToken = data.UserIconToken;
12696
12727
  this.userFormModel.UserSignImgToken = data.UserSignImgToken;
12728
+ this.userFormModel.UserSignatureImgToken = data.UserSignatureImgToken;
12697
12729
  this.userFormModel.Account = data.Account;
12698
12730
  this.userFormModel.AccountStatus = data.AccountStatus;
12699
12731
  this.userFormModel.AccountType = data.AccountType;
@@ -12720,6 +12752,7 @@ class UserinforInstance2 extends BaseInstance {
12720
12752
  this.userFormModel.CIdNo = "";
12721
12753
  this.userFormModel.UserIconToken = "";
12722
12754
  this.userFormModel.UserSignImgToken = "";
12755
+ this.userFormModel.UserSignatureImgToken = "";
12723
12756
  this.userFormModel.Account = "";
12724
12757
  this.userFormModel.AccountType = 1;
12725
12758
  this.userFormModel.AccountStatus = 1;
@@ -12934,16 +12967,31 @@ class UserinforInstance2 extends BaseInstance {
12934
12967
  if (index2 == users.length) {
12935
12968
  this.message.success("转换成功!");
12936
12969
  } else {
12937
- const token = users[index2].UserSignImgToken;
12938
- let imgs = this.utilities.parseApiResult(await new FileApi().getFiles(token));
12939
- let base64 = this.utilities.parseApiResult(await new FileApi().getBase64(token, imgs[0].Id));
12940
12970
  const apiResult = await this.userSignApi.getEntityByFilter(QueryWrapper.create().eq("UserId", users[index2].Id));
12941
12971
  const result = this.utilities.parseApiResult(apiResult);
12942
- const CAUserSealImg = "data:image/png;base64," + base64;
12972
+ let CAUserSealImg = "";
12973
+ let SAUserSealImg = "";
12974
+ const token = users[index2].UserSignImgToken;
12975
+ if (!this.utilities.isNull(token)) {
12976
+ let imgs = this.utilities.parseApiResult(await new FileApi().getFiles(token));
12977
+ if (imgs.length > 0) {
12978
+ let base64 = this.utilities.parseApiResult(await new FileApi().getBase64(token, imgs[0].Id));
12979
+ CAUserSealImg = "data:image/png;base64," + base64;
12980
+ }
12981
+ }
12982
+ const SAtoken = users[index2].UserSignatureImgToken;
12983
+ if (!this.utilities.isNull(SAtoken)) {
12984
+ let SAimgs = this.utilities.parseApiResult(await new FileApi().getFiles(SAtoken));
12985
+ if (SAimgs.length > 0) {
12986
+ let SAbase64 = this.utilities.parseApiResult(await new FileApi().getBase64(token, SAimgs[0].Id));
12987
+ SAUserSealImg = "data:image/png;base64," + SAbase64;
12988
+ }
12989
+ }
12943
12990
  if (this.utilities.isNull(result)) {
12944
- await this.userSignApi.save({ Id: 0, UserId: users[index2].Id, CAUserSealImg });
12991
+ await this.userSignApi.save({ Id: 0, UserId: users[index2].Id, CAUserSealImg, CAUserYZImg: SAUserSealImg });
12945
12992
  } else {
12946
12993
  result.CAUserSealImg = CAUserSealImg;
12994
+ result.CAUserYZImg = SAUserSealImg;
12947
12995
  await this.userSignApi.save(result);
12948
12996
  }
12949
12997
  index2 += 1;
@@ -12985,8 +13033,8 @@ class UserinforInstance2 extends BaseInstance {
12985
13033
  };
12986
13034
  }
12987
13035
  }
12988
- const Userinfor_vue_vue_type_style_index_0_scoped_bed8ccac_lang = "";
12989
- const _withScopeId$2 = (n) => (pushScopeId("data-v-bed8ccac"), n = n(), popScopeId(), n);
13036
+ const Userinfor_vue_vue_type_style_index_0_scoped_5dc738b2_lang = "";
13037
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-5dc738b2"), n = n(), popScopeId(), n);
12990
13038
  const _hoisted_1$5 = { class: "instree-search" };
12991
13039
  const _hoisted_2$3 = { class: "instree-list" };
12992
13040
  const _hoisted_3$3 = { style: { "height": "750px", "overflow-y": "auto" } };
@@ -13045,7 +13093,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
13045
13093
  default: withCtx(() => [
13046
13094
  createVNode(_component_NvBox, {
13047
13095
  width: "300px",
13048
- title: "组织机构树",
13096
+ title: "组织机构树1",
13049
13097
  showArrow: true,
13050
13098
  onChange: _ctx.doChangeUserBoxWidth
13051
13099
  }, {
@@ -13544,7 +13592,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
13544
13592
  _: 1
13545
13593
  });
13546
13594
  }
13547
- const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-bed8ccac"]]);
13595
+ const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-5dc738b2"]]);
13548
13596
  const propDefine$5 = {
13549
13597
  linkParam: {
13550
13598
  // 带入的参数