@newview/permission-service 1.2.5 → 1.2.7

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.
@@ -391,7 +391,7 @@ class UserSignApi extends PermissionBaseApi {
391
391
  return "UserSign";
392
392
  }
393
393
  }
394
- const propDefine$r = {
394
+ const propDefine$s = {
395
395
  linkParam: {
396
396
  // 带入的参数
397
397
  type: String,
@@ -403,12 +403,12 @@ const propDefine$r = {
403
403
  default: "-"
404
404
  }
405
405
  };
406
- const _sfc_main$l = defineComponent({
406
+ const _sfc_main$m = defineComponent({
407
407
  name: "Platform",
408
408
  components: {},
409
409
  emits: [""],
410
410
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
411
- props: propDefine$r,
411
+ props: propDefine$s,
412
412
  setup(props, ctx) {
413
413
  return new PlatformInstance$1(props, ctx);
414
414
  }
@@ -782,13 +782,13 @@ const _export_sfc = (sfc, props) => {
782
782
  }
783
783
  return target;
784
784
  };
785
- const _hoisted_1$j = {
785
+ const _hoisted_1$k = {
786
786
  class: "nv-flex",
787
787
  style: { "justify-content": "space-between" }
788
788
  };
789
- const _hoisted_2$a = { style: { "height": "500px", "overflow-y": "auto" } };
790
- const _hoisted_3$9 = { style: { "height": "400px", "overflow-y": "auto" } };
791
- function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
789
+ const _hoisted_2$b = { style: { "height": "500px", "overflow-y": "auto" } };
790
+ const _hoisted_3$a = { style: { "height": "400px", "overflow-y": "auto" } };
791
+ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
792
792
  const _component_NvList = resolveComponent("NvList");
793
793
  const _component_Icon = resolveComponent("Icon");
794
794
  const _component_Space = resolveComponent("Space");
@@ -810,7 +810,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
810
810
  "show-arrow": true
811
811
  }, {
812
812
  footer: withCtx(() => [
813
- createElementVNode("div", _hoisted_1$j, [
813
+ createElementVNode("div", _hoisted_1$k, [
814
814
  createVNode(_component_Space, null, {
815
815
  default: withCtx(() => [
816
816
  createVNode(_component_Icon, {
@@ -891,7 +891,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
891
891
  }, 8, ["loading", "onClick"])
892
892
  ]),
893
893
  default: withCtx(() => [
894
- createElementVNode("div", _hoisted_2$a, [
894
+ createElementVNode("div", _hoisted_2$b, [
895
895
  createVNode(_component_Form, {
896
896
  ref: "refPlatformForm",
897
897
  model: _ctx.platformFormModel,
@@ -941,7 +941,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
941
941
  }, 8, ["loading", "onClick"])
942
942
  ]),
943
943
  default: withCtx(() => [
944
- createElementVNode("div", _hoisted_3$9, [
944
+ createElementVNode("div", _hoisted_3$a, [
945
945
  createVNode(_component_Form, {
946
946
  ref: "refGroupForm",
947
947
  model: _ctx.groupFormModel,
@@ -963,7 +963,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
963
963
  _: 1
964
964
  });
965
965
  }
966
- const Platform = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-c0da56b4"]]);
966
+ const Platform = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-c0da56b4"]]);
967
967
  class BasicsBaseApi extends BaseApi {
968
968
  get ProxyName() {
969
969
  return "BasicsApi";
@@ -1032,7 +1032,7 @@ class CaptchaApi extends BasicsBaseApi {
1032
1032
  return this.send({ source }, "getCaptcha", Methods.GET);
1033
1033
  }
1034
1034
  }
1035
- const propDefine$q = {
1035
+ const propDefine$r = {
1036
1036
  theme: {
1037
1037
  // 主题颜色 light dark
1038
1038
  type: String,
@@ -1044,12 +1044,12 @@ const propDefine$q = {
1044
1044
  default: true
1045
1045
  }
1046
1046
  };
1047
- const _sfc_main$k = defineComponent({
1047
+ const _sfc_main$l = defineComponent({
1048
1048
  name: "BaseLogin",
1049
1049
  components: {},
1050
1050
  emits: [""],
1051
1051
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
1052
- props: propDefine$q,
1052
+ props: propDefine$r,
1053
1053
  setup(props, ctx) {
1054
1054
  return new BaseLoginInstance$1(props, ctx);
1055
1055
  }
@@ -1348,18 +1348,18 @@ let BaseLoginInstance$1 = class BaseLoginInstance extends BaseInstance {
1348
1348
  //#endregion API END
1349
1349
  };
1350
1350
  const BaseLogin_vue_vue_type_style_index_0_scoped_b23ae47e_lang = "";
1351
- const _withScopeId$3 = (n) => (pushScopeId("data-v-b23ae47e"), n = n(), popScopeId(), n);
1352
- const _hoisted_1$i = { class: "login-form" };
1353
- const _hoisted_2$9 = { class: "login-body" };
1354
- const _hoisted_3$8 = { class: "login-tabs" };
1355
- const _hoisted_4$8 = { class: "login-panel" };
1356
- const _hoisted_5$6 = { class: "login-input-item" };
1357
- const _hoisted_6$6 = { class: "login-input-item" };
1358
- const _hoisted_7$3 = {
1351
+ const _withScopeId$4 = (n) => (pushScopeId("data-v-b23ae47e"), n = n(), popScopeId(), n);
1352
+ const _hoisted_1$j = { class: "login-form" };
1353
+ const _hoisted_2$a = { class: "login-body" };
1354
+ const _hoisted_3$9 = { class: "login-tabs" };
1355
+ const _hoisted_4$9 = { class: "login-panel" };
1356
+ const _hoisted_5$7 = { class: "login-input-item" };
1357
+ const _hoisted_6$7 = { class: "login-input-item" };
1358
+ const _hoisted_7$4 = {
1359
1359
  class: "login-input-item",
1360
1360
  style: { "text-align": "right" }
1361
1361
  };
1362
- const _hoisted_8$3 = { class: "login-panel" };
1362
+ const _hoisted_8$4 = { class: "login-panel" };
1363
1363
  const _hoisted_9$2 = { class: "login-input-item" };
1364
1364
  const _hoisted_10$2 = { class: "login-input-item" };
1365
1365
  const _hoisted_11$2 = {
@@ -1379,14 +1379,14 @@ const _hoisted_15 = {
1379
1379
  const _hoisted_16 = { class: "login-tip" };
1380
1380
  const _hoisted_17 = { key: 0 };
1381
1381
  const _hoisted_18 = { key: 1 };
1382
- const _hoisted_19 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "captcha-tip" }, "在新设备登录,需要进行短信验证!", -1));
1382
+ const _hoisted_19 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { class: "captcha-tip" }, "在新设备登录,需要进行短信验证!", -1));
1383
1383
  const _hoisted_20 = { key: 0 };
1384
1384
  const _hoisted_21 = { key: 1 };
1385
1385
  const _hoisted_22 = {
1386
1386
  key: 1,
1387
1387
  class: "captcha-item"
1388
1388
  };
1389
- function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
1389
+ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
1390
1390
  const _component_Input = resolveComponent("Input");
1391
1391
  const _component_Checkbox = resolveComponent("Checkbox");
1392
1392
  const _component_Icon = resolveComponent("Icon");
@@ -1394,10 +1394,10 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
1394
1394
  const _component_FormItem = resolveComponent("FormItem");
1395
1395
  const _component_Form = resolveComponent("Form");
1396
1396
  const _component_Modal = resolveComponent("Modal");
1397
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
1397
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
1398
1398
  renderSlot(_ctx.$slots, "default", {}, () => [
1399
- createElementVNode("div", _hoisted_2$9, [
1400
- createElementVNode("div", _hoisted_3$8, [
1399
+ createElementVNode("div", _hoisted_2$a, [
1400
+ createElementVNode("div", _hoisted_3$9, [
1401
1401
  createElementVNode("div", {
1402
1402
  class: normalizeClass(_ctx.loadType == "userName" ? "login-tab login-tab--active" : "login-tab"),
1403
1403
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.loadType = "userName")
@@ -1407,8 +1407,8 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
1407
1407
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.loadType = "captcha")
1408
1408
  }, "验证码登录", 2)
1409
1409
  ]),
1410
- withDirectives(createElementVNode("div", _hoisted_4$8, [
1411
- createElementVNode("div", _hoisted_5$6, [
1410
+ withDirectives(createElementVNode("div", _hoisted_4$9, [
1411
+ createElementVNode("div", _hoisted_5$7, [
1412
1412
  createVNode(_component_Input, {
1413
1413
  size: "large",
1414
1414
  prefix: "md-person",
@@ -1418,7 +1418,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
1418
1418
  clearable: ""
1419
1419
  }, null, 8, ["modelValue"])
1420
1420
  ]),
1421
- createElementVNode("div", _hoisted_6$6, [
1421
+ createElementVNode("div", _hoisted_6$7, [
1422
1422
  createVNode(_component_Input, {
1423
1423
  type: "password",
1424
1424
  size: "large",
@@ -1429,7 +1429,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
1429
1429
  password: ""
1430
1430
  }, null, 8, ["modelValue"])
1431
1431
  ]),
1432
- createElementVNode("div", _hoisted_7$3, [
1432
+ createElementVNode("div", _hoisted_7$4, [
1433
1433
  createVNode(_component_Checkbox, {
1434
1434
  modelValue: _ctx.autoLogin,
1435
1435
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.autoLogin = $event)
@@ -1443,7 +1443,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
1443
1443
  ], 512), [
1444
1444
  [vShow, _ctx.loadType == "userName"]
1445
1445
  ]),
1446
- withDirectives(createElementVNode("div", _hoisted_8$3, [
1446
+ withDirectives(createElementVNode("div", _hoisted_8$4, [
1447
1447
  createElementVNode("div", _hoisted_9$2, [
1448
1448
  createVNode(_component_Input, {
1449
1449
  size: "large",
@@ -1571,8 +1571,8 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
1571
1571
  }, 8, ["modelValue"])
1572
1572
  ]);
1573
1573
  }
1574
- const BaseLogin = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-b23ae47e"]]);
1575
- const propDefine$p = {
1574
+ const BaseLogin = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-b23ae47e"]]);
1575
+ const propDefine$q = {
1576
1576
  defaultLoad: {
1577
1577
  // 默认选中
1578
1578
  type: Boolean,
@@ -1589,12 +1589,12 @@ const propDefine$p = {
1589
1589
  default: true
1590
1590
  }
1591
1591
  };
1592
- const _sfc_main$j = defineComponent({
1592
+ const _sfc_main$k = defineComponent({
1593
1593
  name: "SelectPlatform",
1594
1594
  components: {},
1595
1595
  emits: ["select"],
1596
1596
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
1597
- props: propDefine$p,
1597
+ props: propDefine$q,
1598
1598
  setup(props, ctx) {
1599
1599
  return new SelectPlatformInstance$1(props, ctx);
1600
1600
  }
@@ -1652,7 +1652,7 @@ let SelectPlatformInstance$1 = class SelectPlatformInstance extends BaseInstance
1652
1652
  }
1653
1653
  //#endregion 系统平台 END
1654
1654
  };
1655
- function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
1655
+ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
1656
1656
  const _component_Option = resolveComponent("Option");
1657
1657
  const _component_Select = resolveComponent("Select");
1658
1658
  const _component_Spin = resolveComponent("Spin");
@@ -1694,7 +1694,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
1694
1694
  _: 1
1695
1695
  }, 8, ["width", "label", "labelWidth", "onClick"]);
1696
1696
  }
1697
- const SelectPlatform = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j]]);
1697
+ const SelectPlatform = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k]]);
1698
1698
  class CASignBaseApi extends BaseOldApi {
1699
1699
  get ProxyName() {
1700
1700
  return "CASignApi";
@@ -1772,7 +1772,7 @@ const doSeal = async (sealKey, userPin, sealContent) => {
1772
1772
  return errorResult(result.head.msg);
1773
1773
  }
1774
1774
  };
1775
- const propDefine$o = {
1775
+ const propDefine$p = {
1776
1776
  platformId: {
1777
1777
  // 平台Id
1778
1778
  type: Number,
@@ -1804,7 +1804,7 @@ defineComponent({
1804
1804
  components: {},
1805
1805
  emits: ["signSuccess"],
1806
1806
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
1807
- props: propDefine$o,
1807
+ props: propDefine$p,
1808
1808
  setup(props, ctx) {
1809
1809
  return new CASignInstance$1(props, ctx);
1810
1810
  }
@@ -1901,7 +1901,7 @@ let CASignInstance$1 = class CASignInstance extends BaseInstance {
1901
1901
  //#endregion 执行签字 END
1902
1902
  };
1903
1903
  const CASign_vue_vue_type_style_index_0_scoped_4e1e0a16_lang = "";
1904
- const propDefine$n = {
1904
+ const propDefine$o = {
1905
1905
  loadCount: {
1906
1906
  // 加载Count方法
1907
1907
  type: Function
@@ -1912,7 +1912,7 @@ defineComponent({
1912
1912
  components: { SelectPlatform },
1913
1913
  emits: ["change"],
1914
1914
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
1915
- props: propDefine$n,
1915
+ props: propDefine$o,
1916
1916
  setup(props, ctx) {
1917
1917
  return new InstitutionTreeInstance$1(props, ctx);
1918
1918
  }
@@ -2010,7 +2010,7 @@ let InstitutionTreeInstance$1 = class InstitutionTreeInstance extends BaseInstan
2010
2010
  //#endregion 机构树 END
2011
2011
  };
2012
2012
  const InstitutionTree_vue_vue_type_style_index_0_scoped_35da1abc_lang = "";
2013
- const propDefine$m = {
2013
+ const propDefine$n = {
2014
2014
  theme: {
2015
2015
  // 主题颜色 light dark
2016
2016
  type: String,
@@ -2027,7 +2027,7 @@ defineComponent({
2027
2027
  components: {},
2028
2028
  emits: [""],
2029
2029
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
2030
- props: propDefine$m,
2030
+ props: propDefine$n,
2031
2031
  setup(props, ctx) {
2032
2032
  return new BaseLoginInstance2(props, ctx);
2033
2033
  }
@@ -2325,7 +2325,7 @@ class BaseLoginInstance2 extends BaseInstance {
2325
2325
  }
2326
2326
  //#endregion API END
2327
2327
  }
2328
- const propDefine$l = {
2328
+ const propDefine$m = {
2329
2329
  defaultLoad: {
2330
2330
  // 默认选中
2331
2331
  type: Boolean,
@@ -2347,7 +2347,7 @@ defineComponent({
2347
2347
  components: {},
2348
2348
  emits: ["select"],
2349
2349
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
2350
- props: propDefine$l,
2350
+ props: propDefine$m,
2351
2351
  setup(props, ctx) {
2352
2352
  return new SelectPlatformInstance2(props, ctx);
2353
2353
  }
@@ -2405,7 +2405,7 @@ class SelectPlatformInstance2 extends BaseInstance {
2405
2405
  }
2406
2406
  //#endregion 系统平台 END
2407
2407
  }
2408
- const propDefine$k = {
2408
+ const propDefine$l = {
2409
2409
  platformId: {
2410
2410
  // 平台Id
2411
2411
  type: Number,
@@ -2437,7 +2437,7 @@ defineComponent({
2437
2437
  components: {},
2438
2438
  emits: ["signSuccess"],
2439
2439
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
2440
- props: propDefine$k,
2440
+ props: propDefine$l,
2441
2441
  setup(props, ctx) {
2442
2442
  return new CASignInstance2(props, ctx);
2443
2443
  }
@@ -2533,7 +2533,7 @@ class CASignInstance2 extends BaseInstance {
2533
2533
  }
2534
2534
  //#endregion 执行签字 END
2535
2535
  }
2536
- const propDefine$j = {
2536
+ const propDefine$k = {
2537
2537
  loadCount: {
2538
2538
  // 加载Count方法
2539
2539
  type: Function
@@ -2544,7 +2544,7 @@ defineComponent({
2544
2544
  components: { SelectPlatform },
2545
2545
  emits: ["change"],
2546
2546
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
2547
- props: propDefine$j,
2547
+ props: propDefine$k,
2548
2548
  setup(props, ctx) {
2549
2549
  return new InstitutionTreeInstance2(props, ctx);
2550
2550
  }
@@ -2641,7 +2641,7 @@ class InstitutionTreeInstance2 extends BaseInstance {
2641
2641
  }
2642
2642
  //#endregion 机构树 END
2643
2643
  }
2644
- const propDefine$i = {
2644
+ const propDefine$j = {
2645
2645
  linkParam: {
2646
2646
  // 带入的参数
2647
2647
  type: String,
@@ -2653,17 +2653,17 @@ const propDefine$i = {
2653
2653
  default: "-"
2654
2654
  }
2655
2655
  };
2656
- const _sfc_main$i = defineComponent({
2656
+ const _sfc_main$j = defineComponent({
2657
2657
  name: "Module",
2658
2658
  components: { SelectPlatform },
2659
2659
  emits: ["change"],
2660
2660
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
2661
- props: propDefine$i,
2661
+ props: propDefine$j,
2662
2662
  setup(props, ctx) {
2663
- return new ModuleInstance(props, ctx);
2663
+ return new ModuleInstance$1(props, ctx);
2664
2664
  }
2665
2665
  });
2666
- class ModuleInstance extends BaseInstance {
2666
+ let ModuleInstance$1 = class ModuleInstance extends BaseInstance {
2667
2667
  constructor(props, ctx) {
2668
2668
  super();
2669
2669
  __publicField(this, "props");
@@ -3458,21 +3458,21 @@ class ModuleInstance extends BaseInstance {
3458
3458
  // 私有方法 | private 方法名() {}
3459
3459
  // 响应式方法 | xxx = () => {}
3460
3460
  //#endregion 业务逻辑 END
3461
- }
3461
+ };
3462
3462
  const Module_vue_vue_type_style_index_0_scoped_5a5ef504_lang = "";
3463
- const _withScopeId$2 = (n) => (pushScopeId("data-v-5a5ef504"), n = n(), popScopeId(), n);
3464
- const _hoisted_1$h = { style: { "height": "650px", "overflow-y": "auto" } };
3465
- const _hoisted_2$8 = {
3463
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-5a5ef504"), n = n(), popScopeId(), n);
3464
+ const _hoisted_1$i = { style: { "height": "650px", "overflow-y": "auto" } };
3465
+ const _hoisted_2$9 = {
3466
3466
  class: "import-module",
3467
3467
  style: { "height": "650px", "position": "relative" }
3468
3468
  };
3469
- const _hoisted_3$7 = { style: { "width": "100%", "height": "100%" } };
3470
- const _hoisted_4$7 = { style: { "width": "560px", "height": "100%", "float": "left" } };
3471
- const _hoisted_5$5 = { style: { "height": "calc(100% - 0px)" } };
3472
- const _hoisted_6$5 = { style: { "width": "calc(100% - 570px)", "height": "100%", "margin-left": "10px", "display": "inline-block" } };
3473
- const _hoisted_7$2 = { style: { "height": "calc(100% - 0px)" } };
3474
- const _hoisted_8$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "点击选择要放置的位置!", -1));
3475
- function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3469
+ const _hoisted_3$8 = { style: { "width": "100%", "height": "100%" } };
3470
+ const _hoisted_4$8 = { style: { "width": "560px", "height": "100%", "float": "left" } };
3471
+ const _hoisted_5$6 = { style: { "height": "calc(100% - 0px)" } };
3472
+ const _hoisted_6$6 = { style: { "width": "calc(100% - 570px)", "height": "100%", "margin-left": "10px", "display": "inline-block" } };
3473
+ const _hoisted_7$3 = { style: { "height": "calc(100% - 0px)" } };
3474
+ const _hoisted_8$3 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "点击选择要放置的位置!", -1));
3475
+ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
3476
3476
  const _component_SelectPlatform = resolveComponent("SelectPlatform");
3477
3477
  const _component_Radio = resolveComponent("Radio");
3478
3478
  const _component_RadioGroup = resolveComponent("RadioGroup");
@@ -3560,7 +3560,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3560
3560
  }, 8, ["loading", "onClick"])
3561
3561
  ]),
3562
3562
  default: withCtx(() => [
3563
- createElementVNode("div", _hoisted_1$h, [
3563
+ createElementVNode("div", _hoisted_1$i, [
3564
3564
  createVNode(_component_Form, {
3565
3565
  model: _ctx.moduleFormModel,
3566
3566
  "label-width": 90
@@ -3610,9 +3610,9 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3610
3610
  }, 8, ["loading", "onClick"])
3611
3611
  ]),
3612
3612
  default: withCtx(() => [
3613
- createElementVNode("div", _hoisted_2$8, [
3614
- createElementVNode("div", _hoisted_3$7, [
3615
- createElementVNode("div", _hoisted_4$7, [
3613
+ createElementVNode("div", _hoisted_2$9, [
3614
+ createElementVNode("div", _hoisted_3$8, [
3615
+ createElementVNode("div", _hoisted_4$8, [
3616
3616
  createVNode(_component_Card, {
3617
3617
  "dis-hover": "",
3618
3618
  class: "import-module_card"
@@ -3621,7 +3621,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3621
3621
  createTextVNode("源平台 - [" + toDisplayString(_ctx.originPlatform.selectedItem.PlatformName) + "] - 模块菜单", 1)
3622
3622
  ]),
3623
3623
  default: withCtx(() => [
3624
- createElementVNode("div", _hoisted_5$5, [
3624
+ createElementVNode("div", _hoisted_5$6, [
3625
3625
  createVNode(_component_NvGrid, {
3626
3626
  ref: "originModuleGrid",
3627
3627
  option: _ctx.originModuleGridOption
@@ -3656,7 +3656,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3656
3656
  _: 1
3657
3657
  })
3658
3658
  ]),
3659
- createElementVNode("div", _hoisted_6$5, [
3659
+ createElementVNode("div", _hoisted_6$6, [
3660
3660
  createVNode(_component_Card, {
3661
3661
  "dis-hover": "",
3662
3662
  class: "import-module_card"
@@ -3665,13 +3665,13 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3665
3665
  createTextVNode("目标平台 - [" + toDisplayString(_ctx.targetPlatform.PlatformName) + "] - 模块菜单", 1)
3666
3666
  ]),
3667
3667
  default: withCtx(() => [
3668
- createElementVNode("div", _hoisted_7$2, [
3668
+ createElementVNode("div", _hoisted_7$3, [
3669
3669
  createVNode(_component_NvGrid, {
3670
3670
  ref: "targetModuleGrid",
3671
3671
  option: _ctx.targetModuleGridOption
3672
3672
  }, {
3673
3673
  default: withCtx(() => [
3674
- _hoisted_8$2
3674
+ _hoisted_8$3
3675
3675
  ]),
3676
3676
  _: 1
3677
3677
  }, 8, ["option"])
@@ -3695,8 +3695,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3695
3695
  _: 1
3696
3696
  });
3697
3697
  }
3698
- const Module = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-5a5ef504"]]);
3699
- const propDefine$h = {
3698
+ const Module = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-5a5ef504"]]);
3699
+ const propDefine$i = {
3700
3700
  linkParam: {
3701
3701
  // 带入的参数
3702
3702
  type: String,
@@ -3708,12 +3708,12 @@ const propDefine$h = {
3708
3708
  default: "-"
3709
3709
  }
3710
3710
  };
3711
- const _sfc_main$h = defineComponent({
3711
+ const _sfc_main$i = defineComponent({
3712
3712
  name: "Role",
3713
3713
  components: { SelectPlatform },
3714
3714
  emits: [""],
3715
3715
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
3716
- props: propDefine$h,
3716
+ props: propDefine$i,
3717
3717
  setup(props, ctx) {
3718
3718
  return new RoleInstance$1(props, ctx);
3719
3719
  }
@@ -4503,14 +4503,14 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
4503
4503
  //#endregion 导入角色 END
4504
4504
  };
4505
4505
  const Role_vue_vue_type_style_index_0_scoped_086753a2_lang = "";
4506
- const _hoisted_1$g = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
4507
- const _hoisted_2$7 = {
4506
+ const _hoisted_1$h = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
4507
+ const _hoisted_2$8 = {
4508
4508
  class: "import-role",
4509
4509
  style: { "height": "610px", "position": "relative" }
4510
4510
  };
4511
- const _hoisted_3$6 = { style: { "width": "100%", "height": "100%" } };
4512
- const _hoisted_4$6 = { style: { "height": "530px", "overflow-y": "auto" } };
4513
- function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
4511
+ const _hoisted_3$7 = { style: { "width": "100%", "height": "100%" } };
4512
+ const _hoisted_4$7 = { style: { "height": "530px", "overflow-y": "auto" } };
4513
+ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
4514
4514
  const _component_SelectPlatform = resolveComponent("SelectPlatform");
4515
4515
  const _component_NvGrid = resolveComponent("NvGrid");
4516
4516
  const _component_NvBox = resolveComponent("NvBox");
@@ -4576,7 +4576,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
4576
4576
  }, 8, ["loading", "onClick"])
4577
4577
  ]),
4578
4578
  default: withCtx(() => [
4579
- createElementVNode("div", _hoisted_1$g, [
4579
+ createElementVNode("div", _hoisted_1$h, [
4580
4580
  createVNode(_component_NvGrid, {
4581
4581
  ref: "moduleGrid",
4582
4582
  option: _ctx.moduleGridOption
@@ -4617,8 +4617,8 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
4617
4617
  }, 8, ["loading", "onClick"])
4618
4618
  ]),
4619
4619
  default: withCtx(() => [
4620
- createElementVNode("div", _hoisted_2$7, [
4621
- createElementVNode("div", _hoisted_3$6, [
4620
+ createElementVNode("div", _hoisted_2$8, [
4621
+ createElementVNode("div", _hoisted_3$7, [
4622
4622
  createVNode(_component_NvGrid, {
4623
4623
  ref: "originRoleGrid",
4624
4624
  option: _ctx.originRoleGridOption
@@ -4688,7 +4688,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
4688
4688
  }, 8, ["loading", "onClick"])
4689
4689
  ]),
4690
4690
  default: withCtx(() => [
4691
- createElementVNode("div", _hoisted_4$6, [
4691
+ createElementVNode("div", _hoisted_4$7, [
4692
4692
  createVNode(_component_Form, {
4693
4693
  ref: "refRoleForm",
4694
4694
  model: _ctx.roleFormModel,
@@ -4710,8 +4710,8 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
4710
4710
  _: 1
4711
4711
  });
4712
4712
  }
4713
- const Role = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-086753a2"]]);
4714
- const propDefine$g = {
4713
+ const Role = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-086753a2"]]);
4714
+ const propDefine$h = {
4715
4715
  linkParam: {
4716
4716
  // 带入的参数
4717
4717
  type: String,
@@ -4723,12 +4723,12 @@ const propDefine$g = {
4723
4723
  default: "-"
4724
4724
  }
4725
4725
  };
4726
- const _sfc_main$g = defineComponent({
4726
+ const _sfc_main$h = defineComponent({
4727
4727
  name: "InstitutionType",
4728
4728
  components: {},
4729
4729
  emits: [""],
4730
4730
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
4731
- props: propDefine$g,
4731
+ props: propDefine$h,
4732
4732
  setup(props, ctx) {
4733
4733
  return new InstitutionTypeInstance(props, ctx);
4734
4734
  }
@@ -4930,8 +4930,8 @@ class InstitutionTypeInstance extends BaseInstance {
4930
4930
  //#endregion 编辑机构类型 END
4931
4931
  }
4932
4932
  const InstitutionType_vue_vue_type_style_index_0_scoped_947fe129_lang = "";
4933
- const _hoisted_1$f = { style: { "height": "350px", "overflow-y": "auto" } };
4934
- function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4933
+ const _hoisted_1$g = { style: { "height": "350px", "overflow-y": "auto" } };
4934
+ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
4935
4935
  const _component_NvGrid = resolveComponent("NvGrid");
4936
4936
  const _component_NvBox = resolveComponent("NvBox");
4937
4937
  const _component_NvComForm = resolveComponent("NvComForm");
@@ -4984,7 +4984,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4984
4984
  }, 8, ["loading", "onClick"])
4985
4985
  ]),
4986
4986
  default: withCtx(() => [
4987
- createElementVNode("div", _hoisted_1$f, [
4987
+ createElementVNode("div", _hoisted_1$g, [
4988
4988
  createVNode(_component_Form, {
4989
4989
  ref: "refInstitutionTypeForm",
4990
4990
  model: _ctx.institutionTypeFormModel,
@@ -5006,8 +5006,8 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
5006
5006
  _: 1
5007
5007
  });
5008
5008
  }
5009
- const InstitutionType = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-947fe129"]]);
5010
- const propDefine$f = {
5009
+ const InstitutionType = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-947fe129"]]);
5010
+ const propDefine$g = {
5011
5011
  linkParam: {
5012
5012
  // 带入的参数
5013
5013
  type: String,
@@ -5019,12 +5019,12 @@ const propDefine$f = {
5019
5019
  default: "-"
5020
5020
  }
5021
5021
  };
5022
- const _sfc_main$f = defineComponent({
5022
+ const _sfc_main$g = defineComponent({
5023
5023
  name: "Institution",
5024
5024
  components: { SelectPlatform },
5025
5025
  emits: [""],
5026
5026
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
5027
- props: propDefine$f,
5027
+ props: propDefine$g,
5028
5028
  setup(props, ctx) {
5029
5029
  return new InstitutionInstance$1(props, ctx);
5030
5030
  }
@@ -5929,16 +5929,16 @@ let InstitutionInstance$1 = class InstitutionInstance extends BaseInstance {
5929
5929
  //#endregion 绑定角色 END
5930
5930
  };
5931
5931
  const Institution_vue_vue_type_style_index_0_scoped_42799ba1_lang = "";
5932
- const _hoisted_1$e = { style: { "width": "100%", "height": "100%", "position": "relative" } };
5933
- const _hoisted_2$6 = { style: { "height": "500px", "overflow-y": "auto" } };
5934
- const _hoisted_3$5 = {
5932
+ const _hoisted_1$f = { style: { "width": "100%", "height": "100%", "position": "relative" } };
5933
+ const _hoisted_2$7 = { style: { "height": "500px", "overflow-y": "auto" } };
5934
+ const _hoisted_3$6 = {
5935
5935
  class: "import-institution",
5936
5936
  style: { "height": "600px", "overflow-y": "auto", "position": "relative" }
5937
5937
  };
5938
- const _hoisted_4$5 = { style: { "width": "100%", "height": "100%" } };
5939
- const _hoisted_5$4 = { style: { "height": "calc(100%)" } };
5940
- const _hoisted_6$4 = { style: { "height": "610px", "overflow-y": "auto", "position": "relative" } };
5941
- function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
5938
+ const _hoisted_4$6 = { style: { "width": "100%", "height": "100%" } };
5939
+ const _hoisted_5$5 = { style: { "height": "calc(100%)" } };
5940
+ const _hoisted_6$5 = { style: { "height": "610px", "overflow-y": "auto", "position": "relative" } };
5941
+ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
5942
5942
  const _component_SelectPlatform = resolveComponent("SelectPlatform");
5943
5943
  const _component_NvGrid = resolveComponent("NvGrid");
5944
5944
  const _component_NvBox = resolveComponent("NvBox");
@@ -6008,7 +6008,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
6008
6008
  })
6009
6009
  ]),
6010
6010
  default: withCtx(() => [
6011
- createElementVNode("div", _hoisted_1$e, [
6011
+ createElementVNode("div", _hoisted_1$f, [
6012
6012
  createVNode(_component_Tree, {
6013
6013
  data: _ctx.institutionTree,
6014
6014
  render: _ctx.renderContent,
@@ -6067,7 +6067,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
6067
6067
  }, 8, ["loading", "onClick"])
6068
6068
  ]),
6069
6069
  default: withCtx(() => [
6070
- createElementVNode("div", _hoisted_2$6, [
6070
+ createElementVNode("div", _hoisted_2$7, [
6071
6071
  createVNode(_component_Form, {
6072
6072
  model: _ctx.institutionFormModel,
6073
6073
  "label-width": 90
@@ -6117,9 +6117,9 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
6117
6117
  }, 8, ["loading", "onClick"])
6118
6118
  ]),
6119
6119
  default: withCtx(() => [
6120
- createElementVNode("div", _hoisted_3$5, [
6121
- createElementVNode("div", _hoisted_4$5, [
6122
- createElementVNode("div", _hoisted_5$4, [
6120
+ createElementVNode("div", _hoisted_3$6, [
6121
+ createElementVNode("div", _hoisted_4$6, [
6122
+ createElementVNode("div", _hoisted_5$5, [
6123
6123
  createVNode(_component_NvGrid, {
6124
6124
  ref: "originInstitutionGrid",
6125
6125
  option: _ctx.originInstitutionGridOption
@@ -6190,7 +6190,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
6190
6190
  }, 8, ["loading", "onClick"])
6191
6191
  ]),
6192
6192
  default: withCtx(() => [
6193
- createElementVNode("div", _hoisted_6$4, [
6193
+ createElementVNode("div", _hoisted_6$5, [
6194
6194
  createVNode(_component_NvGrid, {
6195
6195
  ref: "roleGrid",
6196
6196
  option: _ctx.roleGridOption
@@ -6206,14 +6206,14 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
6206
6206
  _: 1
6207
6207
  });
6208
6208
  }
6209
- const Institution = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-42799ba1"]]);
6210
- const propDefine$e = {};
6211
- const _sfc_main$e = defineComponent({
6209
+ const Institution = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-42799ba1"]]);
6210
+ const propDefine$f = {};
6211
+ const _sfc_main$f = defineComponent({
6212
6212
  name: "LoginLog",
6213
6213
  components: {},
6214
6214
  emits: [""],
6215
6215
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
6216
- props: propDefine$e,
6216
+ props: propDefine$f,
6217
6217
  setup(props, ctx) {
6218
6218
  return new LoginLogInstance$1(props, ctx);
6219
6219
  }
@@ -6318,18 +6318,18 @@ let LoginLogInstance$1 = class LoginLogInstance extends BaseInstance {
6318
6318
  //#endregion 登录日志 END
6319
6319
  };
6320
6320
  const LoginLog_vue_vue_type_style_index_0_scoped_4e2e0184_lang = "";
6321
- const _hoisted_1$d = { class: "loginLog" };
6322
- function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
6321
+ const _hoisted_1$e = { class: "loginLog" };
6322
+ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
6323
6323
  const _component_NvGrid = resolveComponent("NvGrid");
6324
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
6324
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
6325
6325
  createVNode(_component_NvGrid, {
6326
6326
  ref: "loginLogGrid",
6327
6327
  option: _ctx.loginLogGridOption
6328
6328
  }, null, 8, ["option"])
6329
6329
  ]);
6330
6330
  }
6331
- const LoginLog$1 = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-4e2e0184"]]);
6332
- const propDefine$d = {
6331
+ const LoginLog$1 = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-4e2e0184"]]);
6332
+ const propDefine$e = {
6333
6333
  linkParam: {
6334
6334
  // 带入的参数
6335
6335
  type: String,
@@ -6341,12 +6341,12 @@ const propDefine$d = {
6341
6341
  default: "-"
6342
6342
  }
6343
6343
  };
6344
- const _sfc_main$d = defineComponent({
6344
+ const _sfc_main$e = defineComponent({
6345
6345
  name: "Userinfor",
6346
6346
  components: { SelectPlatform, LoginLog: LoginLog$1, BaseLogin },
6347
6347
  emits: [""],
6348
6348
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
6349
- props: propDefine$d,
6349
+ props: propDefine$e,
6350
6350
  setup(props, ctx) {
6351
6351
  return new UserinforInstance$1(props, ctx);
6352
6352
  }
@@ -7379,24 +7379,24 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
7379
7379
  //#endregion 重置密码 END
7380
7380
  };
7381
7381
  const Userinfor_vue_vue_type_style_index_0_scoped_3969fae6_lang = "";
7382
- const _withScopeId$1 = (n) => (pushScopeId("data-v-3969fae6"), n = n(), popScopeId(), n);
7383
- const _hoisted_1$c = { class: "instree-search" };
7384
- const _hoisted_2$5 = { class: "instree-list" };
7385
- const _hoisted_3$4 = { style: { "height": "600px", "overflow-y": "auto" } };
7386
- const _hoisted_4$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
7382
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-3969fae6"), n = n(), popScopeId(), n);
7383
+ const _hoisted_1$d = { class: "instree-search" };
7384
+ const _hoisted_2$6 = { class: "instree-list" };
7385
+ const _hoisted_3$5 = { style: { "height": "600px", "overflow-y": "auto" } };
7386
+ const _hoisted_4$5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
7387
7387
  /* @__PURE__ */ createElementVNode("div", { style: { "padding-bottom": "8px" } }, "用户账号:手机号必填。在新设备登录时,需进行短信验证。"),
7388
7388
  /* @__PURE__ */ createElementVNode("div", null, "内部账号:手机号可不填。")
7389
7389
  ], -1));
7390
- const _hoisted_5$3 = { style: { "height": "600px", "overflow-y": "auto" } };
7391
- const _hoisted_6$3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选绑定用户角色!", -1));
7392
- const _hoisted_7$1 = { style: { "height": "650px", "overflow-y": "auto" } };
7393
- const _hoisted_8$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选需要引入的用户!", -1));
7390
+ const _hoisted_5$4 = { style: { "height": "600px", "overflow-y": "auto" } };
7391
+ const _hoisted_6$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选绑定用户角色!", -1));
7392
+ const _hoisted_7$2 = { style: { "height": "650px", "overflow-y": "auto" } };
7393
+ const _hoisted_8$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选需要引入的用户!", -1));
7394
7394
  const _hoisted_9$1 = { style: { "height": "650px", "overflow-y": "auto" } };
7395
7395
  const _hoisted_10$1 = { style: { "display": "none" } };
7396
7396
  const _hoisted_11$1 = { style: { "height": "400px", "overflow-y": "auto" } };
7397
7397
  const _hoisted_12$1 = ["src"];
7398
7398
  const _hoisted_13$1 = ["src"];
7399
- function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
7399
+ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
7400
7400
  const _component_SelectPlatform = resolveComponent("SelectPlatform");
7401
7401
  const _component_Tree = resolveComponent("Tree");
7402
7402
  const _component_Spin = resolveComponent("Spin");
@@ -7439,14 +7439,14 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
7439
7439
  })
7440
7440
  ]),
7441
7441
  default: withCtx(() => [
7442
- createElementVNode("div", _hoisted_1$c, [
7442
+ createElementVNode("div", _hoisted_1$d, [
7443
7443
  createVNode(_component_SelectPlatform, {
7444
7444
  onSelect: _ctx.doChangePlatform,
7445
7445
  width: "100%",
7446
7446
  showLabel: false
7447
7447
  }, null, 8, ["onSelect"])
7448
7448
  ]),
7449
- createElementVNode("div", _hoisted_2$5, [
7449
+ createElementVNode("div", _hoisted_2$6, [
7450
7450
  createVNode(_component_Tree, {
7451
7451
  data: _ctx.institutionTree,
7452
7452
  render: _ctx.renderInsTreeContent,
@@ -7509,7 +7509,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
7509
7509
  }, 8, ["loading", "onClick"])
7510
7510
  ]),
7511
7511
  default: withCtx(() => [
7512
- createElementVNode("div", _hoisted_3$4, [
7512
+ createElementVNode("div", _hoisted_3$5, [
7513
7513
  createVNode(_component_Form, {
7514
7514
  ref: "userForm",
7515
7515
  model: _ctx.userFormModel,
@@ -7525,7 +7525,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
7525
7525
  ]),
7526
7526
  _: 1
7527
7527
  }, 8, ["model", "rules"]),
7528
- _hoisted_4$4
7528
+ _hoisted_4$5
7529
7529
  ])
7530
7530
  ]),
7531
7531
  _: 1
@@ -7562,13 +7562,13 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
7562
7562
  }, 8, ["loading", "onClick"])
7563
7563
  ]),
7564
7564
  default: withCtx(() => [
7565
- createElementVNode("div", _hoisted_5$3, [
7565
+ createElementVNode("div", _hoisted_5$4, [
7566
7566
  createVNode(_component_NvGrid, {
7567
7567
  ref: "userRoleGrid",
7568
7568
  option: _ctx.userRoleGridOption
7569
7569
  }, {
7570
7570
  default: withCtx(() => [
7571
- _hoisted_6$3
7571
+ _hoisted_6$4
7572
7572
  ]),
7573
7573
  _: 1
7574
7574
  }, 8, ["option"])
@@ -7608,13 +7608,13 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
7608
7608
  }, 8, ["loading", "onClick"])
7609
7609
  ]),
7610
7610
  default: withCtx(() => [
7611
- createElementVNode("div", _hoisted_7$1, [
7611
+ createElementVNode("div", _hoisted_7$2, [
7612
7612
  createVNode(_component_NvGrid, {
7613
7613
  ref: "otherUserGrid",
7614
7614
  option: _ctx.otherUserGridOption
7615
7615
  }, {
7616
7616
  default: withCtx(() => [
7617
- _hoisted_8$1
7617
+ _hoisted_8$2
7618
7618
  ]),
7619
7619
  _: 1
7620
7620
  }, 8, ["option"])
@@ -7758,8 +7758,8 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
7758
7758
  _: 1
7759
7759
  });
7760
7760
  }
7761
- const Userinfor = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-3969fae6"]]);
7762
- const propDefine$c = {
7761
+ const Userinfor = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-3969fae6"]]);
7762
+ const propDefine$d = {
7763
7763
  linkParam: {
7764
7764
  // 带入的参数
7765
7765
  type: String,
@@ -7771,12 +7771,12 @@ const propDefine$c = {
7771
7771
  default: "-"
7772
7772
  }
7773
7773
  };
7774
- const _sfc_main$c = defineComponent({
7774
+ const _sfc_main$d = defineComponent({
7775
7775
  name: "Enterprise",
7776
7776
  components: { SelectPlatform },
7777
7777
  emits: [""],
7778
7778
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
7779
- props: propDefine$c,
7779
+ props: propDefine$d,
7780
7780
  setup(props, ctx) {
7781
7781
  return new EnterpriseInstance$1(props, ctx);
7782
7782
  }
@@ -8163,8 +8163,8 @@ let EnterpriseInstance$1 = class EnterpriseInstance extends BaseInstance {
8163
8163
  //#endregion 业务逻辑 编辑企业信息 END
8164
8164
  };
8165
8165
  const Enterprise_vue_vue_type_style_index_0_scoped_58aa3e77_lang = "";
8166
- const _hoisted_1$b = { style: { "height": "650px", "overflow-y": "auto" } };
8167
- function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
8166
+ const _hoisted_1$c = { style: { "height": "650px", "overflow-y": "auto" } };
8167
+ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
8168
8168
  const _component_SelectPlatform = resolveComponent("SelectPlatform");
8169
8169
  const _component_NvGrid = resolveComponent("NvGrid");
8170
8170
  const _component_NvBox = resolveComponent("NvBox");
@@ -8232,7 +8232,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
8232
8232
  }, 8, ["loading", "onClick"])) : createCommentVNode("", true)
8233
8233
  ]),
8234
8234
  default: withCtx(() => [
8235
- createElementVNode("div", _hoisted_1$b, [
8235
+ createElementVNode("div", _hoisted_1$c, [
8236
8236
  createVNode(_component_Form, {
8237
8237
  model: _ctx.enterpriseFormModel,
8238
8238
  "label-width": 90
@@ -8255,7 +8255,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
8255
8255
  _: 1
8256
8256
  });
8257
8257
  }
8258
- const Enterprise = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-58aa3e77"]]);
8258
+ const Enterprise = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-58aa3e77"]]);
8259
8259
  class DBCenterBaseApi extends BaseApi {
8260
8260
  get ProxyName() {
8261
8261
  return "CalcPythonApi";
@@ -8285,7 +8285,7 @@ class CorePlatformConfigApi extends DBCenterBaseApi {
8285
8285
  this.addHeader("tableName", "core_platform_config");
8286
8286
  }
8287
8287
  }
8288
- const propDefine$b = {
8288
+ const propDefine$c = {
8289
8289
  modelValue: {
8290
8290
  // 是否显示
8291
8291
  type: Boolean,
@@ -8308,12 +8308,12 @@ const propDefine$b = {
8308
8308
  default: 0
8309
8309
  }
8310
8310
  };
8311
- const _sfc_main$b = defineComponent({
8311
+ const _sfc_main$c = defineComponent({
8312
8312
  name: "FilePreview",
8313
8313
  components: {},
8314
8314
  emits: ["update:modelValue"],
8315
8315
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
8316
- props: propDefine$b,
8316
+ props: propDefine$c,
8317
8317
  setup(props, ctx) {
8318
8318
  return new FilePreviewInstance(props, ctx);
8319
8319
  }
@@ -8418,9 +8418,9 @@ class FilePreviewInstance extends BaseInstance {
8418
8418
  //#endregion 业务逻辑 - 文件预览 END
8419
8419
  }
8420
8420
  const FilePreview_vue_vue_type_style_index_0_scoped_33abffa5_lang = "";
8421
- const _hoisted_1$a = { class: "ifr-container" };
8422
- const _hoisted_2$4 = ["src", "title"];
8423
- function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
8421
+ const _hoisted_1$b = { class: "ifr-container" };
8422
+ const _hoisted_2$5 = ["src", "title"];
8423
+ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
8424
8424
  const _component_ImagePreview = resolveComponent("ImagePreview");
8425
8425
  const _component_Modal = resolveComponent("Modal");
8426
8426
  return openBlock(), createElementBlock(Fragment, null, [
@@ -8443,20 +8443,20 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
8443
8443
  onOnVisibleChange: _ctx.doClose
8444
8444
  }, {
8445
8445
  default: withCtx(() => [
8446
- createElementVNode("div", _hoisted_1$a, [
8446
+ createElementVNode("div", _hoisted_1$b, [
8447
8447
  createElementVNode("iframe", {
8448
8448
  src: _ctx.ifrUrl,
8449
8449
  class: "ifr-content",
8450
8450
  title: _ctx.fileInfo.fileInfo
8451
- }, " ", 8, _hoisted_2$4)
8451
+ }, " ", 8, _hoisted_2$5)
8452
8452
  ])
8453
8453
  ]),
8454
8454
  _: 1
8455
8455
  }, 8, ["modelValue", "title", "onOnVisibleChange"])
8456
8456
  ], 64);
8457
8457
  }
8458
- const filePreview = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-33abffa5"]]);
8459
- const propDefine$a = {
8458
+ const filePreview = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-33abffa5"]]);
8459
+ const propDefine$b = {
8460
8460
  linkParam: {
8461
8461
  // 带入的参数
8462
8462
  type: String,
@@ -8518,12 +8518,12 @@ const propDefine$a = {
8518
8518
  default: false
8519
8519
  }
8520
8520
  };
8521
- const _sfc_main$a = defineComponent({
8521
+ const _sfc_main$b = defineComponent({
8522
8522
  name: "UploadFile",
8523
8523
  components: { filePreview },
8524
8524
  emits: ["success", "returnFileList"],
8525
8525
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
8526
- props: propDefine$a,
8526
+ props: propDefine$b,
8527
8527
  setup(props, ctx) {
8528
8528
  return new UploadFileInstance(props, ctx);
8529
8529
  }
@@ -8862,13 +8862,13 @@ class UploadFileInstance extends BaseInstance {
8862
8862
  //#endregion 业务逻辑 文件预览 END
8863
8863
  }
8864
8864
  const UploadFile_vue_vue_type_style_index_0_scoped_4568a1e3_lang = "";
8865
- const _hoisted_1$9 = { class: "uploadFile" };
8866
- const _hoisted_2$3 = ["onClick", "title"];
8867
- const _hoisted_3$3 = { class: "file-upload-list-cover" };
8868
- const _hoisted_4$3 = { class: "file-upload-btn" };
8869
- const _hoisted_5$2 = { class: "file-upload-list-cover" };
8870
- const _hoisted_6$2 = { class: "file-upload-btn" };
8871
- function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8865
+ const _hoisted_1$a = { class: "uploadFile" };
8866
+ const _hoisted_2$4 = ["onClick", "title"];
8867
+ const _hoisted_3$4 = { class: "file-upload-list-cover" };
8868
+ const _hoisted_4$4 = { class: "file-upload-btn" };
8869
+ const _hoisted_5$3 = { class: "file-upload-list-cover" };
8870
+ const _hoisted_6$3 = { class: "file-upload-btn" };
8871
+ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
8872
8872
  const _component_Image = resolveComponent("Image");
8873
8873
  const _component_Icon = resolveComponent("Icon");
8874
8874
  const _component_Space = resolveComponent("Space");
@@ -8876,7 +8876,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8876
8876
  const _component_Card = resolveComponent("Card");
8877
8877
  const _component_Spin = resolveComponent("Spin");
8878
8878
  const _component_filePreview = resolveComponent("filePreview");
8879
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
8879
+ return openBlock(), createElementBlock("div", _hoisted_1$a, [
8880
8880
  !_ctx.single ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.groups, (groupName) => {
8881
8881
  return openBlock(), createBlock(_component_Card, {
8882
8882
  "dis-hover": "",
@@ -8898,7 +8898,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8898
8898
  width: "100%",
8899
8899
  height: "100%"
8900
8900
  }, null, 8, ["src"]),
8901
- createElementVNode("div", _hoisted_3$3, [
8901
+ createElementVNode("div", _hoisted_3$4, [
8902
8902
  createVNode(_component_Space, null, {
8903
8903
  default: withCtx(() => [
8904
8904
  createVNode(_component_Icon, {
@@ -8916,7 +8916,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8916
8916
  _: 2
8917
8917
  }, 1024)
8918
8918
  ])
8919
- ], 8, _hoisted_2$3)
8919
+ ], 8, _hoisted_2$4)
8920
8920
  ], 2);
8921
8921
  }), 256)),
8922
8922
  !_ctx.readonly ? (openBlock(), createBlock(_component_Upload, {
@@ -8939,7 +8939,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8939
8939
  style: { "display": "inline-block", "width": "78px" }
8940
8940
  }, {
8941
8941
  default: withCtx(() => [
8942
- createElementVNode("div", _hoisted_4$3, [
8942
+ createElementVNode("div", _hoisted_4$4, [
8943
8943
  createVNode(_component_Icon, {
8944
8944
  type: "ios-camera",
8945
8945
  size: "20"
@@ -8972,7 +8972,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8972
8972
  width: "100%",
8973
8973
  height: "100%"
8974
8974
  }, null, 8, ["src"]),
8975
- createElementVNode("div", _hoisted_5$2, [
8975
+ createElementVNode("div", _hoisted_5$3, [
8976
8976
  createVNode(_component_Space, null, {
8977
8977
  default: withCtx(() => [
8978
8978
  createVNode(_component_Icon, {
@@ -9015,7 +9015,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
9015
9015
  style: { "display": "inline-block", "width": "78px" }
9016
9016
  }, {
9017
9017
  default: withCtx(() => [
9018
- createElementVNode("div", _hoisted_6$2, [
9018
+ createElementVNode("div", _hoisted_6$3, [
9019
9019
  createVNode(_component_Icon, {
9020
9020
  type: "ios-camera",
9021
9021
  size: "20"
@@ -9041,7 +9041,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
9041
9041
  }, null, 8, ["modelValue", "preview-list", "preview-index", "file-info"])
9042
9042
  ]);
9043
9043
  }
9044
- const UploadFile = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-4568a1e3"]]);
9044
+ const UploadFile = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-4568a1e3"]]);
9045
9045
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
9046
9046
  function getDefaultExportFromCjs(x) {
9047
9047
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -23373,7 +23373,7 @@ const QuillEditor = defineComponent({
23373
23373
  });
23374
23374
  const vueQuill_snow = "";
23375
23375
  const vueQuill_bubble = "";
23376
- const propDefine$9 = {
23376
+ const propDefine$a = {
23377
23377
  modelValue: {
23378
23378
  default: "",
23379
23379
  type: String
@@ -23387,14 +23387,14 @@ const propDefine$9 = {
23387
23387
  default: false
23388
23388
  }
23389
23389
  };
23390
- const _sfc_main$9 = defineComponent({
23390
+ const _sfc_main$a = defineComponent({
23391
23391
  name: "TextEditor",
23392
23392
  components: {
23393
23393
  QuillEditor
23394
23394
  },
23395
23395
  emits: ["update:modelValue", "textChange"],
23396
23396
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
23397
- props: propDefine$9,
23397
+ props: propDefine$a,
23398
23398
  setup(props, ctx) {
23399
23399
  return new TextEditor$1(props, ctx);
23400
23400
  }
@@ -23506,10 +23506,10 @@ let TextEditor$1 = class TextEditor extends BaseInstance {
23506
23506
  //#endregion 业务逻辑 END
23507
23507
  };
23508
23508
  const TextEditor_vue_vue_type_style_index_0_scoped_ae63b3fa_lang = "";
23509
- const _hoisted_1$8 = { style: { "height": "100%" } };
23510
- function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
23509
+ const _hoisted_1$9 = { style: { "height": "100%" } };
23510
+ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
23511
23511
  const _component_QuillEditor = resolveComponent("QuillEditor");
23512
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
23512
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
23513
23513
  _ctx.componentShow ? (openBlock(), createBlock(_component_QuillEditor, {
23514
23514
  key: 0,
23515
23515
  content: _ctx.content,
@@ -23523,8 +23523,8 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
23523
23523
  }, null, 8, ["content", "readOnly", "theme", "onTextChange", "options"])) : createCommentVNode("", true)
23524
23524
  ]);
23525
23525
  }
23526
- const TextEditor2 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-ae63b3fa"]]);
23527
- const propDefine$8 = {
23526
+ const TextEditor2 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-ae63b3fa"]]);
23527
+ const propDefine$9 = {
23528
23528
  onlyView: {
23529
23529
  // 是否只读
23530
23530
  type: Boolean,
@@ -23542,11 +23542,11 @@ const propDefine$8 = {
23542
23542
  }
23543
23543
  }
23544
23544
  };
23545
- const _sfc_main$8 = defineComponent({
23545
+ const _sfc_main$9 = defineComponent({
23546
23546
  name: "NvComFormUp",
23547
23547
  components: { UploadFile, TextEditor: TextEditor2 },
23548
23548
  emits: [""],
23549
- props: propDefine$8,
23549
+ props: propDefine$9,
23550
23550
  setup(props, ctx) {
23551
23551
  return new ComFormInstance(props, ctx);
23552
23552
  }
@@ -23592,7 +23592,7 @@ class ComFormInstance extends BaseInstance {
23592
23592
  }
23593
23593
  //#endregion 文本输入框 END
23594
23594
  }
23595
- function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
23595
+ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
23596
23596
  const _component_UploadFile = resolveComponent("UploadFile");
23597
23597
  const _component_TextEditor = resolveComponent("TextEditor");
23598
23598
  const _component_NvComForm = resolveComponent("NvComForm");
@@ -23618,8 +23618,8 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
23618
23618
  _: 1
23619
23619
  }, 8, ["onlyView", "formItems", "formModel"]);
23620
23620
  }
23621
- const NvComFormUp = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
23622
- const propDefine$7 = {
23621
+ const NvComFormUp = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9]]);
23622
+ const propDefine$8 = {
23623
23623
  linkParam: {
23624
23624
  // 带入的参数
23625
23625
  type: String,
@@ -23631,14 +23631,14 @@ const propDefine$7 = {
23631
23631
  default: "-"
23632
23632
  }
23633
23633
  };
23634
- const _sfc_main$7 = defineComponent({
23634
+ const _sfc_main$8 = defineComponent({
23635
23635
  name: "Information",
23636
23636
  components: {
23637
23637
  NvComFormUp
23638
23638
  },
23639
23639
  emits: [""],
23640
23640
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
23641
- props: propDefine$7,
23641
+ props: propDefine$8,
23642
23642
  setup(props, ctx) {
23643
23643
  return new InformationInstance(props, ctx);
23644
23644
  }
@@ -24003,8 +24003,8 @@ class InformationInstance extends BaseInstance {
24003
24003
  }
24004
24004
  //#endregion 编辑信息 END
24005
24005
  }
24006
- const _hoisted_1$7 = { style: { "overflow-y": "auto" } };
24007
- function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
24006
+ const _hoisted_1$8 = { style: { "overflow-y": "auto" } };
24007
+ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
24008
24008
  const _component_NvGrid = resolveComponent("NvGrid");
24009
24009
  const _component_NvBox = resolveComponent("NvBox");
24010
24010
  const _component_NvComFormUp = resolveComponent("NvComFormUp");
@@ -24061,7 +24061,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
24061
24061
  }, 8, ["loading", "onClick"])
24062
24062
  ]),
24063
24063
  default: withCtx(() => [
24064
- createElementVNode("div", _hoisted_1$7, [
24064
+ createElementVNode("div", _hoisted_1$8, [
24065
24065
  createVNode(_component_Form, {
24066
24066
  ref: "refRoleForm",
24067
24067
  model: _ctx.roleFormModel,
@@ -24083,8 +24083,8 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
24083
24083
  _: 1
24084
24084
  });
24085
24085
  }
24086
- const Information = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
24087
- const propDefine$6 = {
24086
+ const Information = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
24087
+ const propDefine$7 = {
24088
24088
  linkParam: {
24089
24089
  // 带入的参数
24090
24090
  type: String,
@@ -24095,10 +24095,10 @@ const propDefine$6 = {
24095
24095
  type: String,
24096
24096
  default: "-"
24097
24097
  },
24098
- platformId: {
24098
+ platformInfo: {
24099
24099
  // 平台id
24100
- type: Number,
24101
- default: 0
24100
+ type: Object,
24101
+ default: {}
24102
24102
  },
24103
24103
  configType: {
24104
24104
  // 工程概况 || 标段概况
@@ -24106,12 +24106,12 @@ const propDefine$6 = {
24106
24106
  default: "BD"
24107
24107
  }
24108
24108
  };
24109
- const _sfc_main$6 = defineComponent({
24109
+ const _sfc_main$7 = defineComponent({
24110
24110
  name: "GeneralConfiguration",
24111
24111
  components: {},
24112
24112
  emits: [""],
24113
24113
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
24114
- props: propDefine$6,
24114
+ props: propDefine$7,
24115
24115
  setup(props, ctx) {
24116
24116
  return new GeneralConfigurationInstance(props, ctx);
24117
24117
  }
@@ -24390,7 +24390,7 @@ class GeneralConfigurationInstance extends BaseInstance {
24390
24390
  });
24391
24391
  let saveObj = {
24392
24392
  Id: this.nowRow.Id > 0 ? this.nowRow.Id : 0,
24393
- PlatformId: this.props.platformId,
24393
+ PlatformId: this.props.platformInfo.Id,
24394
24394
  ProjectConfig: this.props.configType == "GC" ? JSON.stringify(gridRes) : this.nowRow.ProjectConfig,
24395
24395
  ConstructConfig: this.props.configType == "BD" ? JSON.stringify(gridRes) : this.nowRow.ConstructConfig,
24396
24396
  LastUpdateUserId: this.storageInfo.getUser().Id,
@@ -24427,7 +24427,7 @@ class GeneralConfigurationInstance extends BaseInstance {
24427
24427
  });
24428
24428
  let saveObj = {
24429
24429
  Id: this.nowRow.Id > 0 ? this.nowRow.Id : 0,
24430
- PlatformId: this.props.platformId,
24430
+ PlatformId: this.props.platformInfo.Id,
24431
24431
  ProjectConfig: this.props.configType == "GC" ? JSON.stringify(res) : this.nowRow.ProjectConfig,
24432
24432
  ConstructConfig: this.props.configType == "BD" ? JSON.stringify(res) : this.nowRow.ConstructConfig,
24433
24433
  LastUpdateUserId: this.storageInfo.getUser().Id,
@@ -24567,7 +24567,7 @@ class GeneralConfigurationInstance extends BaseInstance {
24567
24567
  }, []);
24568
24568
  let saveObj = {
24569
24569
  Id: this.nowRow.Id > 0 ? this.nowRow.Id : 0,
24570
- PlatformId: this.props.platformId,
24570
+ PlatformId: this.props.platformInfo.Id,
24571
24571
  ProjectConfig: this.props.configType == "GC" ? JSON.stringify(mergeArr) : this.nowRow.ProjectConfig,
24572
24572
  ConstructConfig: this.props.configType == "BD" ? JSON.stringify(mergeArr) : this.nowRow.ConstructConfig,
24573
24573
  LastUpdateUserId: this.storageInfo.getUser().Id,
@@ -24598,11 +24598,14 @@ class GeneralConfigurationInstance extends BaseInstance {
24598
24598
  /** 根据平台id、概况类型、获取概况信息 */
24599
24599
  async loadGeneralSituationData() {
24600
24600
  let res = this.utilities.parseApiResult(await this.corePlatformConfigApi.getEntities(QueryWrapper.create().allEq({
24601
- PlatformId: this.props.platformId
24601
+ PlatformId: this.props.platformInfo.Id
24602
24602
  })));
24603
24603
  if (res && res.length > 0) {
24604
24604
  Object.assign(this.nowRow, res[0]);
24605
24605
  let data = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(res[0].ProjectConfig)) : this.utilities.deepCopy(JSON.parse(res[0].ConstructConfig));
24606
+ if (data && data.length > 0) {
24607
+ data = data.sort((a, b) => a.orderNum - b.orderNum);
24608
+ }
24606
24609
  this.loadMainData(data);
24607
24610
  }
24608
24611
  }
@@ -24618,7 +24621,7 @@ class GeneralConfigurationInstance extends BaseInstance {
24618
24621
  async loadDicData() {
24619
24622
  let dicCode = this.props.configType == "GC" ? "ProjectProfileConfiguration" : "SectionGeneralConfiguration";
24620
24623
  let dicTypeInfo = this.utilities.parseApiResult(await this.dictionaryTypeApi.getEntitiesDynamic(QueryWrapper.create().allEq({
24621
- PlatformId: this.props.platformId,
24624
+ PlatformId: this.props.platformInfo.PId > 0 ? this.props.platformInfo.PId : this.props.platformInfo.Id,
24622
24625
  OptionCode: dicCode
24623
24626
  })));
24624
24627
  if (dicTypeInfo && dicTypeInfo.length > 0) {
@@ -24631,8 +24634,8 @@ class GeneralConfigurationInstance extends BaseInstance {
24631
24634
  //#endregion 概况选择modal END
24632
24635
  }
24633
24636
  const GeneralConfiguration_vue_vue_type_style_index_0_scoped_a01b6a2e_lang = "";
24634
- const _hoisted_1$6 = { style: { "height": "600px", "overflow-y": "auto" } };
24635
- function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
24637
+ const _hoisted_1$7 = { style: { "height": "600px", "overflow-y": "auto" } };
24638
+ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
24636
24639
  const _component_NvGrid = resolveComponent("NvGrid");
24637
24640
  const _component_NvBox = resolveComponent("NvBox");
24638
24641
  const _component_Button = resolveComponent("Button");
@@ -24684,7 +24687,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
24684
24687
  }, 8, ["loading", "onClick"])
24685
24688
  ]),
24686
24689
  default: withCtx(() => [
24687
- createElementVNode("div", _hoisted_1$6, [
24690
+ createElementVNode("div", _hoisted_1$7, [
24688
24691
  createVNode(_component_NvGrid, {
24689
24692
  ref: "dicModalGrid",
24690
24693
  option: _ctx.dicModalGridOption
@@ -24697,8 +24700,8 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
24697
24700
  _: 1
24698
24701
  });
24699
24702
  }
24700
- const GeneralConfiguration = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-a01b6a2e"]]);
24701
- const propDefine$5 = {
24703
+ const GeneralConfiguration = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-a01b6a2e"]]);
24704
+ const propDefine$6 = {
24702
24705
  linkParam: {
24703
24706
  // 带入的参数
24704
24707
  type: String,
@@ -24710,14 +24713,14 @@ const propDefine$5 = {
24710
24713
  default: "-"
24711
24714
  }
24712
24715
  };
24713
- const _sfc_main$5 = defineComponent({
24716
+ const _sfc_main$6 = defineComponent({
24714
24717
  name: "Platform",
24715
24718
  components: {
24716
24719
  GeneralConfiguration
24717
24720
  },
24718
24721
  emits: [""],
24719
24722
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
24720
- props: propDefine$5,
24723
+ props: propDefine$6,
24721
24724
  setup(props, ctx) {
24722
24725
  return new PlatformInstance2(props, ctx);
24723
24726
  }
@@ -24733,7 +24736,7 @@ class PlatformInstance2 extends BaseInstance {
24733
24736
  //#region 系统平台
24734
24737
  __publicField(this, "isShowGeneralConfig", ref(false));
24735
24738
  __publicField(this, "generalConfigTitle", ref("概况配置"));
24736
- __publicField(this, "platformId", ref(0));
24739
+ __publicField(this, "platformInfo", reactive({}));
24737
24740
  __publicField(this, "configType", ref("GC"));
24738
24741
  __publicField(this, "upList", reactive(Array()));
24739
24742
  __publicField(this, "platformGridOption", reactive({
@@ -24827,7 +24830,7 @@ class PlatformInstance2 extends BaseInstance {
24827
24830
  text: "项目",
24828
24831
  onclick: (row) => {
24829
24832
  this.configType.value = "GC";
24830
- this.platformId.value = row.Id;
24833
+ Object.assign(this.platformInfo, row);
24831
24834
  this.generalConfigTitle.value = `${row.PlatformName}-项目概况配置`;
24832
24835
  this.isShowGeneralConfig.value = true;
24833
24836
  }
@@ -24837,7 +24840,7 @@ class PlatformInstance2 extends BaseInstance {
24837
24840
  text: "标段",
24838
24841
  onclick: (row) => {
24839
24842
  this.configType.value = "BD";
24840
- this.platformId.value = row.Id;
24843
+ Object.assign(this.platformInfo, row);
24841
24844
  this.generalConfigTitle.value = `${row.PlatformName}-标段概况配置`;
24842
24845
  this.isShowGeneralConfig.value = true;
24843
24846
  }
@@ -24989,6 +24992,7 @@ class PlatformInstance2 extends BaseInstance {
24989
24992
  * @param data
24990
24993
  */
24991
24994
  doEditPlatform(data) {
24995
+ var _a;
24992
24996
  const user = this.storageInfo.getUser();
24993
24997
  this.platformFormModel.Id = data.Id;
24994
24998
  this.platformFormModel.SKey = data.SKey;
@@ -25003,6 +25007,14 @@ class PlatformInstance2 extends BaseInstance {
25003
25007
  this.platformFormModel.LastUpdateUserId = user.Id;
25004
25008
  this.platformFormModel.LastUpdateUserName = user.UserName;
25005
25009
  this.platformFormModel.LastUpdateDate = this.utilities.getCurrentDate();
25010
+ this.platformFormModel.PId = data.PId;
25011
+ const tableData = (_a = this.platformGrid.value) == null ? void 0 : _a.getDatas();
25012
+ this.platformFormItems[4].selectProp.datas = tableData.length > 0 ? tableData == null ? void 0 : tableData.map((item) => {
25013
+ return {
25014
+ value: item.Id,
25015
+ text: item.PlatformAbbreviation
25016
+ };
25017
+ }) : [];
25006
25018
  this.editPlatformModalTitle.value = `编辑 - ${data.PlatformName}`;
25007
25019
  this.showEditPlatform.value = true;
25008
25020
  }
@@ -25030,16 +25042,16 @@ class PlatformInstance2 extends BaseInstance {
25030
25042
  this.platformFormItems[4].selectProp.datas = data.length > 0 ? data == null ? void 0 : data.map((item) => {
25031
25043
  return {
25032
25044
  value: item.Id,
25033
- text: item.PlatformName
25045
+ text: item.PlatformAbbreviation
25034
25046
  };
25035
25047
  }) : [];
25036
25048
  this.showEditPlatform.value = true;
25037
25049
  }
25038
25050
  //#endregion 系统平台编辑 END
25039
25051
  }
25040
- const Platform_vue_vue_type_style_index_0_scoped_b54fe6c5_lang = "";
25041
- const _hoisted_1$5 = { style: { "height": "500px", "overflow-y": "auto" } };
25042
- function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
25052
+ const Platform_vue_vue_type_style_index_0_scoped_30a3712d_lang = "";
25053
+ const _hoisted_1$6 = { style: { "height": "500px", "overflow-y": "auto" } };
25054
+ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
25043
25055
  const _component_NvGrid = resolveComponent("NvGrid");
25044
25056
  const _component_NvBox = resolveComponent("NvBox");
25045
25057
  const _component_NvComForm = resolveComponent("NvComForm");
@@ -25094,7 +25106,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
25094
25106
  }, 8, ["loading", "onClick"])
25095
25107
  ]),
25096
25108
  default: withCtx(() => [
25097
- createElementVNode("div", _hoisted_1$5, [
25109
+ createElementVNode("div", _hoisted_1$6, [
25098
25110
  createVNode(_component_Form, {
25099
25111
  ref: "refPlatformForm",
25100
25112
  model: _ctx.platformFormModel,
@@ -25132,9 +25144,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
25132
25144
  default: withCtx(() => [
25133
25145
  _ctx.isShowGeneralConfig ? (openBlock(), createBlock(_component_GeneralConfiguration, {
25134
25146
  key: 0,
25135
- platformId: _ctx.platformId,
25147
+ platformInfo: _ctx.platformInfo,
25136
25148
  configType: _ctx.configType
25137
- }, null, 8, ["platformId", "configType"])) : createCommentVNode("", true)
25149
+ }, null, 8, ["platformInfo", "configType"])) : createCommentVNode("", true)
25138
25150
  ]),
25139
25151
  _: 1
25140
25152
  }, 8, ["modelValue", "title"])
@@ -25142,8 +25154,8 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
25142
25154
  _: 1
25143
25155
  });
25144
25156
  }
25145
- const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-b54fe6c5"]]);
25146
- const propDefine$4 = {
25157
+ const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-30a3712d"]]);
25158
+ const propDefine$5 = {
25147
25159
  linkParam: {
25148
25160
  // 带入的参数
25149
25161
  type: String,
@@ -25155,12 +25167,12 @@ const propDefine$4 = {
25155
25167
  default: "-"
25156
25168
  }
25157
25169
  };
25158
- const _sfc_main$4 = defineComponent({
25170
+ const _sfc_main$5 = defineComponent({
25159
25171
  name: "Role",
25160
25172
  components: { SelectPlatform },
25161
25173
  emits: [""],
25162
25174
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
25163
- props: propDefine$4,
25175
+ props: propDefine$5,
25164
25176
  setup(props, ctx) {
25165
25177
  return new RoleInstance2(props, ctx);
25166
25178
  }
@@ -25375,7 +25387,6 @@ class RoleInstance2 extends BaseInstance {
25375
25387
  this.roleGrid.value.setGloablValue("LastUpdateDate", () => {
25376
25388
  return this.utilities.getCurrentDate();
25377
25389
  });
25378
- debugger;
25379
25390
  this.loadRoleGridData();
25380
25391
  });
25381
25392
  /**
@@ -25955,7 +25966,11 @@ class RoleInstance2 extends BaseInstance {
25955
25966
  * 加载源平台数据
25956
25967
  */
25957
25968
  async loadOriginPlatforms() {
25958
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().ne("Id", this.platId.value));
25969
+ var _a;
25970
+ const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
25971
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.platId.value).or((i) => i.allEq({
25972
+ PId: platId
25973
+ })).orderBy(["OrderNo"]));
25959
25974
  this.originPlatform.list = this.utilities.parseApiResult(apiResult);
25960
25975
  if (this.originPlatform.list.length > 0) {
25961
25976
  this.originPlatform.selectedItem = this.originPlatform.list[0];
@@ -25977,14 +25992,14 @@ class RoleInstance2 extends BaseInstance {
25977
25992
  //#endregion 导入角色 END
25978
25993
  }
25979
25994
  const Role_vue_vue_type_style_index_0_scoped_ffab91cb_lang = "";
25980
- const _hoisted_1$4 = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
25981
- const _hoisted_2$2 = {
25995
+ const _hoisted_1$5 = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
25996
+ const _hoisted_2$3 = {
25982
25997
  class: "import-role",
25983
25998
  style: { "height": "610px", "position": "relative" }
25984
25999
  };
25985
- const _hoisted_3$2 = { style: { "width": "100%", "height": "100%" } };
25986
- const _hoisted_4$2 = { style: { "height": "530px", "overflow-y": "auto" } };
25987
- function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
26000
+ const _hoisted_3$3 = { style: { "width": "100%", "height": "100%" } };
26001
+ const _hoisted_4$3 = { style: { "height": "530px", "overflow-y": "auto" } };
26002
+ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
25988
26003
  const _component_Option = resolveComponent("Option");
25989
26004
  const _component_Select = resolveComponent("Select");
25990
26005
  const _component_Spin = resolveComponent("Spin");
@@ -26085,7 +26100,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
26085
26100
  }, 8, ["loading", "onClick"])
26086
26101
  ]),
26087
26102
  default: withCtx(() => [
26088
- createElementVNode("div", _hoisted_1$4, [
26103
+ createElementVNode("div", _hoisted_1$5, [
26089
26104
  createVNode(_component_NvGrid, {
26090
26105
  ref: "moduleGrid",
26091
26106
  option: _ctx.moduleGridOption
@@ -26126,8 +26141,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
26126
26141
  }, 8, ["loading", "onClick"])
26127
26142
  ]),
26128
26143
  default: withCtx(() => [
26129
- createElementVNode("div", _hoisted_2$2, [
26130
- createElementVNode("div", _hoisted_3$2, [
26144
+ createElementVNode("div", _hoisted_2$3, [
26145
+ createElementVNode("div", _hoisted_3$3, [
26131
26146
  createVNode(_component_NvGrid, {
26132
26147
  ref: "originRoleGrid",
26133
26148
  option: _ctx.originRoleGridOption
@@ -26197,7 +26212,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
26197
26212
  }, 8, ["loading", "onClick"])
26198
26213
  ]),
26199
26214
  default: withCtx(() => [
26200
- createElementVNode("div", _hoisted_4$2, [
26215
+ createElementVNode("div", _hoisted_4$3, [
26201
26216
  createVNode(_component_Form, {
26202
26217
  ref: "refRoleForm",
26203
26218
  model: _ctx.roleFormModel,
@@ -26219,8 +26234,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
26219
26234
  _: 1
26220
26235
  });
26221
26236
  }
26222
- const subrole = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-ffab91cb"]]);
26223
- const propDefine$3 = {
26237
+ const subrole = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-ffab91cb"]]);
26238
+ const propDefine$4 = {
26224
26239
  linkParam: {
26225
26240
  // 带入的参数
26226
26241
  type: String,
@@ -26232,12 +26247,12 @@ const propDefine$3 = {
26232
26247
  default: "-"
26233
26248
  }
26234
26249
  };
26235
- const _sfc_main$3 = defineComponent({
26250
+ const _sfc_main$4 = defineComponent({
26236
26251
  name: "Enterprise",
26237
26252
  components: { SelectPlatform },
26238
26253
  emits: [""],
26239
26254
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
26240
- props: propDefine$3,
26255
+ props: propDefine$4,
26241
26256
  setup(props, ctx) {
26242
26257
  return new EnterpriseInstance2(props, ctx);
26243
26258
  }
@@ -26269,9 +26284,7 @@ class EnterpriseInstance2 extends BaseInstance {
26269
26284
  var _a;
26270
26285
  this.spinPlatShow.value = true;
26271
26286
  const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
26272
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
26273
- PId: platId
26274
- })).orderBy(["OrderNo"]));
26287
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).orderBy(["OrderNo"]));
26275
26288
  this.platData.value = this.utilities.parseApiResult(apiResult);
26276
26289
  this.spinPlatShow.value = false;
26277
26290
  if (this.platData.value.length > 0)
@@ -26650,8 +26663,8 @@ class EnterpriseInstance2 extends BaseInstance {
26650
26663
  //#endregion 业务逻辑 编辑企业信息 END
26651
26664
  }
26652
26665
  const Enterprise_vue_vue_type_style_index_0_scoped_57711b94_lang = "";
26653
- const _hoisted_1$3 = { style: { "height": "650px", "overflow-y": "auto" } };
26654
- function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
26666
+ const _hoisted_1$4 = { style: { "height": "650px", "overflow-y": "auto" } };
26667
+ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
26655
26668
  const _component_Option = resolveComponent("Option");
26656
26669
  const _component_Select = resolveComponent("Select");
26657
26670
  const _component_Spin = resolveComponent("Spin");
@@ -26753,7 +26766,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
26753
26766
  }, 8, ["loading", "onClick"])) : createCommentVNode("", true)
26754
26767
  ]),
26755
26768
  default: withCtx(() => [
26756
- createElementVNode("div", _hoisted_1$3, [
26769
+ createElementVNode("div", _hoisted_1$4, [
26757
26770
  createVNode(_component_Form, {
26758
26771
  model: _ctx.enterpriseFormModel,
26759
26772
  "label-width": 90
@@ -26776,8 +26789,8 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
26776
26789
  _: 1
26777
26790
  });
26778
26791
  }
26779
- const subenterprise = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-57711b94"]]);
26780
- const propDefine$2 = {
26792
+ const subenterprise = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-57711b94"]]);
26793
+ const propDefine$3 = {
26781
26794
  linkParam: {
26782
26795
  // 带入的参数
26783
26796
  type: String,
@@ -26789,12 +26802,12 @@ const propDefine$2 = {
26789
26802
  default: "-"
26790
26803
  }
26791
26804
  };
26792
- const _sfc_main$2 = defineComponent({
26805
+ const _sfc_main$3 = defineComponent({
26793
26806
  name: "Institution",
26794
26807
  components: { SelectPlatform },
26795
26808
  emits: [""],
26796
26809
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
26797
- props: propDefine$2,
26810
+ props: propDefine$3,
26798
26811
  setup(props, ctx) {
26799
26812
  return new InstitutionInstance2(props, ctx);
26800
26813
  }
@@ -26817,6 +26830,7 @@ class InstitutionInstance2 extends BaseInstance {
26817
26830
  // 私有属性 | private
26818
26831
  // 响应属性 | ref、reactive、computed、watch
26819
26832
  __publicField(this, "platId", ref(0));
26833
+ __publicField(this, "selectPlat", ref({}));
26820
26834
  __publicField(this, "platData", ref([]));
26821
26835
  __publicField(this, "spinPlatShow", ref(false));
26822
26836
  // 私有方法 | private 方法名() {}
@@ -26833,11 +26847,12 @@ class InstitutionInstance2 extends BaseInstance {
26833
26847
  })).orderBy(["OrderNo"]));
26834
26848
  this.platData.value = this.utilities.parseApiResult(apiResult);
26835
26849
  this.spinPlatShow.value = false;
26836
- if (this.platData.value.length > 0)
26850
+ if (this.platData.value.length > 0) {
26837
26851
  this.platId.value = this.platData.value[0].Id;
26838
- nextTick(() => {
26839
- this.doPlatformListSelect();
26840
- });
26852
+ nextTick(() => {
26853
+ this.doPlatformListSelect(this.platId.value);
26854
+ });
26855
+ }
26841
26856
  });
26842
26857
  //#endregion 系统平台 END
26843
26858
  //#region 机构类别
@@ -26996,7 +27011,9 @@ class InstitutionInstance2 extends BaseInstance {
26996
27011
  * 系统平台List选中事件
26997
27012
  * @param data
26998
27013
  */
26999
- __publicField(this, "doPlatformListSelect", async () => {
27014
+ __publicField(this, "doPlatformListSelect", async (data) => {
27015
+ const res = this.platData.value.find((item) => item.Id == data);
27016
+ this.selectPlat.value = res;
27000
27017
  await this.loadEnterprises();
27001
27018
  this.loadInstitutionGridData(this.platId.value, "", "", "");
27002
27019
  this.loadInstitutionTree();
@@ -27517,7 +27534,14 @@ class InstitutionInstance2 extends BaseInstance {
27517
27534
  */
27518
27535
  setEnterpriseDatas() {
27519
27536
  const datas = [];
27520
- for (const item of this.enterprises.filter((item2) => item2.PlatformId == this.platId.value)) {
27537
+ let plat = [];
27538
+ if (this.selectPlat.PId !== 0) {
27539
+ plat = this.platData.value.filter((item) => item.Id == this.selectPlat.value.PId || this.selectPlat.value.Id == item.Id);
27540
+ } else {
27541
+ plat = this.platData.value.filter((item) => item.Id == this.selectPlat.value.Id);
27542
+ }
27543
+ const res = this.enterprises.filter((itemA) => plat.some((itemB) => itemB.Id == itemA.PlatformId));
27544
+ for (const item of res) {
27521
27545
  datas.push({ text: item.EnterpriseName, value: item.Id });
27522
27546
  }
27523
27547
  this.institutionFormItems[3].selectProp.datas = datas;
@@ -27573,7 +27597,11 @@ class InstitutionInstance2 extends BaseInstance {
27573
27597
  * 加载源平台数据
27574
27598
  */
27575
27599
  async loadOriginPlatforms() {
27576
- const apiResult = await this.platformApi.getEntities(QueryWrapper.create().ne("Id", this.platId.value));
27600
+ var _a;
27601
+ const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
27602
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.platId.value).or((i) => i.allEq({
27603
+ PId: platId
27604
+ })).orderBy(["OrderNo"]));
27577
27605
  this.originPlatform.list = this.utilities.parseApiResult(apiResult);
27578
27606
  if (this.originPlatform.list.length > 0) {
27579
27607
  this.originPlatform.selectedItem = this.originPlatform.list[0];
@@ -27725,16 +27753,16 @@ class InstitutionInstance2 extends BaseInstance {
27725
27753
  //#endregion 绑定角色 END
27726
27754
  }
27727
27755
  const Institution_vue_vue_type_style_index_0_scoped_ed65a91d_lang = "";
27728
- const _hoisted_1$2 = { style: { "width": "100%", "height": "100%", "position": "relative" } };
27729
- const _hoisted_2$1 = { style: { "height": "500px", "overflow-y": "auto" } };
27730
- const _hoisted_3$1 = {
27756
+ const _hoisted_1$3 = { style: { "width": "100%", "height": "100%", "position": "relative" } };
27757
+ const _hoisted_2$2 = { style: { "height": "500px", "overflow-y": "auto" } };
27758
+ const _hoisted_3$2 = {
27731
27759
  class: "import-institution",
27732
27760
  style: { "height": "600px", "overflow-y": "auto", "position": "relative" }
27733
27761
  };
27734
- const _hoisted_4$1 = { style: { "width": "100%", "height": "100%" } };
27735
- const _hoisted_5$1 = { style: { "height": "calc(100%)" } };
27736
- const _hoisted_6$1 = { style: { "height": "610px", "overflow-y": "auto", "position": "relative" } };
27737
- function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
27762
+ const _hoisted_4$2 = { style: { "width": "100%", "height": "100%" } };
27763
+ const _hoisted_5$2 = { style: { "height": "calc(100%)" } };
27764
+ const _hoisted_6$2 = { style: { "height": "610px", "overflow-y": "auto", "position": "relative" } };
27765
+ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
27738
27766
  const _component_Option = resolveComponent("Option");
27739
27767
  const _component_Select = resolveComponent("Select");
27740
27768
  const _component_Spin = resolveComponent("Spin");
@@ -27839,7 +27867,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
27839
27867
  })
27840
27868
  ]),
27841
27869
  default: withCtx(() => [
27842
- createElementVNode("div", _hoisted_1$2, [
27870
+ createElementVNode("div", _hoisted_1$3, [
27843
27871
  createVNode(_component_Tree, {
27844
27872
  data: _ctx.institutionTree,
27845
27873
  render: _ctx.renderContent,
@@ -27898,7 +27926,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
27898
27926
  }, 8, ["loading", "onClick"])
27899
27927
  ]),
27900
27928
  default: withCtx(() => [
27901
- createElementVNode("div", _hoisted_2$1, [
27929
+ createElementVNode("div", _hoisted_2$2, [
27902
27930
  createVNode(_component_Form, {
27903
27931
  model: _ctx.institutionFormModel,
27904
27932
  "label-width": 90
@@ -27948,9 +27976,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
27948
27976
  }, 8, ["loading", "onClick"])
27949
27977
  ]),
27950
27978
  default: withCtx(() => [
27951
- createElementVNode("div", _hoisted_3$1, [
27952
- createElementVNode("div", _hoisted_4$1, [
27953
- createElementVNode("div", _hoisted_5$1, [
27979
+ createElementVNode("div", _hoisted_3$2, [
27980
+ createElementVNode("div", _hoisted_4$2, [
27981
+ createElementVNode("div", _hoisted_5$2, [
27954
27982
  createVNode(_component_NvGrid, {
27955
27983
  ref: "originInstitutionGrid",
27956
27984
  option: _ctx.originInstitutionGridOption
@@ -28021,7 +28049,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
28021
28049
  }, 8, ["loading", "onClick"])
28022
28050
  ]),
28023
28051
  default: withCtx(() => [
28024
- createElementVNode("div", _hoisted_6$1, [
28052
+ createElementVNode("div", _hoisted_6$2, [
28025
28053
  createVNode(_component_NvGrid, {
28026
28054
  ref: "roleGrid",
28027
28055
  option: _ctx.roleGridOption
@@ -28037,14 +28065,14 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
28037
28065
  _: 1
28038
28066
  });
28039
28067
  }
28040
- const subinstitution = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-ed65a91d"]]);
28041
- const propDefine$1 = {};
28042
- const _sfc_main$1 = defineComponent({
28068
+ const subinstitution = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-ed65a91d"]]);
28069
+ const propDefine$2 = {};
28070
+ const _sfc_main$2 = defineComponent({
28043
28071
  name: "LoginLog",
28044
28072
  components: {},
28045
28073
  emits: [""],
28046
28074
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
28047
- props: propDefine$1,
28075
+ props: propDefine$2,
28048
28076
  setup(props, ctx) {
28049
28077
  return new LoginLogInstance2(props, ctx);
28050
28078
  }
@@ -28149,18 +28177,18 @@ class LoginLogInstance2 extends BaseInstance {
28149
28177
  //#endregion 登录日志 END
28150
28178
  }
28151
28179
  const LoginLog_vue_vue_type_style_index_0_scoped_a0d5af5b_lang = "";
28152
- const _hoisted_1$1 = { class: "loginLog" };
28153
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
28180
+ const _hoisted_1$2 = { class: "loginLog" };
28181
+ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
28154
28182
  const _component_NvGrid = resolveComponent("NvGrid");
28155
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
28183
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [
28156
28184
  createVNode(_component_NvGrid, {
28157
28185
  ref: "loginLogGrid",
28158
28186
  option: _ctx.loginLogGridOption
28159
28187
  }, null, 8, ["option"])
28160
28188
  ]);
28161
28189
  }
28162
- const LoginLog = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-a0d5af5b"]]);
28163
- const propDefine = {
28190
+ const LoginLog = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-a0d5af5b"]]);
28191
+ const propDefine$1 = {
28164
28192
  linkParam: {
28165
28193
  // 带入的参数
28166
28194
  type: String,
@@ -28172,12 +28200,12 @@ const propDefine = {
28172
28200
  default: "-"
28173
28201
  }
28174
28202
  };
28175
- const _sfc_main = defineComponent({
28203
+ const _sfc_main$1 = defineComponent({
28176
28204
  name: "Userinfor",
28177
28205
  components: { SelectPlatform, LoginLog, BaseLogin },
28178
28206
  emits: [""],
28179
28207
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
28180
- props: propDefine,
28208
+ props: propDefine$1,
28181
28209
  setup(props, ctx) {
28182
28210
  return new UserinforInstance2(props, ctx);
28183
28211
  }
@@ -29248,25 +29276,25 @@ class UserinforInstance2 extends BaseInstance {
29248
29276
  // 响应式方法 | xxx = () => {}
29249
29277
  //#endregion 重置密码 END
29250
29278
  }
29251
- const Userinfor_vue_vue_type_style_index_0_scoped_cfb5bccf_lang = "";
29252
- const _withScopeId = (n) => (pushScopeId("data-v-cfb5bccf"), n = n(), popScopeId(), n);
29253
- const _hoisted_1 = { class: "instree-search" };
29254
- const _hoisted_2 = { class: "instree-list" };
29255
- const _hoisted_3 = { style: { "height": "600px", "overflow-y": "auto" } };
29256
- const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
29279
+ const Userinfor_vue_vue_type_style_index_0_scoped_4827d4a9_lang = "";
29280
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-4827d4a9"), n = n(), popScopeId(), n);
29281
+ const _hoisted_1$1 = { class: "instree-search" };
29282
+ const _hoisted_2$1 = { class: "instree-list" };
29283
+ const _hoisted_3$1 = { style: { "height": "600px", "overflow-y": "auto" } };
29284
+ const _hoisted_4$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
29257
29285
  /* @__PURE__ */ createElementVNode("div", { style: { "padding-bottom": "8px" } }, "用户账号:手机号必填。在新设备登录时,需进行短信验证。"),
29258
29286
  /* @__PURE__ */ createElementVNode("div", null, "内部账号:手机号可不填。")
29259
29287
  ], -1));
29260
- const _hoisted_5 = { style: { "height": "600px", "overflow-y": "auto" } };
29261
- const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选绑定用户角色!", -1));
29262
- const _hoisted_7 = { style: { "height": "650px", "overflow-y": "auto" } };
29263
- const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选需要引入的用户!", -1));
29264
- const _hoisted_9 = { style: { "height": "650px", "overflow-y": "auto" } };
29288
+ const _hoisted_5$1 = { style: { "height": "600px", "overflow-y": "auto" } };
29289
+ const _hoisted_6$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选绑定用户角色!", -1));
29290
+ const _hoisted_7$1 = { style: { "height": "650px", "overflow-y": "auto" } };
29291
+ const _hoisted_8$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选需要引入的用户!", -1));
29292
+ const _hoisted_9 = { style: { "height": "650px", "overflow-y": "auto" } };
29265
29293
  const _hoisted_10 = { style: { "display": "none" } };
29266
29294
  const _hoisted_11 = { style: { "height": "400px", "overflow-y": "auto" } };
29267
29295
  const _hoisted_12 = ["src"];
29268
29296
  const _hoisted_13 = ["src"];
29269
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29297
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
29270
29298
  const _component_Option = resolveComponent("Option");
29271
29299
  const _component_Select = resolveComponent("Select");
29272
29300
  const _component_Spin = resolveComponent("Spin");
@@ -29311,7 +29339,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29311
29339
  })
29312
29340
  ]),
29313
29341
  default: withCtx(() => [
29314
- createElementVNode("div", _hoisted_1, [
29342
+ createElementVNode("div", _hoisted_1$1, [
29315
29343
  createVNode(_component_NvControlGroup, {
29316
29344
  width: "100%",
29317
29345
  icon: "md-refresh",
@@ -29349,7 +29377,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29349
29377
  _: 1
29350
29378
  }, 8, ["onClick"])
29351
29379
  ]),
29352
- createElementVNode("div", _hoisted_2, [
29380
+ createElementVNode("div", _hoisted_2$1, [
29353
29381
  createVNode(_component_Tree, {
29354
29382
  data: _ctx.institutionTree,
29355
29383
  render: _ctx.renderInsTreeContent,
@@ -29412,7 +29440,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29412
29440
  }, 8, ["loading", "onClick"])
29413
29441
  ]),
29414
29442
  default: withCtx(() => [
29415
- createElementVNode("div", _hoisted_3, [
29443
+ createElementVNode("div", _hoisted_3$1, [
29416
29444
  createVNode(_component_Form, {
29417
29445
  ref: "userForm",
29418
29446
  model: _ctx.userFormModel,
@@ -29428,7 +29456,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29428
29456
  ]),
29429
29457
  _: 1
29430
29458
  }, 8, ["model", "rules"]),
29431
- _hoisted_4
29459
+ _hoisted_4$1
29432
29460
  ])
29433
29461
  ]),
29434
29462
  _: 1
@@ -29465,13 +29493,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29465
29493
  }, 8, ["loading", "onClick"])
29466
29494
  ]),
29467
29495
  default: withCtx(() => [
29468
- createElementVNode("div", _hoisted_5, [
29496
+ createElementVNode("div", _hoisted_5$1, [
29469
29497
  createVNode(_component_NvGrid, {
29470
29498
  ref: "userRoleGrid",
29471
29499
  option: _ctx.userRoleGridOption
29472
29500
  }, {
29473
29501
  default: withCtx(() => [
29474
- _hoisted_6
29502
+ _hoisted_6$1
29475
29503
  ]),
29476
29504
  _: 1
29477
29505
  }, 8, ["option"])
@@ -29511,13 +29539,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29511
29539
  }, 8, ["loading", "onClick"])
29512
29540
  ]),
29513
29541
  default: withCtx(() => [
29514
- createElementVNode("div", _hoisted_7, [
29542
+ createElementVNode("div", _hoisted_7$1, [
29515
29543
  createVNode(_component_NvGrid, {
29516
29544
  ref: "otherUserGrid",
29517
29545
  option: _ctx.otherUserGridOption
29518
29546
  }, {
29519
29547
  default: withCtx(() => [
29520
- _hoisted_8
29548
+ _hoisted_8$1
29521
29549
  ]),
29522
29550
  _: 1
29523
29551
  }, 8, ["option"])
@@ -29661,73 +29689,1215 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
29661
29689
  _: 1
29662
29690
  });
29663
29691
  }
29664
- const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-cfb5bccf"]]);
29665
- const index = [
29666
- {
29667
- // 系统平台
29668
- path: "/permission-service/platform/platform",
29669
- component: Platform
29670
- },
29671
- {
29672
- // 菜单模块
29673
- path: "/permission-service/platform/module",
29674
- component: Module
29675
- },
29676
- {
29677
- // 角色管理
29678
- path: "/permission-service/platform/role",
29679
- component: Role
29680
- },
29681
- {
29682
- // 机构类型
29683
- path: "/permission-service/institution/institutiontype",
29684
- component: InstitutionType
29685
- },
29686
- {
29687
- // 组织机构
29688
- path: "/permission-service/institution/institution",
29689
- component: Institution
29690
- },
29691
- {
29692
- // 用户管理
29693
- path: "/permission-service/institution/userinfor",
29694
- component: Userinfor
29695
- },
29696
- {
29697
- // 企业管理
29698
- path: "/permission-service/institution/enterprise",
29699
- component: Enterprise
29700
- },
29701
- {
29702
- // 第三方信息
29703
- path: "/permission-service/thirdparty/information",
29704
- component: Information
29705
- },
29706
- // 平台设置(二级)
29707
- {
29708
- // 项目管理
29709
- path: "/permission-service/platform/subplatform",
29710
- component: subplatform
29711
- },
29712
- {
29713
- // 平台角色
29714
- path: "/permission-service/platform/subrole",
29715
- component: subrole
29716
- },
29717
- {
29718
- // 平台企业
29719
- path: "/permission-service/institution/subenterprise",
29720
- component: subenterprise
29721
- },
29722
- {
29723
- // 平台机构
29724
- path: "/permission-service/institution/subinstitution",
29725
- component: subinstitution
29692
+ const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-4827d4a9"]]);
29693
+ const propDefine = {
29694
+ linkParam: {
29695
+ // 带入的参数
29696
+ type: String,
29697
+ default: ""
29726
29698
  },
29727
- {
29728
- // 平台用户
29729
- path: "/permission-service/institution/subuserinfor",
29730
- component: subuserinfor
29699
+ operates: {
29700
+ // 按钮权限码
29701
+ type: String,
29702
+ default: "-"
29703
+ }
29704
+ };
29705
+ const _sfc_main = defineComponent({
29706
+ name: "Module",
29707
+ components: { SelectPlatform },
29708
+ emits: ["change"],
29709
+ // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
29710
+ props: propDefine,
29711
+ setup(props, ctx) {
29712
+ return new ModuleInstance2(props, ctx);
29713
+ }
29714
+ });
29715
+ class ModuleInstance2 extends BaseInstance {
29716
+ constructor(props, ctx) {
29717
+ super();
29718
+ __publicField(this, "props");
29719
+ __publicField(this, "ctx");
29720
+ // API实例化
29721
+ __publicField(this, "platformApi", new PlatformApi());
29722
+ __publicField(this, "moduleApi", new ModuleApi());
29723
+ // 全局属性
29724
+ __publicField(this, "selectedPlatform");
29725
+ // 响应属性 | ref、reactive、computed、watch
29726
+ __publicField(this, "platId", ref(0));
29727
+ __publicField(this, "platData", ref([]));
29728
+ __publicField(this, "spinPlatShow", ref(false));
29729
+ // 私有方法 | private 方法名() {}
29730
+ // 响应式方法 | xxx = () => {}
29731
+ /**
29732
+ * 系统平台列表
29733
+ */
29734
+ __publicField(this, "getPlatData", async () => {
29735
+ var _a;
29736
+ this.spinPlatShow.value = true;
29737
+ const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
29738
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
29739
+ PId: platId
29740
+ })).orderBy(["OrderNo"]));
29741
+ this.platData.value = this.utilities.parseApiResult(apiResult);
29742
+ this.spinPlatShow.value = false;
29743
+ if (this.platData.value.length > 0) {
29744
+ this.platId.value = this.platData.value[0].Id;
29745
+ nextTick(() => {
29746
+ this.doPlatformChange(this.platData.value[0]);
29747
+ });
29748
+ }
29749
+ });
29750
+ //#endregion 系统平台 END
29751
+ //#region 模块列表
29752
+ // 响应属性 | ref、reactive、computed、watch
29753
+ __publicField(this, "moduleWidth", ref("calc(100% - 300px)"));
29754
+ __publicField(this, "webOrApp", ref(0));
29755
+ // 0:WEB 1:APP
29756
+ __publicField(this, "moduleGrid", ref());
29757
+ __publicField(this, "moduleGridOption", reactive({
29758
+ api: this.moduleApi,
29759
+ setting: {
29760
+ isTree: true,
29761
+ border: true,
29762
+ searchConfig: {
29763
+ btnSpan: 6,
29764
+ labelWidth: 90,
29765
+ defaultShowSearch: false
29766
+ },
29767
+ toolbarConfig: {
29768
+ isButtonGroup: false
29769
+ },
29770
+ rowConfig: {
29771
+ isHover: false,
29772
+ isCurrent: true
29773
+ },
29774
+ treeConfig: {
29775
+ expandAll: true
29776
+ }
29777
+ },
29778
+ searchOptions: [
29779
+ {
29780
+ field: "ModuleName",
29781
+ title: "模块名称",
29782
+ type: "Input"
29783
+ }
29784
+ ],
29785
+ toolbars: [
29786
+ {
29787
+ name: "addModule",
29788
+ type: "primary",
29789
+ icon: "md-add",
29790
+ text: "新增",
29791
+ onclick: () => {
29792
+ this.doAddModule();
29793
+ }
29794
+ },
29795
+ {
29796
+ name: "importModule",
29797
+ type: "default",
29798
+ icon: "md-arrow-round-up",
29799
+ text: "引入",
29800
+ onclick: () => {
29801
+ this.doShowImportModule();
29802
+ }
29803
+ }
29804
+ ],
29805
+ rightToolbars: [
29806
+ {
29807
+ name: "refresh"
29808
+ }
29809
+ ],
29810
+ columns: [
29811
+ {
29812
+ colType: "seq"
29813
+ },
29814
+ {
29815
+ colType: "ro",
29816
+ field: "ModuleName",
29817
+ title: "模块名称",
29818
+ minWidth: 250,
29819
+ treeNode: true
29820
+ },
29821
+ { colType: "ro", field: "ModuleAlias", title: "别名", width: 250, align: "center" },
29822
+ {
29823
+ colType: "ro",
29824
+ field: "IconUrl",
29825
+ title: "图标",
29826
+ width: 80,
29827
+ align: "center",
29828
+ format: (h2, params) => {
29829
+ const iconUrl = params.row.IconUrl;
29830
+ return this.utilities.isNull(iconUrl) ? "" : h2(Icon, { type: iconUrl, style: { "font-size": "18px" } });
29831
+ }
29832
+ },
29833
+ {
29834
+ colType: "ro",
29835
+ field: "ModuleType",
29836
+ title: "模块类型",
29837
+ width: 120,
29838
+ align: "center",
29839
+ format: (h2, params) => {
29840
+ const dict = {
29841
+ "Business": { text: "顶栏业务组", color: "purple" },
29842
+ "MenuGroup": { text: "左侧菜单组", color: "geekblue" },
29843
+ "MenuItem": { text: "左侧菜单项", color: "green" }
29844
+ };
29845
+ const option = dict[params.row["ModuleType"]];
29846
+ return h2(Tag, { color: option.color }, () => option.text);
29847
+ }
29848
+ },
29849
+ { colType: "ro", field: "OrderNo", title: "排序号", width: 90, align: "center" },
29850
+ {
29851
+ colType: "ro",
29852
+ field: "ModuleStatus",
29853
+ title: "状态",
29854
+ width: 70,
29855
+ align: "center",
29856
+ format: (h2, params) => {
29857
+ const dict = {
29858
+ 0: { text: "禁用", color: "red" },
29859
+ 1: { text: "正常", color: "green" },
29860
+ 2: { text: "沙盒", color: "default" }
29861
+ };
29862
+ const moduleStatus = this.utilities.getValueNotNull(params.row.ModuleStatus, 0);
29863
+ const option = dict[moduleStatus];
29864
+ return h2(Tag, { color: option.color }, () => option.text);
29865
+ }
29866
+ },
29867
+ {
29868
+ colType: "ro",
29869
+ field: "LoadMode",
29870
+ title: "加载模式",
29871
+ width: 120,
29872
+ align: "center",
29873
+ format: (h2, params) => {
29874
+ const dict = {
29875
+ 0: "路由",
29876
+ 1: "链接",
29877
+ 2: "低代码"
29878
+ };
29879
+ return dict[params.row["LoadMode"]];
29880
+ }
29881
+ },
29882
+ { colType: "ro", field: "ModuleUrl", title: "路径", width: 260 },
29883
+ {
29884
+ title: "操作",
29885
+ width: 240,
29886
+ rowButtons: [
29887
+ { name: "editModule", text: "编辑", onclick: (row) => {
29888
+ this.doEditModule(row);
29889
+ } },
29890
+ { name: "addModuleChild", text: "新增子项", onclick: (row) => {
29891
+ this.doAddChildModule(row);
29892
+ } },
29893
+ { name: "deleteModule", text: "删除", type: "error", onclick: (row) => {
29894
+ this.doDeleteModule(row);
29895
+ } }
29896
+ ]
29897
+ }
29898
+ ],
29899
+ event: {
29900
+ event_search: (data) => {
29901
+ const queryWrapper = QueryWrapper.create().eq("PlatformId", this.selectedPlatform.Id).eq("WebOrApp", this.webOrApp.value).orderBy(["OrderNo"]);
29902
+ if (!this.utilities.isNull(data.ModuleName)) {
29903
+ queryWrapper.like("ModuleName", data.ModuleName);
29904
+ }
29905
+ this.moduleGrid.value.loadDataByQuery(queryWrapper);
29906
+ }
29907
+ }
29908
+ }));
29909
+ // 响应式方法 | xxx = () => {}
29910
+ /**
29911
+ * 系统平台改变
29912
+ */
29913
+ __publicField(this, "doPlatformChange", (data) => {
29914
+ const res = this.platData.value.find((item) => item.Id == this.platId.value);
29915
+ if (this.utilities.isNull(res)) {
29916
+ return;
29917
+ }
29918
+ this.selectedPlatform = res;
29919
+ this.loadModuleGridData();
29920
+ });
29921
+ /**
29922
+ * 加载模块菜单
29923
+ */
29924
+ __publicField(this, "loadModuleGridData", () => {
29925
+ this.moduleGrid.value.loadDataByQuery(QueryWrapper.create().eq("PlatformId", this.selectedPlatform.Id).eq("WebOrApp", this.webOrApp.value).orderBy(["OrderNo"]));
29926
+ });
29927
+ /**
29928
+ * 改变模块宽度
29929
+ */
29930
+ __publicField(this, "doChangeModuleWidth", (isExpand) => {
29931
+ this.moduleWidth.value = isExpand ? "calc(100% - 300px)" : "calc(100% - 45px)";
29932
+ });
29933
+ //#endregion 模块列表 END
29934
+ //#region 编辑模块
29935
+ // 私有属性 | private
29936
+ __publicField(this, "parentModule");
29937
+ // 父模块
29938
+ __publicField(this, "editModulePId", 0);
29939
+ // 编辑模块父Id
29940
+ __publicField(this, "editModuleChildData", []);
29941
+ // 编辑模块孩子数据
29942
+ // 响应属性 | ref、reactive、computed、watch
29943
+ __publicField(this, "saveingModule", ref(false));
29944
+ __publicField(this, "moduleComForm", ref());
29945
+ __publicField(this, "showEditModule", ref(false));
29946
+ // 显示编辑模块
29947
+ __publicField(this, "editMoudelModalTitle", ref("新增 - 模块"));
29948
+ __publicField(this, "moduleFormModel", reactive({
29949
+ Id: 0,
29950
+ PlatformId: 0,
29951
+ RootId: 0,
29952
+ PId: 0,
29953
+ ParentPath: "",
29954
+ HasChild: 0,
29955
+ NodeLevel: 0,
29956
+ ModuleName: "",
29957
+ ModuleAlias: "",
29958
+ ModuleUrl: "",
29959
+ ModuleType: "",
29960
+ WebOrApp: 0,
29961
+ OrderNo: 0,
29962
+ IconUrl: "",
29963
+ AttachParams: "",
29964
+ Operates: "",
29965
+ LoadMode: 0,
29966
+ ModuleStatus: 1,
29967
+ LastUpdateUserId: 0,
29968
+ LastUpdateUserName: "",
29969
+ LastUpdateDate: ""
29970
+ }));
29971
+ __publicField(this, "moduleFormItems", reactive([
29972
+ {
29973
+ model: "",
29974
+ label: "模块信息",
29975
+ span: 24,
29976
+ children: [
29977
+ {
29978
+ model: "PId",
29979
+ label: "上级菜单",
29980
+ span: 24,
29981
+ prop: "PId",
29982
+ type: "TreeSelect",
29983
+ isShow: false,
29984
+ treeSelectProp: {
29985
+ data: [],
29986
+ onChange: (event, item) => {
29987
+ this.setEditMoudelPId(event);
29988
+ }
29989
+ }
29990
+ },
29991
+ { model: "ModuleName", label: "模块名称", prop: "ModuleName", type: "Input" },
29992
+ { model: "ModuleAlias", label: "模块别名", prop: "ModuleAlias", type: "Input" },
29993
+ {
29994
+ model: "ModuleType",
29995
+ label: "模块类型",
29996
+ prop: "ModuleType",
29997
+ type: "Select",
29998
+ selectProp: {
29999
+ datas: [
30000
+ { text: "顶栏业务组", value: "Business" },
30001
+ { text: "左侧菜单组", value: "MenuGroup" },
30002
+ { text: "左侧菜单项", value: "MenuItem" }
30003
+ ],
30004
+ transfer: true
30005
+ }
30006
+ },
30007
+ {
30008
+ model: "IconUrl",
30009
+ label: "模块图标",
30010
+ prop: "IconUrl",
30011
+ type: "IconSelect",
30012
+ iconSelectProp: {
30013
+ placeholder: "模块图标"
30014
+ }
30015
+ },
30016
+ {
30017
+ model: "ModuleStatus",
30018
+ label: "模块状态",
30019
+ prop: "ModuleStatus",
30020
+ type: "Select",
30021
+ selectProp: {
30022
+ datas: [
30023
+ { text: "禁用", value: 0 },
30024
+ { text: "正常", value: 1 },
30025
+ { text: "沙盒", value: 2 }
30026
+ ],
30027
+ transfer: true
30028
+ }
30029
+ },
30030
+ { model: "OrderNo", label: "排序号", prop: "OrderNo", type: "InputNumber" }
30031
+ ]
30032
+ },
30033
+ {
30034
+ model: "",
30035
+ label: "路由信息",
30036
+ span: 24,
30037
+ children: [
30038
+ {
30039
+ model: "LoadMode",
30040
+ label: "加载模式",
30041
+ span: 24,
30042
+ prop: "LoadMode",
30043
+ type: "Radio",
30044
+ radioProp: {
30045
+ datas: [
30046
+ { text: "路由", value: 0 },
30047
+ { text: "链接", value: 1 },
30048
+ { text: "低代码", value: 3 }
30049
+ ]
30050
+ }
30051
+ },
30052
+ { model: "ModuleUrl", label: "路由地址", span: 24, prop: "ModuleUrl", type: "Input" },
30053
+ { model: "AttachParams", label: "路由参数", span: 24, prop: "AttachParams", type: "Input" },
30054
+ {
30055
+ model: "Operates",
30056
+ label: "功能点",
30057
+ span: 24,
30058
+ prop: "Operates",
30059
+ type: "Input",
30060
+ inputProp: {
30061
+ type: "textarea",
30062
+ rows: 4,
30063
+ placeholder: `例如: [{ code:'Edit', name: '编辑' }]`
30064
+ }
30065
+ }
30066
+ ]
30067
+ }
30068
+ ]));
30069
+ // 响应式方法 | xxx = () => {}
30070
+ /**
30071
+ * 保存模块数据
30072
+ */
30073
+ __publicField(this, "doSaveModule", async () => {
30074
+ this.saveingModule.value = true;
30075
+ let apiResult = await this.moduleApi.save(this.moduleFormModel);
30076
+ let result = this.utilities.parseApiResult(apiResult);
30077
+ if (result <= 0) {
30078
+ this.message.warning("保存失败,请稍后重试!");
30079
+ this.saveingModule.value = false;
30080
+ return;
30081
+ }
30082
+ if (this.moduleFormModel.Id == 0) {
30083
+ const saveDatas = [{ Id: result, RootId: this.utilities.isNull(this.parentModule) ? result : this.parentModule.RootId }];
30084
+ if (!this.utilities.isNull(this.parentModule) && this.parentModule.HasChild == 0) {
30085
+ saveDatas.push({ Id: this.parentModule.Id, HasChild: 1 });
30086
+ }
30087
+ await this.moduleApi.saves(saveDatas);
30088
+ } else {
30089
+ if (this.editModulePId != this.moduleFormModel.PId) {
30090
+ let saveDatas = this.editModuleChildData;
30091
+ if (this.editModulePId > 0) {
30092
+ apiResult = await this.moduleApi.getCount(QueryWrapper.create().eq("PId", this.editModulePId));
30093
+ result = this.utilities.parseApiResult(apiResult);
30094
+ saveDatas.push({ Id: this.editModulePId, HasChild: result > 0 ? 1 : 0 });
30095
+ }
30096
+ await this.moduleApi.saves(saveDatas);
30097
+ }
30098
+ }
30099
+ this.message.success("保存成功!");
30100
+ this.moduleGrid.value.refreshData();
30101
+ this.saveingModule.value = false;
30102
+ this.showEditModule.value = false;
30103
+ });
30104
+ //#endregion
30105
+ //#region 导入模块
30106
+ // 私有属性 | private
30107
+ // private business2Test1: number = 0;
30108
+ // 响应属性 | ref、reactive、computed、watch
30109
+ __publicField(this, "showImportModule", ref(false));
30110
+ __publicField(this, "saveingImportModule", ref(false));
30111
+ __publicField(this, "originPlatform", reactive({
30112
+ list: [],
30113
+ selectedItem: { Id: 0, PlatformName: "" },
30114
+ selectedId: 0
30115
+ }));
30116
+ __publicField(this, "originModuleGrid", ref());
30117
+ __publicField(this, "originModuleGridOption", reactive({
30118
+ api: this.moduleApi,
30119
+ setting: {
30120
+ isTree: true,
30121
+ searchConfig: {
30122
+ btnSpan: 24,
30123
+ labelWidth: 90,
30124
+ defaultShowSearch: false
30125
+ },
30126
+ toolbarConfig: {
30127
+ isButtonGroup: false
30128
+ },
30129
+ rowConfig: {
30130
+ isHover: true
30131
+ },
30132
+ treeConfig: {
30133
+ expandAll: true
30134
+ }
30135
+ },
30136
+ searchOptions: [
30137
+ {
30138
+ field: "ModuleName",
30139
+ title: "模块名称",
30140
+ type: "Input",
30141
+ span: 24
30142
+ }
30143
+ ],
30144
+ rightToolbars: [
30145
+ {
30146
+ name: "refresh"
30147
+ }
30148
+ ],
30149
+ columns: [
30150
+ {
30151
+ colType: "checkbox"
30152
+ },
30153
+ { colType: "ro", field: "ModuleName", title: "模块名称", treeNode: true },
30154
+ {
30155
+ colType: "ro",
30156
+ field: "IconUrl",
30157
+ title: "图标",
30158
+ width: 80,
30159
+ align: "center",
30160
+ format: (h2, params) => {
30161
+ const iconUrl = params.row.IconUrl;
30162
+ return this.utilities.isNull(iconUrl) ? "" : h2(Icon, { type: iconUrl, style: { "font-size": "18px" } });
30163
+ }
30164
+ },
30165
+ {
30166
+ colType: "ro",
30167
+ field: "ModuleType",
30168
+ title: "模块类型",
30169
+ width: 120,
30170
+ align: "center",
30171
+ format: (h2, params) => {
30172
+ const dict = {
30173
+ "Business": { text: "顶栏业务组", color: "purple" },
30174
+ "MenuGroup": { text: "左侧菜单组", color: "geekblue" },
30175
+ "MenuItem": { text: "左侧菜单项", color: "green" }
30176
+ };
30177
+ const option = dict[params.row["ModuleType"]];
30178
+ return h2(Tag, { color: option.color }, () => option.text);
30179
+ }
30180
+ }
30181
+ ],
30182
+ event: {
30183
+ event_search: (data) => {
30184
+ const queryWrapper = QueryWrapper.create().eq("PlatformId", this.originPlatform.selectedId).eq("WebOrApp", this.webOrApp.value).orderBy(["OrderNo"]);
30185
+ if (!this.utilities.isNull(data.ModuleName)) {
30186
+ queryWrapper.like("ModuleName", data.ModuleName);
30187
+ }
30188
+ this.originModuleGrid.value.loadDataByQuery(queryWrapper);
30189
+ }
30190
+ }
30191
+ }));
30192
+ __publicField(this, "targetPlatform", reactive({ Id: 0, PlatformName: "" }));
30193
+ // 目标平台名称
30194
+ __publicField(this, "targetModuleGrid", ref());
30195
+ __publicField(this, "targetModuleGridOption", reactive({
30196
+ api: this.moduleApi,
30197
+ setting: {
30198
+ isTree: true,
30199
+ toolbarConfig: {
30200
+ isButtonGroup: false
30201
+ },
30202
+ rowConfig: {
30203
+ isHover: true,
30204
+ isCurrent: true
30205
+ },
30206
+ treeConfig: {
30207
+ expandAll: true
30208
+ }
30209
+ },
30210
+ toolbars: [
30211
+ // {
30212
+ // name: 'import',
30213
+ // icon: 'md-arrow-round-up',
30214
+ // text: '导入',
30215
+ // onclick: () => {
30216
+ // this.doImportOriginToTargetModule();
30217
+ // }
30218
+ // }
30219
+ ],
30220
+ rightToolbars: [
30221
+ {
30222
+ name: "refresh"
30223
+ }
30224
+ ],
30225
+ columns: [
30226
+ { colType: "ro", field: "ModuleName", title: "模块名称", treeNode: true },
30227
+ {
30228
+ colType: "ro",
30229
+ field: "IconUrl",
30230
+ title: "图标",
30231
+ width: 80,
30232
+ align: "center",
30233
+ format: (h2, params) => {
30234
+ const iconUrl = params.row.IconUrl;
30235
+ return this.utilities.isNull(iconUrl) ? "" : h2(Icon, { type: iconUrl, style: { "font-size": "18px" } });
30236
+ }
30237
+ },
30238
+ {
30239
+ colType: "ro",
30240
+ field: "ModuleType",
30241
+ title: "模块类型",
30242
+ width: 120,
30243
+ align: "center",
30244
+ format: (h2, params) => {
30245
+ const dict = {
30246
+ "Business": { text: "顶栏业务组", color: "purple" },
30247
+ "MenuGroup": { text: "左侧菜单组", color: "geekblue" },
30248
+ "MenuItem": { text: "左侧菜单项", color: "green" }
30249
+ };
30250
+ const option = dict[params.row["ModuleType"]];
30251
+ return this.utilities.isNull(option) ? "" : h2(Tag, { color: option.color }, () => option.text);
30252
+ }
30253
+ }
30254
+ ],
30255
+ event: {
30256
+ event_search: (data) => {
30257
+ const queryWrapper = QueryWrapper.create().eq("PlatformId", this.originPlatform.selectedId).eq("WebOrApp", this.webOrApp.value).orderBy(["OrderNo"]);
30258
+ if (!this.utilities.isNull(data.ModuleName)) {
30259
+ queryWrapper.like("ModuleName", data.ModuleName);
30260
+ }
30261
+ this.targetModuleGrid.value.loadDataByQuery(queryWrapper);
30262
+ }
30263
+ }
30264
+ }));
30265
+ // 响应式方法 | xxx = () => {}
30266
+ /**
30267
+ * 选择的源平台改变
30268
+ */
30269
+ __publicField(this, "doChangeOriginPlatform", () => {
30270
+ const values = this.originPlatform.list.filter((item) => item.Id == this.originPlatform.selectedId);
30271
+ if (values.length > 0) {
30272
+ this.originPlatform.selectedItem = values[0];
30273
+ } else {
30274
+ this.originPlatform.selectedItem = { Id: 0, PlatformName: "" };
30275
+ }
30276
+ this.loadOriginModuleGridData();
30277
+ });
30278
+ /**
30279
+ * 添加源模块到目标模块
30280
+ */
30281
+ __publicField(this, "doImportOriginToTargetModule", async () => {
30282
+ const datas = this.originModuleGrid.value.getCheckboxDatas();
30283
+ if (datas.length <= 0) {
30284
+ this.message.warning("请选择源平台模块菜单");
30285
+ return;
30286
+ }
30287
+ const currentData = this.targetModuleGrid.value.getCurrentRecord();
30288
+ if (this.utilities.isNull(currentData)) {
30289
+ this.message.warning("请选择目标平台模块菜单");
30290
+ return;
30291
+ }
30292
+ this.saveingImportModule.value = true;
30293
+ const apiResult = await this.moduleApi.importModules(datas, currentData);
30294
+ const result = this.utilities.parseApiResult(apiResult);
30295
+ this.saveingImportModule.value = false;
30296
+ if (result > 0) {
30297
+ this.originModuleGrid.value.refreshData();
30298
+ this.targetModuleGrid.value.refreshData();
30299
+ this.moduleGrid.value.refreshData();
30300
+ this.message.success("导入成功");
30301
+ } else {
30302
+ this.message.warning("导入失败, 请稍后重试");
30303
+ }
30304
+ });
30305
+ this.props = props;
30306
+ this.ctx = ctx;
30307
+ this.initData();
30308
+ }
30309
+ //#region 系统平台
30310
+ // 私有属性 | private
30311
+ /**
30312
+ * 初始化机构信息
30313
+ */
30314
+ initData() {
30315
+ onMounted(() => {
30316
+ this.getPlatData();
30317
+ });
30318
+ onUnmounted(() => {
30319
+ });
30320
+ }
30321
+ // 私有方法 | private 方法名() {}
30322
+ /**
30323
+ * 设置编辑模块的PId,并更新相关的数据链
30324
+ * @param pId
30325
+ */
30326
+ setEditMoudelPId(pId) {
30327
+ this.editModuleChildData = [];
30328
+ const moduleDatas = this.moduleGrid.value.getDatas();
30329
+ const parentModule = moduleDatas.filter((item) => item.Id == pId)[0];
30330
+ this.moduleFormModel.RootId = parentModule ? parentModule.RootId : this.moduleFormModel.Id;
30331
+ this.moduleFormModel.PId = parentModule ? parentModule.Id : 0;
30332
+ this.moduleFormModel.ParentPath = parentModule ? `${parentModule.ParentPath}${parentModule.Id}/` : "/";
30333
+ this.moduleFormModel.NodeLevel = parentModule ? parentModule.NodeLevel + 1 : 1;
30334
+ const whileChildData = (datas, pData) => {
30335
+ const childDatas = datas.filter((item) => item.PId == pData.Id);
30336
+ for (const data of childDatas) {
30337
+ this.editModuleChildData.push({
30338
+ Id: data.Id,
30339
+ RootId: pData.RootId,
30340
+ ParentPath: `${pData.ParentPath}${pData.Id}/`,
30341
+ NodeLevel: pData.NodeLevel + 1
30342
+ });
30343
+ }
30344
+ };
30345
+ whileChildData(moduleDatas, this.moduleFormModel);
30346
+ }
30347
+ /**
30348
+ * 设置父模块树表单项
30349
+ */
30350
+ setParentModuleTreeItem(isShow) {
30351
+ const parentModuleTreeItem = this.moduleFormItems[0].children[0];
30352
+ parentModuleTreeItem.isShow = isShow;
30353
+ if (isShow == false) {
30354
+ return;
30355
+ }
30356
+ const moduleDatas = this.moduleGrid.value.getDatas();
30357
+ const treeDatas = this.moduleComForm.value.convertTreeData({
30358
+ datas: moduleDatas,
30359
+ titleField: "ModuleName",
30360
+ rootTitle: "主目录",
30361
+ rootValue: 0
30362
+ });
30363
+ parentModuleTreeItem.treeSelectProp.data = treeDatas;
30364
+ }
30365
+ /**
30366
+ * 编辑模块
30367
+ * @param data
30368
+ */
30369
+ doEditModule(data) {
30370
+ const user = this.storageInfo.getUser();
30371
+ this.moduleFormModel.Id = data.Id;
30372
+ this.moduleFormModel.PlatformId = data.PlatformId;
30373
+ this.moduleFormModel.RootId = data.RootId;
30374
+ this.moduleFormModel.PId = data.PId;
30375
+ this.moduleFormModel.ParentPath = data.ParentPath;
30376
+ this.moduleFormModel.HasChild = data.HasChild;
30377
+ this.moduleFormModel.NodeLevel = data.NodeLevel;
30378
+ this.moduleFormModel.ModuleName = data.ModuleName;
30379
+ this.moduleFormModel.ModuleAlias = data.ModuleAlias;
30380
+ this.moduleFormModel.ModuleUrl = data.ModuleUrl;
30381
+ this.moduleFormModel.ModuleType = data.ModuleType;
30382
+ this.moduleFormModel.WebOrApp = data.WebOrApp;
30383
+ this.moduleFormModel.OrderNo = data.OrderNo;
30384
+ this.moduleFormModel.IconUrl = data.IconUrl;
30385
+ this.moduleFormModel.AttachParams = data.AttachParams;
30386
+ this.moduleFormModel.Operates = data.Operates;
30387
+ this.moduleFormModel.LoadMode = data.LoadMode;
30388
+ this.moduleFormModel.ModuleStatus = data.ModuleStatus;
30389
+ this.moduleFormModel.LastUpdateUserId = user.Id;
30390
+ this.moduleFormModel.LastUpdateUserName = user.UserName;
30391
+ this.moduleFormModel.LastUpdateDate = this.utilities.getCurrentDate();
30392
+ this.parentModule = void 0;
30393
+ this.editModulePId = data.PId;
30394
+ this.editModuleChildData = [];
30395
+ this.editMoudelModalTitle.value = `编辑 - 模块 - ${data.ModuleName}`;
30396
+ this.setParentModuleTreeItem(true);
30397
+ this.showEditModule.value = true;
30398
+ }
30399
+ /**
30400
+ * 添加模块
30401
+ */
30402
+ doAddModule() {
30403
+ const user = this.storageInfo.getUser();
30404
+ this.moduleFormModel.Id = 0;
30405
+ this.moduleFormModel.PlatformId = this.selectedPlatform.Id;
30406
+ this.moduleFormModel.RootId = 0;
30407
+ this.moduleFormModel.PId = 0;
30408
+ this.moduleFormModel.ParentPath = "/";
30409
+ this.moduleFormModel.HasChild = 0;
30410
+ this.moduleFormModel.NodeLevel = 1;
30411
+ this.moduleFormModel.ModuleName = "";
30412
+ this.moduleFormModel.ModuleAlias = "";
30413
+ this.moduleFormModel.ModuleUrl = "";
30414
+ this.moduleFormModel.ModuleType = "Business";
30415
+ this.moduleFormModel.WebOrApp = this.webOrApp.value;
30416
+ this.moduleFormModel.OrderNo = 1;
30417
+ this.moduleFormModel.IconUrl = "";
30418
+ this.moduleFormModel.AttachParams = "";
30419
+ this.moduleFormModel.Operates = `[{"code":"Edit", "name": "编辑"},{"code":"Delete", "name": "删除"},{"code":"Add", "name": "新增"},{"code":"Save", "name": "保存"}]`;
30420
+ this.moduleFormModel.LoadMode = 0;
30421
+ this.moduleFormModel.ModuleStatus = 1;
30422
+ this.moduleFormModel.LastUpdateUserId = user.Id;
30423
+ this.moduleFormModel.LastUpdateUserName = user.UserName;
30424
+ this.moduleFormModel.LastUpdateDate = this.utilities.getCurrentDate();
30425
+ this.parentModule = void 0;
30426
+ this.setParentModuleTreeItem(false);
30427
+ this.editMoudelModalTitle.value = `新增 - 模块`;
30428
+ this.showEditModule.value = true;
30429
+ }
30430
+ /**
30431
+ * 添加新增子项
30432
+ * @param data
30433
+ */
30434
+ doAddChildModule(data) {
30435
+ const user = this.storageInfo.getUser();
30436
+ this.moduleFormModel.Id = 0;
30437
+ this.moduleFormModel.PlatformId = this.selectedPlatform.Id;
30438
+ this.moduleFormModel.RootId = data.RootId;
30439
+ this.moduleFormModel.PId = data.Id;
30440
+ this.moduleFormModel.ParentPath = `${data.ParentPath}${data.Id}/`;
30441
+ this.moduleFormModel.HasChild = 0;
30442
+ this.moduleFormModel.NodeLevel = data.NodeLevel + 1;
30443
+ this.moduleFormModel.ModuleName = "";
30444
+ this.moduleFormModel.ModuleAlias = "";
30445
+ this.moduleFormModel.ModuleUrl = "";
30446
+ this.moduleFormModel.ModuleType = data.ModuleType == "Business" ? "MenuGroup" : "MenuItem";
30447
+ this.moduleFormModel.WebOrApp = this.webOrApp.value;
30448
+ this.moduleFormModel.OrderNo = 1;
30449
+ this.moduleFormModel.IconUrl = "";
30450
+ this.moduleFormModel.AttachParams = "";
30451
+ this.moduleFormModel.Operates = "";
30452
+ this.moduleFormModel.LoadMode = 0;
30453
+ this.moduleFormModel.ModuleStatus = 1;
30454
+ this.moduleFormModel.LastUpdateUserId = user.Id;
30455
+ this.moduleFormModel.LastUpdateUserName = user.UserName;
30456
+ this.moduleFormModel.LastUpdateDate = this.utilities.getCurrentDate();
30457
+ this.parentModule = data;
30458
+ this.setParentModuleTreeItem(false);
30459
+ this.editMoudelModalTitle.value = `新增子项 - 父模块 - ${data.ModuleName}`;
30460
+ this.showEditModule.value = true;
30461
+ }
30462
+ /**
30463
+ * 删除模块
30464
+ * @param data
30465
+ */
30466
+ async doDeleteModule(data) {
30467
+ if (data.HasChild == 1) {
30468
+ this.message.warning("该模块存在子模板, 不能删除, 请先删除子模块!");
30469
+ return;
30470
+ }
30471
+ this.modal.confirm({
30472
+ title: "提示",
30473
+ content: `数据删除后不可恢复, 确定要删除[ ${data.ModuleName} ]模块吗?`,
30474
+ onOk: async () => {
30475
+ const pId = data.PId;
30476
+ let apiResult = await this.moduleApi.delete(data.Id);
30477
+ let result = this.utilities.parseApiResult(apiResult);
30478
+ if (result <= 0) {
30479
+ this.message.warning("删除失败,请稍后重试!");
30480
+ return;
30481
+ }
30482
+ apiResult = await this.moduleApi.getCount(QueryWrapper.create().eq("PId", pId));
30483
+ result = this.utilities.parseApiResult(apiResult);
30484
+ if (result <= 0) {
30485
+ await this.moduleApi.save({ Id: pId, HasChild: 0 });
30486
+ }
30487
+ this.message.success("删除成功!");
30488
+ this.moduleGrid.value.refreshData();
30489
+ }
30490
+ });
30491
+ }
30492
+ // 私有方法 | private 方法名() {}
30493
+ /**
30494
+ * 显示导入模块面板
30495
+ */
30496
+ doShowImportModule() {
30497
+ this.targetPlatform.Id = this.selectedPlatform.Id;
30498
+ this.targetPlatform.PlatformName = this.selectedPlatform.PlatformName;
30499
+ this.showImportModule.value = true;
30500
+ this.loadOriginPlatforms();
30501
+ }
30502
+ /**
30503
+ * 加载源平台数据
30504
+ */
30505
+ async loadOriginPlatforms() {
30506
+ var _a;
30507
+ const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
30508
+ const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.selectedPlatform.Id).or((i) => i.allEq({
30509
+ PId: platId
30510
+ })).orderBy(["OrderNo"]));
30511
+ this.originPlatform.list = this.utilities.parseApiResult(apiResult);
30512
+ if (this.originPlatform.list.length > 0) {
30513
+ this.originPlatform.selectedItem = this.originPlatform.list[0];
30514
+ } else {
30515
+ this.originPlatform.selectedItem = { Id: 0, PlatformName: "" };
30516
+ }
30517
+ this.originPlatform.selectedId = this.originPlatform.selectedItem.Id;
30518
+ nextTick(() => {
30519
+ this.loadOriginModuleGridData();
30520
+ this.loadTargetModuleGridData();
30521
+ });
30522
+ }
30523
+ /**
30524
+ * 加载源模块数据
30525
+ */
30526
+ loadOriginModuleGridData() {
30527
+ const query = QueryWrapper.create().eq("PlatformId", this.originPlatform.selectedId).eq("WebOrApp", this.webOrApp.value).orderBy(["OrderNo"]);
30528
+ this.originModuleGrid.value.loadDataByQuery(query);
30529
+ }
30530
+ /**
30531
+ * 加载目标模块数据
30532
+ */
30533
+ loadTargetModuleGridData() {
30534
+ this.targetModuleGrid.value.loadData(async (option) => {
30535
+ const query = QueryWrapper.create().eq("PlatformId", this.targetPlatform.Id).eq("WebOrApp", this.webOrApp.value).orderBy(["OrderNo"]);
30536
+ const apiResult = await this.moduleApi.getEntities(query);
30537
+ const datas = this.utilities.parseApiResult(apiResult);
30538
+ const rootData = {
30539
+ Id: 0,
30540
+ PId: -1,
30541
+ ModuleName: "根节点",
30542
+ ModuleType: "",
30543
+ PlatformId: this.targetPlatform.Id,
30544
+ IconUrl: ""
30545
+ };
30546
+ datas.push(rootData);
30547
+ option.success(datas);
30548
+ });
30549
+ }
30550
+ //#endregion 导入模块 END
30551
+ //#region 业务逻辑
30552
+ // 私有属性 | private
30553
+ // 响应属性 | ref、reactive、computed、watch
30554
+ // 私有方法 | private 方法名() {}
30555
+ // 响应式方法 | xxx = () => {}
30556
+ //#endregion 业务逻辑 END
30557
+ }
30558
+ const Module_vue_vue_type_style_index_0_scoped_23a8ab5f_lang = "";
30559
+ const _withScopeId = (n) => (pushScopeId("data-v-23a8ab5f"), n = n(), popScopeId(), n);
30560
+ const _hoisted_1 = { style: { "height": "650px", "overflow-y": "auto" } };
30561
+ const _hoisted_2 = {
30562
+ class: "import-module",
30563
+ style: { "height": "650px", "position": "relative" }
30564
+ };
30565
+ const _hoisted_3 = { style: { "width": "100%", "height": "100%" } };
30566
+ const _hoisted_4 = { style: { "width": "560px", "height": "100%", "float": "left" } };
30567
+ const _hoisted_5 = { style: { "height": "calc(100% - 0px)" } };
30568
+ const _hoisted_6 = { style: { "width": "calc(100% - 570px)", "height": "100%", "margin-left": "10px", "display": "inline-block" } };
30569
+ const _hoisted_7 = { style: { "height": "calc(100% - 0px)" } };
30570
+ const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "点击选择要放置的位置!", -1));
30571
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
30572
+ const _component_Option = resolveComponent("Option");
30573
+ const _component_Select = resolveComponent("Select");
30574
+ const _component_Spin = resolveComponent("Spin");
30575
+ const _component_NvControlGroup = resolveComponent("NvControlGroup");
30576
+ const _component_Radio = resolveComponent("Radio");
30577
+ const _component_RadioGroup = resolveComponent("RadioGroup");
30578
+ const _component_NvGrid = resolveComponent("NvGrid");
30579
+ const _component_NvComForm = resolveComponent("NvComForm");
30580
+ const _component_Form = resolveComponent("Form");
30581
+ const _component_Button = resolveComponent("Button");
30582
+ const _component_Modal = resolveComponent("Modal");
30583
+ const _component_Card = resolveComponent("Card");
30584
+ const _component_NvBox = resolveComponent("NvBox");
30585
+ const _component_NvPage = resolveComponent("NvPage");
30586
+ return openBlock(), createBlock(_component_NvPage, {
30587
+ gutter: 8,
30588
+ class: "module"
30589
+ }, {
30590
+ default: withCtx(() => [
30591
+ createVNode(_component_NvBox, {
30592
+ width: "100%",
30593
+ title: "模块列表"
30594
+ }, {
30595
+ default: withCtx(() => [
30596
+ createVNode(_component_NvGrid, {
30597
+ ref: "moduleGrid",
30598
+ option: _ctx.moduleGridOption
30599
+ }, {
30600
+ default: withCtx(() => [
30601
+ createVNode(_component_NvControlGroup, {
30602
+ width: "380px",
30603
+ icon: "md-refresh",
30604
+ label: "系统平台",
30605
+ labelWidth: 75,
30606
+ onClick: _ctx.getPlatData
30607
+ }, {
30608
+ default: withCtx(() => [
30609
+ createVNode(_component_Select, {
30610
+ modelValue: _ctx.platId,
30611
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.platId = $event),
30612
+ onOnChange: _ctx.doPlatformChange,
30613
+ transfer: ""
30614
+ }, {
30615
+ default: withCtx(() => [
30616
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.platData, (item, index2) => {
30617
+ return openBlock(), createBlock(_component_Option, {
30618
+ key: index2,
30619
+ value: item.Id
30620
+ }, {
30621
+ default: withCtx(() => [
30622
+ createTextVNode(toDisplayString(item.PlatformAbbreviation), 1)
30623
+ ]),
30624
+ _: 2
30625
+ }, 1032, ["value"]);
30626
+ }), 128))
30627
+ ]),
30628
+ _: 1
30629
+ }, 8, ["modelValue", "onOnChange"]),
30630
+ createVNode(_component_Spin, {
30631
+ fix: "",
30632
+ show: _ctx.spinPlatShow
30633
+ }, null, 8, ["show"])
30634
+ ]),
30635
+ _: 1
30636
+ }, 8, ["onClick"]),
30637
+ createVNode(_component_RadioGroup, {
30638
+ modelValue: _ctx.webOrApp,
30639
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.webOrApp = $event),
30640
+ type: "button",
30641
+ onOnChange: _ctx.loadModuleGridData
30642
+ }, {
30643
+ default: withCtx(() => [
30644
+ createVNode(_component_Radio, { label: 0 }, {
30645
+ default: withCtx(() => [
30646
+ createTextVNode("Web")
30647
+ ]),
30648
+ _: 1
30649
+ }),
30650
+ createVNode(_component_Radio, { label: 1 }, {
30651
+ default: withCtx(() => [
30652
+ createTextVNode("App")
30653
+ ]),
30654
+ _: 1
30655
+ })
30656
+ ]),
30657
+ _: 1
30658
+ }, 8, ["modelValue", "onOnChange"])
30659
+ ]),
30660
+ _: 1
30661
+ }, 8, ["option"]),
30662
+ createVNode(_component_Modal, {
30663
+ modelValue: _ctx.showEditModule,
30664
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.showEditModule = $event),
30665
+ draggable: "",
30666
+ mask: true,
30667
+ "mask-closable": false,
30668
+ width: 700,
30669
+ title: _ctx.editMoudelModalTitle,
30670
+ styles: { top: "3%" }
30671
+ }, {
30672
+ footer: withCtx(() => [
30673
+ createVNode(_component_Button, {
30674
+ type: "text",
30675
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.showEditModule = false)
30676
+ }, {
30677
+ default: withCtx(() => [
30678
+ createTextVNode("关闭")
30679
+ ]),
30680
+ _: 1
30681
+ }),
30682
+ createVNode(_component_Button, {
30683
+ type: "primary",
30684
+ loading: _ctx.saveingModule,
30685
+ onClick: _ctx.doSaveModule
30686
+ }, {
30687
+ default: withCtx(() => [
30688
+ createTextVNode("保存")
30689
+ ]),
30690
+ _: 1
30691
+ }, 8, ["loading", "onClick"])
30692
+ ]),
30693
+ default: withCtx(() => [
30694
+ createElementVNode("div", _hoisted_1, [
30695
+ createVNode(_component_Form, {
30696
+ model: _ctx.moduleFormModel,
30697
+ "label-width": 90
30698
+ }, {
30699
+ default: withCtx(() => [
30700
+ createVNode(_component_NvComForm, {
30701
+ ref: "moduleComForm",
30702
+ formModel: _ctx.moduleFormModel,
30703
+ formItems: _ctx.moduleFormItems
30704
+ }, null, 8, ["formModel", "formItems"])
30705
+ ]),
30706
+ _: 1
30707
+ }, 8, ["model"])
30708
+ ])
30709
+ ]),
30710
+ _: 1
30711
+ }, 8, ["modelValue", "title"]),
30712
+ createVNode(_component_Modal, {
30713
+ modelValue: _ctx.showImportModule,
30714
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.showImportModule = $event),
30715
+ draggable: "",
30716
+ mask: true,
30717
+ "mask-closable": false,
30718
+ width: 1300,
30719
+ title: "引入模块",
30720
+ styles: { top: "3%" }
30721
+ }, {
30722
+ footer: withCtx(() => [
30723
+ createVNode(_component_Button, {
30724
+ type: "text",
30725
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.showImportModule = false)
30726
+ }, {
30727
+ default: withCtx(() => [
30728
+ createTextVNode("关闭")
30729
+ ]),
30730
+ _: 1
30731
+ }),
30732
+ createVNode(_component_Button, {
30733
+ type: "primary",
30734
+ loading: _ctx.saveingImportModule,
30735
+ onClick: _ctx.doImportOriginToTargetModule
30736
+ }, {
30737
+ default: withCtx(() => [
30738
+ createTextVNode("引入")
30739
+ ]),
30740
+ _: 1
30741
+ }, 8, ["loading", "onClick"])
30742
+ ]),
30743
+ default: withCtx(() => [
30744
+ createElementVNode("div", _hoisted_2, [
30745
+ createElementVNode("div", _hoisted_3, [
30746
+ createElementVNode("div", _hoisted_4, [
30747
+ createVNode(_component_Card, {
30748
+ "dis-hover": "",
30749
+ class: "import-module_card"
30750
+ }, {
30751
+ title: withCtx(() => [
30752
+ createTextVNode("源平台 - [" + toDisplayString(_ctx.originPlatform.selectedItem.PlatformName) + "] - 模块菜单", 1)
30753
+ ]),
30754
+ default: withCtx(() => [
30755
+ createElementVNode("div", _hoisted_5, [
30756
+ createVNode(_component_NvGrid, {
30757
+ ref: "originModuleGrid",
30758
+ option: _ctx.originModuleGridOption
30759
+ }, {
30760
+ default: withCtx(() => [
30761
+ createVNode(_component_Select, {
30762
+ modelValue: _ctx.originPlatform.selectedId,
30763
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.originPlatform.selectedId = $event),
30764
+ onOnChange: _ctx.doChangeOriginPlatform,
30765
+ style: { "width": "250px" }
30766
+ }, {
30767
+ default: withCtx(() => [
30768
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.originPlatform.list, (item, index2) => {
30769
+ return openBlock(), createBlock(_component_Option, {
30770
+ key: index2,
30771
+ value: item.Id
30772
+ }, {
30773
+ default: withCtx(() => [
30774
+ createTextVNode(toDisplayString(item.PlatformName), 1)
30775
+ ]),
30776
+ _: 2
30777
+ }, 1032, ["value"]);
30778
+ }), 128))
30779
+ ]),
30780
+ _: 1
30781
+ }, 8, ["modelValue", "onOnChange"])
30782
+ ]),
30783
+ _: 1
30784
+ }, 8, ["option"])
30785
+ ])
30786
+ ]),
30787
+ _: 1
30788
+ })
30789
+ ]),
30790
+ createElementVNode("div", _hoisted_6, [
30791
+ createVNode(_component_Card, {
30792
+ "dis-hover": "",
30793
+ class: "import-module_card"
30794
+ }, {
30795
+ title: withCtx(() => [
30796
+ createTextVNode("目标平台 - [" + toDisplayString(_ctx.targetPlatform.PlatformName) + "] - 模块菜单", 1)
30797
+ ]),
30798
+ default: withCtx(() => [
30799
+ createElementVNode("div", _hoisted_7, [
30800
+ createVNode(_component_NvGrid, {
30801
+ ref: "targetModuleGrid",
30802
+ option: _ctx.targetModuleGridOption
30803
+ }, {
30804
+ default: withCtx(() => [
30805
+ _hoisted_8
30806
+ ]),
30807
+ _: 1
30808
+ }, 8, ["option"])
30809
+ ])
30810
+ ]),
30811
+ _: 1
30812
+ })
30813
+ ]),
30814
+ withDirectives(createVNode(_component_Spin, { fix: "" }, null, 512), [
30815
+ [vShow, _ctx.saveingImportModule]
30816
+ ])
30817
+ ])
30818
+ ])
30819
+ ]),
30820
+ _: 1
30821
+ }, 8, ["modelValue"])
30822
+ ]),
30823
+ _: 1
30824
+ })
30825
+ ]),
30826
+ _: 1
30827
+ });
30828
+ }
30829
+ const subModule = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23a8ab5f"]]);
30830
+ const index = [
30831
+ {
30832
+ // 系统平台
30833
+ path: "/permission-service/platform/platform",
30834
+ component: Platform
30835
+ },
30836
+ {
30837
+ // 菜单模块
30838
+ path: "/permission-service/platform/module",
30839
+ component: Module
30840
+ },
30841
+ {
30842
+ // 角色管理
30843
+ path: "/permission-service/platform/role",
30844
+ component: Role
30845
+ },
30846
+ {
30847
+ // 机构类型
30848
+ path: "/permission-service/institution/institutiontype",
30849
+ component: InstitutionType
30850
+ },
30851
+ {
30852
+ // 组织机构
30853
+ path: "/permission-service/institution/institution",
30854
+ component: Institution
30855
+ },
30856
+ {
30857
+ // 用户管理
30858
+ path: "/permission-service/institution/userinfor",
30859
+ component: Userinfor
30860
+ },
30861
+ {
30862
+ // 企业管理
30863
+ path: "/permission-service/institution/enterprise",
30864
+ component: Enterprise
30865
+ },
30866
+ {
30867
+ // 第三方信息
30868
+ path: "/permission-service/thirdparty/information",
30869
+ component: Information
30870
+ },
30871
+ // 平台设置(二级)
30872
+ {
30873
+ // 项目管理
30874
+ path: "/permission-service/platform/subplatform",
30875
+ component: subplatform
30876
+ },
30877
+ {
30878
+ // 平台角色
30879
+ path: "/permission-service/platform/subrole",
30880
+ component: subrole
30881
+ },
30882
+ {
30883
+ // 平台企业
30884
+ path: "/permission-service/institution/subenterprise",
30885
+ component: subenterprise
30886
+ },
30887
+ {
30888
+ // 平台机构
30889
+ path: "/permission-service/institution/subinstitution",
30890
+ component: subinstitution
30891
+ },
30892
+ {
30893
+ // 平台用户
30894
+ path: "/permission-service/institution/subuserinfor",
30895
+ component: subuserinfor
30896
+ },
30897
+ {
30898
+ // 菜单管理
30899
+ path: "/permission-service/subplatform/subModule",
30900
+ component: subModule
29731
30901
  }
29732
30902
  ];
29733
30903
  export {