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