@newview/permission-service 1.2.2 → 1.2.4

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.
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { BaseInstance } from "@newview/base-vue";
8
- import { defineComponent, ref, reactive, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, createElementBlock, renderSlot, normalizeClass, withDirectives, vShow, toDisplayString, pushScopeId, popScopeId, Fragment, renderList, watch, nextTick, onUnmounted, createCommentVNode, createSlots, withModifiers, onBeforeUnmount, h, watchEffect } from "vue";
8
+ import { defineComponent, ref, reactive, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, createElementBlock, renderSlot, normalizeClass, withDirectives, vShow, toDisplayString, pushScopeId, popScopeId, Fragment, renderList, watch, nextTick, onUnmounted, createCommentVNode, createSlots, withModifiers, onBeforeUnmount, h, watchEffect, normalizeStyle } from "vue";
9
9
  import { BaseApi, Methods, QueryWrapper, BaseOldApi, storageInfo } from "@newview/infrastructure";
10
10
  import { utilities } from "@newview/tools";
11
11
  import { Icon, Tag, Checkbox, Divider, CheckboxGroup, Space } from "view-ui-plus";
@@ -391,7 +391,7 @@ class UserSignApi extends PermissionBaseApi {
391
391
  return "UserSign";
392
392
  }
393
393
  }
394
- const propDefine$q = {
394
+ const propDefine$r = {
395
395
  linkParam: {
396
396
  // 带入的参数
397
397
  type: String,
@@ -403,12 +403,12 @@ const propDefine$q = {
403
403
  default: "-"
404
404
  }
405
405
  };
406
- const _sfc_main$k = defineComponent({
406
+ const _sfc_main$l = defineComponent({
407
407
  name: "Platform",
408
408
  components: {},
409
409
  emits: [""],
410
410
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
411
- props: propDefine$q,
411
+ props: propDefine$r,
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$i = {
785
+ const _hoisted_1$j = {
786
786
  class: "nv-flex",
787
787
  style: { "justify-content": "space-between" }
788
788
  };
789
789
  const _hoisted_2$a = { style: { "height": "500px", "overflow-y": "auto" } };
790
790
  const _hoisted_3$9 = { style: { "height": "400px", "overflow-y": "auto" } };
791
- function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
791
+ function _sfc_render$l(_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$k(_ctx, _cache, $props, $setup, $data, $options) {
810
810
  "show-arrow": true
811
811
  }, {
812
812
  footer: withCtx(() => [
813
- createElementVNode("div", _hoisted_1$i, [
813
+ createElementVNode("div", _hoisted_1$j, [
814
814
  createVNode(_component_Space, null, {
815
815
  default: withCtx(() => [
816
816
  createVNode(_component_Icon, {
@@ -963,7 +963,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
963
963
  _: 1
964
964
  });
965
965
  }
966
- const Platform = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-c0da56b4"]]);
966
+ const Platform = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-c0da56b4"]]);
967
967
  class BasicsBaseApi extends BaseApi {
968
968
  get ProxyName() {
969
969
  return "BasicsApi";
@@ -984,6 +984,25 @@ class ProvinceApi extends BasicsBaseApi {
984
984
  return "Province";
985
985
  }
986
986
  }
987
+ class DictionaryTypeApi extends BasicsBaseApi {
988
+ get ControllerName() {
989
+ return "OptionType";
990
+ }
991
+ }
992
+ class DictionaryDetailApi extends BasicsBaseApi {
993
+ get ControllerName() {
994
+ return "OptionDetail";
995
+ }
996
+ /**
997
+ * 获取指定平台下字典类别的字典项
998
+ * @param platformId
999
+ * @param optionCode
1000
+ * @returns
1001
+ */
1002
+ getOptions(platformId, optionCode) {
1003
+ return this.send({ platformId, optionCode }, "getOptions", this.Methods.GET);
1004
+ }
1005
+ }
987
1006
  class CaptchaApi extends BasicsBaseApi {
988
1007
  get ControllerName() {
989
1008
  return "Captcha";
@@ -1013,7 +1032,7 @@ class CaptchaApi extends BasicsBaseApi {
1013
1032
  return this.send({ source }, "getCaptcha", Methods.GET);
1014
1033
  }
1015
1034
  }
1016
- const propDefine$p = {
1035
+ const propDefine$q = {
1017
1036
  theme: {
1018
1037
  // 主题颜色 light dark
1019
1038
  type: String,
@@ -1025,12 +1044,12 @@ const propDefine$p = {
1025
1044
  default: true
1026
1045
  }
1027
1046
  };
1028
- const _sfc_main$j = defineComponent({
1047
+ const _sfc_main$k = defineComponent({
1029
1048
  name: "BaseLogin",
1030
1049
  components: {},
1031
1050
  emits: [""],
1032
1051
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
1033
- props: propDefine$p,
1052
+ props: propDefine$q,
1034
1053
  setup(props, ctx) {
1035
1054
  return new BaseLoginInstance$1(props, ctx);
1036
1055
  }
@@ -1330,7 +1349,7 @@ let BaseLoginInstance$1 = class BaseLoginInstance extends BaseInstance {
1330
1349
  };
1331
1350
  const BaseLogin_vue_vue_type_style_index_0_scoped_b23ae47e_lang = "";
1332
1351
  const _withScopeId$3 = (n) => (pushScopeId("data-v-b23ae47e"), n = n(), popScopeId(), n);
1333
- const _hoisted_1$h = { class: "login-form" };
1352
+ const _hoisted_1$i = { class: "login-form" };
1334
1353
  const _hoisted_2$9 = { class: "login-body" };
1335
1354
  const _hoisted_3$8 = { class: "login-tabs" };
1336
1355
  const _hoisted_4$8 = { class: "login-panel" };
@@ -1367,7 +1386,7 @@ const _hoisted_22 = {
1367
1386
  key: 1,
1368
1387
  class: "captcha-item"
1369
1388
  };
1370
- function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
1389
+ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
1371
1390
  const _component_Input = resolveComponent("Input");
1372
1391
  const _component_Checkbox = resolveComponent("Checkbox");
1373
1392
  const _component_Icon = resolveComponent("Icon");
@@ -1375,7 +1394,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
1375
1394
  const _component_FormItem = resolveComponent("FormItem");
1376
1395
  const _component_Form = resolveComponent("Form");
1377
1396
  const _component_Modal = resolveComponent("Modal");
1378
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
1397
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
1379
1398
  renderSlot(_ctx.$slots, "default", {}, () => [
1380
1399
  createElementVNode("div", _hoisted_2$9, [
1381
1400
  createElementVNode("div", _hoisted_3$8, [
@@ -1552,8 +1571,8 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
1552
1571
  }, 8, ["modelValue"])
1553
1572
  ]);
1554
1573
  }
1555
- const BaseLogin = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-b23ae47e"]]);
1556
- const propDefine$o = {
1574
+ const BaseLogin = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-b23ae47e"]]);
1575
+ const propDefine$p = {
1557
1576
  defaultLoad: {
1558
1577
  // 默认选中
1559
1578
  type: Boolean,
@@ -1570,12 +1589,12 @@ const propDefine$o = {
1570
1589
  default: true
1571
1590
  }
1572
1591
  };
1573
- const _sfc_main$i = defineComponent({
1592
+ const _sfc_main$j = defineComponent({
1574
1593
  name: "SelectPlatform",
1575
1594
  components: {},
1576
1595
  emits: ["select"],
1577
1596
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
1578
- props: propDefine$o,
1597
+ props: propDefine$p,
1579
1598
  setup(props, ctx) {
1580
1599
  return new SelectPlatformInstance$1(props, ctx);
1581
1600
  }
@@ -1633,7 +1652,7 @@ let SelectPlatformInstance$1 = class SelectPlatformInstance extends BaseInstance
1633
1652
  }
1634
1653
  //#endregion 系统平台 END
1635
1654
  };
1636
- function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
1655
+ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
1637
1656
  const _component_Option = resolveComponent("Option");
1638
1657
  const _component_Select = resolveComponent("Select");
1639
1658
  const _component_Spin = resolveComponent("Spin");
@@ -1675,7 +1694,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
1675
1694
  _: 1
1676
1695
  }, 8, ["width", "label", "labelWidth", "onClick"]);
1677
1696
  }
1678
- const SelectPlatform = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i]]);
1697
+ const SelectPlatform = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j]]);
1679
1698
  class CASignBaseApi extends BaseOldApi {
1680
1699
  get ProxyName() {
1681
1700
  return "CASignApi";
@@ -1753,7 +1772,7 @@ const doSeal = async (sealKey, userPin, sealContent) => {
1753
1772
  return errorResult(result.head.msg);
1754
1773
  }
1755
1774
  };
1756
- const propDefine$n = {
1775
+ const propDefine$o = {
1757
1776
  platformId: {
1758
1777
  // 平台Id
1759
1778
  type: Number,
@@ -1785,7 +1804,7 @@ defineComponent({
1785
1804
  components: {},
1786
1805
  emits: ["signSuccess"],
1787
1806
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
1788
- props: propDefine$n,
1807
+ props: propDefine$o,
1789
1808
  setup(props, ctx) {
1790
1809
  return new CASignInstance$1(props, ctx);
1791
1810
  }
@@ -1882,7 +1901,7 @@ let CASignInstance$1 = class CASignInstance extends BaseInstance {
1882
1901
  //#endregion 执行签字 END
1883
1902
  };
1884
1903
  const CASign_vue_vue_type_style_index_0_scoped_4e1e0a16_lang = "";
1885
- const propDefine$m = {
1904
+ const propDefine$n = {
1886
1905
  loadCount: {
1887
1906
  // 加载Count方法
1888
1907
  type: Function
@@ -1893,7 +1912,7 @@ defineComponent({
1893
1912
  components: { SelectPlatform },
1894
1913
  emits: ["change"],
1895
1914
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
1896
- props: propDefine$m,
1915
+ props: propDefine$n,
1897
1916
  setup(props, ctx) {
1898
1917
  return new InstitutionTreeInstance$1(props, ctx);
1899
1918
  }
@@ -1991,7 +2010,7 @@ let InstitutionTreeInstance$1 = class InstitutionTreeInstance extends BaseInstan
1991
2010
  //#endregion 机构树 END
1992
2011
  };
1993
2012
  const InstitutionTree_vue_vue_type_style_index_0_scoped_35da1abc_lang = "";
1994
- const propDefine$l = {
2013
+ const propDefine$m = {
1995
2014
  theme: {
1996
2015
  // 主题颜色 light dark
1997
2016
  type: String,
@@ -2008,7 +2027,7 @@ defineComponent({
2008
2027
  components: {},
2009
2028
  emits: [""],
2010
2029
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
2011
- props: propDefine$l,
2030
+ props: propDefine$m,
2012
2031
  setup(props, ctx) {
2013
2032
  return new BaseLoginInstance2(props, ctx);
2014
2033
  }
@@ -2306,7 +2325,7 @@ class BaseLoginInstance2 extends BaseInstance {
2306
2325
  }
2307
2326
  //#endregion API END
2308
2327
  }
2309
- const propDefine$k = {
2328
+ const propDefine$l = {
2310
2329
  defaultLoad: {
2311
2330
  // 默认选中
2312
2331
  type: Boolean,
@@ -2328,7 +2347,7 @@ defineComponent({
2328
2347
  components: {},
2329
2348
  emits: ["select"],
2330
2349
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
2331
- props: propDefine$k,
2350
+ props: propDefine$l,
2332
2351
  setup(props, ctx) {
2333
2352
  return new SelectPlatformInstance2(props, ctx);
2334
2353
  }
@@ -2386,7 +2405,7 @@ class SelectPlatformInstance2 extends BaseInstance {
2386
2405
  }
2387
2406
  //#endregion 系统平台 END
2388
2407
  }
2389
- const propDefine$j = {
2408
+ const propDefine$k = {
2390
2409
  platformId: {
2391
2410
  // 平台Id
2392
2411
  type: Number,
@@ -2418,7 +2437,7 @@ defineComponent({
2418
2437
  components: {},
2419
2438
  emits: ["signSuccess"],
2420
2439
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
2421
- props: propDefine$j,
2440
+ props: propDefine$k,
2422
2441
  setup(props, ctx) {
2423
2442
  return new CASignInstance2(props, ctx);
2424
2443
  }
@@ -2514,7 +2533,7 @@ class CASignInstance2 extends BaseInstance {
2514
2533
  }
2515
2534
  //#endregion 执行签字 END
2516
2535
  }
2517
- const propDefine$i = {
2536
+ const propDefine$j = {
2518
2537
  loadCount: {
2519
2538
  // 加载Count方法
2520
2539
  type: Function
@@ -2525,7 +2544,7 @@ defineComponent({
2525
2544
  components: { SelectPlatform },
2526
2545
  emits: ["change"],
2527
2546
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
2528
- props: propDefine$i,
2547
+ props: propDefine$j,
2529
2548
  setup(props, ctx) {
2530
2549
  return new InstitutionTreeInstance2(props, ctx);
2531
2550
  }
@@ -2622,7 +2641,7 @@ class InstitutionTreeInstance2 extends BaseInstance {
2622
2641
  }
2623
2642
  //#endregion 机构树 END
2624
2643
  }
2625
- const propDefine$h = {
2644
+ const propDefine$i = {
2626
2645
  linkParam: {
2627
2646
  // 带入的参数
2628
2647
  type: String,
@@ -2634,12 +2653,12 @@ const propDefine$h = {
2634
2653
  default: "-"
2635
2654
  }
2636
2655
  };
2637
- const _sfc_main$h = defineComponent({
2656
+ const _sfc_main$i = defineComponent({
2638
2657
  name: "Module",
2639
2658
  components: { SelectPlatform },
2640
2659
  emits: ["change"],
2641
2660
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
2642
- props: propDefine$h,
2661
+ props: propDefine$i,
2643
2662
  setup(props, ctx) {
2644
2663
  return new ModuleInstance(props, ctx);
2645
2664
  }
@@ -3442,7 +3461,7 @@ class ModuleInstance extends BaseInstance {
3442
3461
  }
3443
3462
  const Module_vue_vue_type_style_index_0_scoped_5a5ef504_lang = "";
3444
3463
  const _withScopeId$2 = (n) => (pushScopeId("data-v-5a5ef504"), n = n(), popScopeId(), n);
3445
- const _hoisted_1$g = { style: { "height": "650px", "overflow-y": "auto" } };
3464
+ const _hoisted_1$h = { style: { "height": "650px", "overflow-y": "auto" } };
3446
3465
  const _hoisted_2$8 = {
3447
3466
  class: "import-module",
3448
3467
  style: { "height": "650px", "position": "relative" }
@@ -3453,7 +3472,7 @@ const _hoisted_5$5 = { style: { "height": "calc(100% - 0px)" } };
3453
3472
  const _hoisted_6$5 = { style: { "width": "calc(100% - 570px)", "height": "100%", "margin-left": "10px", "display": "inline-block" } };
3454
3473
  const _hoisted_7$2 = { style: { "height": "calc(100% - 0px)" } };
3455
3474
  const _hoisted_8$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "点击选择要放置的位置!", -1));
3456
- function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3475
+ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3457
3476
  const _component_SelectPlatform = resolveComponent("SelectPlatform");
3458
3477
  const _component_Radio = resolveComponent("Radio");
3459
3478
  const _component_RadioGroup = resolveComponent("RadioGroup");
@@ -3541,7 +3560,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3541
3560
  }, 8, ["loading", "onClick"])
3542
3561
  ]),
3543
3562
  default: withCtx(() => [
3544
- createElementVNode("div", _hoisted_1$g, [
3563
+ createElementVNode("div", _hoisted_1$h, [
3545
3564
  createVNode(_component_Form, {
3546
3565
  model: _ctx.moduleFormModel,
3547
3566
  "label-width": 90
@@ -3676,8 +3695,8 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3676
3695
  _: 1
3677
3696
  });
3678
3697
  }
3679
- const Module = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-5a5ef504"]]);
3680
- const propDefine$g = {
3698
+ const Module = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-5a5ef504"]]);
3699
+ const propDefine$h = {
3681
3700
  linkParam: {
3682
3701
  // 带入的参数
3683
3702
  type: String,
@@ -3689,12 +3708,12 @@ const propDefine$g = {
3689
3708
  default: "-"
3690
3709
  }
3691
3710
  };
3692
- const _sfc_main$g = defineComponent({
3711
+ const _sfc_main$h = defineComponent({
3693
3712
  name: "Role",
3694
3713
  components: { SelectPlatform },
3695
3714
  emits: [""],
3696
3715
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
3697
- props: propDefine$g,
3716
+ props: propDefine$h,
3698
3717
  setup(props, ctx) {
3699
3718
  return new RoleInstance$1(props, ctx);
3700
3719
  }
@@ -4484,14 +4503,14 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
4484
4503
  //#endregion 导入角色 END
4485
4504
  };
4486
4505
  const Role_vue_vue_type_style_index_0_scoped_086753a2_lang = "";
4487
- const _hoisted_1$f = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
4506
+ const _hoisted_1$g = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
4488
4507
  const _hoisted_2$7 = {
4489
4508
  class: "import-role",
4490
4509
  style: { "height": "610px", "position": "relative" }
4491
4510
  };
4492
4511
  const _hoisted_3$6 = { style: { "width": "100%", "height": "100%" } };
4493
4512
  const _hoisted_4$6 = { style: { "height": "530px", "overflow-y": "auto" } };
4494
- function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4513
+ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
4495
4514
  const _component_SelectPlatform = resolveComponent("SelectPlatform");
4496
4515
  const _component_NvGrid = resolveComponent("NvGrid");
4497
4516
  const _component_NvBox = resolveComponent("NvBox");
@@ -4557,7 +4576,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4557
4576
  }, 8, ["loading", "onClick"])
4558
4577
  ]),
4559
4578
  default: withCtx(() => [
4560
- createElementVNode("div", _hoisted_1$f, [
4579
+ createElementVNode("div", _hoisted_1$g, [
4561
4580
  createVNode(_component_NvGrid, {
4562
4581
  ref: "moduleGrid",
4563
4582
  option: _ctx.moduleGridOption
@@ -4691,8 +4710,8 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4691
4710
  _: 1
4692
4711
  });
4693
4712
  }
4694
- const Role = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-086753a2"]]);
4695
- const propDefine$f = {
4713
+ const Role = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-086753a2"]]);
4714
+ const propDefine$g = {
4696
4715
  linkParam: {
4697
4716
  // 带入的参数
4698
4717
  type: String,
@@ -4704,12 +4723,12 @@ const propDefine$f = {
4704
4723
  default: "-"
4705
4724
  }
4706
4725
  };
4707
- const _sfc_main$f = defineComponent({
4726
+ const _sfc_main$g = defineComponent({
4708
4727
  name: "InstitutionType",
4709
4728
  components: {},
4710
4729
  emits: [""],
4711
4730
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
4712
- props: propDefine$f,
4731
+ props: propDefine$g,
4713
4732
  setup(props, ctx) {
4714
4733
  return new InstitutionTypeInstance(props, ctx);
4715
4734
  }
@@ -4911,8 +4930,8 @@ class InstitutionTypeInstance extends BaseInstance {
4911
4930
  //#endregion 编辑机构类型 END
4912
4931
  }
4913
4932
  const InstitutionType_vue_vue_type_style_index_0_scoped_947fe129_lang = "";
4914
- const _hoisted_1$e = { style: { "height": "350px", "overflow-y": "auto" } };
4915
- function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
4933
+ const _hoisted_1$f = { style: { "height": "350px", "overflow-y": "auto" } };
4934
+ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4916
4935
  const _component_NvGrid = resolveComponent("NvGrid");
4917
4936
  const _component_NvBox = resolveComponent("NvBox");
4918
4937
  const _component_NvComForm = resolveComponent("NvComForm");
@@ -4965,7 +4984,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
4965
4984
  }, 8, ["loading", "onClick"])
4966
4985
  ]),
4967
4986
  default: withCtx(() => [
4968
- createElementVNode("div", _hoisted_1$e, [
4987
+ createElementVNode("div", _hoisted_1$f, [
4969
4988
  createVNode(_component_Form, {
4970
4989
  ref: "refInstitutionTypeForm",
4971
4990
  model: _ctx.institutionTypeFormModel,
@@ -4987,8 +5006,8 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
4987
5006
  _: 1
4988
5007
  });
4989
5008
  }
4990
- const InstitutionType = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-947fe129"]]);
4991
- const propDefine$e = {
5009
+ const InstitutionType = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-947fe129"]]);
5010
+ const propDefine$f = {
4992
5011
  linkParam: {
4993
5012
  // 带入的参数
4994
5013
  type: String,
@@ -5000,12 +5019,12 @@ const propDefine$e = {
5000
5019
  default: "-"
5001
5020
  }
5002
5021
  };
5003
- const _sfc_main$e = defineComponent({
5022
+ const _sfc_main$f = defineComponent({
5004
5023
  name: "Institution",
5005
5024
  components: { SelectPlatform },
5006
5025
  emits: [""],
5007
5026
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
5008
- props: propDefine$e,
5027
+ props: propDefine$f,
5009
5028
  setup(props, ctx) {
5010
5029
  return new InstitutionInstance$1(props, ctx);
5011
5030
  }
@@ -5910,7 +5929,7 @@ let InstitutionInstance$1 = class InstitutionInstance extends BaseInstance {
5910
5929
  //#endregion 绑定角色 END
5911
5930
  };
5912
5931
  const Institution_vue_vue_type_style_index_0_scoped_42799ba1_lang = "";
5913
- const _hoisted_1$d = { style: { "width": "100%", "height": "100%", "position": "relative" } };
5932
+ const _hoisted_1$e = { style: { "width": "100%", "height": "100%", "position": "relative" } };
5914
5933
  const _hoisted_2$6 = { style: { "height": "500px", "overflow-y": "auto" } };
5915
5934
  const _hoisted_3$5 = {
5916
5935
  class: "import-institution",
@@ -5919,7 +5938,7 @@ const _hoisted_3$5 = {
5919
5938
  const _hoisted_4$5 = { style: { "width": "100%", "height": "100%" } };
5920
5939
  const _hoisted_5$4 = { style: { "height": "calc(100%)" } };
5921
5940
  const _hoisted_6$4 = { style: { "height": "610px", "overflow-y": "auto", "position": "relative" } };
5922
- function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
5941
+ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
5923
5942
  const _component_SelectPlatform = resolveComponent("SelectPlatform");
5924
5943
  const _component_NvGrid = resolveComponent("NvGrid");
5925
5944
  const _component_NvBox = resolveComponent("NvBox");
@@ -5989,7 +6008,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
5989
6008
  })
5990
6009
  ]),
5991
6010
  default: withCtx(() => [
5992
- createElementVNode("div", _hoisted_1$d, [
6011
+ createElementVNode("div", _hoisted_1$e, [
5993
6012
  createVNode(_component_Tree, {
5994
6013
  data: _ctx.institutionTree,
5995
6014
  render: _ctx.renderContent,
@@ -6187,14 +6206,14 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
6187
6206
  _: 1
6188
6207
  });
6189
6208
  }
6190
- const Institution = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-42799ba1"]]);
6191
- const propDefine$d = {};
6192
- const _sfc_main$d = defineComponent({
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({
6193
6212
  name: "LoginLog",
6194
6213
  components: {},
6195
6214
  emits: [""],
6196
6215
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
6197
- props: propDefine$d,
6216
+ props: propDefine$e,
6198
6217
  setup(props, ctx) {
6199
6218
  return new LoginLogInstance$1(props, ctx);
6200
6219
  }
@@ -6299,18 +6318,18 @@ let LoginLogInstance$1 = class LoginLogInstance extends BaseInstance {
6299
6318
  //#endregion 登录日志 END
6300
6319
  };
6301
6320
  const LoginLog_vue_vue_type_style_index_0_scoped_4e2e0184_lang = "";
6302
- const _hoisted_1$c = { class: "loginLog" };
6303
- function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
6321
+ const _hoisted_1$d = { class: "loginLog" };
6322
+ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
6304
6323
  const _component_NvGrid = resolveComponent("NvGrid");
6305
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
6324
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
6306
6325
  createVNode(_component_NvGrid, {
6307
6326
  ref: "loginLogGrid",
6308
6327
  option: _ctx.loginLogGridOption
6309
6328
  }, null, 8, ["option"])
6310
6329
  ]);
6311
6330
  }
6312
- const LoginLog$1 = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-4e2e0184"]]);
6313
- const propDefine$c = {
6331
+ const LoginLog$1 = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-4e2e0184"]]);
6332
+ const propDefine$d = {
6314
6333
  linkParam: {
6315
6334
  // 带入的参数
6316
6335
  type: String,
@@ -6322,12 +6341,12 @@ const propDefine$c = {
6322
6341
  default: "-"
6323
6342
  }
6324
6343
  };
6325
- const _sfc_main$c = defineComponent({
6344
+ const _sfc_main$d = defineComponent({
6326
6345
  name: "Userinfor",
6327
6346
  components: { SelectPlatform, LoginLog: LoginLog$1, BaseLogin },
6328
6347
  emits: [""],
6329
6348
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
6330
- props: propDefine$c,
6349
+ props: propDefine$d,
6331
6350
  setup(props, ctx) {
6332
6351
  return new UserinforInstance$1(props, ctx);
6333
6352
  }
@@ -7361,7 +7380,7 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
7361
7380
  };
7362
7381
  const Userinfor_vue_vue_type_style_index_0_scoped_3969fae6_lang = "";
7363
7382
  const _withScopeId$1 = (n) => (pushScopeId("data-v-3969fae6"), n = n(), popScopeId(), n);
7364
- const _hoisted_1$b = { class: "instree-search" };
7383
+ const _hoisted_1$c = { class: "instree-search" };
7365
7384
  const _hoisted_2$5 = { class: "instree-list" };
7366
7385
  const _hoisted_3$4 = { style: { "height": "600px", "overflow-y": "auto" } };
7367
7386
  const _hoisted_4$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
@@ -7377,7 +7396,7 @@ const _hoisted_10$1 = { style: { "display": "none" } };
7377
7396
  const _hoisted_11$1 = { style: { "height": "400px", "overflow-y": "auto" } };
7378
7397
  const _hoisted_12$1 = ["src"];
7379
7398
  const _hoisted_13$1 = ["src"];
7380
- function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
7399
+ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
7381
7400
  const _component_SelectPlatform = resolveComponent("SelectPlatform");
7382
7401
  const _component_Tree = resolveComponent("Tree");
7383
7402
  const _component_Spin = resolveComponent("Spin");
@@ -7420,7 +7439,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
7420
7439
  })
7421
7440
  ]),
7422
7441
  default: withCtx(() => [
7423
- createElementVNode("div", _hoisted_1$b, [
7442
+ createElementVNode("div", _hoisted_1$c, [
7424
7443
  createVNode(_component_SelectPlatform, {
7425
7444
  onSelect: _ctx.doChangePlatform,
7426
7445
  width: "100%",
@@ -7739,8 +7758,8 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
7739
7758
  _: 1
7740
7759
  });
7741
7760
  }
7742
- const Userinfor = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-3969fae6"]]);
7743
- const propDefine$b = {
7761
+ const Userinfor = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-3969fae6"]]);
7762
+ const propDefine$c = {
7744
7763
  linkParam: {
7745
7764
  // 带入的参数
7746
7765
  type: String,
@@ -7752,12 +7771,12 @@ const propDefine$b = {
7752
7771
  default: "-"
7753
7772
  }
7754
7773
  };
7755
- const _sfc_main$b = defineComponent({
7774
+ const _sfc_main$c = defineComponent({
7756
7775
  name: "Enterprise",
7757
7776
  components: { SelectPlatform },
7758
7777
  emits: [""],
7759
7778
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
7760
- props: propDefine$b,
7779
+ props: propDefine$c,
7761
7780
  setup(props, ctx) {
7762
7781
  return new EnterpriseInstance$1(props, ctx);
7763
7782
  }
@@ -8144,8 +8163,8 @@ let EnterpriseInstance$1 = class EnterpriseInstance extends BaseInstance {
8144
8163
  //#endregion 业务逻辑 编辑企业信息 END
8145
8164
  };
8146
8165
  const Enterprise_vue_vue_type_style_index_0_scoped_58aa3e77_lang = "";
8147
- const _hoisted_1$a = { style: { "height": "650px", "overflow-y": "auto" } };
8148
- function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
8166
+ const _hoisted_1$b = { style: { "height": "650px", "overflow-y": "auto" } };
8167
+ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
8149
8168
  const _component_SelectPlatform = resolveComponent("SelectPlatform");
8150
8169
  const _component_NvGrid = resolveComponent("NvGrid");
8151
8170
  const _component_NvBox = resolveComponent("NvBox");
@@ -8213,7 +8232,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
8213
8232
  }, 8, ["loading", "onClick"])) : createCommentVNode("", true)
8214
8233
  ]),
8215
8234
  default: withCtx(() => [
8216
- createElementVNode("div", _hoisted_1$a, [
8235
+ createElementVNode("div", _hoisted_1$b, [
8217
8236
  createVNode(_component_Form, {
8218
8237
  model: _ctx.enterpriseFormModel,
8219
8238
  "label-width": 90
@@ -8236,7 +8255,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
8236
8255
  _: 1
8237
8256
  });
8238
8257
  }
8239
- const Enterprise = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-58aa3e77"]]);
8258
+ const Enterprise = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-58aa3e77"]]);
8240
8259
  class DBCenterBaseApi extends BaseApi {
8241
8260
  get ProxyName() {
8242
8261
  return "CalcPythonApi";
@@ -8257,7 +8276,16 @@ class CorePartnerApi extends DBCenterBaseApi {
8257
8276
  this.addHeader("tableName", "core_partner");
8258
8277
  }
8259
8278
  }
8260
- const propDefine$a = {
8279
+ class CorePlatformConfigApi extends DBCenterBaseApi {
8280
+ get ControllerName() {
8281
+ return "currency";
8282
+ }
8283
+ constructor() {
8284
+ super();
8285
+ this.addHeader("tableName", "core_platform_config");
8286
+ }
8287
+ }
8288
+ const propDefine$b = {
8261
8289
  modelValue: {
8262
8290
  // 是否显示
8263
8291
  type: Boolean,
@@ -8280,12 +8308,12 @@ const propDefine$a = {
8280
8308
  default: 0
8281
8309
  }
8282
8310
  };
8283
- const _sfc_main$a = defineComponent({
8311
+ const _sfc_main$b = defineComponent({
8284
8312
  name: "FilePreview",
8285
8313
  components: {},
8286
8314
  emits: ["update:modelValue"],
8287
8315
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
8288
- props: propDefine$a,
8316
+ props: propDefine$b,
8289
8317
  setup(props, ctx) {
8290
8318
  return new FilePreviewInstance(props, ctx);
8291
8319
  }
@@ -8390,9 +8418,9 @@ class FilePreviewInstance extends BaseInstance {
8390
8418
  //#endregion 业务逻辑 - 文件预览 END
8391
8419
  }
8392
8420
  const FilePreview_vue_vue_type_style_index_0_scoped_33abffa5_lang = "";
8393
- const _hoisted_1$9 = { class: "ifr-container" };
8421
+ const _hoisted_1$a = { class: "ifr-container" };
8394
8422
  const _hoisted_2$4 = ["src", "title"];
8395
- function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8423
+ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
8396
8424
  const _component_ImagePreview = resolveComponent("ImagePreview");
8397
8425
  const _component_Modal = resolveComponent("Modal");
8398
8426
  return openBlock(), createElementBlock(Fragment, null, [
@@ -8415,7 +8443,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8415
8443
  onOnVisibleChange: _ctx.doClose
8416
8444
  }, {
8417
8445
  default: withCtx(() => [
8418
- createElementVNode("div", _hoisted_1$9, [
8446
+ createElementVNode("div", _hoisted_1$a, [
8419
8447
  createElementVNode("iframe", {
8420
8448
  src: _ctx.ifrUrl,
8421
8449
  class: "ifr-content",
@@ -8427,8 +8455,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8427
8455
  }, 8, ["modelValue", "title", "onOnVisibleChange"])
8428
8456
  ], 64);
8429
8457
  }
8430
- const filePreview = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-33abffa5"]]);
8431
- const propDefine$9 = {
8458
+ const filePreview = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-33abffa5"]]);
8459
+ const propDefine$a = {
8432
8460
  linkParam: {
8433
8461
  // 带入的参数
8434
8462
  type: String,
@@ -8490,12 +8518,12 @@ const propDefine$9 = {
8490
8518
  default: false
8491
8519
  }
8492
8520
  };
8493
- const _sfc_main$9 = defineComponent({
8521
+ const _sfc_main$a = defineComponent({
8494
8522
  name: "UploadFile",
8495
8523
  components: { filePreview },
8496
8524
  emits: ["success", "returnFileList"],
8497
8525
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
8498
- props: propDefine$9,
8526
+ props: propDefine$a,
8499
8527
  setup(props, ctx) {
8500
8528
  return new UploadFileInstance(props, ctx);
8501
8529
  }
@@ -8834,13 +8862,13 @@ class UploadFileInstance extends BaseInstance {
8834
8862
  //#endregion 业务逻辑 文件预览 END
8835
8863
  }
8836
8864
  const UploadFile_vue_vue_type_style_index_0_scoped_4568a1e3_lang = "";
8837
- const _hoisted_1$8 = { class: "uploadFile" };
8865
+ const _hoisted_1$9 = { class: "uploadFile" };
8838
8866
  const _hoisted_2$3 = ["onClick", "title"];
8839
8867
  const _hoisted_3$3 = { class: "file-upload-list-cover" };
8840
8868
  const _hoisted_4$3 = { class: "file-upload-btn" };
8841
8869
  const _hoisted_5$2 = { class: "file-upload-list-cover" };
8842
8870
  const _hoisted_6$2 = { class: "file-upload-btn" };
8843
- function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
8871
+ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
8844
8872
  const _component_Image = resolveComponent("Image");
8845
8873
  const _component_Icon = resolveComponent("Icon");
8846
8874
  const _component_Space = resolveComponent("Space");
@@ -8848,7 +8876,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
8848
8876
  const _component_Card = resolveComponent("Card");
8849
8877
  const _component_Spin = resolveComponent("Spin");
8850
8878
  const _component_filePreview = resolveComponent("filePreview");
8851
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
8879
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
8852
8880
  !_ctx.single ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.groups, (groupName) => {
8853
8881
  return openBlock(), createBlock(_component_Card, {
8854
8882
  "dis-hover": "",
@@ -9013,7 +9041,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
9013
9041
  }, null, 8, ["modelValue", "preview-list", "preview-index", "file-info"])
9014
9042
  ]);
9015
9043
  }
9016
- const UploadFile = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-4568a1e3"]]);
9044
+ const UploadFile = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-4568a1e3"]]);
9017
9045
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
9018
9046
  function getDefaultExportFromCjs(x) {
9019
9047
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -23345,7 +23373,7 @@ const QuillEditor = defineComponent({
23345
23373
  });
23346
23374
  const vueQuill_snow = "";
23347
23375
  const vueQuill_bubble = "";
23348
- const propDefine$8 = {
23376
+ const propDefine$9 = {
23349
23377
  modelValue: {
23350
23378
  default: "",
23351
23379
  type: String
@@ -23359,14 +23387,14 @@ const propDefine$8 = {
23359
23387
  default: false
23360
23388
  }
23361
23389
  };
23362
- const _sfc_main$8 = defineComponent({
23390
+ const _sfc_main$9 = defineComponent({
23363
23391
  name: "TextEditor",
23364
23392
  components: {
23365
23393
  QuillEditor
23366
23394
  },
23367
23395
  emits: ["update:modelValue", "textChange"],
23368
23396
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
23369
- props: propDefine$8,
23397
+ props: propDefine$9,
23370
23398
  setup(props, ctx) {
23371
23399
  return new TextEditor$1(props, ctx);
23372
23400
  }
@@ -23438,7 +23466,6 @@ let TextEditor$1 = class TextEditor extends BaseInstance {
23438
23466
  * 清空长文本
23439
23467
  */
23440
23468
  __publicField(this, "clearTextData", async () => {
23441
- console.log("clearTextData");
23442
23469
  this.content.value = "";
23443
23470
  this.QuillEditorRef.value.setHTML("");
23444
23471
  });
@@ -23479,10 +23506,10 @@ let TextEditor$1 = class TextEditor extends BaseInstance {
23479
23506
  //#endregion 业务逻辑 END
23480
23507
  };
23481
23508
  const TextEditor_vue_vue_type_style_index_0_scoped_ae63b3fa_lang = "";
23482
- const _hoisted_1$7 = { style: { "height": "100%" } };
23483
- function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
23509
+ const _hoisted_1$8 = { style: { "height": "100%" } };
23510
+ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
23484
23511
  const _component_QuillEditor = resolveComponent("QuillEditor");
23485
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
23512
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
23486
23513
  _ctx.componentShow ? (openBlock(), createBlock(_component_QuillEditor, {
23487
23514
  key: 0,
23488
23515
  content: _ctx.content,
@@ -23496,8 +23523,8 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
23496
23523
  }, null, 8, ["content", "readOnly", "theme", "onTextChange", "options"])) : createCommentVNode("", true)
23497
23524
  ]);
23498
23525
  }
23499
- const TextEditor2 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-ae63b3fa"]]);
23500
- const propDefine$7 = {
23526
+ const TextEditor2 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-ae63b3fa"]]);
23527
+ const propDefine$8 = {
23501
23528
  onlyView: {
23502
23529
  // 是否只读
23503
23530
  type: Boolean,
@@ -23515,11 +23542,11 @@ const propDefine$7 = {
23515
23542
  }
23516
23543
  }
23517
23544
  };
23518
- const _sfc_main$7 = defineComponent({
23545
+ const _sfc_main$8 = defineComponent({
23519
23546
  name: "NvComFormUp",
23520
23547
  components: { UploadFile, TextEditor: TextEditor2 },
23521
23548
  emits: [""],
23522
- props: propDefine$7,
23549
+ props: propDefine$8,
23523
23550
  setup(props, ctx) {
23524
23551
  return new ComFormInstance(props, ctx);
23525
23552
  }
@@ -23531,11 +23558,41 @@ class ComFormInstance extends BaseInstance {
23531
23558
  super();
23532
23559
  __publicField(this, "props");
23533
23560
  __publicField(this, "ctx");
23561
+ //#region 文本输入框
23562
+ // 私有属性 | private
23563
+ // 响应属性 | ref、reactive、computed、watch
23564
+ __publicField(this, "textEditorRef", ref());
23565
+ // 私有方法 | private 方法名() {}
23566
+ // 响应式方法 | xxx = () => {}
23567
+ /**
23568
+ * @description 保存文本数据
23569
+ */
23570
+ __publicField(this, "saveTextData", async () => {
23571
+ this.textEditorRef.value.saveTextData();
23572
+ });
23573
+ /**
23574
+ * 清空长文本
23575
+ */
23576
+ __publicField(this, "clearTextData", async () => {
23577
+ this.textEditorRef.value.clearTextData();
23578
+ });
23579
+ /**删除长文本 */
23580
+ __publicField(this, "deleteTextData", async () => {
23581
+ this.textEditorRef.value.deleteTextData();
23582
+ });
23583
+ /**
23584
+ * 删除长文本
23585
+ * @param Token
23586
+ */
23587
+ __publicField(this, "deleteTextDataByToken", async (Token) => {
23588
+ this.textEditorRef.value.deleteTextDataByToken(Token);
23589
+ });
23534
23590
  this.props = props;
23535
23591
  this.ctx = ctx;
23536
23592
  }
23593
+ //#endregion 文本输入框 END
23537
23594
  }
23538
- function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
23595
+ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
23539
23596
  const _component_UploadFile = resolveComponent("UploadFile");
23540
23597
  const _component_TextEditor = resolveComponent("TextEditor");
23541
23598
  const _component_NvComForm = resolveComponent("NvComForm");
@@ -23552,15 +23609,17 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
23552
23609
  }, null, 8, ["readonly", "token"])) : createCommentVNode("", true),
23553
23610
  item.type === "TextEditor" ? (openBlock(), createBlock(_component_TextEditor, {
23554
23611
  key: 1,
23612
+ ref: "textEditorRef",
23555
23613
  readonly: _ctx.onlyView,
23614
+ style: normalizeStyle({ height: `${item.textHeight == void 0 ? "300" : item.textHeight}px` }),
23556
23615
  token: _ctx.formModel[item.model]
23557
- }, null, 8, ["readonly", "token"])) : createCommentVNode("", true)
23616
+ }, null, 8, ["readonly", "style", "token"])) : createCommentVNode("", true)
23558
23617
  ]),
23559
23618
  _: 1
23560
23619
  }, 8, ["onlyView", "formItems", "formModel"]);
23561
23620
  }
23562
- const NvComFormUp = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
23563
- const propDefine$6 = {
23621
+ const NvComFormUp = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8]]);
23622
+ const propDefine$7 = {
23564
23623
  linkParam: {
23565
23624
  // 带入的参数
23566
23625
  type: String,
@@ -23572,14 +23631,14 @@ const propDefine$6 = {
23572
23631
  default: "-"
23573
23632
  }
23574
23633
  };
23575
- const _sfc_main$6 = defineComponent({
23634
+ const _sfc_main$7 = defineComponent({
23576
23635
  name: "Information",
23577
23636
  components: {
23578
23637
  NvComFormUp
23579
23638
  },
23580
23639
  emits: [""],
23581
23640
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
23582
- props: propDefine$6,
23641
+ props: propDefine$7,
23583
23642
  setup(props, ctx) {
23584
23643
  return new InformationInstance(props, ctx);
23585
23644
  }
@@ -23944,8 +24003,8 @@ class InformationInstance extends BaseInstance {
23944
24003
  }
23945
24004
  //#endregion 编辑信息 END
23946
24005
  }
23947
- const _hoisted_1$6 = { style: { "overflow-y": "auto" } };
23948
- function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
24006
+ const _hoisted_1$7 = { style: { "overflow-y": "auto" } };
24007
+ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
23949
24008
  const _component_NvGrid = resolveComponent("NvGrid");
23950
24009
  const _component_NvBox = resolveComponent("NvBox");
23951
24010
  const _component_NvComFormUp = resolveComponent("NvComFormUp");
@@ -24002,7 +24061,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
24002
24061
  }, 8, ["loading", "onClick"])
24003
24062
  ]),
24004
24063
  default: withCtx(() => [
24005
- createElementVNode("div", _hoisted_1$6, [
24064
+ createElementVNode("div", _hoisted_1$7, [
24006
24065
  createVNode(_component_Form, {
24007
24066
  ref: "refRoleForm",
24008
24067
  model: _ctx.roleFormModel,
@@ -24024,8 +24083,8 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
24024
24083
  _: 1
24025
24084
  });
24026
24085
  }
24027
- const Information = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
24028
- const propDefine$5 = {
24086
+ const Information = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
24087
+ const propDefine$6 = {
24029
24088
  linkParam: {
24030
24089
  // 带入的参数
24031
24090
  type: String,
@@ -24035,19 +24094,29 @@ const propDefine$5 = {
24035
24094
  // 按钮权限码
24036
24095
  type: String,
24037
24096
  default: "-"
24097
+ },
24098
+ platformId: {
24099
+ // 平台id
24100
+ type: Number,
24101
+ default: 0
24102
+ },
24103
+ configType: {
24104
+ // 工程概况 || 标段概况
24105
+ type: String,
24106
+ default: "BD"
24038
24107
  }
24039
24108
  };
24040
- const _sfc_main$5 = defineComponent({
24041
- name: "Platform",
24109
+ const _sfc_main$6 = defineComponent({
24110
+ name: "GeneralConfiguration",
24042
24111
  components: {},
24043
24112
  emits: [""],
24044
24113
  // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
24045
- props: propDefine$5,
24114
+ props: propDefine$6,
24046
24115
  setup(props, ctx) {
24047
- return new PlatformInstance2(props, ctx);
24116
+ return new GeneralConfigurationInstance(props, ctx);
24048
24117
  }
24049
24118
  });
24050
- class PlatformInstance2 extends BaseInstance {
24119
+ class GeneralConfigurationInstance extends BaseInstance {
24051
24120
  // 全局属性
24052
24121
  constructor(props, ctx) {
24053
24122
  super();
@@ -24055,9 +24124,25 @@ class PlatformInstance2 extends BaseInstance {
24055
24124
  __publicField(this, "ctx");
24056
24125
  // API 实例化
24057
24126
  __publicField(this, "platformApi", new PlatformApi());
24058
- //#region 系统平台
24059
- __publicField(this, "upList", reactive(Array()));
24060
- __publicField(this, "platformGridOption", reactive({
24127
+ __publicField(this, "dictionaryDetailApi", new DictionaryDetailApi());
24128
+ __publicField(this, "dictionaryTypeApi", new DictionaryTypeApi());
24129
+ __publicField(this, "corePlatformConfigApi", new CorePlatformConfigApi());
24130
+ //#region 概况主表
24131
+ // 私有属性 | private
24132
+ // private business2Test1: number = 0;
24133
+ // 响应属性 | ref、reactive、computed、watch
24134
+ // refTest2 = ref(0);
24135
+ __publicField(this, "nowRow", reactive({
24136
+ Id: 0,
24137
+ PlatformId: 0,
24138
+ ProjectConfig: "[]",
24139
+ ConstructConfig: "[]",
24140
+ LastUpdateUserId: this.storageInfo.getUser().Id,
24141
+ LastUpdateUserName: this.storageInfo.getUser().UserName,
24142
+ LastUpdateDate: this.utilities.getCurrentDate()
24143
+ }));
24144
+ __publicField(this, "generalConfGrid", ref());
24145
+ __publicField(this, "generalConfGridOption", reactive({
24061
24146
  api: this.platformApi,
24062
24147
  setting: {
24063
24148
  searchConfig: {
@@ -24072,41 +24157,36 @@ class PlatformInstance2 extends BaseInstance {
24072
24157
  isCurrent: false,
24073
24158
  isHover: true
24074
24159
  },
24075
- isPagination: true,
24160
+ editConfig: {
24161
+ trigger: "click",
24162
+ mode: "row",
24163
+ showStatus: true
24164
+ // beforeEditMethod:({row})=>{
24165
+ // return row.CreateUserId==this.storageInfo.getUser()?.Id
24166
+ // }//行是否可编辑
24167
+ },
24168
+ isPagination: false,
24076
24169
  pageSize: 10
24077
24170
  },
24078
- searchOptions: [
24079
- {
24080
- field: "SKey",
24081
- title: "唯一KEY",
24082
- type: "Input"
24083
- },
24084
- {
24085
- field: "PlatformName",
24086
- title: "系统名称",
24087
- type: "Input"
24088
- },
24171
+ searchOptions: [],
24172
+ toolbars: [
24089
24173
  {
24090
- field: "PlatformAbbreviation",
24091
- title: "系统简称",
24092
- type: "Input"
24174
+ name: "add",
24175
+ onclick: () => {
24176
+ this.doAddFormData();
24177
+ }
24093
24178
  },
24094
24179
  {
24095
- field: "PlatformNo",
24096
- title: "系统代号",
24097
- type: "Input"
24180
+ name: "save",
24181
+ onclick: () => {
24182
+ this.saveFormData();
24183
+ }
24098
24184
  },
24099
24185
  {
24100
- field: "PlatformGroup",
24101
- title: "系统组",
24102
- type: "Input"
24103
- }
24104
- ],
24105
- toolbars: [
24106
- {
24107
- name: "add",
24186
+ name: "delete",
24187
+ text: "删除",
24108
24188
  onclick: () => {
24109
- this.doAddPlatform();
24189
+ this.deleteFormData();
24110
24190
  }
24111
24191
  }
24112
24192
  ],
@@ -24117,30 +24197,654 @@ class PlatformInstance2 extends BaseInstance {
24117
24197
  {
24118
24198
  colType: "seq"
24119
24199
  },
24120
- { colType: "ro", field: "SKey", title: "唯一KEY", width: 240 },
24121
- { colType: "ed", field: "PlatformName", title: "系统名称", minWidth: 250 },
24122
- { colType: "ed", field: "PlatformAbbreviation", title: "系统简称", width: 150 },
24200
+ { colType: "checkbox" },
24123
24201
  {
24124
- colType: "select",
24125
- field: "PId",
24126
- title: "上级平台",
24127
- width: 150,
24128
- format: (h2, params) => {
24129
- const data = this.upList.find((item) => item["value"] == params.row["PId"]);
24130
- return h2("span", params.row["PId"] == 0 ? "/" : data.text);
24131
- },
24132
- select: {
24133
- data: this.upList,
24134
- clearable: true,
24135
- multiple: false
24136
- }
24202
+ colType: "ro",
24203
+ field: "label",
24204
+ title: "标签文本",
24205
+ align: "left"
24137
24206
  },
24138
- { colType: "ed", field: "PlatformNo", title: "系统代号", width: 100 },
24207
+ {
24208
+ colType: "ro",
24209
+ field: "prop",
24210
+ title: "属性字段",
24211
+ align: "left"
24212
+ },
24213
+ {
24214
+ colType: "ro",
24215
+ field: "model",
24216
+ title: "表单字段",
24217
+ align: "left"
24218
+ },
24219
+ {
24220
+ colType: "select",
24221
+ field: "seltype",
24222
+ title: "类型",
24223
+ width: 240,
24224
+ align: "center",
24225
+ select: {
24226
+ data: [
24227
+ { value: "Input", text: "文字输入框" },
24228
+ { value: "InputNumber", text: "数字输入框" },
24229
+ { value: "Textarea", text: "多行文本" },
24230
+ { value: "TextEditor", text: "富文本" },
24231
+ { value: "DatePicker", text: "日期选择" },
24232
+ { value: "TimePicker", text: "时间选择" },
24233
+ { value: "UploadFile", text: "附件" }
24234
+ ]
24235
+ },
24236
+ change: (row) => {
24237
+ switch (row.seltype) {
24238
+ case "Input":
24239
+ row.type = "Input";
24240
+ break;
24241
+ case "InputNumber":
24242
+ row.type = "InputNumber";
24243
+ row.rules = [
24244
+ { required: true, type: "number", message: row.message, trigger: "blur" }
24245
+ ];
24246
+ break;
24247
+ case "Textarea":
24248
+ row.type = "Input";
24249
+ row.inputProp = {
24250
+ type: "textarea",
24251
+ rows: 4
24252
+ };
24253
+ break;
24254
+ case "DatePicker":
24255
+ row.type = "DatePicker";
24256
+ row.rules = [
24257
+ { required: true, type: "date", message: row.message, trigger: "change" }
24258
+ ];
24259
+ break;
24260
+ case "TimePicker":
24261
+ row.type = "TimePicker";
24262
+ row.rules = [
24263
+ { required: true, type: "date", message: row.message, trigger: "change" }
24264
+ ];
24265
+ break;
24266
+ case "UploadFile":
24267
+ row.type = "UploadFile";
24268
+ break;
24269
+ case "TextEditor":
24270
+ row.type = "TextEditor";
24271
+ row.textHeight = 160;
24272
+ break;
24273
+ }
24274
+ }
24275
+ },
24276
+ {
24277
+ colType: "ed",
24278
+ field: "append",
24279
+ title: "输入框单位",
24280
+ width: 120,
24281
+ align: "center",
24282
+ change: (row) => {
24283
+ if (row.append && row.seltype == "Input") {
24284
+ row.type = "Input";
24285
+ row.inputProp = {
24286
+ type: "text",
24287
+ append: row.append
24288
+ };
24289
+ } else {
24290
+ row.type = row.seltype;
24291
+ row.inputProp = {};
24292
+ }
24293
+ }
24294
+ },
24295
+ {
24296
+ colType: "select",
24297
+ field: "span",
24298
+ title: "占位格数",
24299
+ width: 120,
24300
+ align: "right",
24301
+ select: {
24302
+ data: [
24303
+ { value: 8, text: "8" },
24304
+ { value: 12, text: "12" },
24305
+ { value: 24, text: "24" }
24306
+ ]
24307
+ }
24308
+ },
24309
+ {
24310
+ colType: "select",
24311
+ field: "required",
24312
+ title: "必填项",
24313
+ width: 120,
24314
+ align: "center",
24315
+ select: {
24316
+ data: [
24317
+ { value: 1, text: "必填" },
24318
+ { value: 0, text: "可空" }
24319
+ ]
24320
+ },
24321
+ change: (row) => {
24322
+ if (row.required == 1) {
24323
+ row.rules = [
24324
+ { required: true, message: row.message, trigger: "blur" }
24325
+ ];
24326
+ } else {
24327
+ row.rules = [];
24328
+ }
24329
+ }
24330
+ },
24331
+ {
24332
+ colType: "ed",
24333
+ field: "message",
24334
+ title: "提示信息",
24335
+ minWidth: 250,
24336
+ align: "left",
24337
+ change: (row) => {
24338
+ if (row.message) {
24339
+ row.rules = [
24340
+ { required: true, message: row.message, trigger: "blur" }
24341
+ ];
24342
+ } else {
24343
+ row.rules = [];
24344
+ }
24345
+ }
24346
+ },
24347
+ {
24348
+ colType: "num",
24349
+ field: "orderNum",
24350
+ title: "排序号",
24351
+ width: 80,
24352
+ align: "right"
24353
+ }
24354
+ ],
24355
+ event: {
24356
+ // event_search: (data) => {
24357
+ // this.platformGrid.value!.setPageIndex(1);
24358
+ // const keys = Object.keys(data);
24359
+ // const queryWrapper = QueryWrapper.create();
24360
+ // queryWrapper.eq("1", "1");
24361
+ // for (const key of keys) {
24362
+ // const value = data[key];
24363
+ // if (!this.utilities.isNull(value)) {
24364
+ // queryWrapper.like(key, value);
24365
+ // }
24366
+ // }
24367
+ // this.platformGrid.value!.loadDataByQuery(queryWrapper);
24368
+ // },
24369
+ }
24370
+ }));
24371
+ // 响应式方法 | xxx = () => {}
24372
+ // doBtnClick2 = () = {}
24373
+ /** 主表保存 */
24374
+ __publicField(this, "saveFormData", async () => {
24375
+ const data = this.generalConfGrid.value.getSaveDatas();
24376
+ if (data.length == 0) {
24377
+ this.message.warning("没有需要保存的数据");
24378
+ return;
24379
+ }
24380
+ let gridRes = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(this.nowRow.ProjectConfig)) : this.utilities.deepCopy(JSON.parse(this.nowRow.ConstructConfig));
24381
+ gridRes.forEach((x) => {
24382
+ data.forEach((s) => {
24383
+ if (x.model == s.model) {
24384
+ Object.assign(x, s);
24385
+ }
24386
+ });
24387
+ });
24388
+ let saveObj = {
24389
+ Id: this.nowRow.Id > 0 ? this.nowRow.Id : 0,
24390
+ PlatformId: this.props.platformId,
24391
+ ProjectConfig: this.props.configType == "GC" ? JSON.stringify(gridRes) : this.nowRow.ProjectConfig,
24392
+ ConstructConfig: this.props.configType == "BD" ? JSON.stringify(gridRes) : this.nowRow.ConstructConfig,
24393
+ LastUpdateUserId: this.storageInfo.getUser().Id,
24394
+ LastUpdateUserName: this.storageInfo.getUser().UserName,
24395
+ LastUpdateDate: this.utilities.getCurrentDate()
24396
+ };
24397
+ const res = this.utilities.parseApiResult(await this.corePlatformConfigApi.save(saveObj));
24398
+ if (res > 0) {
24399
+ this.message.success("保存成功");
24400
+ this.loadGeneralSituationData();
24401
+ } else {
24402
+ this.message.warning("保存失败");
24403
+ }
24404
+ });
24405
+ /** 主表删除 */
24406
+ __publicField(this, "deleteFormData", async () => {
24407
+ const data = this.generalConfGrid.value.getCheckboxDatas();
24408
+ if (data.length == 0) {
24409
+ this.message.warning("未勾选数据");
24410
+ return;
24411
+ }
24412
+ console.log("删除数据", data);
24413
+ this.modal.confirm({
24414
+ title: "提示",
24415
+ content: "确定删除所选数据吗?",
24416
+ onOk: async () => {
24417
+ let res = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(this.nowRow.ProjectConfig)) : this.utilities.deepCopy(JSON.parse(this.nowRow.ConstructConfig));
24418
+ data.forEach((x) => {
24419
+ res.forEach((s, i) => {
24420
+ if (x.prop == s.prop) {
24421
+ res.splice(i, 1);
24422
+ }
24423
+ });
24424
+ });
24425
+ let saveObj = {
24426
+ Id: this.nowRow.Id > 0 ? this.nowRow.Id : 0,
24427
+ PlatformId: this.props.platformId,
24428
+ ProjectConfig: this.props.configType == "GC" ? JSON.stringify(res) : this.nowRow.ProjectConfig,
24429
+ ConstructConfig: this.props.configType == "BD" ? JSON.stringify(res) : this.nowRow.ConstructConfig,
24430
+ LastUpdateUserId: this.storageInfo.getUser().Id,
24431
+ LastUpdateUserName: this.storageInfo.getUser().UserName,
24432
+ LastUpdateDate: this.utilities.getCurrentDate()
24433
+ };
24434
+ const res1 = this.utilities.parseApiResult(await this.corePlatformConfigApi.save(saveObj));
24435
+ if (res1 > 0) {
24436
+ this.message.success("删除成功");
24437
+ this.loadGeneralSituationData();
24438
+ } else {
24439
+ this.message.error("删除失败");
24440
+ }
24441
+ }
24442
+ });
24443
+ });
24444
+ //#endregion 概况主表 END
24445
+ //#region 概况选择modal
24446
+ // 私有属性 | private
24447
+ // private business2Test1: number = 0;
24448
+ // 响应属性 | ref、reactive、computed、watch
24449
+ // refTest2 = ref(0);
24450
+ __publicField(this, "isShowDicModal", ref(false));
24451
+ __publicField(this, "dicModalTitle", ref("概况选择"));
24452
+ __publicField(this, "isShowDicModalLoading", ref(false));
24453
+ __publicField(this, "dicModalGrid", ref());
24454
+ __publicField(this, "dicModalGridOption", reactive({
24455
+ api: this.platformApi,
24456
+ setting: {
24457
+ searchConfig: {
24458
+ btnSpan: 6,
24459
+ labelWidth: 120,
24460
+ defaultShowSearch: false
24461
+ },
24462
+ toolbarConfig: {
24463
+ isButtonGroup: false
24464
+ },
24465
+ rowConfig: {
24466
+ isCurrent: true,
24467
+ isHover: true
24468
+ },
24469
+ // editConfig: {
24470
+ // trigger: 'click',
24471
+ // mode: 'row',
24472
+ // showStatus: true,
24473
+ // // beforeEditMethod:({row})=>{
24474
+ // // return row.CreateUserId==this.storageInfo.getUser()?.Id
24475
+ // // }//行是否可编辑
24476
+ // },
24477
+ isPagination: false,
24478
+ pageSize: 10
24479
+ },
24480
+ searchOptions: [],
24481
+ toolbars: [
24482
+ // {
24483
+ // name: 'add', onclick: () => {
24484
+ // this.doAddFormData()
24485
+ // }
24486
+ // }
24487
+ ],
24488
+ rightToolbars: [
24489
+ { name: "refresh" }
24490
+ ],
24491
+ columns: [
24492
+ {
24493
+ colType: "seq"
24494
+ },
24495
+ { colType: "checkbox" },
24496
+ {
24497
+ colType: "ro",
24498
+ field: "DetailInfor",
24499
+ title: "标签文本",
24500
+ minWidth: 200,
24501
+ align: "left"
24502
+ },
24503
+ {
24504
+ colType: "ro",
24505
+ field: "DetailValue",
24506
+ title: "属性字段",
24507
+ minWidth: 200,
24508
+ align: "left"
24509
+ }
24510
+ ],
24511
+ event: {
24512
+ // event_search: (data) => {
24513
+ // this.platformGrid.value!.setPageIndex(1);
24514
+ // const keys = Object.keys(data);
24515
+ // const queryWrapper = QueryWrapper.create();
24516
+ // queryWrapper.eq("1", "1");
24517
+ // for (const key of keys) {
24518
+ // const value = data[key];
24519
+ // if (!this.utilities.isNull(value)) {
24520
+ // queryWrapper.like(key, value);
24521
+ // }
24522
+ // }
24523
+ // this.platformGrid.value!.loadDataByQuery(queryWrapper);
24524
+ // },
24525
+ }
24526
+ }));
24527
+ // 响应式方法 | xxx = () => {}
24528
+ // doBtnClick2 = () = {}
24529
+ __publicField(this, "doSaveDicModal", async () => {
24530
+ const data = this.dicModalGrid.value.getCheckboxDatas();
24531
+ if (data.length == 0) {
24532
+ this.message.warning("请先勾选数据");
24533
+ return;
24534
+ }
24535
+ this.isShowDicModalLoading.value = true;
24536
+ let newArr = [];
24537
+ data.forEach((x, i) => {
24538
+ newArr.push({
24539
+ label: x.DetailInfor,
24540
+ prop: x.DetailValue,
24541
+ model: x.DetailValue,
24542
+ type: "Input",
24543
+ seltype: "Input",
24544
+ append: "",
24545
+ span: 8,
24546
+ orderNum: i,
24547
+ // 排序号
24548
+ required: 1,
24549
+ // 1 必填 0 可空
24550
+ message: x.DetailInfor + "不能为空",
24551
+ rules: [{ required: true, message: x.DetailInfor + "不能为空", trigger: "blur" }]
24552
+ });
24553
+ });
24554
+ let gridRes = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(this.nowRow.ProjectConfig)) : this.utilities.deepCopy(JSON.parse(this.nowRow.ConstructConfig));
24555
+ let saveArr = [...newArr, ...gridRes];
24556
+ let mergeArr = saveArr.reduce((result, obj) => {
24557
+ let target = result.find((item) => item.model == obj.model);
24558
+ if (target) {
24559
+ Object.assign(target, obj);
24560
+ } else {
24561
+ result.push(obj);
24562
+ }
24563
+ return result;
24564
+ }, []);
24565
+ let saveObj = {
24566
+ Id: this.nowRow.Id > 0 ? this.nowRow.Id : 0,
24567
+ PlatformId: this.props.platformId,
24568
+ ProjectConfig: this.props.configType == "GC" ? JSON.stringify(mergeArr) : this.nowRow.ProjectConfig,
24569
+ ConstructConfig: this.props.configType == "BD" ? JSON.stringify(mergeArr) : this.nowRow.ConstructConfig,
24570
+ LastUpdateUserId: this.storageInfo.getUser().Id,
24571
+ LastUpdateUserName: this.storageInfo.getUser().UserName,
24572
+ LastUpdateDate: this.utilities.getCurrentDate()
24573
+ };
24574
+ const res = this.utilities.parseApiResult(await this.corePlatformConfigApi.save(saveObj));
24575
+ if (res > 0) {
24576
+ this.message.success("保存成功");
24577
+ this.loadGeneralSituationData();
24578
+ this.isShowDicModal.value = false;
24579
+ } else {
24580
+ this.message.warning("保存失败");
24581
+ }
24582
+ this.isShowDicModalLoading.value = false;
24583
+ });
24584
+ this.props = props;
24585
+ this.ctx = ctx;
24586
+ this.loadGeneralSituationData();
24587
+ }
24588
+ // 私有方法 | private 方法名() {}
24589
+ // private test2() {}
24590
+ /** 添加概况信息 */
24591
+ doAddFormData() {
24592
+ this.isShowDicModal.value = true;
24593
+ this.loadDicData();
24594
+ }
24595
+ /** 根据平台id、概况类型、获取概况信息 */
24596
+ async loadGeneralSituationData() {
24597
+ let res = this.utilities.parseApiResult(await this.corePlatformConfigApi.getEntities(QueryWrapper.create().allEq({
24598
+ PlatformId: this.props.platformId
24599
+ })));
24600
+ if (res && res.length > 0) {
24601
+ Object.assign(this.nowRow, res[0]);
24602
+ let data = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(res[0].ProjectConfig)) : this.utilities.deepCopy(JSON.parse(res[0].ConstructConfig));
24603
+ this.loadMainData(data);
24604
+ }
24605
+ }
24606
+ /** 获取主表数据 */
24607
+ async loadMainData(data) {
24608
+ this.generalConfGrid.value.loadData(async (Option) => {
24609
+ Option.success(data);
24610
+ });
24611
+ }
24612
+ // 私有方法 | private 方法名() {}
24613
+ // private test2() {}
24614
+ /** 获取字典项数据(工程概况) */
24615
+ async loadDicData() {
24616
+ let dicCode = this.props.configType == "GC" ? "ProjectProfileConfiguration" : "SectionGeneralConfiguration";
24617
+ let dicTypeInfo = this.utilities.parseApiResult(await this.dictionaryTypeApi.getEntitiesDynamic(QueryWrapper.create().allEq({
24618
+ PlatformId: this.props.platformId,
24619
+ OptionCode: dicCode
24620
+ })));
24621
+ if (dicTypeInfo && dicTypeInfo.length > 0) {
24622
+ this.dicModalGrid.value.loadData(async (option) => {
24623
+ let res = this.utilities.parseApiResult(await this.dictionaryDetailApi.getEntities(QueryWrapper.create().eq("MainId", dicTypeInfo[0].Id)));
24624
+ option.success(res);
24625
+ });
24626
+ }
24627
+ }
24628
+ //#endregion 概况选择modal END
24629
+ }
24630
+ const GeneralConfiguration_vue_vue_type_style_index_0_scoped_a01b6a2e_lang = "";
24631
+ const _hoisted_1$6 = { style: { "height": "600px", "overflow-y": "auto" } };
24632
+ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
24633
+ const _component_NvGrid = resolveComponent("NvGrid");
24634
+ const _component_NvBox = resolveComponent("NvBox");
24635
+ const _component_Button = resolveComponent("Button");
24636
+ const _component_Modal = resolveComponent("Modal");
24637
+ const _component_NvPage = resolveComponent("NvPage");
24638
+ return openBlock(), createBlock(_component_NvPage, {
24639
+ gutter: 8,
24640
+ class: "platform"
24641
+ }, {
24642
+ default: withCtx(() => [
24643
+ createVNode(_component_NvBox, { width: "100%" }, {
24644
+ default: withCtx(() => [
24645
+ createVNode(_component_NvGrid, {
24646
+ ref: "generalConfGrid",
24647
+ option: _ctx.generalConfGridOption
24648
+ }, null, 8, ["option"])
24649
+ ]),
24650
+ _: 1
24651
+ }),
24652
+ createVNode(_component_Modal, {
24653
+ modelValue: _ctx.isShowDicModal,
24654
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.isShowDicModal = $event),
24655
+ draggable: "",
24656
+ mask: true,
24657
+ "mask-closable": false,
24658
+ width: 600,
24659
+ title: _ctx.dicModalTitle,
24660
+ styles: { top: "3%" }
24661
+ }, {
24662
+ footer: withCtx(() => [
24663
+ createVNode(_component_Button, {
24664
+ type: "text",
24665
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.isShowDicModal = false)
24666
+ }, {
24667
+ default: withCtx(() => [
24668
+ createTextVNode("关闭")
24669
+ ]),
24670
+ _: 1
24671
+ }),
24672
+ createVNode(_component_Button, {
24673
+ type: "primary",
24674
+ loading: _ctx.isShowDicModalLoading,
24675
+ onClick: _ctx.doSaveDicModal
24676
+ }, {
24677
+ default: withCtx(() => [
24678
+ createTextVNode("保存")
24679
+ ]),
24680
+ _: 1
24681
+ }, 8, ["loading", "onClick"])
24682
+ ]),
24683
+ default: withCtx(() => [
24684
+ createElementVNode("div", _hoisted_1$6, [
24685
+ createVNode(_component_NvGrid, {
24686
+ ref: "dicModalGrid",
24687
+ option: _ctx.dicModalGridOption
24688
+ }, null, 8, ["option"])
24689
+ ])
24690
+ ]),
24691
+ _: 1
24692
+ }, 8, ["modelValue", "title"])
24693
+ ]),
24694
+ _: 1
24695
+ });
24696
+ }
24697
+ const GeneralConfiguration = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-a01b6a2e"]]);
24698
+ const propDefine$5 = {
24699
+ linkParam: {
24700
+ // 带入的参数
24701
+ type: String,
24702
+ default: ""
24703
+ },
24704
+ operates: {
24705
+ // 按钮权限码
24706
+ type: String,
24707
+ default: "-"
24708
+ }
24709
+ };
24710
+ const _sfc_main$5 = defineComponent({
24711
+ name: "Platform",
24712
+ components: {
24713
+ GeneralConfiguration
24714
+ },
24715
+ emits: [""],
24716
+ // 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
24717
+ props: propDefine$5,
24718
+ setup(props, ctx) {
24719
+ return new PlatformInstance2(props, ctx);
24720
+ }
24721
+ });
24722
+ class PlatformInstance2 extends BaseInstance {
24723
+ // 全局属性
24724
+ constructor(props, ctx) {
24725
+ super();
24726
+ __publicField(this, "props");
24727
+ __publicField(this, "ctx");
24728
+ // API 实例化
24729
+ __publicField(this, "platformApi", new PlatformApi());
24730
+ //#region 系统平台
24731
+ __publicField(this, "isShowGeneralConfig", ref(false));
24732
+ __publicField(this, "generalConfigTitle", ref("概况配置"));
24733
+ __publicField(this, "platformId", ref(0));
24734
+ __publicField(this, "configType", ref("GC"));
24735
+ __publicField(this, "upList", reactive(Array()));
24736
+ __publicField(this, "platformGridOption", reactive({
24737
+ api: this.platformApi,
24738
+ setting: {
24739
+ searchConfig: {
24740
+ btnSpan: 6,
24741
+ labelWidth: 120,
24742
+ defaultShowSearch: false
24743
+ },
24744
+ toolbarConfig: {
24745
+ isButtonGroup: false
24746
+ },
24747
+ rowConfig: {
24748
+ isCurrent: false,
24749
+ isHover: true
24750
+ },
24751
+ isPagination: true,
24752
+ pageSize: 10
24753
+ },
24754
+ searchOptions: [
24755
+ {
24756
+ field: "SKey",
24757
+ title: "唯一KEY",
24758
+ type: "Input"
24759
+ },
24760
+ {
24761
+ field: "PlatformName",
24762
+ title: "系统名称",
24763
+ type: "Input"
24764
+ },
24765
+ {
24766
+ field: "PlatformAbbreviation",
24767
+ title: "系统简称",
24768
+ type: "Input"
24769
+ },
24770
+ {
24771
+ field: "PlatformNo",
24772
+ title: "系统代号",
24773
+ type: "Input"
24774
+ },
24775
+ {
24776
+ field: "PlatformGroup",
24777
+ title: "系统组",
24778
+ type: "Input"
24779
+ }
24780
+ ],
24781
+ toolbars: [
24782
+ {
24783
+ name: "add",
24784
+ onclick: () => {
24785
+ this.doAddPlatform();
24786
+ }
24787
+ }
24788
+ ],
24789
+ rightToolbars: [
24790
+ { name: "refresh" }
24791
+ ],
24792
+ columns: [
24793
+ {
24794
+ colType: "seq"
24795
+ },
24796
+ { colType: "ro", field: "SKey", title: "唯一KEY", width: 240 },
24797
+ { colType: "ed", field: "PlatformName", title: "系统名称", minWidth: 250 },
24798
+ { colType: "ed", field: "PlatformAbbreviation", title: "系统简称", width: 150 },
24799
+ {
24800
+ colType: "select",
24801
+ field: "PId",
24802
+ title: "上级平台",
24803
+ width: 150,
24804
+ format: (h2, params) => {
24805
+ const data = this.upList.find((item) => item["value"] == params.row["PId"]);
24806
+ return h2("span", params.row["PId"] == 0 ? "/" : data.text);
24807
+ },
24808
+ select: {
24809
+ data: this.upList,
24810
+ clearable: true,
24811
+ multiple: false
24812
+ }
24813
+ },
24814
+ { colType: "ed", field: "PlatformNo", title: "系统代号", width: 100 },
24139
24815
  { colType: "ed", field: "PlatformUrl", title: "系统URL", width: 230 },
24140
- { colType: "num", field: "OrderNo", title: "排序号", width: 90, align: "center" },
24816
+ { colType: "num", field: "OrderNo", title: "排序号", width: 80, align: "center" },
24817
+ {
24818
+ title: "概况配置",
24819
+ width: 140,
24820
+ fixed: "right",
24821
+ rowButtons: [
24822
+ {
24823
+ name: "view",
24824
+ text: "项目",
24825
+ onclick: (row) => {
24826
+ this.configType.value = "GC";
24827
+ this.platformId.value = row.Id;
24828
+ this.generalConfigTitle.value = `${row.PlatformName}-项目概况配置`;
24829
+ this.isShowGeneralConfig.value = true;
24830
+ }
24831
+ },
24832
+ {
24833
+ name: "view-",
24834
+ text: "标段",
24835
+ onclick: (row) => {
24836
+ this.configType.value = "BD";
24837
+ this.platformId.value = row.Id;
24838
+ this.generalConfigTitle.value = `${row.PlatformName}-标段概况配置`;
24839
+ this.isShowGeneralConfig.value = true;
24840
+ }
24841
+ }
24842
+ ]
24843
+ },
24141
24844
  {
24142
24845
  title: "操作",
24143
24846
  width: 140,
24847
+ fixed: "right",
24144
24848
  rowButtons: [
24145
24849
  {
24146
24850
  name: "edit",
@@ -24330,7 +25034,7 @@ class PlatformInstance2 extends BaseInstance {
24330
25034
  }
24331
25035
  //#endregion 系统平台编辑 END
24332
25036
  }
24333
- const Platform_vue_vue_type_style_index_0_scoped_689e46a1_lang = "";
25037
+ const Platform_vue_vue_type_style_index_0_scoped_b54fe6c5_lang = "";
24334
25038
  const _hoisted_1$5 = { style: { "height": "500px", "overflow-y": "auto" } };
24335
25039
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
24336
25040
  const _component_NvGrid = resolveComponent("NvGrid");
@@ -24339,6 +25043,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
24339
25043
  const _component_Form = resolveComponent("Form");
24340
25044
  const _component_Button = resolveComponent("Button");
24341
25045
  const _component_Modal = resolveComponent("Modal");
25046
+ const _component_GeneralConfiguration = resolveComponent("GeneralConfiguration");
24342
25047
  const _component_NvPage = resolveComponent("NvPage");
24343
25048
  return openBlock(), createBlock(_component_NvPage, {
24344
25049
  gutter: 8,
@@ -24403,12 +25108,38 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
24403
25108
  ])
24404
25109
  ]),
24405
25110
  _: 1
25111
+ }, 8, ["modelValue", "title"]),
25112
+ createVNode(_component_Modal, {
25113
+ modelValue: _ctx.isShowGeneralConfig,
25114
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.isShowGeneralConfig = $event),
25115
+ fullscreen: "",
25116
+ title: _ctx.generalConfigTitle
25117
+ }, {
25118
+ footer: withCtx(() => [
25119
+ createVNode(_component_Button, {
25120
+ type: "text",
25121
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.isShowGeneralConfig = false)
25122
+ }, {
25123
+ default: withCtx(() => [
25124
+ createTextVNode("关闭")
25125
+ ]),
25126
+ _: 1
25127
+ })
25128
+ ]),
25129
+ default: withCtx(() => [
25130
+ _ctx.isShowGeneralConfig ? (openBlock(), createBlock(_component_GeneralConfiguration, {
25131
+ key: 0,
25132
+ platformId: _ctx.platformId,
25133
+ configType: _ctx.configType
25134
+ }, null, 8, ["platformId", "configType"])) : createCommentVNode("", true)
25135
+ ]),
25136
+ _: 1
24406
25137
  }, 8, ["modelValue", "title"])
24407
25138
  ]),
24408
25139
  _: 1
24409
25140
  });
24410
25141
  }
24411
- const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-689e46a1"]]);
25142
+ const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-b54fe6c5"]]);
24412
25143
  const propDefine$4 = {
24413
25144
  linkParam: {
24414
25145
  // 带入的参数