@newview/permission-service 1.2.43 → 1.2.45

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.
package/README.md CHANGED
@@ -1,3 +1,13 @@
1
+ ### 版本 1.2.45
2
+ 1、判断同一平台下手机号是否唯一
3
+
4
+
5
+ ### 版本 1.2.44
6
+ 1、更新
7
+
8
+ ### 版本 1.2.41
9
+ 1、更新
10
+
1
11
  ### 版本 1.2.40
2
12
  1、更新
3
13
 
@@ -7,8 +7,7 @@ var __publicField = (obj, key, value) => {
7
7
  import { BaseInstance } from "@newview/base-vue";
8
8
  import { defineComponent, ref, reactive, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, nextTick, toDisplayString, createElementBlock, Fragment, renderList, withDirectives, vShow, pushScopeId, popScopeId, onUnmounted, createCommentVNode, computed, withModifiers } from "vue";
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
- import { QueryWrapper, request } from "@newview/infrastructure";
11
- import { CorePlatformConfigApi, CorePartnerApi } from "@newview/permission-db-api";
10
+ import { BaseApi, QueryWrapper, request } from "@newview/infrastructure";
12
11
  import { Icon, Tag, Checkbox, Divider, CheckboxGroup, Space } from "view-ui-plus";
13
12
  import { SelectPlatform, BaseLogin, PersonSel, getUserSealImg } from "@newview/permission-ui";
14
13
  import { SignTaskInfoApi } from "@newview/casign-api";
@@ -16,6 +15,35 @@ import { NvComFormUp } from "@newview/file-ui";
16
15
  import { ProvinceApi, CityApi, AreaApi, DictionaryDetailApi, DictionaryTypeApi } from "@newview/basics-api";
17
16
  import { FileApi, OSSFileApi, FileInfoApi } from "@newview/fileservice-api";
18
17
  import { NvMap } from "@newview/map";
18
+ class DBCenterBaseApi extends BaseApi {
19
+ get ProxyName() {
20
+ return "CalcPythonApi";
21
+ }
22
+ constructor() {
23
+ super();
24
+ this.addHeader("projectid", 0);
25
+ this.addHeader("devprod", "prod");
26
+ this.addHeader("dbSkey", "08fb72ad2cf661088849ef17fdaab21a");
27
+ }
28
+ }
29
+ class CorePartnerApi extends DBCenterBaseApi {
30
+ get ControllerName() {
31
+ return "currency";
32
+ }
33
+ constructor() {
34
+ super();
35
+ this.addHeader("tableName", "core_partner");
36
+ }
37
+ }
38
+ class CorePlatformConfigApi extends DBCenterBaseApi {
39
+ get ControllerName() {
40
+ return "currency";
41
+ }
42
+ constructor() {
43
+ super();
44
+ this.addHeader("tableName", "core_platform_config");
45
+ }
46
+ }
19
47
  const propDefine$l = {
20
48
  linkParam: {
21
49
  // 带入的参数
@@ -4507,12 +4535,14 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
4507
4535
  // 响应属性 | ref、reactive、computed
4508
4536
  __publicField(this, "institutionTree", ref([]));
4509
4537
  __publicField(this, "loadingInstitutionTree", ref(false));
4538
+ __publicField(this, "insTreeIds", ref(""));
4510
4539
  // 响应式方法 | xxx = () => {}
4511
4540
  /**
4512
4541
  * 平台切换
4513
4542
  */
4514
4543
  __publicField(this, "doChangePlatform", (data) => {
4515
4544
  this.selectedPlatform = data;
4545
+ console.log(data, "11111111111111111111;;;;");
4516
4546
  this.loadInsTree();
4517
4547
  });
4518
4548
  /**
@@ -4546,6 +4576,7 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
4546
4576
  __publicField(this, "doChangeInsTree", (datas) => {
4547
4577
  if (datas.length > 0) {
4548
4578
  this.selectedInsTree = datas[0];
4579
+ this.insTreeUserGrid.value.setPageIndex(1);
4549
4580
  this.loadInstitutionTreeUsers({});
4550
4581
  }
4551
4582
  });
@@ -4903,17 +4934,14 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
4903
4934
  this.saveingUser.value = false;
4904
4935
  return;
4905
4936
  }
4906
- const queryWrapper2 = QueryWrapper.create();
4907
- queryWrapper2.eq("Phone", this.userFormModel.Phone).eq("IsDel", 0);
4908
- if (this.userFormModel.Id > 0) {
4909
- queryWrapper2.ne("Id", this.userFormModel.Id);
4910
- }
4911
- const apiResult2 = await this.userinforApi.isExist(queryWrapper2);
4912
- result = this.utilities.parseApiResult(apiResult2);
4913
- if (result) {
4914
- this.message.warning(`手机号 ${this.userFormModel.Phone} 已关联其他账号, 请重新输入!`);
4915
- this.saveingUser.value = false;
4916
- return;
4937
+ let res = this.utilities.parseApiResult(await this.userinforApi.getInstitutionTreeAllUsers(0, this.selectedPlatform.Id));
4938
+ if (res && res.length > 0) {
4939
+ let user = res.filter((x) => x.IsDel == 0 && x.Phone == this.userFormModel.Phone && x.Id !== this.userFormModel.Id);
4940
+ if (user.length > 0) {
4941
+ this.message.warning(`手机号 ${this.userFormModel.Phone} 已在当前平台下关联其他账号, 请重新输入!`);
4942
+ this.saveingUser.value = false;
4943
+ return;
4944
+ }
4917
4945
  }
4918
4946
  }
4919
4947
  const queryWrapper = QueryWrapper.create();
@@ -5407,6 +5435,10 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
5407
5435
  this.loadingInstitutionTree.value = true;
5408
5436
  const apiResult = await this.institutionTreeApi.getInstitutionTrees(this.selectedPlatform.Id);
5409
5437
  const datas = this.utilities.parseApiResult(apiResult);
5438
+ if (datas && datas.length > 0) {
5439
+ this.insTreeIds.value = datas.map((item) => item.Id).join(",");
5440
+ this.utilities.parseApiResult(await this.userinforApi.getInstitutionTreeAllUsers(0, this.selectedPlatform.Id));
5441
+ }
5410
5442
  this.loadingInstitutionTree.value = false;
5411
5443
  const whileChildData = (pId) => {
5412
5444
  const childDatas = datas.filter((item) => item.PId == pId);
@@ -14211,8 +14243,8 @@ class ModuleInstance2 extends BaseInstance {
14211
14243
  // 响应式方法 | xxx = () => {}
14212
14244
  //#endregion 业务逻辑 END
14213
14245
  }
14214
- const Module_vue_vue_type_style_index_0_scoped_a73dad2e_lang = "";
14215
- const _withScopeId$1 = (n) => (pushScopeId("data-v-a73dad2e"), n = n(), popScopeId(), n);
14246
+ const Module_vue_vue_type_style_index_0_scoped_23a8ab5f_lang = "";
14247
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-23a8ab5f"), n = n(), popScopeId(), n);
14216
14248
  const _hoisted_1$4 = { style: { "height": "650px", "overflow-y": "auto" } };
14217
14249
  const _hoisted_2$2 = {
14218
14250
  class: "import-module",
@@ -14482,7 +14514,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
14482
14514
  _: 1
14483
14515
  });
14484
14516
  }
14485
- const subModule = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-a73dad2e"]]);
14517
+ const subModule = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-23a8ab5f"]]);
14486
14518
  const type = "FeatureCollection";
14487
14519
  const features = [
14488
14520
  {
@@ -30170,7 +30202,7 @@ let ProjectUserinforInstance$1 = class ProjectUserinforInstance extends BaseInst
30170
30202
  }
30171
30203
  //#endregion 系统平台 END
30172
30204
  };
30173
- const Sublinepoins_vue_vue_type_style_index_0_scoped_5bc5e71a_lang = "";
30205
+ const Sublinepoins_vue_vue_type_style_index_0_scoped_cb9d2558_lang = "";
30174
30206
  const _hoisted_1$3 = { class: "instree-search" };
30175
30207
  const _hoisted_2$1 = { class: "instree-list" };
30176
30208
  const _hoisted_3$1 = { class: "nv-flex-1 nv-flex-col map-box" };
@@ -30439,7 +30471,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
30439
30471
  _: 1
30440
30472
  });
30441
30473
  }
30442
- const sublinepoins = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-5bc5e71a"]]);
30474
+ const sublinepoins = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-cb9d2558"]]);
30443
30475
  const propDefine$3 = {
30444
30476
  Id: {
30445
30477
  default: 0,