@newview/permission-service 1.2.56 → 1.2.57
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 +7 -0
- package/dist/permission-service.js +871 -217
- package/dist/permission-service.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ import { NvComFormUp } from "@newview/file-ui";
|
|
|
14
14
|
import { SignTaskInfoApi } from "@newview/casign-api";
|
|
15
15
|
import { ProvinceApi, CityApi, AreaApi, DictionaryDetailApi, DictionaryTypeApi } from "@newview/basics-api";
|
|
16
16
|
import { FileApi, OSSFileApi, FileInfoApi } from "@newview/fileservice-api";
|
|
17
|
+
import "@newview/tools";
|
|
17
18
|
import { NvMap } from "@newview/map";
|
|
18
19
|
class DBCenterBaseApi extends BaseApi {
|
|
19
20
|
get ProxyName() {
|
|
@@ -44,7 +45,7 @@ class CorePlatformConfigApi extends DBCenterBaseApi {
|
|
|
44
45
|
this.addHeader("tableName", "core_platform_config");
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
const propDefine$
|
|
48
|
+
const propDefine$o = {
|
|
48
49
|
linkParam: {
|
|
49
50
|
// 带入的参数
|
|
50
51
|
type: String,
|
|
@@ -56,12 +57,12 @@ const propDefine$n = {
|
|
|
56
57
|
default: "-"
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
|
-
const _sfc_main$
|
|
60
|
+
const _sfc_main$o = defineComponent({
|
|
60
61
|
name: "Platform",
|
|
61
62
|
components: {},
|
|
62
63
|
emits: [""],
|
|
63
64
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
64
|
-
props: propDefine$
|
|
65
|
+
props: propDefine$o,
|
|
65
66
|
setup(props, ctx) {
|
|
66
67
|
return new PlatformInstance$1(props, ctx);
|
|
67
68
|
}
|
|
@@ -555,13 +556,13 @@ const _export_sfc = (sfc, props) => {
|
|
|
555
556
|
}
|
|
556
557
|
return target;
|
|
557
558
|
};
|
|
558
|
-
const _hoisted_1$
|
|
559
|
+
const _hoisted_1$n = {
|
|
559
560
|
class: "nv-flex",
|
|
560
561
|
style: { "justify-content": "space-between" }
|
|
561
562
|
};
|
|
562
563
|
const _hoisted_2$c = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
563
564
|
const _hoisted_3$c = { style: { "height": "400px", "overflow-y": "auto" } };
|
|
564
|
-
function _sfc_render$
|
|
565
|
+
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
565
566
|
const _component_NvList = resolveComponent("NvList");
|
|
566
567
|
const _component_Icon = resolveComponent("Icon");
|
|
567
568
|
const _component_Space = resolveComponent("Space");
|
|
@@ -583,7 +584,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
583
584
|
"show-arrow": true
|
|
584
585
|
}, {
|
|
585
586
|
footer: withCtx(() => [
|
|
586
|
-
createElementVNode("div", _hoisted_1$
|
|
587
|
+
createElementVNode("div", _hoisted_1$n, [
|
|
587
588
|
createVNode(_component_Space, null, {
|
|
588
589
|
default: withCtx(() => [
|
|
589
590
|
createVNode(_component_Icon, {
|
|
@@ -779,8 +780,8 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
779
780
|
_: 1
|
|
780
781
|
});
|
|
781
782
|
}
|
|
782
|
-
const Platform = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
783
|
-
const propDefine$
|
|
783
|
+
const Platform = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-7e8dbe7a"]]);
|
|
784
|
+
const propDefine$n = {
|
|
784
785
|
linkParam: {
|
|
785
786
|
// 带入的参数
|
|
786
787
|
type: String,
|
|
@@ -792,12 +793,12 @@ const propDefine$m = {
|
|
|
792
793
|
default: "-"
|
|
793
794
|
}
|
|
794
795
|
};
|
|
795
|
-
const _sfc_main$
|
|
796
|
+
const _sfc_main$n = defineComponent({
|
|
796
797
|
name: "Module",
|
|
797
798
|
components: { SelectPlatform },
|
|
798
799
|
emits: ["change"],
|
|
799
800
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
800
|
-
props: propDefine$
|
|
801
|
+
props: propDefine$n,
|
|
801
802
|
setup(props, ctx) {
|
|
802
803
|
return new ModuleInstance$1(props, ctx);
|
|
803
804
|
}
|
|
@@ -938,7 +939,8 @@ let ModuleInstance$1 = class ModuleInstance extends BaseInstance {
|
|
|
938
939
|
const dict = {
|
|
939
940
|
0: "路由",
|
|
940
941
|
1: "链接",
|
|
941
|
-
2: "低代码"
|
|
942
|
+
2: "低代码",
|
|
943
|
+
3: "静态图片"
|
|
942
944
|
};
|
|
943
945
|
return dict[params.row["LoadMode"]];
|
|
944
946
|
}
|
|
@@ -1113,7 +1115,8 @@ let ModuleInstance$1 = class ModuleInstance extends BaseInstance {
|
|
|
1113
1115
|
datas: [
|
|
1114
1116
|
{ text: "路由", value: 0 },
|
|
1115
1117
|
{ text: "链接", value: 1 },
|
|
1116
|
-
{ text: "低代码", value:
|
|
1118
|
+
{ text: "低代码", value: 2 },
|
|
1119
|
+
{ text: "静态图片", value: 3 }
|
|
1117
1120
|
]
|
|
1118
1121
|
}
|
|
1119
1122
|
},
|
|
@@ -1623,7 +1626,7 @@ let ModuleInstance$1 = class ModuleInstance extends BaseInstance {
|
|
|
1623
1626
|
};
|
|
1624
1627
|
const Module_vue_vue_type_style_index_0_scoped_e41c07fc_lang = "";
|
|
1625
1628
|
const _withScopeId$6 = (n) => (pushScopeId("data-v-e41c07fc"), n = n(), popScopeId(), n);
|
|
1626
|
-
const _hoisted_1$
|
|
1629
|
+
const _hoisted_1$m = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
1627
1630
|
const _hoisted_2$b = {
|
|
1628
1631
|
class: "import-module",
|
|
1629
1632
|
style: { "height": "650px", "position": "relative" }
|
|
@@ -1634,7 +1637,7 @@ const _hoisted_5$9 = { style: { "height": "calc(100% - 0px)" } };
|
|
|
1634
1637
|
const _hoisted_6$9 = { style: { "width": "calc(100% - 570px)", "height": "100%", "margin-left": "10px", "display": "inline-block" } };
|
|
1635
1638
|
const _hoisted_7$7 = { style: { "height": "calc(100% - 0px)" } };
|
|
1636
1639
|
const _hoisted_8$7 = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "点击选择要放置的位置!", -1));
|
|
1637
|
-
function _sfc_render$
|
|
1640
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1638
1641
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
1639
1642
|
const _component_Radio = resolveComponent("Radio");
|
|
1640
1643
|
const _component_RadioGroup = resolveComponent("RadioGroup");
|
|
@@ -1722,7 +1725,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1722
1725
|
}, 8, ["loading", "onClick"])
|
|
1723
1726
|
]),
|
|
1724
1727
|
default: withCtx(() => [
|
|
1725
|
-
createElementVNode("div", _hoisted_1$
|
|
1728
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
1726
1729
|
createVNode(_component_Form, {
|
|
1727
1730
|
model: _ctx.moduleFormModel,
|
|
1728
1731
|
"label-width": 90
|
|
@@ -1857,8 +1860,8 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1857
1860
|
_: 1
|
|
1858
1861
|
});
|
|
1859
1862
|
}
|
|
1860
|
-
const Module = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1861
|
-
const propDefine$
|
|
1863
|
+
const Module = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-e41c07fc"]]);
|
|
1864
|
+
const propDefine$m = {
|
|
1862
1865
|
linkParam: {
|
|
1863
1866
|
// 带入的参数
|
|
1864
1867
|
type: String,
|
|
@@ -1870,12 +1873,12 @@ const propDefine$l = {
|
|
|
1870
1873
|
default: "-"
|
|
1871
1874
|
}
|
|
1872
1875
|
};
|
|
1873
|
-
const _sfc_main$
|
|
1876
|
+
const _sfc_main$m = defineComponent({
|
|
1874
1877
|
name: "Role",
|
|
1875
1878
|
components: { SelectPlatform },
|
|
1876
1879
|
emits: [""],
|
|
1877
1880
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
1878
|
-
props: propDefine$
|
|
1881
|
+
props: propDefine$m,
|
|
1879
1882
|
setup(props, ctx) {
|
|
1880
1883
|
return new RoleInstance$1(props, ctx);
|
|
1881
1884
|
}
|
|
@@ -2320,7 +2323,6 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
|
|
|
2320
2323
|
if (value) {
|
|
2321
2324
|
params.row.IsChk = value;
|
|
2322
2325
|
this.setRoleModuleIsChange(params.row);
|
|
2323
|
-
this.changeParentRoleModuleStatus(params.row);
|
|
2324
2326
|
}
|
|
2325
2327
|
}
|
|
2326
2328
|
}, () => chkList);
|
|
@@ -2606,13 +2608,13 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
|
|
|
2606
2608
|
isChange = true;
|
|
2607
2609
|
} else {
|
|
2608
2610
|
for (const item of data.OrgRoleOperates) {
|
|
2609
|
-
if (data.RoleOperates.filter((
|
|
2611
|
+
if (data.RoleOperates.filter((d2) => d2 == item).length == 0) {
|
|
2610
2612
|
isChange = true;
|
|
2611
2613
|
break;
|
|
2612
2614
|
}
|
|
2613
2615
|
}
|
|
2614
2616
|
for (const item of data.RoleOperates) {
|
|
2615
|
-
if (data.OrgRoleOperates.filter((
|
|
2617
|
+
if (data.OrgRoleOperates.filter((d2) => d2 == item).length == 0) {
|
|
2616
2618
|
isChange = true;
|
|
2617
2619
|
break;
|
|
2618
2620
|
}
|
|
@@ -2628,7 +2630,7 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
|
|
|
2628
2630
|
const datas = this.moduleGrid.value.getDatas();
|
|
2629
2631
|
const parentDatas = datas.filter((item) => item.Id == data.PId && item.IsChk == !data.IsChk);
|
|
2630
2632
|
for (const item of parentDatas) {
|
|
2631
|
-
item.IsChk = data.IsChk == false ? datas.filter((
|
|
2633
|
+
item.IsChk = data.IsChk == false ? datas.filter((d2) => d2.PId == item.Id && d2.IsChk == true).length > 0 : true;
|
|
2632
2634
|
this.setRoleModuleIsChange(item);
|
|
2633
2635
|
this.changeParentRoleModuleStatus(item);
|
|
2634
2636
|
}
|
|
@@ -2667,14 +2669,14 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
|
|
|
2667
2669
|
//#endregion 导入角色 END
|
|
2668
2670
|
};
|
|
2669
2671
|
const Role_vue_vue_type_style_index_0_scoped_a12a6a42_lang = "";
|
|
2670
|
-
const _hoisted_1$
|
|
2672
|
+
const _hoisted_1$l = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
|
|
2671
2673
|
const _hoisted_2$a = {
|
|
2672
2674
|
class: "import-role",
|
|
2673
2675
|
style: { "height": "610px", "position": "relative" }
|
|
2674
2676
|
};
|
|
2675
2677
|
const _hoisted_3$a = { style: { "width": "100%", "height": "100%" } };
|
|
2676
2678
|
const _hoisted_4$a = { style: { "height": "530px", "overflow-y": "auto" } };
|
|
2677
|
-
function _sfc_render$
|
|
2679
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2678
2680
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
2679
2681
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
2680
2682
|
const _component_NvBox = resolveComponent("NvBox");
|
|
@@ -2740,7 +2742,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2740
2742
|
}, 8, ["loading", "onClick"])
|
|
2741
2743
|
]),
|
|
2742
2744
|
default: withCtx(() => [
|
|
2743
|
-
createElementVNode("div", _hoisted_1$
|
|
2745
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
2744
2746
|
createVNode(_component_NvGrid, {
|
|
2745
2747
|
ref: "moduleGrid",
|
|
2746
2748
|
option: _ctx.moduleGridOption
|
|
@@ -2874,8 +2876,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2874
2876
|
_: 1
|
|
2875
2877
|
});
|
|
2876
2878
|
}
|
|
2877
|
-
const Role = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2878
|
-
const propDefine$
|
|
2879
|
+
const Role = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-a12a6a42"]]);
|
|
2880
|
+
const propDefine$l = {
|
|
2879
2881
|
linkParam: {
|
|
2880
2882
|
// 带入的参数
|
|
2881
2883
|
type: String,
|
|
@@ -2887,12 +2889,12 @@ const propDefine$k = {
|
|
|
2887
2889
|
default: "-"
|
|
2888
2890
|
}
|
|
2889
2891
|
};
|
|
2890
|
-
const _sfc_main$
|
|
2892
|
+
const _sfc_main$l = defineComponent({
|
|
2891
2893
|
name: "InstitutionType",
|
|
2892
2894
|
components: {},
|
|
2893
2895
|
emits: [""],
|
|
2894
2896
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
2895
|
-
props: propDefine$
|
|
2897
|
+
props: propDefine$l,
|
|
2896
2898
|
setup(props, ctx) {
|
|
2897
2899
|
return new InstitutionTypeInstance(props, ctx);
|
|
2898
2900
|
}
|
|
@@ -3094,8 +3096,8 @@ class InstitutionTypeInstance extends BaseInstance {
|
|
|
3094
3096
|
//#endregion 编辑机构类型 END
|
|
3095
3097
|
}
|
|
3096
3098
|
const InstitutionType_vue_vue_type_style_index_0_scoped_947fe129_lang = "";
|
|
3097
|
-
const _hoisted_1$
|
|
3098
|
-
function _sfc_render$
|
|
3099
|
+
const _hoisted_1$k = { style: { "height": "350px", "overflow-y": "auto" } };
|
|
3100
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3099
3101
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
3100
3102
|
const _component_NvBox = resolveComponent("NvBox");
|
|
3101
3103
|
const _component_NvComForm = resolveComponent("NvComForm");
|
|
@@ -3148,7 +3150,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3148
3150
|
}, 8, ["loading", "onClick"])
|
|
3149
3151
|
]),
|
|
3150
3152
|
default: withCtx(() => [
|
|
3151
|
-
createElementVNode("div", _hoisted_1$
|
|
3153
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
3152
3154
|
createVNode(_component_Form, {
|
|
3153
3155
|
ref: "refInstitutionTypeForm",
|
|
3154
3156
|
model: _ctx.institutionTypeFormModel,
|
|
@@ -3170,8 +3172,8 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3170
3172
|
_: 1
|
|
3171
3173
|
});
|
|
3172
3174
|
}
|
|
3173
|
-
const InstitutionType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3174
|
-
const propDefine$
|
|
3175
|
+
const InstitutionType = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-947fe129"]]);
|
|
3176
|
+
const propDefine$k = {
|
|
3175
3177
|
linkParam: {
|
|
3176
3178
|
// 带入的参数
|
|
3177
3179
|
type: String,
|
|
@@ -3183,12 +3185,12 @@ const propDefine$j = {
|
|
|
3183
3185
|
default: "-"
|
|
3184
3186
|
}
|
|
3185
3187
|
};
|
|
3186
|
-
const _sfc_main$
|
|
3188
|
+
const _sfc_main$k = defineComponent({
|
|
3187
3189
|
name: "Institution",
|
|
3188
3190
|
components: { SelectPlatform, NvComFormUp },
|
|
3189
3191
|
emits: [""],
|
|
3190
3192
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
3191
|
-
props: propDefine$
|
|
3193
|
+
props: propDefine$k,
|
|
3192
3194
|
setup(props, ctx) {
|
|
3193
3195
|
return new InstitutionInstance$1(props, ctx);
|
|
3194
3196
|
}
|
|
@@ -4108,7 +4110,7 @@ let InstitutionInstance$1 = class InstitutionInstance extends BaseInstance {
|
|
|
4108
4110
|
//#endregion 绑定角色 END
|
|
4109
4111
|
};
|
|
4110
4112
|
const Institution_vue_vue_type_style_index_0_scoped_9978b252_lang = "";
|
|
4111
|
-
const _hoisted_1$
|
|
4113
|
+
const _hoisted_1$j = { style: { "width": "100%", "height": "100%", "position": "relative" } };
|
|
4112
4114
|
const _hoisted_2$9 = { style: { "height": "500px", "overflow-y": "auto" } };
|
|
4113
4115
|
const _hoisted_3$9 = {
|
|
4114
4116
|
class: "import-institution",
|
|
@@ -4117,7 +4119,7 @@ const _hoisted_3$9 = {
|
|
|
4117
4119
|
const _hoisted_4$9 = { style: { "width": "100%", "height": "100%" } };
|
|
4118
4120
|
const _hoisted_5$8 = { style: { "height": "calc(100%)" } };
|
|
4119
4121
|
const _hoisted_6$8 = { style: { "height": "610px", "overflow-y": "auto", "position": "relative" } };
|
|
4120
|
-
function _sfc_render$
|
|
4122
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4121
4123
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
4122
4124
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
4123
4125
|
const _component_NvBox = resolveComponent("NvBox");
|
|
@@ -4187,7 +4189,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4187
4189
|
})
|
|
4188
4190
|
]),
|
|
4189
4191
|
default: withCtx(() => [
|
|
4190
|
-
createElementVNode("div", _hoisted_1$
|
|
4192
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
4191
4193
|
createVNode(_component_Tree, {
|
|
4192
4194
|
data: _ctx.institutionTree,
|
|
4193
4195
|
render: _ctx.renderContent,
|
|
@@ -4385,14 +4387,14 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4385
4387
|
_: 1
|
|
4386
4388
|
});
|
|
4387
4389
|
}
|
|
4388
|
-
const Institution = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4389
|
-
const propDefine$
|
|
4390
|
-
const _sfc_main$
|
|
4390
|
+
const Institution = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-9978b252"]]);
|
|
4391
|
+
const propDefine$j = {};
|
|
4392
|
+
const _sfc_main$j = defineComponent({
|
|
4391
4393
|
name: "LoginLog",
|
|
4392
4394
|
components: {},
|
|
4393
4395
|
emits: [""],
|
|
4394
4396
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
4395
|
-
props: propDefine$
|
|
4397
|
+
props: propDefine$j,
|
|
4396
4398
|
setup(props, ctx) {
|
|
4397
4399
|
return new LoginLogInstance$1(props, ctx);
|
|
4398
4400
|
}
|
|
@@ -4497,18 +4499,18 @@ let LoginLogInstance$1 = class LoginLogInstance extends BaseInstance {
|
|
|
4497
4499
|
//#endregion 登录日志 END
|
|
4498
4500
|
};
|
|
4499
4501
|
const LoginLog_vue_vue_type_style_index_0_scoped_4e2e0184_lang = "";
|
|
4500
|
-
const _hoisted_1$
|
|
4501
|
-
function _sfc_render$
|
|
4502
|
+
const _hoisted_1$i = { class: "loginLog" };
|
|
4503
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4502
4504
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
4503
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4505
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
4504
4506
|
createVNode(_component_NvGrid, {
|
|
4505
4507
|
ref: "loginLogGrid",
|
|
4506
4508
|
option: _ctx.loginLogGridOption
|
|
4507
4509
|
}, null, 8, ["option"])
|
|
4508
4510
|
]);
|
|
4509
4511
|
}
|
|
4510
|
-
const LoginLog$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4511
|
-
const propDefine$
|
|
4512
|
+
const LoginLog$1 = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-4e2e0184"]]);
|
|
4513
|
+
const propDefine$i = {
|
|
4512
4514
|
linkParam: {
|
|
4513
4515
|
// 带入的参数
|
|
4514
4516
|
type: String,
|
|
@@ -4520,12 +4522,12 @@ const propDefine$h = {
|
|
|
4520
4522
|
default: "-"
|
|
4521
4523
|
}
|
|
4522
4524
|
};
|
|
4523
|
-
const _sfc_main$
|
|
4525
|
+
const _sfc_main$i = defineComponent({
|
|
4524
4526
|
name: "Userinfor",
|
|
4525
4527
|
components: { SelectPlatform, LoginLog: LoginLog$1, BaseLogin, NvComFormUp },
|
|
4526
4528
|
emits: [""],
|
|
4527
4529
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
4528
|
-
props: propDefine$
|
|
4530
|
+
props: propDefine$i,
|
|
4529
4531
|
setup(props, ctx) {
|
|
4530
4532
|
return new UserinforInstance$1(props, ctx);
|
|
4531
4533
|
}
|
|
@@ -5056,7 +5058,7 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
|
|
|
5056
5058
|
let userRoles = this.utilities.parseApiResult(apiResult);
|
|
5057
5059
|
let insertRecords = [];
|
|
5058
5060
|
for (const item of chkDatas) {
|
|
5059
|
-
if (userRoles.findIndex((
|
|
5061
|
+
if (userRoles.findIndex((d2) => d2.RoleId == item.Id) == -1) {
|
|
5060
5062
|
insertRecords.push({
|
|
5061
5063
|
PlatformId: this.selectedPlatform.Id,
|
|
5062
5064
|
UserId: this.currentUser.Id,
|
|
@@ -5066,7 +5068,7 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
|
|
|
5066
5068
|
}
|
|
5067
5069
|
let deleteRecords = [];
|
|
5068
5070
|
for (const item of userRoles) {
|
|
5069
|
-
if (chkDatas.findIndex((
|
|
5071
|
+
if (chkDatas.findIndex((d2) => d2.Id == item.RoleId) == -1) {
|
|
5070
5072
|
deleteRecords.push(item.Id);
|
|
5071
5073
|
}
|
|
5072
5074
|
}
|
|
@@ -5763,7 +5765,7 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
|
|
|
5763
5765
|
};
|
|
5764
5766
|
const Userinfor_vue_vue_type_style_index_0_scoped_3d0ba4ac_lang = "";
|
|
5765
5767
|
const _withScopeId$5 = (n) => (pushScopeId("data-v-3d0ba4ac"), n = n(), popScopeId(), n);
|
|
5766
|
-
const _hoisted_1$
|
|
5768
|
+
const _hoisted_1$h = { class: "instree-search" };
|
|
5767
5769
|
const _hoisted_2$8 = { class: "instree-list" };
|
|
5768
5770
|
const _hoisted_3$8 = { style: { "height": "774px", "overflow-y": "auto" } };
|
|
5769
5771
|
const _hoisted_4$8 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
|
|
@@ -5790,7 +5792,7 @@ const _hoisted_18$3 = {
|
|
|
5790
5792
|
key: 1,
|
|
5791
5793
|
class: "nv-c-v-center"
|
|
5792
5794
|
};
|
|
5793
|
-
function _sfc_render$
|
|
5795
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5794
5796
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
5795
5797
|
const _component_Tree = resolveComponent("Tree");
|
|
5796
5798
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -5840,7 +5842,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5840
5842
|
})
|
|
5841
5843
|
]),
|
|
5842
5844
|
default: withCtx(() => [
|
|
5843
|
-
createElementVNode("div", _hoisted_1$
|
|
5845
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
5844
5846
|
createVNode(_component_SelectPlatform, {
|
|
5845
5847
|
onSelect: _ctx.doChangePlatform,
|
|
5846
5848
|
width: "100%",
|
|
@@ -6253,8 +6255,8 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6253
6255
|
_: 1
|
|
6254
6256
|
});
|
|
6255
6257
|
}
|
|
6256
|
-
const Userinfor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6257
|
-
const propDefine$
|
|
6258
|
+
const Userinfor = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-3d0ba4ac"]]);
|
|
6259
|
+
const propDefine$h = {
|
|
6258
6260
|
linkParam: {
|
|
6259
6261
|
// 带入的参数
|
|
6260
6262
|
type: String,
|
|
@@ -6266,12 +6268,12 @@ const propDefine$g = {
|
|
|
6266
6268
|
default: "-"
|
|
6267
6269
|
}
|
|
6268
6270
|
};
|
|
6269
|
-
const _sfc_main$
|
|
6271
|
+
const _sfc_main$h = defineComponent({
|
|
6270
6272
|
name: "UserinforSL",
|
|
6271
6273
|
components: { SelectPlatform, LoginLog: LoginLog$1, BaseLogin, NvComFormUp },
|
|
6272
6274
|
emits: [""],
|
|
6273
6275
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
6274
|
-
props: propDefine$
|
|
6276
|
+
props: propDefine$h,
|
|
6275
6277
|
setup(props, ctx) {
|
|
6276
6278
|
return new UserinforSLInstance$1(props, ctx);
|
|
6277
6279
|
}
|
|
@@ -6809,7 +6811,7 @@ let UserinforSLInstance$1 = class UserinforSLInstance extends BaseInstance {
|
|
|
6809
6811
|
let userRoles = this.utilities.parseApiResult(apiResult);
|
|
6810
6812
|
let insertRecords = [];
|
|
6811
6813
|
for (const item of chkDatas) {
|
|
6812
|
-
if (userRoles.findIndex((
|
|
6814
|
+
if (userRoles.findIndex((d2) => d2.RoleId == item.Id) == -1) {
|
|
6813
6815
|
insertRecords.push({
|
|
6814
6816
|
PlatformId: this.selectedPlatform.Id,
|
|
6815
6817
|
UserId: this.currentUser.Id,
|
|
@@ -6819,7 +6821,7 @@ let UserinforSLInstance$1 = class UserinforSLInstance extends BaseInstance {
|
|
|
6819
6821
|
}
|
|
6820
6822
|
let deleteRecords = [];
|
|
6821
6823
|
for (const item of userRoles) {
|
|
6822
|
-
if (chkDatas.findIndex((
|
|
6824
|
+
if (chkDatas.findIndex((d2) => d2.Id == item.RoleId) == -1) {
|
|
6823
6825
|
deleteRecords.push(item.Id);
|
|
6824
6826
|
}
|
|
6825
6827
|
}
|
|
@@ -7634,7 +7636,7 @@ let UserinforSLInstance$1 = class UserinforSLInstance extends BaseInstance {
|
|
|
7634
7636
|
};
|
|
7635
7637
|
const UserinforSL_vue_vue_type_style_index_0_scoped_f0eab966_lang = "";
|
|
7636
7638
|
const _withScopeId$4 = (n) => (pushScopeId("data-v-f0eab966"), n = n(), popScopeId(), n);
|
|
7637
|
-
const _hoisted_1$
|
|
7639
|
+
const _hoisted_1$g = { class: "instree-search" };
|
|
7638
7640
|
const _hoisted_2$7 = { class: "instree-list" };
|
|
7639
7641
|
const _hoisted_3$7 = { style: { "height": "774px", "overflow-y": "auto" } };
|
|
7640
7642
|
const _hoisted_4$7 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
|
|
@@ -7666,7 +7668,7 @@ const _hoisted_20$1 = {
|
|
|
7666
7668
|
key: 1,
|
|
7667
7669
|
class: "nv-c-v-center"
|
|
7668
7670
|
};
|
|
7669
|
-
function _sfc_render$
|
|
7671
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7670
7672
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
7671
7673
|
const _component_Tree = resolveComponent("Tree");
|
|
7672
7674
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -7718,7 +7720,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7718
7720
|
})
|
|
7719
7721
|
]),
|
|
7720
7722
|
default: withCtx(() => [
|
|
7721
|
-
createElementVNode("div", _hoisted_1$
|
|
7723
|
+
createElementVNode("div", _hoisted_1$g, [
|
|
7722
7724
|
createVNode(_component_SelectPlatform, {
|
|
7723
7725
|
onSelect: _ctx.doChangePlatform,
|
|
7724
7726
|
width: "100%",
|
|
@@ -8202,8 +8204,8 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8202
8204
|
_: 1
|
|
8203
8205
|
});
|
|
8204
8206
|
}
|
|
8205
|
-
const UserinforSL = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8206
|
-
const propDefine$
|
|
8207
|
+
const UserinforSL = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-f0eab966"]]);
|
|
8208
|
+
const propDefine$g = {
|
|
8207
8209
|
linkParam: {
|
|
8208
8210
|
// 带入的参数
|
|
8209
8211
|
type: String,
|
|
@@ -8215,12 +8217,12 @@ const propDefine$f = {
|
|
|
8215
8217
|
default: "-"
|
|
8216
8218
|
}
|
|
8217
8219
|
};
|
|
8218
|
-
const _sfc_main$
|
|
8220
|
+
const _sfc_main$g = defineComponent({
|
|
8219
8221
|
name: "Enterprise",
|
|
8220
8222
|
components: { SelectPlatform },
|
|
8221
8223
|
emits: [""],
|
|
8222
8224
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
8223
|
-
props: propDefine$
|
|
8225
|
+
props: propDefine$g,
|
|
8224
8226
|
setup(props, ctx) {
|
|
8225
8227
|
return new EnterpriseInstance$1(props, ctx);
|
|
8226
8228
|
}
|
|
@@ -8607,8 +8609,8 @@ let EnterpriseInstance$1 = class EnterpriseInstance extends BaseInstance {
|
|
|
8607
8609
|
//#endregion 业务逻辑 编辑企业信息 END
|
|
8608
8610
|
};
|
|
8609
8611
|
const Enterprise_vue_vue_type_style_index_0_scoped_58aa3e77_lang = "";
|
|
8610
|
-
const _hoisted_1$
|
|
8611
|
-
function _sfc_render$
|
|
8612
|
+
const _hoisted_1$f = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
8613
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8612
8614
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
8613
8615
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
8614
8616
|
const _component_NvBox = resolveComponent("NvBox");
|
|
@@ -8676,7 +8678,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8676
8678
|
}, 8, ["loading", "onClick"])) : createCommentVNode("", true)
|
|
8677
8679
|
]),
|
|
8678
8680
|
default: withCtx(() => [
|
|
8679
|
-
createElementVNode("div", _hoisted_1$
|
|
8681
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
8680
8682
|
createVNode(_component_Form, {
|
|
8681
8683
|
model: _ctx.enterpriseFormModel,
|
|
8682
8684
|
"label-width": 90
|
|
@@ -8699,8 +8701,8 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8699
8701
|
_: 1
|
|
8700
8702
|
});
|
|
8701
8703
|
}
|
|
8702
|
-
const Enterprise = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8703
|
-
const propDefine$
|
|
8704
|
+
const Enterprise = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-58aa3e77"]]);
|
|
8705
|
+
const propDefine$f = {
|
|
8704
8706
|
linkParam: {
|
|
8705
8707
|
// 带入的参数
|
|
8706
8708
|
type: String,
|
|
@@ -8712,14 +8714,14 @@ const propDefine$e = {
|
|
|
8712
8714
|
default: "-"
|
|
8713
8715
|
}
|
|
8714
8716
|
};
|
|
8715
|
-
const _sfc_main$
|
|
8717
|
+
const _sfc_main$f = defineComponent({
|
|
8716
8718
|
name: "Information",
|
|
8717
8719
|
components: {
|
|
8718
8720
|
NvComFormUp
|
|
8719
8721
|
},
|
|
8720
8722
|
emits: [""],
|
|
8721
8723
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
8722
|
-
props: propDefine$
|
|
8724
|
+
props: propDefine$f,
|
|
8723
8725
|
setup(props, ctx) {
|
|
8724
8726
|
return new InformationInstance(props, ctx);
|
|
8725
8727
|
}
|
|
@@ -9084,8 +9086,8 @@ class InformationInstance extends BaseInstance {
|
|
|
9084
9086
|
}
|
|
9085
9087
|
//#endregion 编辑信息 END
|
|
9086
9088
|
}
|
|
9087
|
-
const _hoisted_1$
|
|
9088
|
-
function _sfc_render$
|
|
9089
|
+
const _hoisted_1$e = { style: { "overflow-y": "auto" } };
|
|
9090
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9089
9091
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
9090
9092
|
const _component_NvBox = resolveComponent("NvBox");
|
|
9091
9093
|
const _component_NvComFormUp = resolveComponent("NvComFormUp");
|
|
@@ -9142,7 +9144,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9142
9144
|
}, 8, ["loading", "onClick"])
|
|
9143
9145
|
]),
|
|
9144
9146
|
default: withCtx(() => [
|
|
9145
|
-
createElementVNode("div", _hoisted_1$
|
|
9147
|
+
createElementVNode("div", _hoisted_1$e, [
|
|
9146
9148
|
createVNode(_component_Form, {
|
|
9147
9149
|
ref: "refRoleForm",
|
|
9148
9150
|
model: _ctx.roleFormModel,
|
|
@@ -9164,8 +9166,8 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9164
9166
|
_: 1
|
|
9165
9167
|
});
|
|
9166
9168
|
}
|
|
9167
|
-
const Information = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9168
|
-
const propDefine$
|
|
9169
|
+
const Information = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f]]);
|
|
9170
|
+
const propDefine$e = {
|
|
9169
9171
|
linkParam: {
|
|
9170
9172
|
// 带入的参数
|
|
9171
9173
|
type: String,
|
|
@@ -9187,12 +9189,12 @@ const propDefine$d = {
|
|
|
9187
9189
|
default: "BD"
|
|
9188
9190
|
}
|
|
9189
9191
|
};
|
|
9190
|
-
const _sfc_main$
|
|
9192
|
+
const _sfc_main$e = defineComponent({
|
|
9191
9193
|
name: "GeneralConfiguration",
|
|
9192
9194
|
components: {},
|
|
9193
9195
|
emits: [""],
|
|
9194
9196
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
9195
|
-
props: propDefine$
|
|
9197
|
+
props: propDefine$e,
|
|
9196
9198
|
setup(props, ctx) {
|
|
9197
9199
|
return new GeneralConfigurationInstance(props, ctx);
|
|
9198
9200
|
}
|
|
@@ -9467,9 +9469,9 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
9467
9469
|
}
|
|
9468
9470
|
let gridRes = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(this.nowRow.ProjectConfig)) : this.utilities.deepCopy(JSON.parse(this.nowRow.ConstructConfig));
|
|
9469
9471
|
gridRes.forEach((x) => {
|
|
9470
|
-
data.forEach((
|
|
9471
|
-
if (x.model ==
|
|
9472
|
-
Object.assign(x,
|
|
9472
|
+
data.forEach((s2) => {
|
|
9473
|
+
if (x.model == s2.model) {
|
|
9474
|
+
Object.assign(x, s2);
|
|
9473
9475
|
}
|
|
9474
9476
|
});
|
|
9475
9477
|
});
|
|
@@ -9504,9 +9506,9 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
9504
9506
|
onOk: async () => {
|
|
9505
9507
|
let res = this.props.configType == "GC" ? this.utilities.deepCopy(JSON.parse(this.nowRow.ProjectConfig)) : this.utilities.deepCopy(JSON.parse(this.nowRow.ConstructConfig));
|
|
9506
9508
|
data.forEach((x) => {
|
|
9507
|
-
res.forEach((
|
|
9508
|
-
if (x.prop ==
|
|
9509
|
-
res.splice(
|
|
9509
|
+
res.forEach((s2, i2) => {
|
|
9510
|
+
if (x.prop == s2.prop) {
|
|
9511
|
+
res.splice(i2, 1);
|
|
9510
9512
|
}
|
|
9511
9513
|
});
|
|
9512
9514
|
});
|
|
@@ -9622,7 +9624,7 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
9622
9624
|
}
|
|
9623
9625
|
this.isShowDicModalLoading.value = true;
|
|
9624
9626
|
let newArr = [];
|
|
9625
|
-
data.forEach((x,
|
|
9627
|
+
data.forEach((x, i2) => {
|
|
9626
9628
|
newArr.push({
|
|
9627
9629
|
label: x.DetailInfor,
|
|
9628
9630
|
prop: x.DetailValue,
|
|
@@ -9631,7 +9633,7 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
9631
9633
|
seltype: "Input",
|
|
9632
9634
|
append: "",
|
|
9633
9635
|
span: 8,
|
|
9634
|
-
orderNum:
|
|
9636
|
+
orderNum: i2,
|
|
9635
9637
|
// 排序号
|
|
9636
9638
|
requiredd: 1,
|
|
9637
9639
|
// 1 必填 0 可空
|
|
@@ -9719,8 +9721,8 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
9719
9721
|
//#endregion 概况选择modal END
|
|
9720
9722
|
}
|
|
9721
9723
|
const GeneralConfiguration_vue_vue_type_style_index_0_scoped_a01b6a2e_lang = "";
|
|
9722
|
-
const _hoisted_1$
|
|
9723
|
-
function _sfc_render$
|
|
9724
|
+
const _hoisted_1$d = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
9725
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9724
9726
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
9725
9727
|
const _component_NvBox = resolveComponent("NvBox");
|
|
9726
9728
|
const _component_Button = resolveComponent("Button");
|
|
@@ -9772,7 +9774,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9772
9774
|
}, 8, ["loading", "onClick"])
|
|
9773
9775
|
]),
|
|
9774
9776
|
default: withCtx(() => [
|
|
9775
|
-
createElementVNode("div", _hoisted_1$
|
|
9777
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
9776
9778
|
createVNode(_component_NvGrid, {
|
|
9777
9779
|
ref: "dicModalGrid",
|
|
9778
9780
|
option: _ctx.dicModalGridOption
|
|
@@ -9785,8 +9787,8 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9785
9787
|
_: 1
|
|
9786
9788
|
});
|
|
9787
9789
|
}
|
|
9788
|
-
const GeneralConfiguration = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9789
|
-
const propDefine$
|
|
9790
|
+
const GeneralConfiguration = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-a01b6a2e"]]);
|
|
9791
|
+
const propDefine$d = {
|
|
9790
9792
|
linkParam: {
|
|
9791
9793
|
// 带入的参数
|
|
9792
9794
|
type: String,
|
|
@@ -9798,7 +9800,7 @@ const propDefine$c = {
|
|
|
9798
9800
|
default: "-"
|
|
9799
9801
|
}
|
|
9800
9802
|
};
|
|
9801
|
-
const _sfc_main$
|
|
9803
|
+
const _sfc_main$d = defineComponent({
|
|
9802
9804
|
name: "Platform",
|
|
9803
9805
|
components: {
|
|
9804
9806
|
GeneralConfiguration,
|
|
@@ -9806,7 +9808,7 @@ const _sfc_main$c = defineComponent({
|
|
|
9806
9808
|
},
|
|
9807
9809
|
emits: [""],
|
|
9808
9810
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
9809
|
-
props: propDefine$
|
|
9811
|
+
props: propDefine$d,
|
|
9810
9812
|
setup(props, ctx) {
|
|
9811
9813
|
return new PlatformInstance2(props, ctx);
|
|
9812
9814
|
}
|
|
@@ -10060,6 +10062,7 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
10060
10062
|
PlatformType: 1,
|
|
10061
10063
|
AppId: "",
|
|
10062
10064
|
AppSecret: "",
|
|
10065
|
+
PlatformYear: "",
|
|
10063
10066
|
LastUpdateUserId: this.storageInfo.getUser().Id,
|
|
10064
10067
|
LastUpdateUserName: this.storageInfo.getUser().UserName,
|
|
10065
10068
|
LastUpdateDate: this.utilities.getCurrentDate()
|
|
@@ -10095,6 +10098,7 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
10095
10098
|
multiple: false
|
|
10096
10099
|
}
|
|
10097
10100
|
},
|
|
10101
|
+
{ model: "PlatformYear", prop: "PlatformYear", label: "项目年份", type: "DatePicker", datePickerProp: { transfer: true, type: "year" }, span: 24 },
|
|
10098
10102
|
{ model: "AppId", label: "小程序AppId", prop: "AppId", type: "Input", span: 24 },
|
|
10099
10103
|
{ model: "AppSecret", label: "小程序秘钥", prop: "AppSecret", type: "Input", span: 24 }
|
|
10100
10104
|
]));
|
|
@@ -10134,7 +10138,7 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
10134
10138
|
}, true);
|
|
10135
10139
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
10136
10140
|
this.platformGrid.value.loadData(async (option) => {
|
|
10137
|
-
const apiResult = await this.platformApi.getEntitiesPageDynamic(option.page, option.pageSize, QueryWrapper.create().eq("Id", platId).or((
|
|
10141
|
+
const apiResult = await this.platformApi.getEntitiesPageDynamic(option.page, option.pageSize, QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
|
|
10138
10142
|
PId: platId
|
|
10139
10143
|
})).orderBy(["OrderNo"]));
|
|
10140
10144
|
const data = this.utilities.parseApiResult(apiResult);
|
|
@@ -10229,7 +10233,8 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
10229
10233
|
AppSecret: "",
|
|
10230
10234
|
LastUpdateUserId: this.storageInfo.getUser().Id,
|
|
10231
10235
|
LastUpdateUserName: this.storageInfo.getUser().UserName,
|
|
10232
|
-
LastUpdateDate: this.utilities.getCurrentDate()
|
|
10236
|
+
LastUpdateDate: this.utilities.getCurrentDate(),
|
|
10237
|
+
PlatformYear: ""
|
|
10233
10238
|
};
|
|
10234
10239
|
} else {
|
|
10235
10240
|
this.platConfigFormModel.value = res;
|
|
@@ -10242,8 +10247,8 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
10242
10247
|
//#endregion 扩展信息 END
|
|
10243
10248
|
}
|
|
10244
10249
|
const Platform_vue_vue_type_style_index_0_scoped_d318c7ed_lang = "";
|
|
10245
|
-
const _hoisted_1$
|
|
10246
|
-
function _sfc_render$
|
|
10250
|
+
const _hoisted_1$c = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
10251
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10247
10252
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
10248
10253
|
const _component_NvBox = resolveComponent("NvBox");
|
|
10249
10254
|
const _component_NvComForm = resolveComponent("NvComForm");
|
|
@@ -10298,7 +10303,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10298
10303
|
}, 8, ["loading", "onClick"])
|
|
10299
10304
|
]),
|
|
10300
10305
|
default: withCtx(() => [
|
|
10301
|
-
createElementVNode("div", _hoisted_1$
|
|
10306
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
10302
10307
|
createVNode(_component_Form, {
|
|
10303
10308
|
ref: "refPlatformForm",
|
|
10304
10309
|
model: _ctx.platformFormModel,
|
|
@@ -10389,8 +10394,8 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10389
10394
|
_: 1
|
|
10390
10395
|
});
|
|
10391
10396
|
}
|
|
10392
|
-
const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10393
|
-
const propDefine$
|
|
10397
|
+
const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-d318c7ed"]]);
|
|
10398
|
+
const propDefine$c = {
|
|
10394
10399
|
linkParam: {
|
|
10395
10400
|
// 带入的参数
|
|
10396
10401
|
type: String,
|
|
@@ -10402,12 +10407,12 @@ const propDefine$b = {
|
|
|
10402
10407
|
default: "-"
|
|
10403
10408
|
}
|
|
10404
10409
|
};
|
|
10405
|
-
const _sfc_main$
|
|
10410
|
+
const _sfc_main$c = defineComponent({
|
|
10406
10411
|
name: "Role",
|
|
10407
10412
|
components: { SelectPlatform },
|
|
10408
10413
|
emits: [""],
|
|
10409
10414
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
10410
|
-
props: propDefine$
|
|
10415
|
+
props: propDefine$c,
|
|
10411
10416
|
setup(props, ctx) {
|
|
10412
10417
|
return new RoleInstance2(props, ctx);
|
|
10413
10418
|
}
|
|
@@ -10441,7 +10446,7 @@ class RoleInstance2 extends BaseInstance {
|
|
|
10441
10446
|
var _a;
|
|
10442
10447
|
this.spinPlatShow.value = true;
|
|
10443
10448
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
10444
|
-
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((
|
|
10449
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
|
|
10445
10450
|
PId: platId
|
|
10446
10451
|
})).orderBy(["OrderNo"]));
|
|
10447
10452
|
this.platData.value = this.utilities.parseApiResult(apiResult);
|
|
@@ -11168,13 +11173,13 @@ class RoleInstance2 extends BaseInstance {
|
|
|
11168
11173
|
isChange = true;
|
|
11169
11174
|
} else {
|
|
11170
11175
|
for (const item of data.OrgRoleOperates) {
|
|
11171
|
-
if (data.RoleOperates.filter((
|
|
11176
|
+
if (data.RoleOperates.filter((d2) => d2 == item).length == 0) {
|
|
11172
11177
|
isChange = true;
|
|
11173
11178
|
break;
|
|
11174
11179
|
}
|
|
11175
11180
|
}
|
|
11176
11181
|
for (const item of data.RoleOperates) {
|
|
11177
|
-
if (data.OrgRoleOperates.filter((
|
|
11182
|
+
if (data.OrgRoleOperates.filter((d2) => d2 == item).length == 0) {
|
|
11178
11183
|
isChange = true;
|
|
11179
11184
|
break;
|
|
11180
11185
|
}
|
|
@@ -11190,7 +11195,7 @@ class RoleInstance2 extends BaseInstance {
|
|
|
11190
11195
|
const datas = this.moduleGrid.value.getDatas();
|
|
11191
11196
|
const parentDatas = datas.filter((item) => item.Id == data.PId && item.IsChk == !data.IsChk);
|
|
11192
11197
|
for (const item of parentDatas) {
|
|
11193
|
-
item.IsChk = data.IsChk == false ? datas.filter((
|
|
11198
|
+
item.IsChk = data.IsChk == false ? datas.filter((d2) => d2.PId == item.Id && d2.IsChk == true).length > 0 : true;
|
|
11194
11199
|
this.setRoleModuleIsChange(item);
|
|
11195
11200
|
this.changeParentRoleModuleStatus(item);
|
|
11196
11201
|
}
|
|
@@ -11209,7 +11214,7 @@ class RoleInstance2 extends BaseInstance {
|
|
|
11209
11214
|
async loadOriginPlatforms() {
|
|
11210
11215
|
var _a;
|
|
11211
11216
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
11212
|
-
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.platId.value).or((
|
|
11217
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.platId.value).or((i2) => i2.allEq({
|
|
11213
11218
|
PId: platId
|
|
11214
11219
|
})).orderBy(["OrderNo"]));
|
|
11215
11220
|
this.originPlatform.list = this.utilities.parseApiResult(apiResult);
|
|
@@ -11233,14 +11238,14 @@ class RoleInstance2 extends BaseInstance {
|
|
|
11233
11238
|
//#endregion 导入角色 END
|
|
11234
11239
|
}
|
|
11235
11240
|
const Role_vue_vue_type_style_index_0_scoped_bbf1cb02_lang = "";
|
|
11236
|
-
const _hoisted_1$
|
|
11241
|
+
const _hoisted_1$b = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
|
|
11237
11242
|
const _hoisted_2$6 = {
|
|
11238
11243
|
class: "import-role",
|
|
11239
11244
|
style: { "height": "610px", "position": "relative" }
|
|
11240
11245
|
};
|
|
11241
11246
|
const _hoisted_3$6 = { style: { "width": "100%", "height": "100%" } };
|
|
11242
11247
|
const _hoisted_4$6 = { style: { "height": "530px", "overflow-y": "auto" } };
|
|
11243
|
-
function _sfc_render$
|
|
11248
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11244
11249
|
const _component_Option = resolveComponent("Option");
|
|
11245
11250
|
const _component_Select = resolveComponent("Select");
|
|
11246
11251
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -11343,7 +11348,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11343
11348
|
}, 8, ["loading", "onClick"])
|
|
11344
11349
|
]),
|
|
11345
11350
|
default: withCtx(() => [
|
|
11346
|
-
createElementVNode("div", _hoisted_1$
|
|
11351
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
11347
11352
|
createVNode(_component_NvGrid, {
|
|
11348
11353
|
ref: "moduleGrid",
|
|
11349
11354
|
option: _ctx.moduleGridOption
|
|
@@ -11503,8 +11508,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11503
11508
|
_: 1
|
|
11504
11509
|
});
|
|
11505
11510
|
}
|
|
11506
|
-
const subrole = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11507
|
-
const propDefine$
|
|
11511
|
+
const subrole = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-bbf1cb02"]]);
|
|
11512
|
+
const propDefine$b = {
|
|
11508
11513
|
linkParam: {
|
|
11509
11514
|
// 带入的参数
|
|
11510
11515
|
type: String,
|
|
@@ -11516,12 +11521,12 @@ const propDefine$a = {
|
|
|
11516
11521
|
default: "-"
|
|
11517
11522
|
}
|
|
11518
11523
|
};
|
|
11519
|
-
const _sfc_main$
|
|
11524
|
+
const _sfc_main$b = defineComponent({
|
|
11520
11525
|
name: "Enterprise",
|
|
11521
11526
|
components: { SelectPlatform },
|
|
11522
11527
|
emits: [""],
|
|
11523
11528
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
11524
|
-
props: propDefine$
|
|
11529
|
+
props: propDefine$b,
|
|
11525
11530
|
setup(props, ctx) {
|
|
11526
11531
|
return new EnterpriseInstance2(props, ctx);
|
|
11527
11532
|
}
|
|
@@ -11932,8 +11937,8 @@ class EnterpriseInstance2 extends BaseInstance {
|
|
|
11932
11937
|
//#endregion 业务逻辑 编辑企业信息 END
|
|
11933
11938
|
}
|
|
11934
11939
|
const Enterprise_vue_vue_type_style_index_0_scoped_57711b94_lang = "";
|
|
11935
|
-
const _hoisted_1$
|
|
11936
|
-
function _sfc_render$
|
|
11940
|
+
const _hoisted_1$a = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
11941
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11937
11942
|
const _component_Option = resolveComponent("Option");
|
|
11938
11943
|
const _component_Select = resolveComponent("Select");
|
|
11939
11944
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -12035,7 +12040,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12035
12040
|
}, 8, ["loading", "onClick"])) : createCommentVNode("", true)
|
|
12036
12041
|
]),
|
|
12037
12042
|
default: withCtx(() => [
|
|
12038
|
-
createElementVNode("div", _hoisted_1$
|
|
12043
|
+
createElementVNode("div", _hoisted_1$a, [
|
|
12039
12044
|
createVNode(_component_Form, {
|
|
12040
12045
|
model: _ctx.enterpriseFormModel,
|
|
12041
12046
|
"label-width": 90
|
|
@@ -12058,8 +12063,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12058
12063
|
_: 1
|
|
12059
12064
|
});
|
|
12060
12065
|
}
|
|
12061
|
-
const subenterprise = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12062
|
-
const propDefine$
|
|
12066
|
+
const subenterprise = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-57711b94"]]);
|
|
12067
|
+
const propDefine$a = {
|
|
12063
12068
|
linkParam: {
|
|
12064
12069
|
// 带入的参数
|
|
12065
12070
|
type: String,
|
|
@@ -12071,12 +12076,12 @@ const propDefine$9 = {
|
|
|
12071
12076
|
default: "-"
|
|
12072
12077
|
}
|
|
12073
12078
|
};
|
|
12074
|
-
const _sfc_main$
|
|
12079
|
+
const _sfc_main$a = defineComponent({
|
|
12075
12080
|
name: "Institution",
|
|
12076
12081
|
components: { SelectPlatform, NvComFormUp },
|
|
12077
12082
|
emits: [""],
|
|
12078
12083
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
12079
|
-
props: propDefine$
|
|
12084
|
+
props: propDefine$a,
|
|
12080
12085
|
setup(props, ctx) {
|
|
12081
12086
|
return new InstitutionInstance2(props, ctx);
|
|
12082
12087
|
}
|
|
@@ -12111,7 +12116,7 @@ class InstitutionInstance2 extends BaseInstance {
|
|
|
12111
12116
|
var _a;
|
|
12112
12117
|
this.spinPlatShow.value = true;
|
|
12113
12118
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
12114
|
-
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((
|
|
12119
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
|
|
12115
12120
|
PId: platId
|
|
12116
12121
|
})).orderBy(["OrderNo"]));
|
|
12117
12122
|
this.platData.value = this.utilities.parseApiResult(apiResult);
|
|
@@ -12882,7 +12887,7 @@ class InstitutionInstance2 extends BaseInstance {
|
|
|
12882
12887
|
async loadOriginPlatforms() {
|
|
12883
12888
|
var _a;
|
|
12884
12889
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
12885
|
-
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.platId.value).or((
|
|
12890
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.platId.value).or((i2) => i2.allEq({
|
|
12886
12891
|
PId: platId
|
|
12887
12892
|
})).orderBy(["OrderNo"]));
|
|
12888
12893
|
this.originPlatform.list = this.utilities.parseApiResult(apiResult);
|
|
@@ -13036,7 +13041,7 @@ class InstitutionInstance2 extends BaseInstance {
|
|
|
13036
13041
|
//#endregion 绑定角色 END
|
|
13037
13042
|
}
|
|
13038
13043
|
const Institution_vue_vue_type_style_index_0_scoped_30aec484_lang = "";
|
|
13039
|
-
const _hoisted_1$
|
|
13044
|
+
const _hoisted_1$9 = { style: { "width": "100%", "height": "100%", "position": "relative" } };
|
|
13040
13045
|
const _hoisted_2$5 = { style: { "height": "500px", "overflow-y": "auto" } };
|
|
13041
13046
|
const _hoisted_3$5 = {
|
|
13042
13047
|
class: "import-institution",
|
|
@@ -13045,7 +13050,7 @@ const _hoisted_3$5 = {
|
|
|
13045
13050
|
const _hoisted_4$5 = { style: { "width": "100%", "height": "100%" } };
|
|
13046
13051
|
const _hoisted_5$5 = { style: { "height": "calc(100%)" } };
|
|
13047
13052
|
const _hoisted_6$5 = { style: { "height": "610px", "overflow-y": "auto", "position": "relative" } };
|
|
13048
|
-
function _sfc_render$
|
|
13053
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13049
13054
|
const _component_Option = resolveComponent("Option");
|
|
13050
13055
|
const _component_Select = resolveComponent("Select");
|
|
13051
13056
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -13150,7 +13155,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13150
13155
|
})
|
|
13151
13156
|
]),
|
|
13152
13157
|
default: withCtx(() => [
|
|
13153
|
-
createElementVNode("div", _hoisted_1$
|
|
13158
|
+
createElementVNode("div", _hoisted_1$9, [
|
|
13154
13159
|
createVNode(_component_Tree, {
|
|
13155
13160
|
data: _ctx.institutionTree,
|
|
13156
13161
|
render: _ctx.renderContent,
|
|
@@ -13348,14 +13353,14 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13348
13353
|
_: 1
|
|
13349
13354
|
});
|
|
13350
13355
|
}
|
|
13351
|
-
const subinstitution = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13352
|
-
const propDefine$
|
|
13353
|
-
const _sfc_main$
|
|
13356
|
+
const subinstitution = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-30aec484"]]);
|
|
13357
|
+
const propDefine$9 = {};
|
|
13358
|
+
const _sfc_main$9 = defineComponent({
|
|
13354
13359
|
name: "LoginLog",
|
|
13355
13360
|
components: {},
|
|
13356
13361
|
emits: [""],
|
|
13357
13362
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
13358
|
-
props: propDefine$
|
|
13363
|
+
props: propDefine$9,
|
|
13359
13364
|
setup(props, ctx) {
|
|
13360
13365
|
return new LoginLogInstance2(props, ctx);
|
|
13361
13366
|
}
|
|
@@ -13460,18 +13465,18 @@ class LoginLogInstance2 extends BaseInstance {
|
|
|
13460
13465
|
//#endregion 登录日志 END
|
|
13461
13466
|
}
|
|
13462
13467
|
const LoginLog_vue_vue_type_style_index_0_scoped_a0d5af5b_lang = "";
|
|
13463
|
-
const _hoisted_1$
|
|
13464
|
-
function _sfc_render$
|
|
13468
|
+
const _hoisted_1$8 = { class: "loginLog" };
|
|
13469
|
+
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13465
13470
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
13466
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13471
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
13467
13472
|
createVNode(_component_NvGrid, {
|
|
13468
13473
|
ref: "loginLogGrid",
|
|
13469
13474
|
option: _ctx.loginLogGridOption
|
|
13470
13475
|
}, null, 8, ["option"])
|
|
13471
13476
|
]);
|
|
13472
13477
|
}
|
|
13473
|
-
const LoginLog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13474
|
-
const propDefine$
|
|
13478
|
+
const LoginLog = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-a0d5af5b"]]);
|
|
13479
|
+
const propDefine$8 = {
|
|
13475
13480
|
linkParam: {
|
|
13476
13481
|
// 带入的参数
|
|
13477
13482
|
type: String,
|
|
@@ -13483,12 +13488,12 @@ const propDefine$7 = {
|
|
|
13483
13488
|
default: "-"
|
|
13484
13489
|
}
|
|
13485
13490
|
};
|
|
13486
|
-
const _sfc_main$
|
|
13491
|
+
const _sfc_main$8 = defineComponent({
|
|
13487
13492
|
name: "Userinfor",
|
|
13488
13493
|
components: { SelectPlatform, LoginLog, BaseLogin, NvComFormUp },
|
|
13489
13494
|
emits: [""],
|
|
13490
13495
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
13491
|
-
props: propDefine$
|
|
13496
|
+
props: propDefine$8,
|
|
13492
13497
|
setup(props, ctx) {
|
|
13493
13498
|
return new UserinforInstance2(props, ctx);
|
|
13494
13499
|
}
|
|
@@ -13525,7 +13530,7 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
13525
13530
|
var _a;
|
|
13526
13531
|
this.spinPlatShow.value = true;
|
|
13527
13532
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
13528
|
-
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((
|
|
13533
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
|
|
13529
13534
|
PId: platId
|
|
13530
13535
|
})).orderBy(["OrderNo"]));
|
|
13531
13536
|
this.platData.value = this.utilities.parseApiResult(apiResult);
|
|
@@ -14076,7 +14081,7 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
14076
14081
|
let userRoles = this.utilities.parseApiResult(apiResult);
|
|
14077
14082
|
let insertRecords = [];
|
|
14078
14083
|
for (const item of chkDatas) {
|
|
14079
|
-
if (userRoles.findIndex((
|
|
14084
|
+
if (userRoles.findIndex((d2) => d2.RoleId == item.Id) == -1) {
|
|
14080
14085
|
insertRecords.push({
|
|
14081
14086
|
PlatformId: this.selectedPlatform.Id,
|
|
14082
14087
|
UserId: this.currentUser.Id,
|
|
@@ -14086,7 +14091,7 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
14086
14091
|
}
|
|
14087
14092
|
let deleteRecords = [];
|
|
14088
14093
|
for (const item of userRoles) {
|
|
14089
|
-
if (chkDatas.findIndex((
|
|
14094
|
+
if (chkDatas.findIndex((d2) => d2.Id == item.RoleId) == -1) {
|
|
14090
14095
|
deleteRecords.push(item.Id);
|
|
14091
14096
|
}
|
|
14092
14097
|
}
|
|
@@ -15012,7 +15017,7 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
15012
15017
|
}
|
|
15013
15018
|
const Userinfor_vue_vue_type_style_index_0_scoped_bed8ccac_lang = "";
|
|
15014
15019
|
const _withScopeId$3 = (n) => (pushScopeId("data-v-bed8ccac"), n = n(), popScopeId(), n);
|
|
15015
|
-
const _hoisted_1$
|
|
15020
|
+
const _hoisted_1$7 = { class: "instree-search" };
|
|
15016
15021
|
const _hoisted_2$4 = { class: "instree-list" };
|
|
15017
15022
|
const _hoisted_3$4 = { style: { "height": "750px", "overflow-y": "auto" } };
|
|
15018
15023
|
const _hoisted_4$4 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
|
|
@@ -15039,7 +15044,7 @@ const _hoisted_18$1 = {
|
|
|
15039
15044
|
key: 1,
|
|
15040
15045
|
class: "nv-c-v-center"
|
|
15041
15046
|
};
|
|
15042
|
-
function _sfc_render$
|
|
15047
|
+
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15043
15048
|
const _component_Option = resolveComponent("Option");
|
|
15044
15049
|
const _component_Select = resolveComponent("Select");
|
|
15045
15050
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -15091,7 +15096,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15091
15096
|
})
|
|
15092
15097
|
]),
|
|
15093
15098
|
default: withCtx(() => [
|
|
15094
|
-
createElementVNode("div", _hoisted_1$
|
|
15099
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
15095
15100
|
createVNode(_component_NvControlGroup, {
|
|
15096
15101
|
width: "100%",
|
|
15097
15102
|
icon: "md-refresh",
|
|
@@ -15569,8 +15574,8 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15569
15574
|
_: 1
|
|
15570
15575
|
});
|
|
15571
15576
|
}
|
|
15572
|
-
const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15573
|
-
const propDefine$
|
|
15577
|
+
const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-bed8ccac"]]);
|
|
15578
|
+
const propDefine$7 = {
|
|
15574
15579
|
linkParam: {
|
|
15575
15580
|
// 带入的参数
|
|
15576
15581
|
type: String,
|
|
@@ -15582,12 +15587,12 @@ const propDefine$6 = {
|
|
|
15582
15587
|
default: "-"
|
|
15583
15588
|
}
|
|
15584
15589
|
};
|
|
15585
|
-
const _sfc_main$
|
|
15590
|
+
const _sfc_main$7 = defineComponent({
|
|
15586
15591
|
name: "UserinforSL",
|
|
15587
15592
|
components: { SelectPlatform, LoginLog, BaseLogin, NvComFormUp },
|
|
15588
15593
|
emits: [""],
|
|
15589
15594
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
15590
|
-
props: propDefine$
|
|
15595
|
+
props: propDefine$7,
|
|
15591
15596
|
setup(props, ctx) {
|
|
15592
15597
|
return new UserinforSLInstance2(props, ctx);
|
|
15593
15598
|
}
|
|
@@ -15668,7 +15673,7 @@ class UserinforSLInstance2 extends BaseInstance {
|
|
|
15668
15673
|
var _a;
|
|
15669
15674
|
this.spinPlatShow.value = true;
|
|
15670
15675
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
15671
|
-
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((
|
|
15676
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
|
|
15672
15677
|
PId: platId
|
|
15673
15678
|
})).orderBy(["OrderNo"]));
|
|
15674
15679
|
this.platData.value = this.utilities.parseApiResult(apiResult);
|
|
@@ -16226,7 +16231,7 @@ class UserinforSLInstance2 extends BaseInstance {
|
|
|
16226
16231
|
let userRoles = this.utilities.parseApiResult(apiResult);
|
|
16227
16232
|
let insertRecords = [];
|
|
16228
16233
|
for (const item of chkDatas) {
|
|
16229
|
-
if (userRoles.findIndex((
|
|
16234
|
+
if (userRoles.findIndex((d2) => d2.RoleId == item.Id) == -1) {
|
|
16230
16235
|
insertRecords.push({
|
|
16231
16236
|
PlatformId: this.selectedPlatform.Id,
|
|
16232
16237
|
UserId: this.currentUser.Id,
|
|
@@ -16236,7 +16241,7 @@ class UserinforSLInstance2 extends BaseInstance {
|
|
|
16236
16241
|
}
|
|
16237
16242
|
let deleteRecords = [];
|
|
16238
16243
|
for (const item of userRoles) {
|
|
16239
|
-
if (chkDatas.findIndex((
|
|
16244
|
+
if (chkDatas.findIndex((d2) => d2.Id == item.RoleId) == -1) {
|
|
16240
16245
|
deleteRecords.push(item.Id);
|
|
16241
16246
|
}
|
|
16242
16247
|
}
|
|
@@ -17238,7 +17243,7 @@ class UserinforSLInstance2 extends BaseInstance {
|
|
|
17238
17243
|
}
|
|
17239
17244
|
const UserinforSL_vue_vue_type_style_index_0_scoped_b5ff2a50_lang = "";
|
|
17240
17245
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-b5ff2a50"), n = n(), popScopeId(), n);
|
|
17241
|
-
const _hoisted_1$
|
|
17246
|
+
const _hoisted_1$6 = { class: "instree-search" };
|
|
17242
17247
|
const _hoisted_2$3 = { class: "instree-list" };
|
|
17243
17248
|
const _hoisted_3$3 = { style: { "height": "750px", "overflow-y": "auto" } };
|
|
17244
17249
|
const _hoisted_4$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
|
|
@@ -17270,7 +17275,7 @@ const _hoisted_20 = {
|
|
|
17270
17275
|
key: 1,
|
|
17271
17276
|
class: "nv-c-v-center"
|
|
17272
17277
|
};
|
|
17273
|
-
function _sfc_render$
|
|
17278
|
+
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17274
17279
|
const _component_Option = resolveComponent("Option");
|
|
17275
17280
|
const _component_Select = resolveComponent("Select");
|
|
17276
17281
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -17322,7 +17327,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17322
17327
|
})
|
|
17323
17328
|
]),
|
|
17324
17329
|
default: withCtx(() => [
|
|
17325
|
-
createElementVNode("div", _hoisted_1$
|
|
17330
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
17326
17331
|
createVNode(_component_NvControlGroup, {
|
|
17327
17332
|
width: "100%",
|
|
17328
17333
|
icon: "md-refresh",
|
|
@@ -17871,7 +17876,644 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17871
17876
|
_: 1
|
|
17872
17877
|
});
|
|
17873
17878
|
}
|
|
17874
|
-
const subuserinforSL = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17879
|
+
const subuserinforSL = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-b5ff2a50"]]);
|
|
17880
|
+
function r(t, e) {
|
|
17881
|
+
for (var n = 0; n < e.length; n++) {
|
|
17882
|
+
var r2 = e[n];
|
|
17883
|
+
r2.enumerable = r2.enumerable || false, r2.configurable = true, "value" in r2 && (r2.writable = true), Object.defineProperty(t, s(r2.key), r2);
|
|
17884
|
+
}
|
|
17885
|
+
}
|
|
17886
|
+
function o(t, e, n) {
|
|
17887
|
+
return e && r(t.prototype, e), n && r(t, n), Object.defineProperty(t, "prototype", { writable: false }), t;
|
|
17888
|
+
}
|
|
17889
|
+
function i(t, e) {
|
|
17890
|
+
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, u(t, e);
|
|
17891
|
+
}
|
|
17892
|
+
function u(t, e) {
|
|
17893
|
+
return u = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
17894
|
+
return t2.__proto__ = e2, t2;
|
|
17895
|
+
}, u(t, e);
|
|
17896
|
+
}
|
|
17897
|
+
function s(t) {
|
|
17898
|
+
var e = function(t2) {
|
|
17899
|
+
if ("object" != typeof t2 || !t2)
|
|
17900
|
+
return t2;
|
|
17901
|
+
var e2 = t2[Symbol.toPrimitive];
|
|
17902
|
+
if (void 0 !== e2) {
|
|
17903
|
+
var n = e2.call(t2, "string");
|
|
17904
|
+
if ("object" != typeof n)
|
|
17905
|
+
return n;
|
|
17906
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
17907
|
+
}
|
|
17908
|
+
return String(t2);
|
|
17909
|
+
}(t);
|
|
17910
|
+
return "symbol" == typeof e ? e : e + "";
|
|
17911
|
+
}
|
|
17912
|
+
var d = /* @__PURE__ */ function(t) {
|
|
17913
|
+
function e() {
|
|
17914
|
+
return t.apply(this, arguments) || this;
|
|
17915
|
+
}
|
|
17916
|
+
return i(e, t), o(e, [{ key: "ProxyName", get: function() {
|
|
17917
|
+
return "PermissionApi";
|
|
17918
|
+
} }]);
|
|
17919
|
+
}(BaseApi), y = /* @__PURE__ */ function(t) {
|
|
17920
|
+
function e() {
|
|
17921
|
+
return t.apply(this, arguments) || this;
|
|
17922
|
+
}
|
|
17923
|
+
return i(e, t), o(e, [{ key: "ControllerName", get: function() {
|
|
17924
|
+
return "Platform";
|
|
17925
|
+
} }]);
|
|
17926
|
+
}(d), C = /* @__PURE__ */ function(t) {
|
|
17927
|
+
function e() {
|
|
17928
|
+
return t.apply(this, arguments) || this;
|
|
17929
|
+
}
|
|
17930
|
+
return i(e, t), o(e, [{ key: "ControllerName", get: function() {
|
|
17931
|
+
return "LoginLog";
|
|
17932
|
+
} }]);
|
|
17933
|
+
}(d);
|
|
17934
|
+
const propDefine$6 = {
|
|
17935
|
+
linkParam: {
|
|
17936
|
+
// 带入的参数
|
|
17937
|
+
type: String,
|
|
17938
|
+
default: ""
|
|
17939
|
+
},
|
|
17940
|
+
operates: {
|
|
17941
|
+
// 按钮权限码
|
|
17942
|
+
type: String,
|
|
17943
|
+
default: "-"
|
|
17944
|
+
}
|
|
17945
|
+
};
|
|
17946
|
+
const _sfc_main$6 = defineComponent({
|
|
17947
|
+
name: "PromotionalVideo",
|
|
17948
|
+
components: {
|
|
17949
|
+
NvComFormUp
|
|
17950
|
+
},
|
|
17951
|
+
emits: [""],
|
|
17952
|
+
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
17953
|
+
props: propDefine$6,
|
|
17954
|
+
setup(props, ctx) {
|
|
17955
|
+
return new Instance$2(props, ctx);
|
|
17956
|
+
}
|
|
17957
|
+
});
|
|
17958
|
+
let Instance$2 = class Instance extends BaseInstance {
|
|
17959
|
+
constructor(props, ctx) {
|
|
17960
|
+
super();
|
|
17961
|
+
__publicField(this, "props");
|
|
17962
|
+
__publicField(this, "ctx");
|
|
17963
|
+
// 全局属性
|
|
17964
|
+
/** 主表 */
|
|
17965
|
+
__publicField(this, "mainApi", new C());
|
|
17966
|
+
/** 人员信息 */
|
|
17967
|
+
__publicField(this, "userInfo", this.storageInfo.getUser());
|
|
17968
|
+
/** 机构信息 */
|
|
17969
|
+
__publicField(this, "businessInfo", this.storageInfo.getCurrentInsTree());
|
|
17970
|
+
/** 项目信息 */
|
|
17971
|
+
__publicField(this, "projectInfo", this.storageInfo.getCurrentPlatform());
|
|
17972
|
+
__publicField(this, "platformApi", new y());
|
|
17973
|
+
//#region Grid
|
|
17974
|
+
// 私有属性 | private
|
|
17975
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
17976
|
+
// refTest2 = ref(0);
|
|
17977
|
+
__publicField(this, "mainGridRef", ref());
|
|
17978
|
+
__publicField(this, "mainGridOption", reactive({
|
|
17979
|
+
api: this.mainApi,
|
|
17980
|
+
setting: {
|
|
17981
|
+
border: true,
|
|
17982
|
+
searchConfig: {
|
|
17983
|
+
btnSpan: 6,
|
|
17984
|
+
labelWidth: 130,
|
|
17985
|
+
defaultShowSearch: false
|
|
17986
|
+
},
|
|
17987
|
+
editConfig: {
|
|
17988
|
+
trigger: "click",
|
|
17989
|
+
autoClear: false
|
|
17990
|
+
},
|
|
17991
|
+
toolbarConfig: {
|
|
17992
|
+
isButtonGroup: false,
|
|
17993
|
+
maxShow: 6
|
|
17994
|
+
},
|
|
17995
|
+
rowConfig: {
|
|
17996
|
+
isHover: true
|
|
17997
|
+
},
|
|
17998
|
+
isPagination: true,
|
|
17999
|
+
pageSize: 15
|
|
18000
|
+
},
|
|
18001
|
+
searchOptions: [
|
|
18002
|
+
{
|
|
18003
|
+
type: "Input",
|
|
18004
|
+
field: "UserName",
|
|
18005
|
+
title: "用户姓名",
|
|
18006
|
+
span: 12
|
|
18007
|
+
},
|
|
18008
|
+
{
|
|
18009
|
+
type: "Input",
|
|
18010
|
+
field: "Account",
|
|
18011
|
+
title: "用户账号",
|
|
18012
|
+
span: 12
|
|
18013
|
+
},
|
|
18014
|
+
{
|
|
18015
|
+
type: "Input",
|
|
18016
|
+
field: "Phone",
|
|
18017
|
+
title: "手机号",
|
|
18018
|
+
span: 12
|
|
18019
|
+
},
|
|
18020
|
+
{
|
|
18021
|
+
type: "Input",
|
|
18022
|
+
field: "IPAddress",
|
|
18023
|
+
title: "登录IP",
|
|
18024
|
+
span: 12
|
|
18025
|
+
},
|
|
18026
|
+
{
|
|
18027
|
+
type: "DatePicker",
|
|
18028
|
+
field: "LoginDate",
|
|
18029
|
+
title: "登录日期",
|
|
18030
|
+
span: 12
|
|
18031
|
+
}
|
|
18032
|
+
],
|
|
18033
|
+
toolbars: [
|
|
18034
|
+
// {
|
|
18035
|
+
// name: "add",
|
|
18036
|
+
// onclick: () => {
|
|
18037
|
+
// this.doAddMain();
|
|
18038
|
+
// },
|
|
18039
|
+
// isShow: () => {
|
|
18040
|
+
// return this.props.operates.includes("Add")
|
|
18041
|
+
// }
|
|
18042
|
+
// },
|
|
18043
|
+
],
|
|
18044
|
+
rightToolbars: [
|
|
18045
|
+
{
|
|
18046
|
+
name: "refresh"
|
|
18047
|
+
}
|
|
18048
|
+
],
|
|
18049
|
+
columns: [
|
|
18050
|
+
{ colType: "seq" },
|
|
18051
|
+
{
|
|
18052
|
+
colType: "ro",
|
|
18053
|
+
field: "LoginLocation",
|
|
18054
|
+
align: "center",
|
|
18055
|
+
title: "登录位置(基于离线IP数据库获取的)",
|
|
18056
|
+
minWidth: 300
|
|
18057
|
+
},
|
|
18058
|
+
{
|
|
18059
|
+
colType: "ro",
|
|
18060
|
+
field: "UserName",
|
|
18061
|
+
align: "center",
|
|
18062
|
+
title: "用户姓名",
|
|
18063
|
+
width: 150
|
|
18064
|
+
},
|
|
18065
|
+
{
|
|
18066
|
+
colType: "ro",
|
|
18067
|
+
field: "Account",
|
|
18068
|
+
align: "center",
|
|
18069
|
+
title: "用户账号",
|
|
18070
|
+
width: 150
|
|
18071
|
+
},
|
|
18072
|
+
{
|
|
18073
|
+
colType: "ro",
|
|
18074
|
+
field: "Phone",
|
|
18075
|
+
align: "center",
|
|
18076
|
+
title: "手机号",
|
|
18077
|
+
width: 150
|
|
18078
|
+
},
|
|
18079
|
+
{
|
|
18080
|
+
colType: "ro",
|
|
18081
|
+
field: "IPAddress",
|
|
18082
|
+
align: "center",
|
|
18083
|
+
title: "登录IP",
|
|
18084
|
+
width: 150
|
|
18085
|
+
},
|
|
18086
|
+
{
|
|
18087
|
+
colType: "ro",
|
|
18088
|
+
field: "LoginDate",
|
|
18089
|
+
align: "center",
|
|
18090
|
+
title: "登录时间",
|
|
18091
|
+
width: 150
|
|
18092
|
+
},
|
|
18093
|
+
{
|
|
18094
|
+
colType: "ro",
|
|
18095
|
+
field: "LoginType",
|
|
18096
|
+
align: "center",
|
|
18097
|
+
title: "登录类型",
|
|
18098
|
+
width: 150
|
|
18099
|
+
}
|
|
18100
|
+
// {
|
|
18101
|
+
// title: '操作', width: 140 , rowButtons: [
|
|
18102
|
+
// {
|
|
18103
|
+
// name: 'view', text: '查看', type: 'primary',
|
|
18104
|
+
// onclick: (row: any) => {
|
|
18105
|
+
// this.doViewMain(row)
|
|
18106
|
+
// },
|
|
18107
|
+
// isShow: (row: any) => {
|
|
18108
|
+
// return (
|
|
18109
|
+
// row.CreateUserId != this.userInfo.id && this.props.operates.includes("View")
|
|
18110
|
+
// );
|
|
18111
|
+
// },
|
|
18112
|
+
// },
|
|
18113
|
+
// {
|
|
18114
|
+
// name: 'view_',
|
|
18115
|
+
// text: '编辑',
|
|
18116
|
+
// type: 'primary',
|
|
18117
|
+
// onclick: (row: any) => {
|
|
18118
|
+
// this.doEditMain(row)
|
|
18119
|
+
// },
|
|
18120
|
+
// isShow: (row: any) => {
|
|
18121
|
+
// return (
|
|
18122
|
+
// row.CreateUserId == this.userInfo.id && this.props.operates.includes("Edit")
|
|
18123
|
+
// );
|
|
18124
|
+
// },
|
|
18125
|
+
// },
|
|
18126
|
+
// {
|
|
18127
|
+
// name: "delete",
|
|
18128
|
+
// text: "删除",
|
|
18129
|
+
// onclick: (row: any, btn: any) => {
|
|
18130
|
+
// this.doDeleteMain(row)
|
|
18131
|
+
// },
|
|
18132
|
+
// isShow: (row: any) => {
|
|
18133
|
+
// return (
|
|
18134
|
+
// row.CreateUserId == this.userInfo.id && this.props.operates.includes("Delete")
|
|
18135
|
+
// );
|
|
18136
|
+
// },
|
|
18137
|
+
// },
|
|
18138
|
+
// ]
|
|
18139
|
+
// }
|
|
18140
|
+
],
|
|
18141
|
+
event: {
|
|
18142
|
+
/** 搜索事件 */
|
|
18143
|
+
event_search: (data) => {
|
|
18144
|
+
var _a, _b;
|
|
18145
|
+
(_a = this.mainGridRef.value) == null ? void 0 : _a.setPageIndex(1);
|
|
18146
|
+
let qw = QueryWrapper.create();
|
|
18147
|
+
if (!this.utilities.isNull(data.UserName)) {
|
|
18148
|
+
qw.like("UserName", data.UserName);
|
|
18149
|
+
}
|
|
18150
|
+
if (!this.utilities.isNull(data.Account)) {
|
|
18151
|
+
qw.like("Account", data.Account);
|
|
18152
|
+
}
|
|
18153
|
+
if (!this.utilities.isNull(data.Phone)) {
|
|
18154
|
+
qw.like("Phone", data.Phone);
|
|
18155
|
+
}
|
|
18156
|
+
if (!this.utilities.isNull(data.IPAddress)) {
|
|
18157
|
+
qw.like("IPAddress", data.IPAddress);
|
|
18158
|
+
}
|
|
18159
|
+
if (!this.utilities.isNull(data.LoginDate)) {
|
|
18160
|
+
qw.like("LoginDate", data.LoginDate);
|
|
18161
|
+
}
|
|
18162
|
+
if (!this.utilities.isNull(data.LoginType)) {
|
|
18163
|
+
qw.like("LoginType", data.LoginType);
|
|
18164
|
+
}
|
|
18165
|
+
(_b = this.mainGridRef.value) == null ? void 0 : _b.loadDataByQuery(qw);
|
|
18166
|
+
}
|
|
18167
|
+
}
|
|
18168
|
+
}));
|
|
18169
|
+
// 私有方法 | private 方法名() {}
|
|
18170
|
+
__publicField(this, "activeOrgId", ref(0));
|
|
18171
|
+
__publicField(this, "activeParent", ref(""));
|
|
18172
|
+
// 响应式方法 | xxx = () => {}
|
|
18173
|
+
// doBtnClick2 = () = {}
|
|
18174
|
+
//#endregion Grid END
|
|
18175
|
+
//#region Form
|
|
18176
|
+
// 私有属性 | private
|
|
18177
|
+
// private business2Test1: number = 0;
|
|
18178
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
18179
|
+
// refTest2 = ref(0);
|
|
18180
|
+
/** 表单弹窗 显隐 */
|
|
18181
|
+
__publicField(this, "isShowModal", ref(false));
|
|
18182
|
+
/** 表单弹窗 标题 */
|
|
18183
|
+
__publicField(this, "modalTitle", ref("新增-登录日志"));
|
|
18184
|
+
/** 表单 保存按钮loading */
|
|
18185
|
+
__publicField(this, "saveingMainLoading", ref(false));
|
|
18186
|
+
/** 是否只读 */
|
|
18187
|
+
__publicField(this, "onlyView", ref(false));
|
|
18188
|
+
__publicField(this, "mainFormRef", ref());
|
|
18189
|
+
__publicField(this, "mainComFormRef", ref());
|
|
18190
|
+
/** 表单数据 */
|
|
18191
|
+
__publicField(this, "mainFormModel", reactive({
|
|
18192
|
+
Id: 0,
|
|
18193
|
+
personName: ""
|
|
18194
|
+
}));
|
|
18195
|
+
/** 表单项 */
|
|
18196
|
+
__publicField(this, "mainFormItems", reactive([
|
|
18197
|
+
{
|
|
18198
|
+
type: "Input",
|
|
18199
|
+
model: "LoginLocation",
|
|
18200
|
+
prop: "LoginLocation",
|
|
18201
|
+
label: "登录位置(基于离线IP数据库获取的)",
|
|
18202
|
+
span: 12,
|
|
18203
|
+
inputProp: {
|
|
18204
|
+
type: "textarea",
|
|
18205
|
+
rows: 4,
|
|
18206
|
+
maxlength: 500,
|
|
18207
|
+
// 控制最大输入长度
|
|
18208
|
+
"show-word-limit": true
|
|
18209
|
+
// 是否显示输入字数
|
|
18210
|
+
}
|
|
18211
|
+
},
|
|
18212
|
+
{
|
|
18213
|
+
type: "Input",
|
|
18214
|
+
model: "UserName",
|
|
18215
|
+
prop: "UserName",
|
|
18216
|
+
label: "用户姓名",
|
|
18217
|
+
span: 12
|
|
18218
|
+
},
|
|
18219
|
+
{
|
|
18220
|
+
type: "Input",
|
|
18221
|
+
model: "Account",
|
|
18222
|
+
prop: "Account",
|
|
18223
|
+
label: "用户账号",
|
|
18224
|
+
span: 12
|
|
18225
|
+
},
|
|
18226
|
+
{
|
|
18227
|
+
type: "Input",
|
|
18228
|
+
model: "Phone",
|
|
18229
|
+
prop: "Phone",
|
|
18230
|
+
label: "手机号",
|
|
18231
|
+
span: 12
|
|
18232
|
+
},
|
|
18233
|
+
{
|
|
18234
|
+
type: "Input",
|
|
18235
|
+
model: "IPAddress",
|
|
18236
|
+
prop: "IPAddress",
|
|
18237
|
+
label: "登录IP",
|
|
18238
|
+
span: 12
|
|
18239
|
+
},
|
|
18240
|
+
{
|
|
18241
|
+
type: "DatePicker",
|
|
18242
|
+
model: "LoginDate",
|
|
18243
|
+
prop: "LoginDate",
|
|
18244
|
+
label: "登录日期",
|
|
18245
|
+
span: 12,
|
|
18246
|
+
datePickerProp: {
|
|
18247
|
+
transfer: true,
|
|
18248
|
+
editable: false
|
|
18249
|
+
}
|
|
18250
|
+
}
|
|
18251
|
+
]));
|
|
18252
|
+
/** 表单校验规则 */
|
|
18253
|
+
__publicField(this, "mainFormRules", reactive({
|
|
18254
|
+
UserName: [{ required: true, message: "用户姓名不能为空", trigger: "blur" }],
|
|
18255
|
+
Account: [{ required: true, message: "用户账号不能为空", trigger: "blur" }],
|
|
18256
|
+
Phone: [{ required: true, message: "手机号不能为空", trigger: "blur" }],
|
|
18257
|
+
IPAddress: [{ required: true, message: "登录IP不能为空", trigger: "blur" }],
|
|
18258
|
+
LoginDate: [{ required: true, message: "登录日期不能为空", trigger: "blur" }],
|
|
18259
|
+
LoginType: [{ required: true, message: "登录类型 密码登录、验证码登录、扫码登录不能为空", trigger: "blur" }]
|
|
18260
|
+
}));
|
|
18261
|
+
// 私有方法 | private 方法名() {}
|
|
18262
|
+
// private test2() {}
|
|
18263
|
+
// 响应式方法 | xxx = () => {}
|
|
18264
|
+
// doBtnClick2 = () = {}
|
|
18265
|
+
/** 主表单保存 */
|
|
18266
|
+
__publicField(this, "doSaveMain", async () => {
|
|
18267
|
+
console.log(this.mainFormModel);
|
|
18268
|
+
let validate = await this.mainFormRef.value.validate();
|
|
18269
|
+
if (!validate)
|
|
18270
|
+
return;
|
|
18271
|
+
let BId = this.utilities.parseApiResult(await this.mainApi.save(this.mainFormModel));
|
|
18272
|
+
if (BId && BId > 0) {
|
|
18273
|
+
this.message.success("保存成功");
|
|
18274
|
+
this.isShowModal.value = false;
|
|
18275
|
+
this.mainGridRef.value.refreshData();
|
|
18276
|
+
} else {
|
|
18277
|
+
this.message.success("保存失败");
|
|
18278
|
+
}
|
|
18279
|
+
});
|
|
18280
|
+
__publicField(this, "platId", ref(0));
|
|
18281
|
+
__publicField(this, "platData", ref([]));
|
|
18282
|
+
__publicField(this, "spinPlatShow", ref(false));
|
|
18283
|
+
__publicField(this, "selectedPlatform");
|
|
18284
|
+
__publicField(this, "getPlatData", async () => {
|
|
18285
|
+
var _a;
|
|
18286
|
+
this.spinPlatShow.value = true;
|
|
18287
|
+
let qw = QueryWrapper.create();
|
|
18288
|
+
if (this.props.linkParam == "sub") {
|
|
18289
|
+
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
18290
|
+
qw.eq("Id", platId).or((i2) => i2.allEq({
|
|
18291
|
+
PId: platId
|
|
18292
|
+
})).orderBy(["OrderNo"]);
|
|
18293
|
+
} else if (this.props.linkParam == "")
|
|
18294
|
+
;
|
|
18295
|
+
else {
|
|
18296
|
+
qw.eq("Id", this.props.linkParam).or((i2) => i2.allEq({
|
|
18297
|
+
PId: this.props.linkParam
|
|
18298
|
+
})).orderBy(["OrderNo"]);
|
|
18299
|
+
}
|
|
18300
|
+
const apiResult = await this.platformApi.getEntities(qw);
|
|
18301
|
+
this.platData.value = this.utilities.parseApiResult(apiResult);
|
|
18302
|
+
this.spinPlatShow.value = false;
|
|
18303
|
+
if (this.platData.value.length > 0) {
|
|
18304
|
+
this.platId.value = this.platData.value[0].Id;
|
|
18305
|
+
nextTick(() => {
|
|
18306
|
+
this.doPlatformChange(this.platData.value[0]);
|
|
18307
|
+
});
|
|
18308
|
+
}
|
|
18309
|
+
});
|
|
18310
|
+
__publicField(this, "doPlatformChange", (data) => {
|
|
18311
|
+
const res = this.platData.value.find((item) => item.Id == this.platId.value);
|
|
18312
|
+
if (this.utilities.isNull(res)) {
|
|
18313
|
+
return;
|
|
18314
|
+
}
|
|
18315
|
+
this.selectedPlatform = res;
|
|
18316
|
+
this.loadMainData();
|
|
18317
|
+
});
|
|
18318
|
+
this.props = props;
|
|
18319
|
+
this.ctx = ctx;
|
|
18320
|
+
this.init();
|
|
18321
|
+
}
|
|
18322
|
+
init() {
|
|
18323
|
+
onMounted(() => {
|
|
18324
|
+
this.getPlatData();
|
|
18325
|
+
});
|
|
18326
|
+
}
|
|
18327
|
+
/** 获取主表数据 */
|
|
18328
|
+
async loadMainData() {
|
|
18329
|
+
var _a;
|
|
18330
|
+
(_a = this.mainGridRef.value) == null ? void 0 : _a.loadData(async (options) => {
|
|
18331
|
+
let qw = QueryWrapper.create().eq("PlatformId", this.selectedPlatform.Id).orderBy(["LoginDate"], false);
|
|
18332
|
+
let datas = this.utilities.parseApiResult(await this.mainApi.getEntitiesPageDynamic(options.page, options.pageSize, qw));
|
|
18333
|
+
console.log(datas);
|
|
18334
|
+
options.success(datas);
|
|
18335
|
+
});
|
|
18336
|
+
}
|
|
18337
|
+
/** 新增 */
|
|
18338
|
+
doAddMain() {
|
|
18339
|
+
var _a, _b;
|
|
18340
|
+
this.initMainForm({
|
|
18341
|
+
Id: 0,
|
|
18342
|
+
LoginLocation: "",
|
|
18343
|
+
UserName: "",
|
|
18344
|
+
Account: "",
|
|
18345
|
+
Phone: "",
|
|
18346
|
+
IPAddress: "",
|
|
18347
|
+
LoginDate: this.utilities.getCurrentDate(),
|
|
18348
|
+
LoginType: "",
|
|
18349
|
+
InsTreeId: (_a = this.businessInfo) == null ? void 0 : _a.Id,
|
|
18350
|
+
PlatformId: (_b = this.projectInfo) == null ? void 0 : _b.Id,
|
|
18351
|
+
CreateTime: this.utilities.getCurrentDate(),
|
|
18352
|
+
CreateUserId: this.userInfo.id
|
|
18353
|
+
});
|
|
18354
|
+
}
|
|
18355
|
+
/** 编辑 */
|
|
18356
|
+
doEditMain(row) {
|
|
18357
|
+
this.initMainForm(row);
|
|
18358
|
+
}
|
|
18359
|
+
/** 查看 */
|
|
18360
|
+
doViewMain(row) {
|
|
18361
|
+
this.initMainForm(row, true);
|
|
18362
|
+
}
|
|
18363
|
+
/** 初始化表单 */
|
|
18364
|
+
initMainForm(row, onlyview = false) {
|
|
18365
|
+
Object.assign(this.mainFormModel, row);
|
|
18366
|
+
this.onlyView.value = onlyview;
|
|
18367
|
+
this.modalTitle.value = onlyview ? "查看-登录日志" : row.Id > 0 ? "编辑-登录日志" : "新增-登录日志";
|
|
18368
|
+
this.isShowModal.value = true;
|
|
18369
|
+
}
|
|
18370
|
+
/** 删除 */
|
|
18371
|
+
async doDeleteMain(row) {
|
|
18372
|
+
let deleteStr = `${row.LoginLocation ? row.LoginLocation : "该条数据"}`;
|
|
18373
|
+
this.modal.confirm({
|
|
18374
|
+
title: "提示",
|
|
18375
|
+
content: `确定要删除${deleteStr}吗`,
|
|
18376
|
+
onOk: async () => {
|
|
18377
|
+
const apiResult = await this.mainApi.delete(row.Id);
|
|
18378
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
18379
|
+
if (result) {
|
|
18380
|
+
this.message.success("删除成功!");
|
|
18381
|
+
this.mainGridRef.value.refreshData();
|
|
18382
|
+
} else {
|
|
18383
|
+
this.message.warning("操作异常, 请稍后重试!");
|
|
18384
|
+
}
|
|
18385
|
+
}
|
|
18386
|
+
});
|
|
18387
|
+
}
|
|
18388
|
+
//#endregion Form END
|
|
18389
|
+
};
|
|
18390
|
+
const _hoisted_1$5 = {
|
|
18391
|
+
class: "nv-flex-col",
|
|
18392
|
+
style: { "height": "600px" }
|
|
18393
|
+
};
|
|
18394
|
+
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18395
|
+
const _component_Option = resolveComponent("Option");
|
|
18396
|
+
const _component_Select = resolveComponent("Select");
|
|
18397
|
+
const _component_Spin = resolveComponent("Spin");
|
|
18398
|
+
const _component_NvControlGroup = resolveComponent("NvControlGroup");
|
|
18399
|
+
const _component_NvGrid = resolveComponent("NvGrid");
|
|
18400
|
+
const _component_NvBox = resolveComponent("NvBox");
|
|
18401
|
+
const _component_NvComFormUp = resolveComponent("NvComFormUp");
|
|
18402
|
+
const _component_Form = resolveComponent("Form");
|
|
18403
|
+
const _component_Button = resolveComponent("Button");
|
|
18404
|
+
const _component_NvButton = resolveComponent("NvButton");
|
|
18405
|
+
const _component_NvModal = resolveComponent("NvModal");
|
|
18406
|
+
const _component_NvPage = resolveComponent("NvPage");
|
|
18407
|
+
return openBlock(), createBlock(_component_NvPage, { gutter: 8 }, {
|
|
18408
|
+
default: withCtx(() => [
|
|
18409
|
+
createVNode(_component_NvBox, { title: "登录日志" }, {
|
|
18410
|
+
default: withCtx(() => [
|
|
18411
|
+
createVNode(_component_NvGrid, {
|
|
18412
|
+
ref: "mainGridRef",
|
|
18413
|
+
option: _ctx.mainGridOption
|
|
18414
|
+
}, {
|
|
18415
|
+
default: withCtx(() => [
|
|
18416
|
+
createVNode(_component_NvControlGroup, {
|
|
18417
|
+
width: "380px",
|
|
18418
|
+
icon: "md-refresh",
|
|
18419
|
+
label: "系统平台",
|
|
18420
|
+
labelWidth: 75,
|
|
18421
|
+
onClick: _ctx.getPlatData
|
|
18422
|
+
}, {
|
|
18423
|
+
default: withCtx(() => [
|
|
18424
|
+
createVNode(_component_Select, {
|
|
18425
|
+
modelValue: _ctx.platId,
|
|
18426
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.platId = $event),
|
|
18427
|
+
onOnChange: _ctx.doPlatformChange,
|
|
18428
|
+
transfer: ""
|
|
18429
|
+
}, {
|
|
18430
|
+
default: withCtx(() => [
|
|
18431
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.platData, (item, index2) => {
|
|
18432
|
+
return openBlock(), createBlock(_component_Option, {
|
|
18433
|
+
key: index2,
|
|
18434
|
+
value: item.Id
|
|
18435
|
+
}, {
|
|
18436
|
+
default: withCtx(() => [
|
|
18437
|
+
createTextVNode(toDisplayString(item.PlatformAbbreviation), 1)
|
|
18438
|
+
]),
|
|
18439
|
+
_: 2
|
|
18440
|
+
}, 1032, ["value"]);
|
|
18441
|
+
}), 128))
|
|
18442
|
+
]),
|
|
18443
|
+
_: 1
|
|
18444
|
+
}, 8, ["modelValue", "onOnChange"]),
|
|
18445
|
+
createVNode(_component_Spin, {
|
|
18446
|
+
fix: "",
|
|
18447
|
+
show: _ctx.spinPlatShow
|
|
18448
|
+
}, null, 8, ["show"])
|
|
18449
|
+
]),
|
|
18450
|
+
_: 1
|
|
18451
|
+
}, 8, ["onClick"])
|
|
18452
|
+
]),
|
|
18453
|
+
_: 1
|
|
18454
|
+
}, 8, ["option"])
|
|
18455
|
+
]),
|
|
18456
|
+
_: 1
|
|
18457
|
+
}),
|
|
18458
|
+
createVNode(_component_NvModal, {
|
|
18459
|
+
modelValue: _ctx.isShowModal,
|
|
18460
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.isShowModal = $event),
|
|
18461
|
+
mask: true,
|
|
18462
|
+
"mask-closable": false,
|
|
18463
|
+
width: 1200,
|
|
18464
|
+
title: _ctx.modalTitle,
|
|
18465
|
+
"z-index": 500
|
|
18466
|
+
}, {
|
|
18467
|
+
footer: withCtx(() => [
|
|
18468
|
+
createVNode(_component_Button, {
|
|
18469
|
+
type: "text",
|
|
18470
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.isShowModal = false)
|
|
18471
|
+
}, {
|
|
18472
|
+
default: withCtx(() => [
|
|
18473
|
+
createTextVNode("关闭")
|
|
18474
|
+
]),
|
|
18475
|
+
_: 1
|
|
18476
|
+
}),
|
|
18477
|
+
createVNode(_component_NvButton, {
|
|
18478
|
+
type: "primary",
|
|
18479
|
+
loading: _ctx.saveingMainLoading,
|
|
18480
|
+
onClick: _ctx.doSaveMain
|
|
18481
|
+
}, {
|
|
18482
|
+
default: withCtx(() => [
|
|
18483
|
+
createTextVNode("保存")
|
|
18484
|
+
]),
|
|
18485
|
+
_: 1
|
|
18486
|
+
}, 8, ["loading", "onClick"])
|
|
18487
|
+
]),
|
|
18488
|
+
default: withCtx(() => [
|
|
18489
|
+
createElementVNode("div", _hoisted_1$5, [
|
|
18490
|
+
_ctx.isShowModal ? (openBlock(), createBlock(_component_Form, {
|
|
18491
|
+
key: 0,
|
|
18492
|
+
class: "nv-pos-r",
|
|
18493
|
+
ref: "mainFormRef",
|
|
18494
|
+
model: _ctx.mainFormModel,
|
|
18495
|
+
"label-width": 115,
|
|
18496
|
+
rules: _ctx.mainFormRules
|
|
18497
|
+
}, {
|
|
18498
|
+
default: withCtx(() => [
|
|
18499
|
+
createVNode(_component_NvComFormUp, {
|
|
18500
|
+
ref: "mainComFormRef",
|
|
18501
|
+
formModel: _ctx.mainFormModel,
|
|
18502
|
+
formItems: _ctx.mainFormItems,
|
|
18503
|
+
onlyView: false
|
|
18504
|
+
}, null, 8, ["formModel", "formItems"])
|
|
18505
|
+
]),
|
|
18506
|
+
_: 1
|
|
18507
|
+
}, 8, ["model", "rules"])) : createCommentVNode("", true)
|
|
18508
|
+
])
|
|
18509
|
+
]),
|
|
18510
|
+
_: 1
|
|
18511
|
+
}, 8, ["modelValue", "title"])
|
|
18512
|
+
]),
|
|
18513
|
+
_: 1
|
|
18514
|
+
});
|
|
18515
|
+
}
|
|
18516
|
+
const SubLoginInfo = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
|
|
17875
18517
|
const propDefine$5 = {
|
|
17876
18518
|
linkParam: {
|
|
17877
18519
|
// 带入的参数
|
|
@@ -17917,7 +18559,7 @@ class ModuleInstance2 extends BaseInstance {
|
|
|
17917
18559
|
var _a;
|
|
17918
18560
|
this.spinPlatShow.value = true;
|
|
17919
18561
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
17920
|
-
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((
|
|
18562
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
|
|
17921
18563
|
PId: platId
|
|
17922
18564
|
})).orderBy(["OrderNo"]));
|
|
17923
18565
|
this.platData.value = this.utilities.parseApiResult(apiResult);
|
|
@@ -18056,7 +18698,8 @@ class ModuleInstance2 extends BaseInstance {
|
|
|
18056
18698
|
const dict = {
|
|
18057
18699
|
0: "路由",
|
|
18058
18700
|
1: "链接",
|
|
18059
|
-
2: "低代码"
|
|
18701
|
+
2: "低代码",
|
|
18702
|
+
3: "静态图片"
|
|
18060
18703
|
};
|
|
18061
18704
|
return dict[params.row["LoadMode"]];
|
|
18062
18705
|
}
|
|
@@ -18227,7 +18870,8 @@ class ModuleInstance2 extends BaseInstance {
|
|
|
18227
18870
|
datas: [
|
|
18228
18871
|
{ text: "路由", value: 0 },
|
|
18229
18872
|
{ text: "链接", value: 1 },
|
|
18230
|
-
{ text: "低代码", value:
|
|
18873
|
+
{ text: "低代码", value: 2 },
|
|
18874
|
+
{ text: "静态图片", value: 3 }
|
|
18231
18875
|
]
|
|
18232
18876
|
}
|
|
18233
18877
|
},
|
|
@@ -18687,7 +19331,7 @@ class ModuleInstance2 extends BaseInstance {
|
|
|
18687
19331
|
async loadOriginPlatforms() {
|
|
18688
19332
|
var _a;
|
|
18689
19333
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
18690
|
-
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.selectedPlatform.Id).or((
|
|
19334
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).ne("Id", this.selectedPlatform.Id).or((i2) => i2.allEq({
|
|
18691
19335
|
PId: platId
|
|
18692
19336
|
})).orderBy(["OrderNo"]));
|
|
18693
19337
|
this.originPlatform.list = this.utilities.parseApiResult(apiResult);
|
|
@@ -31608,9 +32252,9 @@ var Utils = {
|
|
|
31608
32252
|
}
|
|
31609
32253
|
}
|
|
31610
32254
|
const argArray = [];
|
|
31611
|
-
for (let
|
|
32255
|
+
for (let i2 = 1; i2 <= maxLength; i2++) {
|
|
31612
32256
|
let dollar = "";
|
|
31613
|
-
for (let j = 0; j <
|
|
32257
|
+
for (let j = 0; j < i2; j++) {
|
|
31614
32258
|
dollar += "$";
|
|
31615
32259
|
}
|
|
31616
32260
|
argArray.push(dollar);
|
|
@@ -32135,8 +32779,8 @@ Enumerable.prototype.traverseDepthFirst = function(func, resultSelector) {
|
|
|
32135
32779
|
try {
|
|
32136
32780
|
Utils.dispose(enumerator);
|
|
32137
32781
|
} finally {
|
|
32138
|
-
Enumerable.from(enumeratorStack).forEach(function(
|
|
32139
|
-
|
|
32782
|
+
Enumerable.from(enumeratorStack).forEach(function(s2) {
|
|
32783
|
+
s2.dispose();
|
|
32140
32784
|
});
|
|
32141
32785
|
}
|
|
32142
32786
|
}
|
|
@@ -32989,8 +33633,8 @@ Enumerable.prototype.shuffle = function() {
|
|
|
32989
33633
|
},
|
|
32990
33634
|
function() {
|
|
32991
33635
|
if (buffer.length > 0) {
|
|
32992
|
-
const
|
|
32993
|
-
return this.yieldReturn(buffer.splice(
|
|
33636
|
+
const i2 = Math.floor(Math.random() * buffer.length);
|
|
33637
|
+
return this.yieldReturn(buffer.splice(i2, 1)[0]);
|
|
32994
33638
|
}
|
|
32995
33639
|
return false;
|
|
32996
33640
|
},
|
|
@@ -33158,8 +33802,8 @@ Enumerable.prototype.average = function(selector) {
|
|
|
33158
33802
|
Enumerable.prototype.count = function(predicate) {
|
|
33159
33803
|
predicate = predicate == null ? Functions.True : Utils.createLambda(predicate);
|
|
33160
33804
|
var count = 0;
|
|
33161
|
-
this.forEach(function(x,
|
|
33162
|
-
if (predicate(x,
|
|
33805
|
+
this.forEach(function(x, i2) {
|
|
33806
|
+
if (predicate(x, i2))
|
|
33163
33807
|
++count;
|
|
33164
33808
|
});
|
|
33165
33809
|
return count;
|
|
@@ -33200,8 +33844,8 @@ Enumerable.prototype.sum = function(selector) {
|
|
|
33200
33844
|
Enumerable.prototype.elementAt = function(index2) {
|
|
33201
33845
|
var value;
|
|
33202
33846
|
var found = false;
|
|
33203
|
-
this.forEach(function(x,
|
|
33204
|
-
if (
|
|
33847
|
+
this.forEach(function(x, i2) {
|
|
33848
|
+
if (i2 == index2) {
|
|
33205
33849
|
value = x;
|
|
33206
33850
|
found = true;
|
|
33207
33851
|
return false;
|
|
@@ -33216,8 +33860,8 @@ Enumerable.prototype.elementAtOrDefault = function(index2, defaultValue) {
|
|
|
33216
33860
|
defaultValue = null;
|
|
33217
33861
|
var value;
|
|
33218
33862
|
var found = false;
|
|
33219
|
-
this.forEach(function(x,
|
|
33220
|
-
if (
|
|
33863
|
+
this.forEach(function(x, i2) {
|
|
33864
|
+
if (i2 == index2) {
|
|
33221
33865
|
value = x;
|
|
33222
33866
|
found = true;
|
|
33223
33867
|
return false;
|
|
@@ -33463,16 +34107,16 @@ Enumerable.prototype.takeFromLast = function(count) {
|
|
|
33463
34107
|
Enumerable.prototype.indexOf = function(item) {
|
|
33464
34108
|
var found = null;
|
|
33465
34109
|
if (typeof item === Types.Function) {
|
|
33466
|
-
this.forEach(function(x,
|
|
33467
|
-
if (item(x,
|
|
33468
|
-
found =
|
|
34110
|
+
this.forEach(function(x, i2) {
|
|
34111
|
+
if (item(x, i2)) {
|
|
34112
|
+
found = i2;
|
|
33469
34113
|
return false;
|
|
33470
34114
|
}
|
|
33471
34115
|
});
|
|
33472
34116
|
} else {
|
|
33473
|
-
this.forEach(function(x,
|
|
34117
|
+
this.forEach(function(x, i2) {
|
|
33474
34118
|
if (x === item) {
|
|
33475
|
-
found =
|
|
34119
|
+
found = i2;
|
|
33476
34120
|
return false;
|
|
33477
34121
|
}
|
|
33478
34122
|
});
|
|
@@ -33482,14 +34126,14 @@ Enumerable.prototype.indexOf = function(item) {
|
|
|
33482
34126
|
Enumerable.prototype.lastIndexOf = function(item) {
|
|
33483
34127
|
var result = -1;
|
|
33484
34128
|
if (typeof item === Types.Function) {
|
|
33485
|
-
this.forEach(function(x,
|
|
33486
|
-
if (item(x,
|
|
33487
|
-
result =
|
|
34129
|
+
this.forEach(function(x, i2) {
|
|
34130
|
+
if (item(x, i2))
|
|
34131
|
+
result = i2;
|
|
33488
34132
|
});
|
|
33489
34133
|
} else {
|
|
33490
|
-
this.forEach(function(x,
|
|
34134
|
+
this.forEach(function(x, i2) {
|
|
33491
34135
|
if (x === item)
|
|
33492
|
-
result =
|
|
34136
|
+
result = i2;
|
|
33493
34137
|
});
|
|
33494
34138
|
}
|
|
33495
34139
|
return result;
|
|
@@ -33817,8 +34461,8 @@ SortContext.prototype.GenerateKeys = function(source) {
|
|
|
33817
34461
|
var len = source.length;
|
|
33818
34462
|
var keySelector = this.keySelector;
|
|
33819
34463
|
var keys = new Array(len);
|
|
33820
|
-
for (let
|
|
33821
|
-
keys[
|
|
34464
|
+
for (let i2 = 0; i2 < len; i2++)
|
|
34465
|
+
keys[i2] = keySelector(source[i2]);
|
|
33822
34466
|
this.keys = keys;
|
|
33823
34467
|
if (this.child != null)
|
|
33824
34468
|
this.child.GenerateKeys(source);
|
|
@@ -34101,10 +34745,10 @@ var Dictionary = function() {
|
|
|
34101
34745
|
var entry = new HashEntry(key, value);
|
|
34102
34746
|
if (callHasOwnProperty(this.buckets, hash)) {
|
|
34103
34747
|
const array = this.buckets[hash];
|
|
34104
|
-
for (let
|
|
34105
|
-
if (this.compareSelector(array[
|
|
34106
|
-
this.entryList.replace(array[
|
|
34107
|
-
array[
|
|
34748
|
+
for (let i2 = 0; i2 < array.length; i2++) {
|
|
34749
|
+
if (this.compareSelector(array[i2].key) === compareKey) {
|
|
34750
|
+
this.entryList.replace(array[i2], entry);
|
|
34751
|
+
array[i2] = entry;
|
|
34108
34752
|
return;
|
|
34109
34753
|
}
|
|
34110
34754
|
}
|
|
@@ -34121,8 +34765,8 @@ var Dictionary = function() {
|
|
|
34121
34765
|
if (!callHasOwnProperty(this.buckets, hash))
|
|
34122
34766
|
return void 0;
|
|
34123
34767
|
var array = this.buckets[hash];
|
|
34124
|
-
for (let
|
|
34125
|
-
const entry = array[
|
|
34768
|
+
for (let i2 = 0; i2 < array.length; i2++) {
|
|
34769
|
+
const entry = array[i2];
|
|
34126
34770
|
if (this.compareSelector(entry.key) === compareKey)
|
|
34127
34771
|
return entry.value;
|
|
34128
34772
|
}
|
|
@@ -34133,11 +34777,11 @@ var Dictionary = function() {
|
|
|
34133
34777
|
var hash = computeHashCode(compareKey);
|
|
34134
34778
|
if (callHasOwnProperty(this.buckets, hash)) {
|
|
34135
34779
|
const array = this.buckets[hash];
|
|
34136
|
-
for (let
|
|
34137
|
-
if (this.compareSelector(array[
|
|
34780
|
+
for (let i2 = 0; i2 < array.length; i2++) {
|
|
34781
|
+
if (this.compareSelector(array[i2].key) === compareKey) {
|
|
34138
34782
|
const newEntry = new HashEntry(key, value);
|
|
34139
|
-
this.entryList.replace(array[
|
|
34140
|
-
array[
|
|
34783
|
+
this.entryList.replace(array[i2], newEntry);
|
|
34784
|
+
array[i2] = newEntry;
|
|
34141
34785
|
return true;
|
|
34142
34786
|
}
|
|
34143
34787
|
}
|
|
@@ -34150,8 +34794,8 @@ var Dictionary = function() {
|
|
|
34150
34794
|
if (!callHasOwnProperty(this.buckets, hash))
|
|
34151
34795
|
return false;
|
|
34152
34796
|
var array = this.buckets[hash];
|
|
34153
|
-
for (let
|
|
34154
|
-
if (this.compareSelector(array[
|
|
34797
|
+
for (let i2 = 0; i2 < array.length; i2++) {
|
|
34798
|
+
if (this.compareSelector(array[i2].key) === compareKey)
|
|
34155
34799
|
return true;
|
|
34156
34800
|
}
|
|
34157
34801
|
return false;
|
|
@@ -34167,10 +34811,10 @@ var Dictionary = function() {
|
|
|
34167
34811
|
if (!callHasOwnProperty(this.buckets, hash))
|
|
34168
34812
|
return;
|
|
34169
34813
|
var array = this.buckets[hash];
|
|
34170
|
-
for (let
|
|
34171
|
-
if (this.compareSelector(array[
|
|
34172
|
-
this.entryList.remove(array[
|
|
34173
|
-
array.splice(
|
|
34814
|
+
for (let i2 = 0; i2 < array.length; i2++) {
|
|
34815
|
+
if (this.compareSelector(array[i2].key) === compareKey) {
|
|
34816
|
+
this.entryList.remove(array[i2]);
|
|
34817
|
+
array.splice(i2, 1);
|
|
34174
34818
|
if (array.length == 0)
|
|
34175
34819
|
delete this.buckets[hash];
|
|
34176
34820
|
this.countField--;
|
|
@@ -34438,7 +35082,7 @@ let ProjectUserinforInstance$1 = class ProjectUserinforInstance extends BaseInst
|
|
|
34438
35082
|
var _a;
|
|
34439
35083
|
this.spinPlatShow.value = true;
|
|
34440
35084
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
34441
|
-
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((
|
|
35085
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
|
|
34442
35086
|
PId: platId
|
|
34443
35087
|
})).orderBy(["OrderNo"]));
|
|
34444
35088
|
this.platData.value = this.utilities.parseApiResult(apiResult);
|
|
@@ -35112,7 +35756,7 @@ class ProjectSummaryInstance extends BaseInstance {
|
|
|
35112
35756
|
if (arr && arr.length > 0) {
|
|
35113
35757
|
this.isShowForm.value = true;
|
|
35114
35758
|
this.isShowSpin.value = true;
|
|
35115
|
-
arr.forEach((x,
|
|
35759
|
+
arr.forEach((x, i2) => {
|
|
35116
35760
|
if (x.type == "region") {
|
|
35117
35761
|
let regionArr = [
|
|
35118
35762
|
{
|
|
@@ -35171,7 +35815,7 @@ class ProjectSummaryInstance extends BaseInstance {
|
|
|
35171
35815
|
] : []
|
|
35172
35816
|
}
|
|
35173
35817
|
];
|
|
35174
|
-
arr.splice(
|
|
35818
|
+
arr.splice(i2, 1, ...regionArr);
|
|
35175
35819
|
}
|
|
35176
35820
|
if (x.requiredd > 0) {
|
|
35177
35821
|
switch (x.type) {
|
|
@@ -35200,15 +35844,15 @@ class ProjectSummaryInstance extends BaseInstance {
|
|
|
35200
35844
|
}
|
|
35201
35845
|
this.mainFormItems.splice(0, this.mainFormItems.length, ...arr);
|
|
35202
35846
|
console.log("xxxxxxxxxxxxx", this.mainFormItems);
|
|
35203
|
-
this.mainFormItems.forEach((x,
|
|
35847
|
+
this.mainFormItems.forEach((x, i2) => {
|
|
35204
35848
|
if (x.model == "Province") {
|
|
35205
|
-
this.provinceIndex.value =
|
|
35849
|
+
this.provinceIndex.value = i2;
|
|
35206
35850
|
}
|
|
35207
35851
|
if (x.model == "City") {
|
|
35208
|
-
this.cityIndex.value =
|
|
35852
|
+
this.cityIndex.value = i2;
|
|
35209
35853
|
}
|
|
35210
35854
|
if (x.model == "Area") {
|
|
35211
|
-
this.areaIndex.value =
|
|
35855
|
+
this.areaIndex.value = i2;
|
|
35212
35856
|
}
|
|
35213
35857
|
});
|
|
35214
35858
|
console.log("xxxxxxxxxxxxx", this.mainFormItems);
|
|
@@ -35465,7 +36109,7 @@ class ProjectUserinforInstance2 extends BaseInstance {
|
|
|
35465
36109
|
var _a;
|
|
35466
36110
|
this.spinPlatShow.value = true;
|
|
35467
36111
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
35468
|
-
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((
|
|
36112
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
|
|
35469
36113
|
PId: platId
|
|
35470
36114
|
})).orderBy(["OrderNo"]));
|
|
35471
36115
|
this.platData.value = this.utilities.parseApiResult(apiResult);
|
|
@@ -35973,7 +36617,7 @@ class ProjectUserinforInstance2 extends BaseInstance {
|
|
|
35973
36617
|
let userRoles = this.utilities.parseApiResult(apiResult);
|
|
35974
36618
|
let insertRecords = [];
|
|
35975
36619
|
for (const item of chkDatas) {
|
|
35976
|
-
if (userRoles.findIndex((
|
|
36620
|
+
if (userRoles.findIndex((d2) => d2.RoleId == item.Id) == -1) {
|
|
35977
36621
|
insertRecords.push({
|
|
35978
36622
|
PlatformId: this.selectedPlatform.Id,
|
|
35979
36623
|
UserId: this.currentUser.Id,
|
|
@@ -35983,7 +36627,7 @@ class ProjectUserinforInstance2 extends BaseInstance {
|
|
|
35983
36627
|
}
|
|
35984
36628
|
let deleteRecords = [];
|
|
35985
36629
|
for (const item of userRoles) {
|
|
35986
|
-
if (chkDatas.findIndex((
|
|
36630
|
+
if (chkDatas.findIndex((d2) => d2.Id == item.RoleId) == -1) {
|
|
35987
36631
|
deleteRecords.push(item.Id);
|
|
35988
36632
|
}
|
|
35989
36633
|
}
|
|
@@ -36906,7 +37550,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
36906
37550
|
return new Instance$1(props, ctx);
|
|
36907
37551
|
}
|
|
36908
37552
|
});
|
|
36909
|
-
let Instance$1 = class
|
|
37553
|
+
let Instance$1 = class Instance2 extends BaseInstance {
|
|
36910
37554
|
// 全局属性
|
|
36911
37555
|
constructor(props, ctx) {
|
|
36912
37556
|
super();
|
|
@@ -37234,10 +37878,10 @@ const _sfc_main = defineComponent({
|
|
|
37234
37878
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
37235
37879
|
props: propDefine,
|
|
37236
37880
|
setup(props, ctx) {
|
|
37237
|
-
return new
|
|
37881
|
+
return new Instance3(props, ctx);
|
|
37238
37882
|
}
|
|
37239
37883
|
});
|
|
37240
|
-
class
|
|
37884
|
+
class Instance3 extends BaseInstance {
|
|
37241
37885
|
// 全局属性
|
|
37242
37886
|
constructor(props, ctx) {
|
|
37243
37887
|
super();
|
|
@@ -37347,7 +37991,7 @@ class Instance2 extends BaseInstance {
|
|
|
37347
37991
|
var _a;
|
|
37348
37992
|
this.spinPlatShow.value = true;
|
|
37349
37993
|
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
37350
|
-
let apiResult = this.utilities.parseApiResult(await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((
|
|
37994
|
+
let apiResult = this.utilities.parseApiResult(await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i2) => i2.allEq({
|
|
37351
37995
|
PId: platId
|
|
37352
37996
|
})).orderBy(["OrderNo"])));
|
|
37353
37997
|
console.log(apiResult, "平台信息");
|
|
@@ -37868,6 +38512,11 @@ const index = [
|
|
|
37868
38512
|
component: Information
|
|
37869
38513
|
},
|
|
37870
38514
|
// 平台设置(二级)
|
|
38515
|
+
{
|
|
38516
|
+
// 菜单模块
|
|
38517
|
+
path: "/permission-service/platform/submodule",
|
|
38518
|
+
component: Module
|
|
38519
|
+
},
|
|
37871
38520
|
{
|
|
37872
38521
|
// 项目管理
|
|
37873
38522
|
path: "/permission-service/platform/subplatform",
|
|
@@ -37908,6 +38557,11 @@ const index = [
|
|
|
37908
38557
|
path: "/permission-service/subplatform/subModule",
|
|
37909
38558
|
component: subModule
|
|
37910
38559
|
},
|
|
38560
|
+
{
|
|
38561
|
+
// 登录日志
|
|
38562
|
+
path: "/permission-service/subplatform/sublogininfo",
|
|
38563
|
+
component: SubLoginInfo
|
|
38564
|
+
},
|
|
37911
38565
|
{
|
|
37912
38566
|
// 地图定点
|
|
37913
38567
|
path: "/permission-service/institution/sublinepoins",
|