@newview/permission-service 1.2.58 → 1.2.60

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.
@@ -14,7 +14,6 @@ import { NvComFormUp } from "@newview/file-ui";
14
14
  import { SignTaskInfoApi } from "@newview/casign-api";
15
15
  import { ProvinceApi, CityApi, AreaApi, DictionaryDetailApi, DictionaryTypeApi } from "@newview/basics-api";
16
16
  import { FileApi, OSSFileApi, FileInfoApi } from "@newview/fileservice-api";
17
- import "@newview/tools";
18
17
  import { NvMap } from "@newview/map";
19
18
  class DBCenterBaseApi extends BaseApi {
20
19
  get ProxyName() {
@@ -2258,7 +2257,7 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
2258
2257
  colType: "ro",
2259
2258
  field: "IconUrl",
2260
2259
  title: "图标",
2261
- width: 80,
2260
+ width: 50,
2262
2261
  align: "center",
2263
2262
  format: (h, params) => {
2264
2263
  const iconUrl = params.row.IconUrl;
@@ -2284,18 +2283,31 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
2284
2283
  return h(Tag, { color: option.color }, () => option.text);
2285
2284
  }
2286
2285
  },
2287
- { colType: "ro", field: "OrderNo", title: "排序号", width: 90, align: "center" },
2286
+ { colType: "ro", field: "OrderNo", title: "排序号", width: 70, align: "center" },
2288
2287
  {
2289
2288
  colType: "ro",
2290
2289
  field: "Operates",
2291
2290
  title: "功能点权限",
2291
+ showOverflow: false,
2292
2292
  format: (h, params) => {
2293
- const operates = this.utilities.isNull(params.row.Operates) ? [] : JSON.parse(params.row.Operates);
2293
+ let operates = this.utilities.isNull(params.row.Operates) ? [] : JSON.parse(params.row.Operates);
2294
2294
  if (operates.length == 0) {
2295
- return "";
2295
+ operates = [
2296
+ { code: "add", name: "新增" },
2297
+ { code: "edit", name: "编辑" },
2298
+ { code: "delete", name: "删除" },
2299
+ { code: "view", name: "查看" },
2300
+ { code: "save", name: "保存" },
2301
+ { code: "print", name: "打印" },
2302
+ { code: "recall", name: "撤回" },
2303
+ { code: "permit", name: "提交" },
2304
+ { code: "import", name: "导入" },
2305
+ { code: "export", name: "导出" }
2306
+ ];
2296
2307
  }
2297
2308
  const allOperates = [];
2298
2309
  const allChk = h(Checkbox, {
2310
+ style: "white-space: nowrap;margin-right:0;",
2299
2311
  label: "all",
2300
2312
  "model-value": params.row.IsAllChk,
2301
2313
  "onUpdate:model-value": (value) => {
@@ -2317,16 +2329,22 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
2317
2329
  }
2318
2330
  const chkGroup = h(CheckboxGroup, {
2319
2331
  "model-value": params.row.RoleOperates,
2320
- "onUpdate:model-value": (value) => {
2332
+ onOnChange: (value) => {
2321
2333
  params.row.RoleOperates = value;
2322
2334
  this.setRoleModuleIsChange(params.row);
2323
- if (value) {
2324
- params.row.IsChk = value;
2325
- this.setRoleModuleIsChange(params.row);
2326
- }
2327
2335
  }
2336
+ // 'onUpdate:model-value': (value: any) => {
2337
+ // params.row.RoleOperates = value;
2338
+ // this.setRoleModuleIsChange(params.row);
2339
+ // // 选中行
2340
+ // if (value) {
2341
+ // params.row.IsChk = value;
2342
+ // this.setRoleModuleIsChange(params.row);
2343
+ // // this.changeParentRoleModuleStatus(params.row);
2344
+ // }
2345
+ // }
2328
2346
  }, () => chkList);
2329
- return h(Space, () => [allChk, dividerChk, chkGroup]);
2347
+ return h("div", { class: "nv-flex" }, [allChk, dividerChk, h("div", { class: "nv-flex-1", style: "white-space: pre-wrap;margin-left: 4px;" }, chkGroup)]);
2330
2348
  }
2331
2349
  }
2332
2350
  ],
@@ -2608,13 +2626,13 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
2608
2626
  isChange = true;
2609
2627
  } else {
2610
2628
  for (const item of data.OrgRoleOperates) {
2611
- if (data.RoleOperates.filter((d2) => d2 == item).length == 0) {
2629
+ if (data.RoleOperates.filter((d) => d == item).length == 0) {
2612
2630
  isChange = true;
2613
2631
  break;
2614
2632
  }
2615
2633
  }
2616
2634
  for (const item of data.RoleOperates) {
2617
- if (data.OrgRoleOperates.filter((d2) => d2 == item).length == 0) {
2635
+ if (data.OrgRoleOperates.filter((d) => d == item).length == 0) {
2618
2636
  isChange = true;
2619
2637
  break;
2620
2638
  }
@@ -2630,7 +2648,7 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
2630
2648
  const datas = this.moduleGrid.value.getDatas();
2631
2649
  const parentDatas = datas.filter((item) => item.Id == data.PId && item.IsChk == !data.IsChk);
2632
2650
  for (const item of parentDatas) {
2633
- item.IsChk = data.IsChk == false ? datas.filter((d2) => d2.PId == item.Id && d2.IsChk == true).length > 0 : true;
2651
+ item.IsChk = data.IsChk == false ? datas.filter((d) => d.PId == item.Id && d.IsChk == true).length > 0 : true;
2634
2652
  this.setRoleModuleIsChange(item);
2635
2653
  this.changeParentRoleModuleStatus(item);
2636
2654
  }
@@ -2668,7 +2686,7 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
2668
2686
  }
2669
2687
  //#endregion 导入角色 END
2670
2688
  };
2671
- const Role_vue_vue_type_style_index_0_scoped_a12a6a42_lang = "";
2689
+ const Role_vue_vue_type_style_index_0_scoped_7e692d16_lang = "";
2672
2690
  const _hoisted_1$l = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
2673
2691
  const _hoisted_2$a = {
2674
2692
  class: "import-role",
@@ -2716,7 +2734,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2716
2734
  draggable: "",
2717
2735
  mask: true,
2718
2736
  "mask-closable": false,
2719
- width: 1300,
2737
+ width: 1360,
2720
2738
  title: "模块权限",
2721
2739
  styles: { top: "3%" }
2722
2740
  }, {
@@ -2876,7 +2894,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2876
2894
  _: 1
2877
2895
  });
2878
2896
  }
2879
- const Role = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-a12a6a42"]]);
2897
+ const Role = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-7e692d16"]]);
2880
2898
  const propDefine$l = {
2881
2899
  linkParam: {
2882
2900
  // 带入的参数
@@ -5058,7 +5076,7 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
5058
5076
  let userRoles = this.utilities.parseApiResult(apiResult);
5059
5077
  let insertRecords = [];
5060
5078
  for (const item of chkDatas) {
5061
- if (userRoles.findIndex((d2) => d2.RoleId == item.Id) == -1) {
5079
+ if (userRoles.findIndex((d) => d.RoleId == item.Id) == -1) {
5062
5080
  insertRecords.push({
5063
5081
  PlatformId: this.selectedPlatform.Id,
5064
5082
  UserId: this.currentUser.Id,
@@ -5068,7 +5086,7 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
5068
5086
  }
5069
5087
  let deleteRecords = [];
5070
5088
  for (const item of userRoles) {
5071
- if (chkDatas.findIndex((d2) => d2.Id == item.RoleId) == -1) {
5089
+ if (chkDatas.findIndex((d) => d.Id == item.RoleId) == -1) {
5072
5090
  deleteRecords.push(item.Id);
5073
5091
  }
5074
5092
  }
@@ -6811,7 +6829,7 @@ let UserinforSLInstance$1 = class UserinforSLInstance extends BaseInstance {
6811
6829
  let userRoles = this.utilities.parseApiResult(apiResult);
6812
6830
  let insertRecords = [];
6813
6831
  for (const item of chkDatas) {
6814
- if (userRoles.findIndex((d2) => d2.RoleId == item.Id) == -1) {
6832
+ if (userRoles.findIndex((d) => d.RoleId == item.Id) == -1) {
6815
6833
  insertRecords.push({
6816
6834
  PlatformId: this.selectedPlatform.Id,
6817
6835
  UserId: this.currentUser.Id,
@@ -6821,7 +6839,7 @@ let UserinforSLInstance$1 = class UserinforSLInstance extends BaseInstance {
6821
6839
  }
6822
6840
  let deleteRecords = [];
6823
6841
  for (const item of userRoles) {
6824
- if (chkDatas.findIndex((d2) => d2.Id == item.RoleId) == -1) {
6842
+ if (chkDatas.findIndex((d) => d.Id == item.RoleId) == -1) {
6825
6843
  deleteRecords.push(item.Id);
6826
6844
  }
6827
6845
  }
@@ -9469,9 +9487,9 @@ class GeneralConfigurationInstance extends BaseInstance {
9469
9487
  }
9470
9488
  let gridRes = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(this.nowRow.ProjectConfig)) : this.utilities.deepCopy(JSON.parse(this.nowRow.ConstructConfig));
9471
9489
  gridRes.forEach((x) => {
9472
- data.forEach((s2) => {
9473
- if (x.model == s2.model) {
9474
- Object.assign(x, s2);
9490
+ data.forEach((s) => {
9491
+ if (x.model == s.model) {
9492
+ Object.assign(x, s);
9475
9493
  }
9476
9494
  });
9477
9495
  });
@@ -9506,9 +9524,9 @@ class GeneralConfigurationInstance extends BaseInstance {
9506
9524
  onOk: async () => {
9507
9525
  let res = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(this.nowRow.ProjectConfig)) : this.utilities.deepCopy(JSON.parse(this.nowRow.ConstructConfig));
9508
9526
  data.forEach((x) => {
9509
- res.forEach((s2, i2) => {
9510
- if (x.prop == s2.prop) {
9511
- res.splice(i2, 1);
9527
+ res.forEach((s, i) => {
9528
+ if (x.prop == s.prop) {
9529
+ res.splice(i, 1);
9512
9530
  }
9513
9531
  });
9514
9532
  });
@@ -9624,7 +9642,7 @@ class GeneralConfigurationInstance extends BaseInstance {
9624
9642
  }
9625
9643
  this.isShowDicModalLoading.value = true;
9626
9644
  let newArr = [];
9627
- data.forEach((x, i2) => {
9645
+ data.forEach((x, i) => {
9628
9646
  newArr.push({
9629
9647
  label: x.DetailInfor,
9630
9648
  prop: x.DetailValue,
@@ -9633,7 +9651,7 @@ class GeneralConfigurationInstance extends BaseInstance {
9633
9651
  seltype: "Input",
9634
9652
  append: "",
9635
9653
  span: 8,
9636
- orderNum: i2,
9654
+ orderNum: i,
9637
9655
  // 排序号
9638
9656
  requiredd: 1,
9639
9657
  // 1 必填 0 可空
@@ -10138,7 +10156,7 @@ class PlatformInstance2 extends BaseInstance {
10138
10156
  }, true);
10139
10157
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
10140
10158
  this.platformGrid.value.loadData(async (option) => {
10141
- const apiResult = await this.platformApi.getEntitiesPageDynamic(option.page, option.pageSize, QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
10159
+ const apiResult = await this.platformApi.getEntitiesPageDynamic(option.page, option.pageSize, QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
10142
10160
  PId: platId
10143
10161
  })).orderBy(["OrderNo"]));
10144
10162
  const data = this.utilities.parseApiResult(apiResult);
@@ -10446,7 +10464,7 @@ class RoleInstance2 extends BaseInstance {
10446
10464
  var _a;
10447
10465
  this.spinPlatShow.value = true;
10448
10466
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
10449
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
10467
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
10450
10468
  PId: platId
10451
10469
  })).orderBy(["OrderNo"]));
10452
10470
  this.platData.value = this.utilities.parseApiResult(apiResult);
@@ -11173,13 +11191,13 @@ class RoleInstance2 extends BaseInstance {
11173
11191
  isChange = true;
11174
11192
  } else {
11175
11193
  for (const item of data.OrgRoleOperates) {
11176
- if (data.RoleOperates.filter((d2) => d2 == item).length == 0) {
11194
+ if (data.RoleOperates.filter((d) => d == item).length == 0) {
11177
11195
  isChange = true;
11178
11196
  break;
11179
11197
  }
11180
11198
  }
11181
11199
  for (const item of data.RoleOperates) {
11182
- if (data.OrgRoleOperates.filter((d2) => d2 == item).length == 0) {
11200
+ if (data.OrgRoleOperates.filter((d) => d == item).length == 0) {
11183
11201
  isChange = true;
11184
11202
  break;
11185
11203
  }
@@ -11195,7 +11213,7 @@ class RoleInstance2 extends BaseInstance {
11195
11213
  const datas = this.moduleGrid.value.getDatas();
11196
11214
  const parentDatas = datas.filter((item) => item.Id == data.PId && item.IsChk == !data.IsChk);
11197
11215
  for (const item of parentDatas) {
11198
- item.IsChk = data.IsChk == false ? datas.filter((d2) => d2.PId == item.Id && d2.IsChk == true).length > 0 : true;
11216
+ item.IsChk = data.IsChk == false ? datas.filter((d) => d.PId == item.Id && d.IsChk == true).length > 0 : true;
11199
11217
  this.setRoleModuleIsChange(item);
11200
11218
  this.changeParentRoleModuleStatus(item);
11201
11219
  }
@@ -11214,7 +11232,7 @@ class RoleInstance2 extends BaseInstance {
11214
11232
  async loadOriginPlatforms() {
11215
11233
  var _a;
11216
11234
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
11217
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.platId.value).or((i2) => i2.allEq({
11235
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.platId.value).or((i) => i.allEq({
11218
11236
  PId: platId
11219
11237
  })).orderBy(["OrderNo"]));
11220
11238
  this.originPlatform.list = this.utilities.parseApiResult(apiResult);
@@ -12116,7 +12134,7 @@ class InstitutionInstance2 extends BaseInstance {
12116
12134
  var _a;
12117
12135
  this.spinPlatShow.value = true;
12118
12136
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
12119
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
12137
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
12120
12138
  PId: platId
12121
12139
  })).orderBy(["OrderNo"]));
12122
12140
  this.platData.value = this.utilities.parseApiResult(apiResult);
@@ -12881,7 +12899,7 @@ class InstitutionInstance2 extends BaseInstance {
12881
12899
  async loadOriginPlatforms() {
12882
12900
  var _a;
12883
12901
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
12884
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.platId.value).or((i2) => i2.allEq({
12902
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.platId.value).or((i) => i.allEq({
12885
12903
  PId: platId
12886
12904
  })).orderBy(["OrderNo"]));
12887
12905
  this.originPlatform.list = this.utilities.parseApiResult(apiResult);
@@ -13524,7 +13542,7 @@ class UserinforInstance2 extends BaseInstance {
13524
13542
  var _a;
13525
13543
  this.spinPlatShow.value = true;
13526
13544
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
13527
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
13545
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
13528
13546
  PId: platId
13529
13547
  })).orderBy(["OrderNo"]));
13530
13548
  this.platData.value = this.utilities.parseApiResult(apiResult);
@@ -14075,7 +14093,7 @@ class UserinforInstance2 extends BaseInstance {
14075
14093
  let userRoles = this.utilities.parseApiResult(apiResult);
14076
14094
  let insertRecords = [];
14077
14095
  for (const item of chkDatas) {
14078
- if (userRoles.findIndex((d2) => d2.RoleId == item.Id) == -1) {
14096
+ if (userRoles.findIndex((d) => d.RoleId == item.Id) == -1) {
14079
14097
  insertRecords.push({
14080
14098
  PlatformId: this.selectedPlatform.Id,
14081
14099
  UserId: this.currentUser.Id,
@@ -14085,7 +14103,7 @@ class UserinforInstance2 extends BaseInstance {
14085
14103
  }
14086
14104
  let deleteRecords = [];
14087
14105
  for (const item of userRoles) {
14088
- if (chkDatas.findIndex((d2) => d2.Id == item.RoleId) == -1) {
14106
+ if (chkDatas.findIndex((d) => d.Id == item.RoleId) == -1) {
14089
14107
  deleteRecords.push(item.Id);
14090
14108
  }
14091
14109
  }
@@ -14322,6 +14340,7 @@ class UserinforInstance2 extends BaseInstance {
14322
14340
  this.saveingUserSign.value = true;
14323
14341
  const apiResult = await this.userSignApi.save(this.userSignFormModel);
14324
14342
  const result = this.utilities.parseApiResult(apiResult);
14343
+ await this.userinforApi.save({ Id: this.userSignFormModel.UserId, UserSignImgToken: this.userSignFormModel.CAUserSealToken, UserSignatureImgToken: this.userSignFormModel.CAUserYZToken });
14325
14344
  this.saveingUserSign.value = false;
14326
14345
  if (result) {
14327
14346
  this.message.success("保存成功");
@@ -14362,10 +14381,16 @@ class UserinforInstance2 extends BaseInstance {
14362
14381
  content: "确定要清除该印章图片吗?",
14363
14382
  onOk: async () => {
14364
14383
  await new FileApi().deleteByToken(this.userSignFormModel.CAUserSealImg);
14365
- const apiResult = await this.userSignApi.save({ Id: this.userSignFormModel.Id, CAUserSealImg: "" });
14366
- const result = this.utilities.parseApiResult(apiResult);
14367
- if (result) {
14384
+ if (this.userSignFormModel.Id) {
14385
+ const apiResult = await this.userSignApi.save({ Id: this.userSignFormModel.Id, CAUserSealImg: "", CAUserSealToken: "" });
14386
+ const result = this.utilities.parseApiResult(apiResult);
14387
+ if (result) {
14388
+ this.userSignFormModel.CAUserSealImg = "";
14389
+ this.userSignFormModel.CAUserSealToken = "";
14390
+ }
14391
+ } else {
14368
14392
  this.userSignFormModel.CAUserSealImg = "";
14393
+ this.userSignFormModel.CAUserSealToken = "";
14369
14394
  }
14370
14395
  }
14371
14396
  });
@@ -14494,10 +14519,16 @@ class UserinforInstance2 extends BaseInstance {
14494
14519
  content: "确定要清除该圆章图片吗?",
14495
14520
  onOk: async () => {
14496
14521
  await new FileApi().deleteByToken(this.userSignFormModel.CAUserYZToken);
14497
- const apiResult = await this.userSignApi.save({ Id: this.userSignFormModel.Id, CAUserYZImg: "" });
14498
- const result = this.utilities.parseApiResult(apiResult);
14499
- if (result) {
14522
+ if (this.userSignFormModel.Id) {
14523
+ const apiResult = await this.userSignApi.save({ Id: this.userSignFormModel.Id, CAUserYZImg: "", CAUserYZToken: "" });
14524
+ const result = this.utilities.parseApiResult(apiResult);
14525
+ if (result) {
14526
+ this.userSignFormModel.CAUserYZImg = "";
14527
+ this.userSignFormModel.CAUserYZToken = "";
14528
+ }
14529
+ } else {
14500
14530
  this.userSignFormModel.CAUserYZImg = "";
14531
+ this.userSignFormModel.CAUserYZToken = "";
14501
14532
  }
14502
14533
  }
14503
14534
  });
@@ -14869,6 +14900,8 @@ class UserinforInstance2 extends BaseInstance {
14869
14900
  this.userSignFormModel.CAUserYZKey = "";
14870
14901
  this.userSignFormModel.CAUserSealImg = "";
14871
14902
  this.userSignFormModel.CAUserYZImg = "";
14903
+ this.userSignFormModel.CAUserSealToken = "";
14904
+ this.userSignFormModel.CAUserYZToken = "";
14872
14905
  }
14873
14906
  }
14874
14907
  /**
@@ -14879,7 +14912,7 @@ class UserinforInstance2 extends BaseInstance {
14879
14912
  */
14880
14913
  async uploadUserSignImg(userId, token, img) {
14881
14914
  var _a, _b, _c;
14882
- let ossClient = await new OSSFileApi().getOSSClient();
14915
+ let ossClient = await new OSSFileApi();
14883
14916
  let fileName = "用户签名" + userId + ".png";
14884
14917
  let FileCabinePath = ((_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.OssRootPath) + "/0/0/";
14885
14918
  let catalog = "root";
@@ -15667,7 +15700,7 @@ class UserinforSLInstance2 extends BaseInstance {
15667
15700
  var _a;
15668
15701
  this.spinPlatShow.value = true;
15669
15702
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
15670
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
15703
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
15671
15704
  PId: platId
15672
15705
  })).orderBy(["OrderNo"]));
15673
15706
  this.platData.value = this.utilities.parseApiResult(apiResult);
@@ -16225,7 +16258,7 @@ class UserinforSLInstance2 extends BaseInstance {
16225
16258
  let userRoles = this.utilities.parseApiResult(apiResult);
16226
16259
  let insertRecords = [];
16227
16260
  for (const item of chkDatas) {
16228
- if (userRoles.findIndex((d2) => d2.RoleId == item.Id) == -1) {
16261
+ if (userRoles.findIndex((d) => d.RoleId == item.Id) == -1) {
16229
16262
  insertRecords.push({
16230
16263
  PlatformId: this.selectedPlatform.Id,
16231
16264
  UserId: this.currentUser.Id,
@@ -16235,7 +16268,7 @@ class UserinforSLInstance2 extends BaseInstance {
16235
16268
  }
16236
16269
  let deleteRecords = [];
16237
16270
  for (const item of userRoles) {
16238
- if (chkDatas.findIndex((d2) => d2.Id == item.RoleId) == -1) {
16271
+ if (chkDatas.findIndex((d) => d.Id == item.RoleId) == -1) {
16239
16272
  deleteRecords.push(item.Id);
16240
16273
  }
16241
16274
  }
@@ -17069,7 +17102,7 @@ class UserinforSLInstance2 extends BaseInstance {
17069
17102
  */
17070
17103
  async uploadUserSignImg(userId, token, img) {
17071
17104
  var _a, _b, _c;
17072
- let ossClient = await new OSSFileApi().getOSSClient();
17105
+ let ossClient = await new OSSFileApi();
17073
17106
  let fileName = "用户签名" + userId + ".png";
17074
17107
  let FileCabinePath = ((_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.OssRootPath) + "/0/0/";
17075
17108
  let catalog = "root";
@@ -17871,60 +17904,6 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
17871
17904
  });
17872
17905
  }
17873
17906
  const subuserinforSL = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-b5ff2a50"]]);
17874
- function r(t, e) {
17875
- for (var n = 0; n < e.length; n++) {
17876
- var r2 = e[n];
17877
- r2.enumerable = r2.enumerable || false, r2.configurable = true, "value" in r2 && (r2.writable = true), Object.defineProperty(t, s(r2.key), r2);
17878
- }
17879
- }
17880
- function o(t, e, n) {
17881
- return e && r(t.prototype, e), n && r(t, n), Object.defineProperty(t, "prototype", { writable: false }), t;
17882
- }
17883
- function i(t, e) {
17884
- t.prototype = Object.create(e.prototype), t.prototype.constructor = t, u(t, e);
17885
- }
17886
- function u(t, e) {
17887
- return u = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
17888
- return t2.__proto__ = e2, t2;
17889
- }, u(t, e);
17890
- }
17891
- function s(t) {
17892
- var e = function(t2) {
17893
- if ("object" != typeof t2 || !t2)
17894
- return t2;
17895
- var e2 = t2[Symbol.toPrimitive];
17896
- if (void 0 !== e2) {
17897
- var n = e2.call(t2, "string");
17898
- if ("object" != typeof n)
17899
- return n;
17900
- throw new TypeError("@@toPrimitive must return a primitive value.");
17901
- }
17902
- return String(t2);
17903
- }(t);
17904
- return "symbol" == typeof e ? e : e + "";
17905
- }
17906
- var d = /* @__PURE__ */ function(t) {
17907
- function e() {
17908
- return t.apply(this, arguments) || this;
17909
- }
17910
- return i(e, t), o(e, [{ key: "ProxyName", get: function() {
17911
- return "PermissionApi";
17912
- } }]);
17913
- }(BaseApi), y = /* @__PURE__ */ function(t) {
17914
- function e() {
17915
- return t.apply(this, arguments) || this;
17916
- }
17917
- return i(e, t), o(e, [{ key: "ControllerName", get: function() {
17918
- return "Platform";
17919
- } }]);
17920
- }(d), C = /* @__PURE__ */ function(t) {
17921
- function e() {
17922
- return t.apply(this, arguments) || this;
17923
- }
17924
- return i(e, t), o(e, [{ key: "ControllerName", get: function() {
17925
- return "LoginLog";
17926
- } }]);
17927
- }(d);
17928
17907
  const propDefine$6 = {
17929
17908
  linkParam: {
17930
17909
  // 带入的参数
@@ -17956,14 +17935,14 @@ let Instance$2 = class Instance extends BaseInstance {
17956
17935
  __publicField(this, "ctx");
17957
17936
  // 全局属性
17958
17937
  /** 主表 */
17959
- __publicField(this, "mainApi", new C());
17938
+ __publicField(this, "mainApi", new LoginLogApi());
17960
17939
  /** 人员信息 */
17961
17940
  __publicField(this, "userInfo", this.storageInfo.getUser());
17962
17941
  /** 机构信息 */
17963
17942
  __publicField(this, "businessInfo", this.storageInfo.getCurrentInsTree());
17964
17943
  /** 项目信息 */
17965
17944
  __publicField(this, "projectInfo", this.storageInfo.getCurrentPlatform());
17966
- __publicField(this, "platformApi", new y());
17945
+ __publicField(this, "platformApi", new PlatformApi());
17967
17946
  //#region Grid
17968
17947
  // 私有属性 | private
17969
17948
  // 响应属性 | ref、reactive、computed、watch
@@ -18281,13 +18260,13 @@ let Instance$2 = class Instance extends BaseInstance {
18281
18260
  let qw = QueryWrapper.create();
18282
18261
  if (this.props.linkParam == "sub") {
18283
18262
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
18284
- qw.eq("Id", platId).or((i2) => i2.allEq({
18263
+ qw.eq("Id", platId).or((i) => i.allEq({
18285
18264
  PId: platId
18286
18265
  })).orderBy(["OrderNo"]);
18287
18266
  } else if (this.props.linkParam == "")
18288
18267
  ;
18289
18268
  else {
18290
- qw.eq("Id", this.props.linkParam).or((i2) => i2.allEq({
18269
+ qw.eq("Id", this.props.linkParam).or((i) => i.allEq({
18291
18270
  PId: this.props.linkParam
18292
18271
  })).orderBy(["OrderNo"]);
18293
18272
  }
@@ -18553,7 +18532,7 @@ class ModuleInstance2 extends BaseInstance {
18553
18532
  var _a;
18554
18533
  this.spinPlatShow.value = true;
18555
18534
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
18556
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
18535
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
18557
18536
  PId: platId
18558
18537
  })).orderBy(["OrderNo"]));
18559
18538
  this.platData.value = this.utilities.parseApiResult(apiResult);
@@ -19325,7 +19304,7 @@ class ModuleInstance2 extends BaseInstance {
19325
19304
  async loadOriginPlatforms() {
19326
19305
  var _a;
19327
19306
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
19328
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.selectedPlatform.Id).or((i2) => i2.allEq({
19307
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.selectedPlatform.Id).or((i) => i.allEq({
19329
19308
  PId: platId
19330
19309
  })).orderBy(["OrderNo"]));
19331
19310
  this.originPlatform.list = this.utilities.parseApiResult(apiResult);
@@ -32246,9 +32225,9 @@ var Utils = {
32246
32225
  }
32247
32226
  }
32248
32227
  const argArray = [];
32249
- for (let i2 = 1; i2 <= maxLength; i2++) {
32228
+ for (let i = 1; i <= maxLength; i++) {
32250
32229
  let dollar = "";
32251
- for (let j = 0; j < i2; j++) {
32230
+ for (let j = 0; j < i; j++) {
32252
32231
  dollar += "$";
32253
32232
  }
32254
32233
  argArray.push(dollar);
@@ -32773,8 +32752,8 @@ Enumerable.prototype.traverseDepthFirst = function(func, resultSelector) {
32773
32752
  try {
32774
32753
  Utils.dispose(enumerator);
32775
32754
  } finally {
32776
- Enumerable.from(enumeratorStack).forEach(function(s2) {
32777
- s2.dispose();
32755
+ Enumerable.from(enumeratorStack).forEach(function(s) {
32756
+ s.dispose();
32778
32757
  });
32779
32758
  }
32780
32759
  }
@@ -33627,8 +33606,8 @@ Enumerable.prototype.shuffle = function() {
33627
33606
  },
33628
33607
  function() {
33629
33608
  if (buffer.length > 0) {
33630
- const i2 = Math.floor(Math.random() * buffer.length);
33631
- return this.yieldReturn(buffer.splice(i2, 1)[0]);
33609
+ const i = Math.floor(Math.random() * buffer.length);
33610
+ return this.yieldReturn(buffer.splice(i, 1)[0]);
33632
33611
  }
33633
33612
  return false;
33634
33613
  },
@@ -33796,8 +33775,8 @@ Enumerable.prototype.average = function(selector) {
33796
33775
  Enumerable.prototype.count = function(predicate) {
33797
33776
  predicate = predicate == null ? Functions.True : Utils.createLambda(predicate);
33798
33777
  var count = 0;
33799
- this.forEach(function(x, i2) {
33800
- if (predicate(x, i2))
33778
+ this.forEach(function(x, i) {
33779
+ if (predicate(x, i))
33801
33780
  ++count;
33802
33781
  });
33803
33782
  return count;
@@ -33838,8 +33817,8 @@ Enumerable.prototype.sum = function(selector) {
33838
33817
  Enumerable.prototype.elementAt = function(index2) {
33839
33818
  var value;
33840
33819
  var found = false;
33841
- this.forEach(function(x, i2) {
33842
- if (i2 == index2) {
33820
+ this.forEach(function(x, i) {
33821
+ if (i == index2) {
33843
33822
  value = x;
33844
33823
  found = true;
33845
33824
  return false;
@@ -33854,8 +33833,8 @@ Enumerable.prototype.elementAtOrDefault = function(index2, defaultValue) {
33854
33833
  defaultValue = null;
33855
33834
  var value;
33856
33835
  var found = false;
33857
- this.forEach(function(x, i2) {
33858
- if (i2 == index2) {
33836
+ this.forEach(function(x, i) {
33837
+ if (i == index2) {
33859
33838
  value = x;
33860
33839
  found = true;
33861
33840
  return false;
@@ -34101,16 +34080,16 @@ Enumerable.prototype.takeFromLast = function(count) {
34101
34080
  Enumerable.prototype.indexOf = function(item) {
34102
34081
  var found = null;
34103
34082
  if (typeof item === Types.Function) {
34104
- this.forEach(function(x, i2) {
34105
- if (item(x, i2)) {
34106
- found = i2;
34083
+ this.forEach(function(x, i) {
34084
+ if (item(x, i)) {
34085
+ found = i;
34107
34086
  return false;
34108
34087
  }
34109
34088
  });
34110
34089
  } else {
34111
- this.forEach(function(x, i2) {
34090
+ this.forEach(function(x, i) {
34112
34091
  if (x === item) {
34113
- found = i2;
34092
+ found = i;
34114
34093
  return false;
34115
34094
  }
34116
34095
  });
@@ -34120,14 +34099,14 @@ Enumerable.prototype.indexOf = function(item) {
34120
34099
  Enumerable.prototype.lastIndexOf = function(item) {
34121
34100
  var result = -1;
34122
34101
  if (typeof item === Types.Function) {
34123
- this.forEach(function(x, i2) {
34124
- if (item(x, i2))
34125
- result = i2;
34102
+ this.forEach(function(x, i) {
34103
+ if (item(x, i))
34104
+ result = i;
34126
34105
  });
34127
34106
  } else {
34128
- this.forEach(function(x, i2) {
34107
+ this.forEach(function(x, i) {
34129
34108
  if (x === item)
34130
- result = i2;
34109
+ result = i;
34131
34110
  });
34132
34111
  }
34133
34112
  return result;
@@ -34455,8 +34434,8 @@ SortContext.prototype.GenerateKeys = function(source) {
34455
34434
  var len = source.length;
34456
34435
  var keySelector = this.keySelector;
34457
34436
  var keys = new Array(len);
34458
- for (let i2 = 0; i2 < len; i2++)
34459
- keys[i2] = keySelector(source[i2]);
34437
+ for (let i = 0; i < len; i++)
34438
+ keys[i] = keySelector(source[i]);
34460
34439
  this.keys = keys;
34461
34440
  if (this.child != null)
34462
34441
  this.child.GenerateKeys(source);
@@ -34739,10 +34718,10 @@ var Dictionary = function() {
34739
34718
  var entry = new HashEntry(key, value);
34740
34719
  if (callHasOwnProperty(this.buckets, hash)) {
34741
34720
  const array = this.buckets[hash];
34742
- for (let i2 = 0; i2 < array.length; i2++) {
34743
- if (this.compareSelector(array[i2].key) === compareKey) {
34744
- this.entryList.replace(array[i2], entry);
34745
- array[i2] = entry;
34721
+ for (let i = 0; i < array.length; i++) {
34722
+ if (this.compareSelector(array[i].key) === compareKey) {
34723
+ this.entryList.replace(array[i], entry);
34724
+ array[i] = entry;
34746
34725
  return;
34747
34726
  }
34748
34727
  }
@@ -34759,8 +34738,8 @@ var Dictionary = function() {
34759
34738
  if (!callHasOwnProperty(this.buckets, hash))
34760
34739
  return void 0;
34761
34740
  var array = this.buckets[hash];
34762
- for (let i2 = 0; i2 < array.length; i2++) {
34763
- const entry = array[i2];
34741
+ for (let i = 0; i < array.length; i++) {
34742
+ const entry = array[i];
34764
34743
  if (this.compareSelector(entry.key) === compareKey)
34765
34744
  return entry.value;
34766
34745
  }
@@ -34771,11 +34750,11 @@ var Dictionary = function() {
34771
34750
  var hash = computeHashCode(compareKey);
34772
34751
  if (callHasOwnProperty(this.buckets, hash)) {
34773
34752
  const array = this.buckets[hash];
34774
- for (let i2 = 0; i2 < array.length; i2++) {
34775
- if (this.compareSelector(array[i2].key) === compareKey) {
34753
+ for (let i = 0; i < array.length; i++) {
34754
+ if (this.compareSelector(array[i].key) === compareKey) {
34776
34755
  const newEntry = new HashEntry(key, value);
34777
- this.entryList.replace(array[i2], newEntry);
34778
- array[i2] = newEntry;
34756
+ this.entryList.replace(array[i], newEntry);
34757
+ array[i] = newEntry;
34779
34758
  return true;
34780
34759
  }
34781
34760
  }
@@ -34788,8 +34767,8 @@ var Dictionary = function() {
34788
34767
  if (!callHasOwnProperty(this.buckets, hash))
34789
34768
  return false;
34790
34769
  var array = this.buckets[hash];
34791
- for (let i2 = 0; i2 < array.length; i2++) {
34792
- if (this.compareSelector(array[i2].key) === compareKey)
34770
+ for (let i = 0; i < array.length; i++) {
34771
+ if (this.compareSelector(array[i].key) === compareKey)
34793
34772
  return true;
34794
34773
  }
34795
34774
  return false;
@@ -34805,10 +34784,10 @@ var Dictionary = function() {
34805
34784
  if (!callHasOwnProperty(this.buckets, hash))
34806
34785
  return;
34807
34786
  var array = this.buckets[hash];
34808
- for (let i2 = 0; i2 < array.length; i2++) {
34809
- if (this.compareSelector(array[i2].key) === compareKey) {
34810
- this.entryList.remove(array[i2]);
34811
- array.splice(i2, 1);
34787
+ for (let i = 0; i < array.length; i++) {
34788
+ if (this.compareSelector(array[i].key) === compareKey) {
34789
+ this.entryList.remove(array[i]);
34790
+ array.splice(i, 1);
34812
34791
  if (array.length == 0)
34813
34792
  delete this.buckets[hash];
34814
34793
  this.countField--;
@@ -35076,7 +35055,7 @@ let ProjectUserinforInstance$1 = class ProjectUserinforInstance extends BaseInst
35076
35055
  var _a;
35077
35056
  this.spinPlatShow.value = true;
35078
35057
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
35079
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
35058
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
35080
35059
  PId: platId
35081
35060
  })).orderBy(["OrderNo"]));
35082
35061
  this.platData.value = this.utilities.parseApiResult(apiResult);
@@ -35750,7 +35729,7 @@ class ProjectSummaryInstance extends BaseInstance {
35750
35729
  if (arr && arr.length > 0) {
35751
35730
  this.isShowForm.value = true;
35752
35731
  this.isShowSpin.value = true;
35753
- arr.forEach((x, i2) => {
35732
+ arr.forEach((x, i) => {
35754
35733
  if (x.type == "region") {
35755
35734
  let regionArr = [
35756
35735
  {
@@ -35809,7 +35788,7 @@ class ProjectSummaryInstance extends BaseInstance {
35809
35788
  ] : []
35810
35789
  }
35811
35790
  ];
35812
- arr.splice(i2, 1, ...regionArr);
35791
+ arr.splice(i, 1, ...regionArr);
35813
35792
  }
35814
35793
  if (x.requiredd > 0) {
35815
35794
  switch (x.type) {
@@ -35838,15 +35817,15 @@ class ProjectSummaryInstance extends BaseInstance {
35838
35817
  }
35839
35818
  this.mainFormItems.splice(0, this.mainFormItems.length, ...arr);
35840
35819
  console.log("xxxxxxxxxxxxx", this.mainFormItems);
35841
- this.mainFormItems.forEach((x, i2) => {
35820
+ this.mainFormItems.forEach((x, i) => {
35842
35821
  if (x.model == "Province") {
35843
- this.provinceIndex.value = i2;
35822
+ this.provinceIndex.value = i;
35844
35823
  }
35845
35824
  if (x.model == "City") {
35846
- this.cityIndex.value = i2;
35825
+ this.cityIndex.value = i;
35847
35826
  }
35848
35827
  if (x.model == "Area") {
35849
- this.areaIndex.value = i2;
35828
+ this.areaIndex.value = i;
35850
35829
  }
35851
35830
  });
35852
35831
  console.log("xxxxxxxxxxxxx", this.mainFormItems);
@@ -36103,7 +36082,7 @@ class ProjectUserinforInstance2 extends BaseInstance {
36103
36082
  var _a;
36104
36083
  this.spinPlatShow.value = true;
36105
36084
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
36106
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
36085
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
36107
36086
  PId: platId
36108
36087
  })).orderBy(["OrderNo"]));
36109
36088
  this.platData.value = this.utilities.parseApiResult(apiResult);
@@ -36611,7 +36590,7 @@ class ProjectUserinforInstance2 extends BaseInstance {
36611
36590
  let userRoles = this.utilities.parseApiResult(apiResult);
36612
36591
  let insertRecords = [];
36613
36592
  for (const item of chkDatas) {
36614
- if (userRoles.findIndex((d2) => d2.RoleId == item.Id) == -1) {
36593
+ if (userRoles.findIndex((d) => d.RoleId == item.Id) == -1) {
36615
36594
  insertRecords.push({
36616
36595
  PlatformId: this.selectedPlatform.Id,
36617
36596
  UserId: this.currentUser.Id,
@@ -36621,7 +36600,7 @@ class ProjectUserinforInstance2 extends BaseInstance {
36621
36600
  }
36622
36601
  let deleteRecords = [];
36623
36602
  for (const item of userRoles) {
36624
- if (chkDatas.findIndex((d2) => d2.Id == item.RoleId) == -1) {
36603
+ if (chkDatas.findIndex((d) => d.Id == item.RoleId) == -1) {
36625
36604
  deleteRecords.push(item.Id);
36626
36605
  }
36627
36606
  }
@@ -37155,8 +37134,8 @@ class ProjectUserinforInstance2 extends BaseInstance {
37155
37134
  }
37156
37135
  }
37157
37136
  }
37158
- const ProjectUserinfor_vue_vue_type_style_index_0_scoped_585a48b7_lang = "";
37159
- const _withScopeId = (n) => (pushScopeId("data-v-585a48b7"), n = n(), popScopeId(), n);
37137
+ const ProjectUserinfor_vue_vue_type_style_index_0_scoped_07e382fc_lang = "";
37138
+ const _withScopeId = (n) => (pushScopeId("data-v-07e382fc"), n = n(), popScopeId(), n);
37160
37139
  const _hoisted_1$1 = { class: "instree-search" };
37161
37140
  const _hoisted_2 = { class: "instree-list" };
37162
37141
  const _hoisted_3 = { style: { "height": "600px", "overflow-y": "auto" } };
@@ -37276,7 +37255,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
37276
37255
  }, 8, ["onChange"]),
37277
37256
  createVNode(_component_NvBox, {
37278
37257
  width: _ctx.userBoxWidth,
37279
- title: "用户列表111"
37258
+ title: "用户列表"
37280
37259
  }, {
37281
37260
  default: withCtx(() => [
37282
37261
  createVNode(_component_NvGrid, {
@@ -37521,7 +37500,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
37521
37500
  _: 1
37522
37501
  });
37523
37502
  }
37524
- const projectUser = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-585a48b7"]]);
37503
+ const projectUser = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-07e382fc"]]);
37525
37504
  const propDefine$1 = {
37526
37505
  linkParam: {
37527
37506
  // 带入的参数
@@ -37985,7 +37964,7 @@ class Instance3 extends BaseInstance {
37985
37964
  var _a;
37986
37965
  this.spinPlatShow.value = true;
37987
37966
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
37988
- let apiResult = this.utilities.parseApiResult(await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
37967
+ let apiResult = this.utilities.parseApiResult(await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
37989
37968
  PId: platId
37990
37969
  })).orderBy(["OrderNo"])));
37991
37970
  console.log(apiResult, "平台信息");