@newview/permission-service 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/permission-service.js +894 -172
- package/dist/permission-service.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1556
|
-
const propDefine$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
3680
|
-
const propDefine$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
4695
|
-
const propDefine$
|
|
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$
|
|
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$
|
|
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$
|
|
4915
|
-
function _sfc_render$
|
|
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$
|
|
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$
|
|
4991
|
-
const propDefine$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
6191
|
-
const propDefine$
|
|
6192
|
-
const _sfc_main$
|
|
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$
|
|
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$
|
|
6303
|
-
function _sfc_render$
|
|
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$
|
|
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$
|
|
6313
|
-
const propDefine$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
7743
|
-
const propDefine$
|
|
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$
|
|
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$
|
|
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$
|
|
8148
|
-
function _sfc_render$
|
|
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$
|
|
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$
|
|
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
|
-
|
|
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$
|
|
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$
|
|
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$
|
|
8421
|
+
const _hoisted_1$a = { class: "ifr-container" };
|
|
8394
8422
|
const _hoisted_2$4 = ["src", "title"];
|
|
8395
|
-
function _sfc_render$
|
|
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$
|
|
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$
|
|
8431
|
-
const propDefine$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
23483
|
-
function _sfc_render$
|
|
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$
|
|
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$
|
|
23500
|
-
const propDefine$
|
|
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$
|
|
23545
|
+
const _sfc_main$8 = defineComponent({
|
|
23519
23546
|
name: "NvComFormUp",
|
|
23520
23547
|
components: { UploadFile, TextEditor: TextEditor2 },
|
|
23521
23548
|
emits: [""],
|
|
23522
|
-
props: propDefine$
|
|
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$
|
|
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$
|
|
23563
|
-
const propDefine$
|
|
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$
|
|
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$
|
|
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$
|
|
23948
|
-
function _sfc_render$
|
|
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$
|
|
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$
|
|
24028
|
-
const propDefine$
|
|
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$
|
|
24041
|
-
name: "
|
|
24109
|
+
const _sfc_main$6 = defineComponent({
|
|
24110
|
+
name: "GeneralConfiguration",
|
|
24042
24111
|
components: {},
|
|
24043
24112
|
emits: [""],
|
|
24044
24113
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
24045
|
-
props: propDefine$
|
|
24114
|
+
props: propDefine$6,
|
|
24046
24115
|
setup(props, ctx) {
|
|
24047
|
-
return new
|
|
24116
|
+
return new GeneralConfigurationInstance(props, ctx);
|
|
24048
24117
|
}
|
|
24049
24118
|
});
|
|
24050
|
-
class
|
|
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
|
-
|
|
24059
|
-
__publicField(this, "
|
|
24060
|
-
__publicField(this, "
|
|
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
|
-
|
|
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
|
-
|
|
24091
|
-
|
|
24092
|
-
|
|
24174
|
+
name: "add",
|
|
24175
|
+
onclick: () => {
|
|
24176
|
+
this.doAddFormData();
|
|
24177
|
+
}
|
|
24093
24178
|
},
|
|
24094
24179
|
{
|
|
24095
|
-
|
|
24096
|
-
|
|
24097
|
-
|
|
24180
|
+
name: "save",
|
|
24181
|
+
onclick: () => {
|
|
24182
|
+
this.saveFormData();
|
|
24183
|
+
}
|
|
24098
24184
|
},
|
|
24099
24185
|
{
|
|
24100
|
-
|
|
24101
|
-
|
|
24102
|
-
type: "Input"
|
|
24103
|
-
}
|
|
24104
|
-
],
|
|
24105
|
-
toolbars: [
|
|
24106
|
-
{
|
|
24107
|
-
name: "add",
|
|
24186
|
+
name: "delete",
|
|
24187
|
+
text: "删除",
|
|
24108
24188
|
onclick: () => {
|
|
24109
|
-
this.
|
|
24189
|
+
this.deleteFormData();
|
|
24110
24190
|
}
|
|
24111
24191
|
}
|
|
24112
24192
|
],
|
|
@@ -24117,30 +24197,645 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
24117
24197
|
{
|
|
24118
24198
|
colType: "seq"
|
|
24119
24199
|
},
|
|
24120
|
-
{ colType: "
|
|
24121
|
-
{ colType: "ed", field: "PlatformName", title: "系统名称", minWidth: 250 },
|
|
24122
|
-
{ colType: "ed", field: "PlatformAbbreviation", title: "系统简称", width: 150 },
|
|
24200
|
+
{ colType: "checkbox" },
|
|
24123
24201
|
{
|
|
24124
|
-
colType: "
|
|
24125
|
-
field: "
|
|
24126
|
-
title: "
|
|
24127
|
-
|
|
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
|
-
{
|
|
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
|
+
break;
|
|
24244
|
+
case "Textarea":
|
|
24245
|
+
row.type = "Input";
|
|
24246
|
+
row.inputProp = {
|
|
24247
|
+
type: "textarea",
|
|
24248
|
+
rows: 4
|
|
24249
|
+
};
|
|
24250
|
+
break;
|
|
24251
|
+
case "DatePicker":
|
|
24252
|
+
row.type = "DatePicker";
|
|
24253
|
+
break;
|
|
24254
|
+
case "TimePicker":
|
|
24255
|
+
row.type = "TimePicker";
|
|
24256
|
+
break;
|
|
24257
|
+
case "UploadFile":
|
|
24258
|
+
row.type = "UploadFile";
|
|
24259
|
+
break;
|
|
24260
|
+
case "TextEditor":
|
|
24261
|
+
row.type = "TextEditor";
|
|
24262
|
+
row.textHeight = 160;
|
|
24263
|
+
break;
|
|
24264
|
+
}
|
|
24265
|
+
}
|
|
24266
|
+
},
|
|
24267
|
+
{
|
|
24268
|
+
colType: "ed",
|
|
24269
|
+
field: "append",
|
|
24270
|
+
title: "输入框单位",
|
|
24271
|
+
width: 120,
|
|
24272
|
+
align: "center",
|
|
24273
|
+
change: (row) => {
|
|
24274
|
+
if (row.append && row.seltype == "Input") {
|
|
24275
|
+
row.type = "Input";
|
|
24276
|
+
row.inputProp = {
|
|
24277
|
+
type: "text",
|
|
24278
|
+
append: row.append
|
|
24279
|
+
};
|
|
24280
|
+
} else {
|
|
24281
|
+
row.type = row.seltype;
|
|
24282
|
+
row.inputProp = {};
|
|
24283
|
+
}
|
|
24284
|
+
}
|
|
24285
|
+
},
|
|
24286
|
+
{
|
|
24287
|
+
colType: "select",
|
|
24288
|
+
field: "span",
|
|
24289
|
+
title: "占位格数",
|
|
24290
|
+
width: 120,
|
|
24291
|
+
align: "right",
|
|
24292
|
+
select: {
|
|
24293
|
+
data: [
|
|
24294
|
+
{ value: 8, text: "8" },
|
|
24295
|
+
{ value: 12, text: "12" },
|
|
24296
|
+
{ value: 24, text: "24" }
|
|
24297
|
+
]
|
|
24298
|
+
}
|
|
24299
|
+
},
|
|
24300
|
+
{
|
|
24301
|
+
colType: "select",
|
|
24302
|
+
field: "required",
|
|
24303
|
+
title: "必填项",
|
|
24304
|
+
width: 120,
|
|
24305
|
+
align: "center",
|
|
24306
|
+
select: {
|
|
24307
|
+
data: [
|
|
24308
|
+
{ value: 1, text: "必填" },
|
|
24309
|
+
{ value: 0, text: "可空" }
|
|
24310
|
+
]
|
|
24311
|
+
},
|
|
24312
|
+
change: (row) => {
|
|
24313
|
+
if (row.required == 1) {
|
|
24314
|
+
row.rules = [
|
|
24315
|
+
{ required: true, message: row.message, trigger: "blur" }
|
|
24316
|
+
];
|
|
24317
|
+
} else {
|
|
24318
|
+
row.rules = [];
|
|
24319
|
+
}
|
|
24320
|
+
}
|
|
24321
|
+
},
|
|
24322
|
+
{
|
|
24323
|
+
colType: "ed",
|
|
24324
|
+
field: "message",
|
|
24325
|
+
title: "提示信息",
|
|
24326
|
+
minWidth: 250,
|
|
24327
|
+
align: "left",
|
|
24328
|
+
change: (row) => {
|
|
24329
|
+
if (row.message) {
|
|
24330
|
+
row.rules = [
|
|
24331
|
+
{ required: true, message: row.message, trigger: "blur" }
|
|
24332
|
+
];
|
|
24333
|
+
} else {
|
|
24334
|
+
row.rules = [];
|
|
24335
|
+
}
|
|
24336
|
+
}
|
|
24337
|
+
},
|
|
24338
|
+
{
|
|
24339
|
+
colType: "num",
|
|
24340
|
+
field: "orderNum",
|
|
24341
|
+
title: "排序号",
|
|
24342
|
+
width: 80,
|
|
24343
|
+
align: "right"
|
|
24344
|
+
}
|
|
24345
|
+
],
|
|
24346
|
+
event: {
|
|
24347
|
+
// event_search: (data) => {
|
|
24348
|
+
// this.platformGrid.value!.setPageIndex(1);
|
|
24349
|
+
// const keys = Object.keys(data);
|
|
24350
|
+
// const queryWrapper = QueryWrapper.create();
|
|
24351
|
+
// queryWrapper.eq("1", "1");
|
|
24352
|
+
// for (const key of keys) {
|
|
24353
|
+
// const value = data[key];
|
|
24354
|
+
// if (!this.utilities.isNull(value)) {
|
|
24355
|
+
// queryWrapper.like(key, value);
|
|
24356
|
+
// }
|
|
24357
|
+
// }
|
|
24358
|
+
// this.platformGrid.value!.loadDataByQuery(queryWrapper);
|
|
24359
|
+
// },
|
|
24360
|
+
}
|
|
24361
|
+
}));
|
|
24362
|
+
// 响应式方法 | xxx = () => {}
|
|
24363
|
+
// doBtnClick2 = () = {}
|
|
24364
|
+
/** 主表保存 */
|
|
24365
|
+
__publicField(this, "saveFormData", async () => {
|
|
24366
|
+
const data = this.generalConfGrid.value.getSaveDatas();
|
|
24367
|
+
if (data.length == 0) {
|
|
24368
|
+
this.message.warning("没有需要保存的数据");
|
|
24369
|
+
return;
|
|
24370
|
+
}
|
|
24371
|
+
let gridRes = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(this.nowRow.ProjectConfig)) : this.utilities.deepCopy(JSON.parse(this.nowRow.ConstructConfig));
|
|
24372
|
+
gridRes.forEach((x) => {
|
|
24373
|
+
data.forEach((s) => {
|
|
24374
|
+
if (x.model == s.model) {
|
|
24375
|
+
Object.assign(x, s);
|
|
24376
|
+
}
|
|
24377
|
+
});
|
|
24378
|
+
});
|
|
24379
|
+
let saveObj = {
|
|
24380
|
+
Id: this.nowRow.Id > 0 ? this.nowRow.Id : 0,
|
|
24381
|
+
PlatformId: this.props.platformId,
|
|
24382
|
+
ProjectConfig: this.props.configType == "GC" ? JSON.stringify(gridRes) : this.nowRow.ProjectConfig,
|
|
24383
|
+
ConstructConfig: this.props.configType == "BD" ? JSON.stringify(gridRes) : this.nowRow.ConstructConfig,
|
|
24384
|
+
LastUpdateUserId: this.storageInfo.getUser().Id,
|
|
24385
|
+
LastUpdateUserName: this.storageInfo.getUser().UserName,
|
|
24386
|
+
LastUpdateDate: this.utilities.getCurrentDate()
|
|
24387
|
+
};
|
|
24388
|
+
const res = this.utilities.parseApiResult(await this.corePlatformConfigApi.save(saveObj));
|
|
24389
|
+
if (res > 0) {
|
|
24390
|
+
this.message.success("保存成功");
|
|
24391
|
+
this.loadGeneralSituationData();
|
|
24392
|
+
} else {
|
|
24393
|
+
this.message.warning("保存失败");
|
|
24394
|
+
}
|
|
24395
|
+
});
|
|
24396
|
+
/** 主表删除 */
|
|
24397
|
+
__publicField(this, "deleteFormData", async () => {
|
|
24398
|
+
const data = this.generalConfGrid.value.getCheckboxDatas();
|
|
24399
|
+
if (data.length == 0) {
|
|
24400
|
+
this.message.warning("未勾选数据");
|
|
24401
|
+
return;
|
|
24402
|
+
}
|
|
24403
|
+
console.log("删除数据", data);
|
|
24404
|
+
this.modal.confirm({
|
|
24405
|
+
title: "提示",
|
|
24406
|
+
content: "确定删除所选数据吗?",
|
|
24407
|
+
onOk: async () => {
|
|
24408
|
+
let res = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(this.nowRow.ProjectConfig)) : this.utilities.deepCopy(JSON.parse(this.nowRow.ConstructConfig));
|
|
24409
|
+
data.forEach((x) => {
|
|
24410
|
+
res.forEach((s, i) => {
|
|
24411
|
+
if (x.prop == s.prop) {
|
|
24412
|
+
res.splice(i, 1);
|
|
24413
|
+
}
|
|
24414
|
+
});
|
|
24415
|
+
});
|
|
24416
|
+
let saveObj = {
|
|
24417
|
+
Id: this.nowRow.Id > 0 ? this.nowRow.Id : 0,
|
|
24418
|
+
PlatformId: this.props.platformId,
|
|
24419
|
+
ProjectConfig: this.props.configType == "GC" ? JSON.stringify(res) : this.nowRow.ProjectConfig,
|
|
24420
|
+
ConstructConfig: this.props.configType == "BD" ? JSON.stringify(res) : this.nowRow.ConstructConfig,
|
|
24421
|
+
LastUpdateUserId: this.storageInfo.getUser().Id,
|
|
24422
|
+
LastUpdateUserName: this.storageInfo.getUser().UserName,
|
|
24423
|
+
LastUpdateDate: this.utilities.getCurrentDate()
|
|
24424
|
+
};
|
|
24425
|
+
const res1 = this.utilities.parseApiResult(await this.corePlatformConfigApi.save(saveObj));
|
|
24426
|
+
if (res1 > 0) {
|
|
24427
|
+
this.message.success("删除成功");
|
|
24428
|
+
this.loadGeneralSituationData();
|
|
24429
|
+
} else {
|
|
24430
|
+
this.message.error("删除失败");
|
|
24431
|
+
}
|
|
24432
|
+
}
|
|
24433
|
+
});
|
|
24434
|
+
});
|
|
24435
|
+
//#endregion 概况主表 END
|
|
24436
|
+
//#region 概况选择modal
|
|
24437
|
+
// 私有属性 | private
|
|
24438
|
+
// private business2Test1: number = 0;
|
|
24439
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
24440
|
+
// refTest2 = ref(0);
|
|
24441
|
+
__publicField(this, "isShowDicModal", ref(false));
|
|
24442
|
+
__publicField(this, "dicModalTitle", ref("概况选择"));
|
|
24443
|
+
__publicField(this, "isShowDicModalLoading", ref(false));
|
|
24444
|
+
__publicField(this, "dicModalGrid", ref());
|
|
24445
|
+
__publicField(this, "dicModalGridOption", reactive({
|
|
24446
|
+
api: this.platformApi,
|
|
24447
|
+
setting: {
|
|
24448
|
+
searchConfig: {
|
|
24449
|
+
btnSpan: 6,
|
|
24450
|
+
labelWidth: 120,
|
|
24451
|
+
defaultShowSearch: false
|
|
24452
|
+
},
|
|
24453
|
+
toolbarConfig: {
|
|
24454
|
+
isButtonGroup: false
|
|
24455
|
+
},
|
|
24456
|
+
rowConfig: {
|
|
24457
|
+
isCurrent: true,
|
|
24458
|
+
isHover: true
|
|
24459
|
+
},
|
|
24460
|
+
// editConfig: {
|
|
24461
|
+
// trigger: 'click',
|
|
24462
|
+
// mode: 'row',
|
|
24463
|
+
// showStatus: true,
|
|
24464
|
+
// // beforeEditMethod:({row})=>{
|
|
24465
|
+
// // return row.CreateUserId==this.storageInfo.getUser()?.Id
|
|
24466
|
+
// // }//行是否可编辑
|
|
24467
|
+
// },
|
|
24468
|
+
isPagination: false,
|
|
24469
|
+
pageSize: 10
|
|
24470
|
+
},
|
|
24471
|
+
searchOptions: [],
|
|
24472
|
+
toolbars: [
|
|
24473
|
+
// {
|
|
24474
|
+
// name: 'add', onclick: () => {
|
|
24475
|
+
// this.doAddFormData()
|
|
24476
|
+
// }
|
|
24477
|
+
// }
|
|
24478
|
+
],
|
|
24479
|
+
rightToolbars: [
|
|
24480
|
+
{ name: "refresh" }
|
|
24481
|
+
],
|
|
24482
|
+
columns: [
|
|
24483
|
+
{
|
|
24484
|
+
colType: "seq"
|
|
24485
|
+
},
|
|
24486
|
+
{ colType: "checkbox" },
|
|
24487
|
+
{
|
|
24488
|
+
colType: "ro",
|
|
24489
|
+
field: "DetailInfor",
|
|
24490
|
+
title: "标签文本",
|
|
24491
|
+
minWidth: 200,
|
|
24492
|
+
align: "left"
|
|
24493
|
+
},
|
|
24494
|
+
{
|
|
24495
|
+
colType: "ro",
|
|
24496
|
+
field: "DetailValue",
|
|
24497
|
+
title: "属性字段",
|
|
24498
|
+
minWidth: 200,
|
|
24499
|
+
align: "left"
|
|
24500
|
+
}
|
|
24501
|
+
],
|
|
24502
|
+
event: {
|
|
24503
|
+
// event_search: (data) => {
|
|
24504
|
+
// this.platformGrid.value!.setPageIndex(1);
|
|
24505
|
+
// const keys = Object.keys(data);
|
|
24506
|
+
// const queryWrapper = QueryWrapper.create();
|
|
24507
|
+
// queryWrapper.eq("1", "1");
|
|
24508
|
+
// for (const key of keys) {
|
|
24509
|
+
// const value = data[key];
|
|
24510
|
+
// if (!this.utilities.isNull(value)) {
|
|
24511
|
+
// queryWrapper.like(key, value);
|
|
24512
|
+
// }
|
|
24513
|
+
// }
|
|
24514
|
+
// this.platformGrid.value!.loadDataByQuery(queryWrapper);
|
|
24515
|
+
// },
|
|
24516
|
+
}
|
|
24517
|
+
}));
|
|
24518
|
+
// 响应式方法 | xxx = () => {}
|
|
24519
|
+
// doBtnClick2 = () = {}
|
|
24520
|
+
__publicField(this, "doSaveDicModal", async () => {
|
|
24521
|
+
const data = this.dicModalGrid.value.getCheckboxDatas();
|
|
24522
|
+
if (data.length == 0) {
|
|
24523
|
+
this.message.warning("请先勾选数据");
|
|
24524
|
+
return;
|
|
24525
|
+
}
|
|
24526
|
+
this.isShowDicModalLoading.value = true;
|
|
24527
|
+
let newArr = [];
|
|
24528
|
+
data.forEach((x, i) => {
|
|
24529
|
+
newArr.push({
|
|
24530
|
+
label: x.DetailInfor,
|
|
24531
|
+
prop: x.DetailValue,
|
|
24532
|
+
model: x.DetailValue,
|
|
24533
|
+
type: "Input",
|
|
24534
|
+
seltype: "Input",
|
|
24535
|
+
append: "",
|
|
24536
|
+
span: 8,
|
|
24537
|
+
orderNum: i,
|
|
24538
|
+
// 排序号
|
|
24539
|
+
required: 1,
|
|
24540
|
+
// 1 必填 0 可空
|
|
24541
|
+
message: x.DetailInfor + "不能为空",
|
|
24542
|
+
rules: [{ required: true, message: x.DetailInfor + "不能为空", trigger: "blur" }]
|
|
24543
|
+
});
|
|
24544
|
+
});
|
|
24545
|
+
let gridRes = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(this.nowRow.ProjectConfig)) : this.utilities.deepCopy(JSON.parse(this.nowRow.ConstructConfig));
|
|
24546
|
+
let saveArr = [...newArr, ...gridRes];
|
|
24547
|
+
let mergeArr = saveArr.reduce((result, obj) => {
|
|
24548
|
+
let target = result.find((item) => item.model == obj.model);
|
|
24549
|
+
if (target) {
|
|
24550
|
+
Object.assign(target, obj);
|
|
24551
|
+
} else {
|
|
24552
|
+
result.push(obj);
|
|
24553
|
+
}
|
|
24554
|
+
return result;
|
|
24555
|
+
}, []);
|
|
24556
|
+
let saveObj = {
|
|
24557
|
+
Id: this.nowRow.Id > 0 ? this.nowRow.Id : 0,
|
|
24558
|
+
PlatformId: this.props.platformId,
|
|
24559
|
+
ProjectConfig: this.props.configType == "GC" ? JSON.stringify(mergeArr) : this.nowRow.ProjectConfig,
|
|
24560
|
+
ConstructConfig: this.props.configType == "BD" ? JSON.stringify(mergeArr) : this.nowRow.ConstructConfig,
|
|
24561
|
+
LastUpdateUserId: this.storageInfo.getUser().Id,
|
|
24562
|
+
LastUpdateUserName: this.storageInfo.getUser().UserName,
|
|
24563
|
+
LastUpdateDate: this.utilities.getCurrentDate()
|
|
24564
|
+
};
|
|
24565
|
+
const res = this.utilities.parseApiResult(await this.corePlatformConfigApi.save(saveObj));
|
|
24566
|
+
if (res > 0) {
|
|
24567
|
+
this.message.success("保存成功");
|
|
24568
|
+
this.loadGeneralSituationData();
|
|
24569
|
+
this.isShowDicModal.value = false;
|
|
24570
|
+
} else {
|
|
24571
|
+
this.message.warning("保存失败");
|
|
24572
|
+
}
|
|
24573
|
+
this.isShowDicModalLoading.value = false;
|
|
24574
|
+
});
|
|
24575
|
+
this.props = props;
|
|
24576
|
+
this.ctx = ctx;
|
|
24577
|
+
this.loadGeneralSituationData();
|
|
24578
|
+
}
|
|
24579
|
+
// 私有方法 | private 方法名() {}
|
|
24580
|
+
// private test2() {}
|
|
24581
|
+
/** 添加概况信息 */
|
|
24582
|
+
doAddFormData() {
|
|
24583
|
+
this.isShowDicModal.value = true;
|
|
24584
|
+
this.loadDicData();
|
|
24585
|
+
}
|
|
24586
|
+
/** 根据平台id、概况类型、获取概况信息 */
|
|
24587
|
+
async loadGeneralSituationData() {
|
|
24588
|
+
let res = this.utilities.parseApiResult(await this.corePlatformConfigApi.getEntities(QueryWrapper.create().allEq({
|
|
24589
|
+
PlatformId: this.props.platformId
|
|
24590
|
+
})));
|
|
24591
|
+
if (res && res.length > 0) {
|
|
24592
|
+
Object.assign(this.nowRow, res[0]);
|
|
24593
|
+
let data = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(res[0].ProjectConfig)) : this.utilities.deepCopy(JSON.parse(res[0].ConstructConfig));
|
|
24594
|
+
this.loadMainData(data);
|
|
24595
|
+
}
|
|
24596
|
+
}
|
|
24597
|
+
/** 获取主表数据 */
|
|
24598
|
+
async loadMainData(data) {
|
|
24599
|
+
this.generalConfGrid.value.loadData(async (Option) => {
|
|
24600
|
+
Option.success(data);
|
|
24601
|
+
});
|
|
24602
|
+
}
|
|
24603
|
+
// 私有方法 | private 方法名() {}
|
|
24604
|
+
// private test2() {}
|
|
24605
|
+
/** 获取字典项数据(工程概况) */
|
|
24606
|
+
async loadDicData() {
|
|
24607
|
+
let dicCode = this.props.configType == "GC" ? "ProjectProfileConfiguration" : "SectionGeneralConfiguration";
|
|
24608
|
+
let dicTypeInfo = this.utilities.parseApiResult(await this.dictionaryTypeApi.getEntitiesDynamic(QueryWrapper.create().allEq({
|
|
24609
|
+
PlatformId: this.props.platformId,
|
|
24610
|
+
OptionCode: dicCode
|
|
24611
|
+
})));
|
|
24612
|
+
if (dicTypeInfo && dicTypeInfo.length > 0) {
|
|
24613
|
+
this.dicModalGrid.value.loadData(async (option) => {
|
|
24614
|
+
let res = this.utilities.parseApiResult(await this.dictionaryDetailApi.getEntities(QueryWrapper.create().eq("MainId", dicTypeInfo[0].Id)));
|
|
24615
|
+
option.success(res);
|
|
24616
|
+
});
|
|
24617
|
+
}
|
|
24618
|
+
}
|
|
24619
|
+
//#endregion 概况选择modal END
|
|
24620
|
+
}
|
|
24621
|
+
const GeneralConfiguration_vue_vue_type_style_index_0_scoped_a01b6a2e_lang = "";
|
|
24622
|
+
const _hoisted_1$6 = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
24623
|
+
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24624
|
+
const _component_NvGrid = resolveComponent("NvGrid");
|
|
24625
|
+
const _component_NvBox = resolveComponent("NvBox");
|
|
24626
|
+
const _component_Button = resolveComponent("Button");
|
|
24627
|
+
const _component_Modal = resolveComponent("Modal");
|
|
24628
|
+
const _component_NvPage = resolveComponent("NvPage");
|
|
24629
|
+
return openBlock(), createBlock(_component_NvPage, {
|
|
24630
|
+
gutter: 8,
|
|
24631
|
+
class: "platform"
|
|
24632
|
+
}, {
|
|
24633
|
+
default: withCtx(() => [
|
|
24634
|
+
createVNode(_component_NvBox, { width: "100%" }, {
|
|
24635
|
+
default: withCtx(() => [
|
|
24636
|
+
createVNode(_component_NvGrid, {
|
|
24637
|
+
ref: "generalConfGrid",
|
|
24638
|
+
option: _ctx.generalConfGridOption
|
|
24639
|
+
}, null, 8, ["option"])
|
|
24640
|
+
]),
|
|
24641
|
+
_: 1
|
|
24642
|
+
}),
|
|
24643
|
+
createVNode(_component_Modal, {
|
|
24644
|
+
modelValue: _ctx.isShowDicModal,
|
|
24645
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.isShowDicModal = $event),
|
|
24646
|
+
draggable: "",
|
|
24647
|
+
mask: true,
|
|
24648
|
+
"mask-closable": false,
|
|
24649
|
+
width: 600,
|
|
24650
|
+
title: _ctx.dicModalTitle,
|
|
24651
|
+
styles: { top: "3%" }
|
|
24652
|
+
}, {
|
|
24653
|
+
footer: withCtx(() => [
|
|
24654
|
+
createVNode(_component_Button, {
|
|
24655
|
+
type: "text",
|
|
24656
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.isShowDicModal = false)
|
|
24657
|
+
}, {
|
|
24658
|
+
default: withCtx(() => [
|
|
24659
|
+
createTextVNode("关闭")
|
|
24660
|
+
]),
|
|
24661
|
+
_: 1
|
|
24662
|
+
}),
|
|
24663
|
+
createVNode(_component_Button, {
|
|
24664
|
+
type: "primary",
|
|
24665
|
+
loading: _ctx.isShowDicModalLoading,
|
|
24666
|
+
onClick: _ctx.doSaveDicModal
|
|
24667
|
+
}, {
|
|
24668
|
+
default: withCtx(() => [
|
|
24669
|
+
createTextVNode("保存")
|
|
24670
|
+
]),
|
|
24671
|
+
_: 1
|
|
24672
|
+
}, 8, ["loading", "onClick"])
|
|
24673
|
+
]),
|
|
24674
|
+
default: withCtx(() => [
|
|
24675
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
24676
|
+
createVNode(_component_NvGrid, {
|
|
24677
|
+
ref: "dicModalGrid",
|
|
24678
|
+
option: _ctx.dicModalGridOption
|
|
24679
|
+
}, null, 8, ["option"])
|
|
24680
|
+
])
|
|
24681
|
+
]),
|
|
24682
|
+
_: 1
|
|
24683
|
+
}, 8, ["modelValue", "title"])
|
|
24684
|
+
]),
|
|
24685
|
+
_: 1
|
|
24686
|
+
});
|
|
24687
|
+
}
|
|
24688
|
+
const GeneralConfiguration = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-a01b6a2e"]]);
|
|
24689
|
+
const propDefine$5 = {
|
|
24690
|
+
linkParam: {
|
|
24691
|
+
// 带入的参数
|
|
24692
|
+
type: String,
|
|
24693
|
+
default: ""
|
|
24694
|
+
},
|
|
24695
|
+
operates: {
|
|
24696
|
+
// 按钮权限码
|
|
24697
|
+
type: String,
|
|
24698
|
+
default: "-"
|
|
24699
|
+
}
|
|
24700
|
+
};
|
|
24701
|
+
const _sfc_main$5 = defineComponent({
|
|
24702
|
+
name: "Platform",
|
|
24703
|
+
components: {
|
|
24704
|
+
GeneralConfiguration
|
|
24705
|
+
},
|
|
24706
|
+
emits: [""],
|
|
24707
|
+
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
24708
|
+
props: propDefine$5,
|
|
24709
|
+
setup(props, ctx) {
|
|
24710
|
+
return new PlatformInstance2(props, ctx);
|
|
24711
|
+
}
|
|
24712
|
+
});
|
|
24713
|
+
class PlatformInstance2 extends BaseInstance {
|
|
24714
|
+
// 全局属性
|
|
24715
|
+
constructor(props, ctx) {
|
|
24716
|
+
super();
|
|
24717
|
+
__publicField(this, "props");
|
|
24718
|
+
__publicField(this, "ctx");
|
|
24719
|
+
// API 实例化
|
|
24720
|
+
__publicField(this, "platformApi", new PlatformApi());
|
|
24721
|
+
//#region 系统平台
|
|
24722
|
+
__publicField(this, "isShowGeneralConfig", ref(false));
|
|
24723
|
+
__publicField(this, "generalConfigTitle", ref("概况配置"));
|
|
24724
|
+
__publicField(this, "platformId", ref(0));
|
|
24725
|
+
__publicField(this, "configType", ref("GC"));
|
|
24726
|
+
__publicField(this, "upList", reactive(Array()));
|
|
24727
|
+
__publicField(this, "platformGridOption", reactive({
|
|
24728
|
+
api: this.platformApi,
|
|
24729
|
+
setting: {
|
|
24730
|
+
searchConfig: {
|
|
24731
|
+
btnSpan: 6,
|
|
24732
|
+
labelWidth: 120,
|
|
24733
|
+
defaultShowSearch: false
|
|
24734
|
+
},
|
|
24735
|
+
toolbarConfig: {
|
|
24736
|
+
isButtonGroup: false
|
|
24737
|
+
},
|
|
24738
|
+
rowConfig: {
|
|
24739
|
+
isCurrent: false,
|
|
24740
|
+
isHover: true
|
|
24741
|
+
},
|
|
24742
|
+
isPagination: true,
|
|
24743
|
+
pageSize: 10
|
|
24744
|
+
},
|
|
24745
|
+
searchOptions: [
|
|
24746
|
+
{
|
|
24747
|
+
field: "SKey",
|
|
24748
|
+
title: "唯一KEY",
|
|
24749
|
+
type: "Input"
|
|
24750
|
+
},
|
|
24751
|
+
{
|
|
24752
|
+
field: "PlatformName",
|
|
24753
|
+
title: "系统名称",
|
|
24754
|
+
type: "Input"
|
|
24755
|
+
},
|
|
24756
|
+
{
|
|
24757
|
+
field: "PlatformAbbreviation",
|
|
24758
|
+
title: "系统简称",
|
|
24759
|
+
type: "Input"
|
|
24760
|
+
},
|
|
24761
|
+
{
|
|
24762
|
+
field: "PlatformNo",
|
|
24763
|
+
title: "系统代号",
|
|
24764
|
+
type: "Input"
|
|
24765
|
+
},
|
|
24766
|
+
{
|
|
24767
|
+
field: "PlatformGroup",
|
|
24768
|
+
title: "系统组",
|
|
24769
|
+
type: "Input"
|
|
24770
|
+
}
|
|
24771
|
+
],
|
|
24772
|
+
toolbars: [
|
|
24773
|
+
{
|
|
24774
|
+
name: "add",
|
|
24775
|
+
onclick: () => {
|
|
24776
|
+
this.doAddPlatform();
|
|
24777
|
+
}
|
|
24778
|
+
}
|
|
24779
|
+
],
|
|
24780
|
+
rightToolbars: [
|
|
24781
|
+
{ name: "refresh" }
|
|
24782
|
+
],
|
|
24783
|
+
columns: [
|
|
24784
|
+
{
|
|
24785
|
+
colType: "seq"
|
|
24786
|
+
},
|
|
24787
|
+
{ colType: "ro", field: "SKey", title: "唯一KEY", width: 240 },
|
|
24788
|
+
{ colType: "ed", field: "PlatformName", title: "系统名称", minWidth: 250 },
|
|
24789
|
+
{ colType: "ed", field: "PlatformAbbreviation", title: "系统简称", width: 150 },
|
|
24790
|
+
{
|
|
24791
|
+
colType: "select",
|
|
24792
|
+
field: "PId",
|
|
24793
|
+
title: "上级平台",
|
|
24794
|
+
width: 150,
|
|
24795
|
+
format: (h2, params) => {
|
|
24796
|
+
const data = this.upList.find((item) => item["value"] == params.row["PId"]);
|
|
24797
|
+
return h2("span", params.row["PId"] == 0 ? "/" : data.text);
|
|
24798
|
+
},
|
|
24799
|
+
select: {
|
|
24800
|
+
data: this.upList,
|
|
24801
|
+
clearable: true,
|
|
24802
|
+
multiple: false
|
|
24803
|
+
}
|
|
24804
|
+
},
|
|
24805
|
+
{ colType: "ed", field: "PlatformNo", title: "系统代号", width: 100 },
|
|
24139
24806
|
{ colType: "ed", field: "PlatformUrl", title: "系统URL", width: 230 },
|
|
24140
|
-
{ colType: "num", field: "OrderNo", title: "排序号", width:
|
|
24807
|
+
{ colType: "num", field: "OrderNo", title: "排序号", width: 80, align: "center" },
|
|
24808
|
+
{
|
|
24809
|
+
title: "概况配置",
|
|
24810
|
+
width: 140,
|
|
24811
|
+
fixed: "right",
|
|
24812
|
+
rowButtons: [
|
|
24813
|
+
{
|
|
24814
|
+
name: "view",
|
|
24815
|
+
text: "项目",
|
|
24816
|
+
onclick: (row) => {
|
|
24817
|
+
this.configType.value = "GC";
|
|
24818
|
+
this.platformId.value = row.Id;
|
|
24819
|
+
this.generalConfigTitle.value = `${row.PlatformName}-项目概况配置`;
|
|
24820
|
+
this.isShowGeneralConfig.value = true;
|
|
24821
|
+
}
|
|
24822
|
+
},
|
|
24823
|
+
{
|
|
24824
|
+
name: "view-",
|
|
24825
|
+
text: "标段",
|
|
24826
|
+
onclick: (row) => {
|
|
24827
|
+
this.configType.value = "BD";
|
|
24828
|
+
this.platformId.value = row.Id;
|
|
24829
|
+
this.generalConfigTitle.value = `${row.PlatformName}-标段概况配置`;
|
|
24830
|
+
this.isShowGeneralConfig.value = true;
|
|
24831
|
+
}
|
|
24832
|
+
}
|
|
24833
|
+
]
|
|
24834
|
+
},
|
|
24141
24835
|
{
|
|
24142
24836
|
title: "操作",
|
|
24143
24837
|
width: 140,
|
|
24838
|
+
fixed: "right",
|
|
24144
24839
|
rowButtons: [
|
|
24145
24840
|
{
|
|
24146
24841
|
name: "edit",
|
|
@@ -24330,7 +25025,7 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
24330
25025
|
}
|
|
24331
25026
|
//#endregion 系统平台编辑 END
|
|
24332
25027
|
}
|
|
24333
|
-
const
|
|
25028
|
+
const Platform_vue_vue_type_style_index_0_scoped_b54fe6c5_lang = "";
|
|
24334
25029
|
const _hoisted_1$5 = { style: { "height": "500px", "overflow-y": "auto" } };
|
|
24335
25030
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24336
25031
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
@@ -24339,6 +25034,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24339
25034
|
const _component_Form = resolveComponent("Form");
|
|
24340
25035
|
const _component_Button = resolveComponent("Button");
|
|
24341
25036
|
const _component_Modal = resolveComponent("Modal");
|
|
25037
|
+
const _component_GeneralConfiguration = resolveComponent("GeneralConfiguration");
|
|
24342
25038
|
const _component_NvPage = resolveComponent("NvPage");
|
|
24343
25039
|
return openBlock(), createBlock(_component_NvPage, {
|
|
24344
25040
|
gutter: 8,
|
|
@@ -24403,12 +25099,38 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24403
25099
|
])
|
|
24404
25100
|
]),
|
|
24405
25101
|
_: 1
|
|
25102
|
+
}, 8, ["modelValue", "title"]),
|
|
25103
|
+
createVNode(_component_Modal, {
|
|
25104
|
+
modelValue: _ctx.isShowGeneralConfig,
|
|
25105
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.isShowGeneralConfig = $event),
|
|
25106
|
+
fullscreen: "",
|
|
25107
|
+
title: _ctx.generalConfigTitle
|
|
25108
|
+
}, {
|
|
25109
|
+
footer: withCtx(() => [
|
|
25110
|
+
createVNode(_component_Button, {
|
|
25111
|
+
type: "text",
|
|
25112
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.isShowGeneralConfig = false)
|
|
25113
|
+
}, {
|
|
25114
|
+
default: withCtx(() => [
|
|
25115
|
+
createTextVNode("关闭")
|
|
25116
|
+
]),
|
|
25117
|
+
_: 1
|
|
25118
|
+
})
|
|
25119
|
+
]),
|
|
25120
|
+
default: withCtx(() => [
|
|
25121
|
+
_ctx.isShowGeneralConfig ? (openBlock(), createBlock(_component_GeneralConfiguration, {
|
|
25122
|
+
key: 0,
|
|
25123
|
+
platformId: _ctx.platformId,
|
|
25124
|
+
configType: _ctx.configType
|
|
25125
|
+
}, null, 8, ["platformId", "configType"])) : createCommentVNode("", true)
|
|
25126
|
+
]),
|
|
25127
|
+
_: 1
|
|
24406
25128
|
}, 8, ["modelValue", "title"])
|
|
24407
25129
|
]),
|
|
24408
25130
|
_: 1
|
|
24409
25131
|
});
|
|
24410
25132
|
}
|
|
24411
|
-
const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-
|
|
25133
|
+
const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-b54fe6c5"]]);
|
|
24412
25134
|
const propDefine$4 = {
|
|
24413
25135
|
linkParam: {
|
|
24414
25136
|
// 带入的参数
|