@newview/permission-service 1.2.13 → 1.2.14
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/dist/permission-service.js +1808 -257
- package/dist/permission-service.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -424,7 +424,7 @@ class UserSignApi extends PermissionBaseApi {
|
|
|
424
424
|
return "UserSign";
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
const propDefine$
|
|
427
|
+
const propDefine$u = {
|
|
428
428
|
linkParam: {
|
|
429
429
|
// 带入的参数
|
|
430
430
|
type: String,
|
|
@@ -436,12 +436,12 @@ const propDefine$s = {
|
|
|
436
436
|
default: "-"
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
|
-
const _sfc_main$
|
|
439
|
+
const _sfc_main$l = defineComponent({
|
|
440
440
|
name: "Platform",
|
|
441
441
|
components: {},
|
|
442
442
|
emits: [""],
|
|
443
443
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
444
|
-
props: propDefine$
|
|
444
|
+
props: propDefine$u,
|
|
445
445
|
setup(props, ctx) {
|
|
446
446
|
return new PlatformInstance$1(props, ctx);
|
|
447
447
|
}
|
|
@@ -818,13 +818,13 @@ const _export_sfc$2 = (sfc, props) => {
|
|
|
818
818
|
}
|
|
819
819
|
return target;
|
|
820
820
|
};
|
|
821
|
-
const _hoisted_1$
|
|
821
|
+
const _hoisted_1$k = {
|
|
822
822
|
class: "nv-flex",
|
|
823
823
|
style: { "justify-content": "space-between" }
|
|
824
824
|
};
|
|
825
|
-
const _hoisted_2$
|
|
826
|
-
const _hoisted_3$
|
|
827
|
-
function _sfc_render$
|
|
825
|
+
const _hoisted_2$c = { style: { "height": "550px", "overflow-y": "auto" } };
|
|
826
|
+
const _hoisted_3$c = { style: { "height": "400px", "overflow-y": "auto" } };
|
|
827
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
828
828
|
const _component_NvList = resolveComponent("NvList");
|
|
829
829
|
const _component_Icon = resolveComponent("Icon");
|
|
830
830
|
const _component_Space = resolveComponent("Space");
|
|
@@ -846,7 +846,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
846
846
|
"show-arrow": true
|
|
847
847
|
}, {
|
|
848
848
|
footer: withCtx(() => [
|
|
849
|
-
createElementVNode("div", _hoisted_1$
|
|
849
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
850
850
|
createVNode(_component_Space, null, {
|
|
851
851
|
default: withCtx(() => [
|
|
852
852
|
createVNode(_component_Icon, {
|
|
@@ -927,7 +927,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
927
927
|
}, 8, ["loading", "onClick"])
|
|
928
928
|
]),
|
|
929
929
|
default: withCtx(() => [
|
|
930
|
-
createElementVNode("div", _hoisted_2$
|
|
930
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
931
931
|
createVNode(_component_Form, {
|
|
932
932
|
ref: "refPlatformForm",
|
|
933
933
|
model: _ctx.platformFormModel,
|
|
@@ -977,7 +977,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
977
977
|
}, 8, ["loading", "onClick"])
|
|
978
978
|
]),
|
|
979
979
|
default: withCtx(() => [
|
|
980
|
-
createElementVNode("div", _hoisted_3$
|
|
980
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
981
981
|
createVNode(_component_Form, {
|
|
982
982
|
ref: "refGroupForm",
|
|
983
983
|
model: _ctx.groupFormModel,
|
|
@@ -999,7 +999,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
999
999
|
_: 1
|
|
1000
1000
|
});
|
|
1001
1001
|
}
|
|
1002
|
-
const Platform = /* @__PURE__ */ _export_sfc$2(_sfc_main$
|
|
1002
|
+
const Platform = /* @__PURE__ */ _export_sfc$2(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-f58b0adc"]]);
|
|
1003
1003
|
class BasicsBaseApi extends BaseApi {
|
|
1004
1004
|
get ProxyName() {
|
|
1005
1005
|
return "BasicsApi";
|
|
@@ -1136,7 +1136,7 @@ class CaptchaApi extends BasicsBaseApi {
|
|
|
1136
1136
|
return this.send({ source }, "getCaptcha", Methods.GET);
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
|
-
const propDefine$
|
|
1139
|
+
const propDefine$t = {
|
|
1140
1140
|
theme: {
|
|
1141
1141
|
// 主题颜色 light dark
|
|
1142
1142
|
type: String,
|
|
@@ -1148,12 +1148,12 @@ const propDefine$r = {
|
|
|
1148
1148
|
default: true
|
|
1149
1149
|
}
|
|
1150
1150
|
};
|
|
1151
|
-
const _sfc_main$
|
|
1151
|
+
const _sfc_main$k = defineComponent({
|
|
1152
1152
|
name: "BaseLogin",
|
|
1153
1153
|
components: {},
|
|
1154
1154
|
emits: [""],
|
|
1155
1155
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
1156
|
-
props: propDefine$
|
|
1156
|
+
props: propDefine$t,
|
|
1157
1157
|
setup(props, ctx) {
|
|
1158
1158
|
return new BaseLoginInstance$1(props, ctx);
|
|
1159
1159
|
}
|
|
@@ -1452,18 +1452,18 @@ let BaseLoginInstance$1 = class BaseLoginInstance extends BaseInstance {
|
|
|
1452
1452
|
//#endregion API END
|
|
1453
1453
|
};
|
|
1454
1454
|
const BaseLogin_vue_vue_type_style_index_0_scoped_b23ae47e_lang = "";
|
|
1455
|
-
const _withScopeId$
|
|
1456
|
-
const _hoisted_1$
|
|
1457
|
-
const _hoisted_2$
|
|
1458
|
-
const _hoisted_3$
|
|
1459
|
-
const _hoisted_4$
|
|
1460
|
-
const _hoisted_5$
|
|
1461
|
-
const _hoisted_6$
|
|
1462
|
-
const _hoisted_7$
|
|
1455
|
+
const _withScopeId$6 = (n) => (pushScopeId("data-v-b23ae47e"), n = n(), popScopeId(), n);
|
|
1456
|
+
const _hoisted_1$j = { class: "login-form" };
|
|
1457
|
+
const _hoisted_2$b = { class: "login-body" };
|
|
1458
|
+
const _hoisted_3$b = { class: "login-tabs" };
|
|
1459
|
+
const _hoisted_4$b = { class: "login-panel" };
|
|
1460
|
+
const _hoisted_5$8 = { class: "login-input-item" };
|
|
1461
|
+
const _hoisted_6$8 = { class: "login-input-item" };
|
|
1462
|
+
const _hoisted_7$6 = {
|
|
1463
1463
|
class: "login-input-item",
|
|
1464
1464
|
style: { "text-align": "right" }
|
|
1465
1465
|
};
|
|
1466
|
-
const _hoisted_8$
|
|
1466
|
+
const _hoisted_8$6 = { class: "login-panel" };
|
|
1467
1467
|
const _hoisted_9$4 = { class: "login-input-item" };
|
|
1468
1468
|
const _hoisted_10$4 = { class: "login-input-item" };
|
|
1469
1469
|
const _hoisted_11$4 = {
|
|
@@ -1471,7 +1471,7 @@ const _hoisted_11$4 = {
|
|
|
1471
1471
|
style: { "text-align": "right" }
|
|
1472
1472
|
};
|
|
1473
1473
|
const _hoisted_12$3 = { key: 0 };
|
|
1474
|
-
const _hoisted_13$
|
|
1474
|
+
const _hoisted_13$3 = { key: 1 };
|
|
1475
1475
|
const _hoisted_14$1 = {
|
|
1476
1476
|
key: 1,
|
|
1477
1477
|
class: "captcha-item"
|
|
@@ -1483,14 +1483,14 @@ const _hoisted_15$1 = {
|
|
|
1483
1483
|
const _hoisted_16$1 = { class: "login-tip" };
|
|
1484
1484
|
const _hoisted_17$1 = { key: 0 };
|
|
1485
1485
|
const _hoisted_18$1 = { key: 1 };
|
|
1486
|
-
const _hoisted_19 = /* @__PURE__ */ _withScopeId$
|
|
1486
|
+
const _hoisted_19 = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ createElementVNode("div", { class: "captcha-tip" }, "在新设备登录,需要进行短信验证!", -1));
|
|
1487
1487
|
const _hoisted_20 = { key: 0 };
|
|
1488
1488
|
const _hoisted_21 = { key: 1 };
|
|
1489
1489
|
const _hoisted_22 = {
|
|
1490
1490
|
key: 1,
|
|
1491
1491
|
class: "captcha-item"
|
|
1492
1492
|
};
|
|
1493
|
-
function _sfc_render$
|
|
1493
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1494
1494
|
const _component_Input = resolveComponent("Input");
|
|
1495
1495
|
const _component_Checkbox = resolveComponent("Checkbox");
|
|
1496
1496
|
const _component_Icon = resolveComponent("Icon");
|
|
@@ -1498,10 +1498,10 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1498
1498
|
const _component_FormItem = resolveComponent("FormItem");
|
|
1499
1499
|
const _component_Form = resolveComponent("Form");
|
|
1500
1500
|
const _component_Modal = resolveComponent("Modal");
|
|
1501
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1501
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
1502
1502
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1503
|
-
createElementVNode("div", _hoisted_2$
|
|
1504
|
-
createElementVNode("div", _hoisted_3$
|
|
1503
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
1504
|
+
createElementVNode("div", _hoisted_3$b, [
|
|
1505
1505
|
createElementVNode("div", {
|
|
1506
1506
|
class: normalizeClass(_ctx.loadType == "userName" ? "login-tab login-tab--active" : "login-tab"),
|
|
1507
1507
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.loadType = "userName")
|
|
@@ -1511,8 +1511,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1511
1511
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.loadType = "captcha")
|
|
1512
1512
|
}, "验证码登录", 2)
|
|
1513
1513
|
]),
|
|
1514
|
-
withDirectives(createElementVNode("div", _hoisted_4$
|
|
1515
|
-
createElementVNode("div", _hoisted_5$
|
|
1514
|
+
withDirectives(createElementVNode("div", _hoisted_4$b, [
|
|
1515
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
1516
1516
|
createVNode(_component_Input, {
|
|
1517
1517
|
size: "large",
|
|
1518
1518
|
prefix: "md-person",
|
|
@@ -1522,7 +1522,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1522
1522
|
clearable: ""
|
|
1523
1523
|
}, null, 8, ["modelValue"])
|
|
1524
1524
|
]),
|
|
1525
|
-
createElementVNode("div", _hoisted_6$
|
|
1525
|
+
createElementVNode("div", _hoisted_6$8, [
|
|
1526
1526
|
createVNode(_component_Input, {
|
|
1527
1527
|
type: "password",
|
|
1528
1528
|
size: "large",
|
|
@@ -1533,7 +1533,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1533
1533
|
password: ""
|
|
1534
1534
|
}, null, 8, ["modelValue"])
|
|
1535
1535
|
]),
|
|
1536
|
-
createElementVNode("div", _hoisted_7$
|
|
1536
|
+
createElementVNode("div", _hoisted_7$6, [
|
|
1537
1537
|
createVNode(_component_Checkbox, {
|
|
1538
1538
|
modelValue: _ctx.autoLogin,
|
|
1539
1539
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.autoLogin = $event)
|
|
@@ -1547,7 +1547,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1547
1547
|
], 512), [
|
|
1548
1548
|
[vShow, _ctx.loadType == "userName"]
|
|
1549
1549
|
]),
|
|
1550
|
-
withDirectives(createElementVNode("div", _hoisted_8$
|
|
1550
|
+
withDirectives(createElementVNode("div", _hoisted_8$6, [
|
|
1551
1551
|
createElementVNode("div", _hoisted_9$4, [
|
|
1552
1552
|
createVNode(_component_Input, {
|
|
1553
1553
|
size: "large",
|
|
@@ -1577,7 +1577,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1577
1577
|
style: { "animation": "ani-load-loop 1s linear infinite" }
|
|
1578
1578
|
}),
|
|
1579
1579
|
createTextVNode("发送中..")
|
|
1580
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_13$
|
|
1580
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_13$3, [
|
|
1581
1581
|
_ctx.canGetCaptcha ? (openBlock(), createElementBlock("span", {
|
|
1582
1582
|
key: 0,
|
|
1583
1583
|
class: "captcha-item_a",
|
|
@@ -1675,8 +1675,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1675
1675
|
}, 8, ["modelValue"])
|
|
1676
1676
|
]);
|
|
1677
1677
|
}
|
|
1678
|
-
const BaseLogin = /* @__PURE__ */ _export_sfc$2(_sfc_main$
|
|
1679
|
-
const propDefine$
|
|
1678
|
+
const BaseLogin = /* @__PURE__ */ _export_sfc$2(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-b23ae47e"]]);
|
|
1679
|
+
const propDefine$s = {
|
|
1680
1680
|
defaultLoad: {
|
|
1681
1681
|
// 默认选中
|
|
1682
1682
|
type: Boolean,
|
|
@@ -1693,12 +1693,12 @@ const propDefine$q = {
|
|
|
1693
1693
|
default: true
|
|
1694
1694
|
}
|
|
1695
1695
|
};
|
|
1696
|
-
const _sfc_main$
|
|
1696
|
+
const _sfc_main$j = defineComponent({
|
|
1697
1697
|
name: "SelectPlatform",
|
|
1698
1698
|
components: {},
|
|
1699
1699
|
emits: ["select"],
|
|
1700
1700
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
1701
|
-
props: propDefine$
|
|
1701
|
+
props: propDefine$s,
|
|
1702
1702
|
setup(props, ctx) {
|
|
1703
1703
|
return new SelectPlatformInstance$1(props, ctx);
|
|
1704
1704
|
}
|
|
@@ -1756,7 +1756,7 @@ let SelectPlatformInstance$1 = class SelectPlatformInstance extends BaseInstance
|
|
|
1756
1756
|
}
|
|
1757
1757
|
//#endregion 系统平台 END
|
|
1758
1758
|
};
|
|
1759
|
-
function _sfc_render$
|
|
1759
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1760
1760
|
const _component_Option = resolveComponent("Option");
|
|
1761
1761
|
const _component_Select = resolveComponent("Select");
|
|
1762
1762
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -1798,7 +1798,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1798
1798
|
_: 1
|
|
1799
1799
|
}, 8, ["width", "label", "labelWidth", "onClick"]);
|
|
1800
1800
|
}
|
|
1801
|
-
const SelectPlatform = /* @__PURE__ */ _export_sfc$2(_sfc_main$
|
|
1801
|
+
const SelectPlatform = /* @__PURE__ */ _export_sfc$2(_sfc_main$j, [["render", _sfc_render$j]]);
|
|
1802
1802
|
class CASignBaseApi extends BaseOldApi {
|
|
1803
1803
|
get ProxyName() {
|
|
1804
1804
|
return "CASignApi";
|
|
@@ -1876,7 +1876,7 @@ const doSeal = async (sealKey, userPin, sealContent) => {
|
|
|
1876
1876
|
return errorResult(result.head.msg);
|
|
1877
1877
|
}
|
|
1878
1878
|
};
|
|
1879
|
-
const propDefine$
|
|
1879
|
+
const propDefine$r = {
|
|
1880
1880
|
platformId: {
|
|
1881
1881
|
// 平台Id
|
|
1882
1882
|
type: Number,
|
|
@@ -1908,7 +1908,7 @@ defineComponent({
|
|
|
1908
1908
|
components: {},
|
|
1909
1909
|
emits: ["signSuccess"],
|
|
1910
1910
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
1911
|
-
props: propDefine$
|
|
1911
|
+
props: propDefine$r,
|
|
1912
1912
|
setup(props, ctx) {
|
|
1913
1913
|
return new CASignInstance$1(props, ctx);
|
|
1914
1914
|
}
|
|
@@ -2005,7 +2005,7 @@ let CASignInstance$1 = class CASignInstance extends BaseInstance {
|
|
|
2005
2005
|
//#endregion 执行签字 END
|
|
2006
2006
|
};
|
|
2007
2007
|
const CASign_vue_vue_type_style_index_0_scoped_4e1e0a16_lang = "";
|
|
2008
|
-
const propDefine$
|
|
2008
|
+
const propDefine$q = {
|
|
2009
2009
|
loadCount: {
|
|
2010
2010
|
// 加载Count方法
|
|
2011
2011
|
type: Function
|
|
@@ -2016,7 +2016,7 @@ defineComponent({
|
|
|
2016
2016
|
components: { SelectPlatform },
|
|
2017
2017
|
emits: ["change"],
|
|
2018
2018
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
2019
|
-
props: propDefine$
|
|
2019
|
+
props: propDefine$q,
|
|
2020
2020
|
setup(props, ctx) {
|
|
2021
2021
|
return new InstitutionTreeInstance$1(props, ctx);
|
|
2022
2022
|
}
|
|
@@ -2114,7 +2114,7 @@ let InstitutionTreeInstance$1 = class InstitutionTreeInstance extends BaseInstan
|
|
|
2114
2114
|
//#endregion 机构树 END
|
|
2115
2115
|
};
|
|
2116
2116
|
const InstitutionTree_vue_vue_type_style_index_0_scoped_35da1abc_lang = "";
|
|
2117
|
-
const propDefine$
|
|
2117
|
+
const propDefine$p = {
|
|
2118
2118
|
multiple: {
|
|
2119
2119
|
// 是否多选
|
|
2120
2120
|
type: Boolean,
|
|
@@ -2135,12 +2135,12 @@ const propDefine$n = {
|
|
|
2135
2135
|
default: ""
|
|
2136
2136
|
}
|
|
2137
2137
|
};
|
|
2138
|
-
const _sfc_main$
|
|
2138
|
+
const _sfc_main$i = defineComponent({
|
|
2139
2139
|
name: "ProjectSel",
|
|
2140
2140
|
components: {},
|
|
2141
2141
|
emits: ["on-select", "on-close"],
|
|
2142
2142
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
2143
|
-
props: propDefine$
|
|
2143
|
+
props: propDefine$p,
|
|
2144
2144
|
setup(props, ctx) {
|
|
2145
2145
|
return new Instance(props, ctx);
|
|
2146
2146
|
}
|
|
@@ -2407,14 +2407,14 @@ class Instance extends BaseInstance {
|
|
|
2407
2407
|
//#endregion 人员相关 END
|
|
2408
2408
|
}
|
|
2409
2409
|
const PersonSel_vue_vue_type_style_index_0_scoped_79a185ac_lang = "";
|
|
2410
|
-
const _hoisted_1$
|
|
2411
|
-
const _hoisted_2$
|
|
2412
|
-
const _hoisted_3$
|
|
2410
|
+
const _hoisted_1$i = { class: "nv-flex-col nv-full" };
|
|
2411
|
+
const _hoisted_2$a = { style: { "overflow-y": "auto", "height": "100%", "overflow-x": "hidden" } };
|
|
2412
|
+
const _hoisted_3$a = {
|
|
2413
2413
|
key: 0,
|
|
2414
2414
|
style: { "font-size": "16px", "margin-right": "10px" }
|
|
2415
2415
|
};
|
|
2416
|
-
const _hoisted_4$
|
|
2417
|
-
function _sfc_render$
|
|
2416
|
+
const _hoisted_4$a = { style: { "text-align": "right" } };
|
|
2417
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2418
2418
|
const _component_Tree = resolveComponent("Tree");
|
|
2419
2419
|
const _component_NvBox = resolveComponent("NvBox");
|
|
2420
2420
|
const _component_Divider = resolveComponent("Divider");
|
|
@@ -2423,7 +2423,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2423
2423
|
const _component_NvPage = resolveComponent("NvPage");
|
|
2424
2424
|
const _component_Button = resolveComponent("Button");
|
|
2425
2425
|
const _component_Space = resolveComponent("Space");
|
|
2426
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2426
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
2427
2427
|
createVNode(_component_NvPage, { gutter: 8 }, {
|
|
2428
2428
|
default: withCtx(() => [
|
|
2429
2429
|
_ctx.institutionShow ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -2432,7 +2432,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2432
2432
|
width: "300px"
|
|
2433
2433
|
}, {
|
|
2434
2434
|
default: withCtx(() => [
|
|
2435
|
-
createElementVNode("div", _hoisted_2$
|
|
2435
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
2436
2436
|
createVNode(_component_Tree, {
|
|
2437
2437
|
ref: "institutionTreeRef",
|
|
2438
2438
|
data: _ctx.institutionData,
|
|
@@ -2454,7 +2454,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2454
2454
|
], 64)) : createCommentVNode("", true),
|
|
2455
2455
|
createVNode(_component_NvBox, null, {
|
|
2456
2456
|
title: withCtx(() => [
|
|
2457
|
-
_ctx.title ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2457
|
+
_ctx.title ? (openBlock(), createElementBlock("span", _hoisted_3$a, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
2458
2458
|
createVNode(_component_Input, {
|
|
2459
2459
|
modelValue: _ctx.personSearchText,
|
|
2460
2460
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.personSearchText = $event),
|
|
@@ -2476,7 +2476,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2476
2476
|
]),
|
|
2477
2477
|
_: 1
|
|
2478
2478
|
}),
|
|
2479
|
-
createElementVNode("div", _hoisted_4$
|
|
2479
|
+
createElementVNode("div", _hoisted_4$a, [
|
|
2480
2480
|
createVNode(_component_Space, null, {
|
|
2481
2481
|
default: withCtx(() => [
|
|
2482
2482
|
createVNode(_component_Button, { onClick: _ctx.close }, {
|
|
@@ -2500,7 +2500,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2500
2500
|
])
|
|
2501
2501
|
]);
|
|
2502
2502
|
}
|
|
2503
|
-
const PersonSel = /* @__PURE__ */ _export_sfc$2(_sfc_main$
|
|
2503
|
+
const PersonSel = /* @__PURE__ */ _export_sfc$2(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-79a185ac"]]);
|
|
2504
2504
|
class ActivitiBaseApi extends BaseApi {
|
|
2505
2505
|
get ProxyName() {
|
|
2506
2506
|
return "ActivitiBaseApi";
|
|
@@ -3896,11 +3896,11 @@ const _hoisted_8$2$2 = /* @__PURE__ */ _withScopeId$1$1(() => /* @__PURE__ */ cr
|
|
|
3896
3896
|
d: "M156.661991 699.757959h21.096999a10.443999 10.443999 0 0 1 10.235999 10.443999c0 5.765-4.491 10.443999-10.235999 10.444h-21.096999v21.097999a10.443999 10.443999 0 0 1-10.444 10.234999 10.276999 10.276999 0 0 1-10.443999-10.234999v-21.097999h-21.096999a10.443999 10.443999 0 0 1-10.234999-10.444c0-5.765 4.49-10.443999 10.234999-10.443999h21.096999v-21.096999a10.443999 10.443999 0 0 1 10.443999-10.234999c5.765 0 10.443999 4.49 10.444 10.234999v21.096999z m1378.627919-83.552995v-21.096999a10.276999 10.276999 0 0 0-10.443999-10.234999 10.443999 10.443999 0 0 0-10.444 10.234999v21.096999h-21.096998a10.276999 10.276999 0 0 0-10.235 10.443999c0 5.598 4.595 10.443999 10.235 10.444h21.096998v21.096998c0 5.745 4.679 10.235999 10.444 10.236a10.443999 10.443999 0 0 0 10.443999-10.236v-21.096998h21.097999c5.744 0 10.234999-4.679 10.234999-10.444a10.443999 10.443999 0 0 0-10.234999-10.443999h-21.097999zM776.459955 960.861944H250.596985a20.804999 20.804999 0 0 1-20.825998-20.887999c0-11.529999 9.462999-20.888999 20.825998-20.888999h94.727995a83.009995 83.009995 0 0 1-11.112-41.671997v-605.969965a83.489995 83.489995 0 0 1 83.636996-83.447995h62.580996v-20.992999a83.489995 83.489995 0 0 1 83.636995-83.448995h501.151971a83.448995 83.448995 0 0 1 83.636995 83.448995v605.969965c0 15.184999-4.053 29.409998-11.134 41.671997h115.553994c11.551999 0 20.909999 9.273999 20.909998 20.887999 0 11.529999-9.295999 20.887999-20.888998 20.887999h-250.659986v20.992999c0 15.185999-4.052 29.409998-11.132999 41.671997h11.195999c11.488999 0 20.825999 9.274999 20.825999 20.888999 0 11.529999-9.462999 20.887999-20.825999 20.887999H892.807948a41.657998 41.657998 0 0 1-6.413 50.862997 41.671998 41.671998 0 0 1-59.071996 0l-50.862997-50.862997z m76.367995-41.776998h66.423996c22.977999 0 41.609998-18.589999 41.609998-41.879997V270.460984c0-22.559999-18.047999-40.689998-40.313998-40.689997H416.303976c-22.266999 0-40.314998 18.213999-40.314998 40.689997v606.741965c0 23.123999 18.799999 41.880998 41.589998 41.880997h317.083981l-10.736999-10.756999a41.692998 41.692998 0 0 1-10.862-40.376998l-19.718999-19.739999a146.259991 146.259991 0 0 1-190.980988-220.516987 146.217991 146.217991 0 0 1 220.517987 190.980989l19.738998 19.739999a41.629998 41.629998 0 0 1 40.376998 10.839999l69.829996 69.829996z m149.809991-104.440994h62.852997a41.796998 41.796998 0 0 0 41.589997-41.776997v-605.759965c0-23.144999-18.632999-41.776998-41.589997-41.776997H563.774967a41.796998 41.796998 0 0 0-41.566998 41.775997v20.888999h396.793977a83.448995 83.448995 0 0 1 83.636995 83.448995v543.199968zM266.326984 46.998997h31.122999c8.773999 0 15.875999 6.955 15.875999 15.665999 0 8.647999-7.102 15.665999-15.875999 15.665999h-31.122999v31.123999c0 8.772999-6.956 15.874999-15.665999 15.874999a15.769999 15.769999 0 0 1-15.666999-15.874999V78.329995H203.869988a15.728999 15.728999 0 0 1-15.874999-15.665999c0-8.647999 7.102-15.665999 15.874999-15.665999h31.122998V15.874999C234.992986 7.102 241.949986 0 250.659985 0c8.646999 0 15.665999 7.102 15.665999 15.874999V46.999997zM20.887999 939.973945c0-11.529999 9.462999-20.888999 20.825999-20.888999h125.454992c11.488999 0 20.825999 9.274999 20.825999 20.888999 0 11.529999-9.462999 20.887999-20.825999 20.887999H41.713998a20.804999 20.804999 0 0 1-20.825999-20.887999z m658.733961-135.021992A104.441994 104.441994 0 1 0 531.899969 657.229961a104.441994 104.441994 0 0 0 147.721991 147.721992z m-220.079987-491.626971a20.887999 20.887999 0 0 1 20.867999-20.888999h229.791986a20.887999 20.887999 0 1 1 0 41.776997H480.430972a20.825999 20.825999 0 0 1-20.887999-20.887998z m0 104.440994c0-11.529999 9.295999-20.887999 20.742999-20.887999H814.789952c11.446999 0 20.741999 9.273999 20.741999 20.887999 0 11.529999-9.294999 20.887999-20.741999 20.887998H480.284972a20.762999 20.762999 0 0 1-20.741999-20.887998z m0 104.441993c0-11.529999 9.316999-20.888999 20.846999-20.888998h146.301991c11.509999 0 20.845999 9.274999 20.845999 20.888998 0 11.529999-9.315999 20.887999-20.845999 20.887999H480.388972a20.804999 20.804999 0 0 1-20.845999-20.887999zM62.665996 396.877977a62.664996 62.664996 0 1 1 0-125.329993 62.664996 62.664996 0 0 1 0 125.329993z m0-31.332998a31.331998 31.331998 0 1 0 0-62.664997 31.331998 31.331998 0 0 0 0 62.664997z m1295.074924-93.996995a62.664996 62.664996 0 1 1 0-125.329993 62.664996 62.664996 0 0 1 0 125.329993z m0-31.332998a31.331998 31.331998 0 1 0 0-62.663996 31.331998 31.331998 0 0 0 0 62.663996z",
|
|
3897
3897
|
"p-id": "4560"
|
|
3898
3898
|
}, null, -1));
|
|
3899
|
-
const _hoisted_9$2$
|
|
3899
|
+
const _hoisted_9$2$2 = [
|
|
3900
3900
|
_hoisted_8$2$2
|
|
3901
3901
|
];
|
|
3902
|
-
const _hoisted_10$2 = { class: "file-upload-list-cover" };
|
|
3903
|
-
const _hoisted_11$2 = { class: "file-upload-btn" };
|
|
3902
|
+
const _hoisted_10$2$1 = { class: "file-upload-list-cover" };
|
|
3903
|
+
const _hoisted_11$2$1 = { class: "file-upload-btn" };
|
|
3904
3904
|
function _sfc_render$5$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3905
3905
|
const _component_Image = resolveComponent("Image");
|
|
3906
3906
|
const _component_Icon = resolveComponent("Icon");
|
|
@@ -3985,7 +3985,7 @@ function _sfc_render$5$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3985
3985
|
}, 1032, ["multiple", "format", "max-size", "action", "headers", "data", "on-success", "on-format-error", "on-exceeded-size", "before-upload"])) : createCommentVNode("", true),
|
|
3986
3986
|
_ctx.readonly && _ctx.fileList.length == 0 ? (openBlock(), createElementBlock("div", _hoisted_5$2$2, [
|
|
3987
3987
|
createElementVNode("i", _hoisted_6$2$2, [
|
|
3988
|
-
(openBlock(), createElementBlock("svg", _hoisted_7$2$2, _hoisted_9$2$
|
|
3988
|
+
(openBlock(), createElementBlock("svg", _hoisted_7$2$2, _hoisted_9$2$2))
|
|
3989
3989
|
]),
|
|
3990
3990
|
createElementVNode("div", null, toDisplayString(_ctx.nullMsg), 1)
|
|
3991
3991
|
])) : createCommentVNode("", true)
|
|
@@ -4013,7 +4013,7 @@ function _sfc_render$5$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4013
4013
|
width: "100%",
|
|
4014
4014
|
height: "100%"
|
|
4015
4015
|
}, null, 8, ["src"]),
|
|
4016
|
-
createElementVNode("div", _hoisted_10$2, [
|
|
4016
|
+
createElementVNode("div", _hoisted_10$2$1, [
|
|
4017
4017
|
createVNode(_component_Space, null, {
|
|
4018
4018
|
default: withCtx(() => [
|
|
4019
4019
|
createVNode(_component_Icon, {
|
|
@@ -4056,7 +4056,7 @@ function _sfc_render$5$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4056
4056
|
style: { "display": "inline-block", "width": "78px" }
|
|
4057
4057
|
}, {
|
|
4058
4058
|
default: withCtx(() => [
|
|
4059
|
-
createElementVNode("div", _hoisted_11$2, [
|
|
4059
|
+
createElementVNode("div", _hoisted_11$2$1, [
|
|
4060
4060
|
createVNode(_component_Icon, {
|
|
4061
4061
|
type: "ios-camera",
|
|
4062
4062
|
size: "20"
|
|
@@ -21596,7 +21596,7 @@ const _hoisted_10$1$2 = {
|
|
|
21596
21596
|
style: { "max-height": "220px" }
|
|
21597
21597
|
};
|
|
21598
21598
|
const _hoisted_11$1$1 = ["onClick"];
|
|
21599
|
-
const _hoisted_12$1 = {
|
|
21599
|
+
const _hoisted_12$1$1 = {
|
|
21600
21600
|
key: 0,
|
|
21601
21601
|
class: "nv-text-r",
|
|
21602
21602
|
style: { "padding-right": "10px" }
|
|
@@ -21691,7 +21691,7 @@ function _sfc_render$2$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21691
21691
|
], 8, _hoisted_11$1$1);
|
|
21692
21692
|
}), 256))
|
|
21693
21693
|
]),
|
|
21694
|
-
_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
|
|
21694
|
+
_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_12$1$1, [
|
|
21695
21695
|
createVNode(_component_Button, {
|
|
21696
21696
|
type: "primary",
|
|
21697
21697
|
size: "small",
|
|
@@ -21924,18 +21924,18 @@ class StructureSelectInstance extends BaseInstance {
|
|
|
21924
21924
|
}
|
|
21925
21925
|
}
|
|
21926
21926
|
}
|
|
21927
|
-
const _withScopeId$
|
|
21928
|
-
const _hoisted_1$
|
|
21929
|
-
const _hoisted_2$
|
|
21930
|
-
const _hoisted_3$
|
|
21931
|
-
const _hoisted_4$
|
|
21932
|
-
const _hoisted_5$
|
|
21927
|
+
const _withScopeId$5 = (n) => (pushScopeId("data-v-502883e6"), n = n(), popScopeId(), n);
|
|
21928
|
+
const _hoisted_1$h = { key: 1 };
|
|
21929
|
+
const _hoisted_2$9 = { class: "nv-pos-r" };
|
|
21930
|
+
const _hoisted_3$9 = { class: "nv-c-p structure-sel-box" };
|
|
21931
|
+
const _hoisted_4$9 = { key: 0 };
|
|
21932
|
+
const _hoisted_5$7 = {
|
|
21933
21933
|
key: 0,
|
|
21934
21934
|
class: "nv-text-nowrap"
|
|
21935
21935
|
};
|
|
21936
|
-
const _hoisted_6$
|
|
21937
|
-
const _hoisted_7$
|
|
21938
|
-
const _hoisted_8$
|
|
21936
|
+
const _hoisted_6$7 = { key: 1 };
|
|
21937
|
+
const _hoisted_7$5 = { key: 0 };
|
|
21938
|
+
const _hoisted_8$5 = { key: 1 };
|
|
21939
21939
|
const _hoisted_9$3 = {
|
|
21940
21940
|
key: 0,
|
|
21941
21941
|
style: { "margin-bottom": "10px" }
|
|
@@ -21945,8 +21945,8 @@ const _hoisted_10$3 = {
|
|
|
21945
21945
|
style: { "height": "280px" }
|
|
21946
21946
|
};
|
|
21947
21947
|
const _hoisted_11$3 = { class: "nv-flex-1 nv-flex-col nv-full-h" };
|
|
21948
|
-
const _hoisted_12$2 = /* @__PURE__ */ _withScopeId$
|
|
21949
|
-
const _hoisted_13$
|
|
21948
|
+
const _hoisted_12$2 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("div", null, "单位工程:", -1));
|
|
21949
|
+
const _hoisted_13$2 = { class: "nv-flex-1 nv-overflow-auto" };
|
|
21950
21950
|
const _hoisted_14 = {
|
|
21951
21951
|
key: 0,
|
|
21952
21952
|
class: "nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"
|
|
@@ -22002,7 +22002,7 @@ function _sfc_render$1$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22002
22002
|
}), 256))
|
|
22003
22003
|
]),
|
|
22004
22004
|
_: 1
|
|
22005
|
-
}, 8, ["modelValue", "multiple", "onOnChange", "disabled"])) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
22005
|
+
}, 8, ["modelValue", "multiple", "onOnChange", "disabled"])) : (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
22006
22006
|
createVNode(_component_Poptip, {
|
|
22007
22007
|
placement: "bottom-start",
|
|
22008
22008
|
width: 700,
|
|
@@ -22032,7 +22032,7 @@ function _sfc_render$1$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22032
22032
|
createElementVNode("div", _hoisted_10$3, [
|
|
22033
22033
|
createElementVNode("div", _hoisted_11$3, [
|
|
22034
22034
|
_hoisted_12$2,
|
|
22035
|
-
createElementVNode("div", _hoisted_13$
|
|
22035
|
+
createElementVNode("div", _hoisted_13$2, [
|
|
22036
22036
|
createVNode(_component_RadioGroup, {
|
|
22037
22037
|
modelValue: _ctx.activeUnit,
|
|
22038
22038
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.activeUnit = $event),
|
|
@@ -22070,13 +22070,13 @@ function _sfc_render$1$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22070
22070
|
])
|
|
22071
22071
|
]),
|
|
22072
22072
|
default: withCtx(() => [
|
|
22073
|
-
createElementVNode("div", _hoisted_2$
|
|
22074
|
-
createElementVNode("div", _hoisted_3$
|
|
22075
|
-
_ctx.StructureInstanceCheckData.length == 0 ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
22076
|
-
_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
22073
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
22074
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
22075
|
+
_ctx.StructureInstanceCheckData.length == 0 ? (openBlock(), createElementBlock("div", _hoisted_4$9, "点击选择构件")) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
22076
|
+
_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_5$7, " 已选择" + toDisplayString(_ctx.StructureInstanceCheckData.length) + "个构件(" + toDisplayString(_ctx.StructureInstanceCheckData.map((e) => e["NodeName"]).toString()) + ") ", 1)) : (openBlock(), createElementBlock("div", _hoisted_6$7, [
|
|
22077
22077
|
createTextVNode(toDisplayString(_ctx.StructureInstanceCheckData[0].NodeName) + " ", 1),
|
|
22078
|
-
_ctx.StructureInstanceCheckData[0].NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
22079
|
-
_ctx.StructureInstanceCheckData[0].UnitName ? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
22078
|
+
_ctx.StructureInstanceCheckData[0].NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_7$5, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].NodeTypeName) + "]", 1)) : createCommentVNode("", true),
|
|
22079
|
+
_ctx.StructureInstanceCheckData[0].UnitName ? (openBlock(), createElementBlock("span", _hoisted_8$5, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].UnitName) + "]", 1)) : createCommentVNode("", true)
|
|
22080
22080
|
]))
|
|
22081
22081
|
], 64))
|
|
22082
22082
|
])
|
|
@@ -22109,7 +22109,7 @@ function _sfc_render$1$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22109
22109
|
]));
|
|
22110
22110
|
}
|
|
22111
22111
|
const NvStructureSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$1$1, [["render", _sfc_render$1$1], ["__scopeId", "data-v-502883e6"]]);
|
|
22112
|
-
const propDefine$
|
|
22112
|
+
const propDefine$o = {
|
|
22113
22113
|
onlyView: {
|
|
22114
22114
|
// 是否只读
|
|
22115
22115
|
type: Boolean,
|
|
@@ -22127,11 +22127,11 @@ const propDefine$m = {
|
|
|
22127
22127
|
}
|
|
22128
22128
|
}
|
|
22129
22129
|
};
|
|
22130
|
-
const _sfc_main$
|
|
22130
|
+
const _sfc_main$h = defineComponent({
|
|
22131
22131
|
name: "NvComFormUp",
|
|
22132
22132
|
components: { UploadFile, TextEditor: TextEditor2, NvDicSelect, NvStructureTypeSelect, NvStructureSelect },
|
|
22133
22133
|
emits: ["textChange", "TokenChange"],
|
|
22134
|
-
props: propDefine$
|
|
22134
|
+
props: propDefine$o,
|
|
22135
22135
|
setup(props, ctx) {
|
|
22136
22136
|
return new ComFormInstance(props, ctx);
|
|
22137
22137
|
}
|
|
@@ -22177,7 +22177,7 @@ class ComFormInstance extends BaseInstance {
|
|
|
22177
22177
|
this.ctx = ctx;
|
|
22178
22178
|
}
|
|
22179
22179
|
}
|
|
22180
|
-
function _sfc_render$
|
|
22180
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22181
22181
|
const _component_UploadFile = resolveComponent("UploadFile");
|
|
22182
22182
|
const _component_TextEditor = resolveComponent("TextEditor");
|
|
22183
22183
|
const _component_NvDicSelect = resolveComponent("NvDicSelect");
|
|
@@ -22232,7 +22232,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22232
22232
|
_: 1
|
|
22233
22233
|
}, 8, ["onlyView", "formItems", "formModel"]);
|
|
22234
22234
|
}
|
|
22235
|
-
const ComFormUp = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
22235
|
+
const ComFormUp = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$h]]);
|
|
22236
22236
|
var __defProp2 = Object.defineProperty;
|
|
22237
22237
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
22238
22238
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -24764,7 +24764,7 @@ const _hoisted_7$2$1 = {
|
|
|
24764
24764
|
class: "input-div"
|
|
24765
24765
|
};
|
|
24766
24766
|
const _hoisted_8$2$1 = ["innerHTML"];
|
|
24767
|
-
const _hoisted_9$2 = {
|
|
24767
|
+
const _hoisted_9$2$1 = {
|
|
24768
24768
|
key: 6,
|
|
24769
24769
|
class: "input-div"
|
|
24770
24770
|
};
|
|
@@ -24881,7 +24881,7 @@ function _sfc_render$3$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24881
24881
|
style: { "margin-top": "4px" },
|
|
24882
24882
|
innerHTML: _ctx.dataModel.value
|
|
24883
24883
|
}, null, 8, _hoisted_8$2$1)
|
|
24884
|
-
])) : _ctx.getEdit().FieldType == "img" ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
|
|
24884
|
+
])) : _ctx.getEdit().FieldType == "img" ? (openBlock(), createElementBlock("div", _hoisted_9$2$1, [
|
|
24885
24885
|
createVNode(_component_UploadFile, {
|
|
24886
24886
|
token: _ctx.dataModel.value,
|
|
24887
24887
|
single: true,
|
|
@@ -25426,7 +25426,7 @@ class EditReportInstance extends BaseInstance {
|
|
|
25426
25426
|
}
|
|
25427
25427
|
//#endregion 操作(保存) END
|
|
25428
25428
|
}
|
|
25429
|
-
const propDefine$
|
|
25429
|
+
const propDefine$n = {
|
|
25430
25430
|
reportNo: {
|
|
25431
25431
|
// 报表编号
|
|
25432
25432
|
type: String,
|
|
@@ -25443,7 +25443,7 @@ defineComponent({
|
|
|
25443
25443
|
components: {},
|
|
25444
25444
|
emits: [""],
|
|
25445
25445
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
25446
|
-
props: propDefine$
|
|
25446
|
+
props: propDefine$n,
|
|
25447
25447
|
setup(props, ctx) {
|
|
25448
25448
|
return new ViewReportInstance(props, ctx);
|
|
25449
25449
|
}
|
|
@@ -25513,7 +25513,7 @@ class ViewReportInstance extends BaseReport {
|
|
|
25513
25513
|
}
|
|
25514
25514
|
//#endregion 预览报表 END
|
|
25515
25515
|
}
|
|
25516
|
-
const propDefine$
|
|
25516
|
+
const propDefine$m = {
|
|
25517
25517
|
flowCode: {
|
|
25518
25518
|
// 流程唯一的code编码
|
|
25519
25519
|
type: String,
|
|
@@ -25540,7 +25540,7 @@ defineComponent({
|
|
|
25540
25540
|
components: { PersonSel },
|
|
25541
25541
|
emits: [""],
|
|
25542
25542
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
25543
|
-
props: propDefine$
|
|
25543
|
+
props: propDefine$m,
|
|
25544
25544
|
setup(props, ctx) {
|
|
25545
25545
|
return new FlowStepInstance$1(props, ctx);
|
|
25546
25546
|
}
|
|
@@ -25644,7 +25644,7 @@ let FlowStepInstance$1 = class FlowStepInstance extends BaseInstance {
|
|
|
25644
25644
|
//#endregion 业务逻辑 END
|
|
25645
25645
|
};
|
|
25646
25646
|
const FlowStep_vue_vue_type_style_index_0_scoped_c692a47d_lang = "";
|
|
25647
|
-
const propDefine$
|
|
25647
|
+
const propDefine$l = {
|
|
25648
25648
|
theme: {
|
|
25649
25649
|
// 主题颜色 light dark
|
|
25650
25650
|
type: String,
|
|
@@ -25661,7 +25661,7 @@ defineComponent({
|
|
|
25661
25661
|
components: {},
|
|
25662
25662
|
emits: [""],
|
|
25663
25663
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
25664
|
-
props: propDefine$
|
|
25664
|
+
props: propDefine$l,
|
|
25665
25665
|
setup(props, ctx) {
|
|
25666
25666
|
return new BaseLoginInstance2(props, ctx);
|
|
25667
25667
|
}
|
|
@@ -25959,7 +25959,7 @@ class BaseLoginInstance2 extends BaseInstance {
|
|
|
25959
25959
|
}
|
|
25960
25960
|
//#endregion API END
|
|
25961
25961
|
}
|
|
25962
|
-
const propDefine$
|
|
25962
|
+
const propDefine$k = {
|
|
25963
25963
|
defaultLoad: {
|
|
25964
25964
|
// 默认选中
|
|
25965
25965
|
type: Boolean,
|
|
@@ -25981,7 +25981,7 @@ defineComponent({
|
|
|
25981
25981
|
components: {},
|
|
25982
25982
|
emits: ["select"],
|
|
25983
25983
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
25984
|
-
props: propDefine$
|
|
25984
|
+
props: propDefine$k,
|
|
25985
25985
|
setup(props, ctx) {
|
|
25986
25986
|
return new SelectPlatformInstance2(props, ctx);
|
|
25987
25987
|
}
|
|
@@ -26039,7 +26039,7 @@ class SelectPlatformInstance2 extends BaseInstance {
|
|
|
26039
26039
|
}
|
|
26040
26040
|
//#endregion 系统平台 END
|
|
26041
26041
|
}
|
|
26042
|
-
const propDefine$
|
|
26042
|
+
const propDefine$j = {
|
|
26043
26043
|
platformId: {
|
|
26044
26044
|
// 平台Id
|
|
26045
26045
|
type: Number,
|
|
@@ -26071,7 +26071,7 @@ defineComponent({
|
|
|
26071
26071
|
components: {},
|
|
26072
26072
|
emits: ["signSuccess"],
|
|
26073
26073
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
26074
|
-
props: propDefine$
|
|
26074
|
+
props: propDefine$j,
|
|
26075
26075
|
setup(props, ctx) {
|
|
26076
26076
|
return new CASignInstance2(props, ctx);
|
|
26077
26077
|
}
|
|
@@ -26167,7 +26167,7 @@ class CASignInstance2 extends BaseInstance {
|
|
|
26167
26167
|
}
|
|
26168
26168
|
//#endregion 执行签字 END
|
|
26169
26169
|
}
|
|
26170
|
-
const propDefine$
|
|
26170
|
+
const propDefine$i = {
|
|
26171
26171
|
loadCount: {
|
|
26172
26172
|
// 加载Count方法
|
|
26173
26173
|
type: Function
|
|
@@ -26178,7 +26178,7 @@ defineComponent({
|
|
|
26178
26178
|
components: { SelectPlatform },
|
|
26179
26179
|
emits: ["change"],
|
|
26180
26180
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
26181
|
-
props: propDefine$
|
|
26181
|
+
props: propDefine$i,
|
|
26182
26182
|
setup(props, ctx) {
|
|
26183
26183
|
return new InstitutionTreeInstance2(props, ctx);
|
|
26184
26184
|
}
|
|
@@ -26275,7 +26275,7 @@ class InstitutionTreeInstance2 extends BaseInstance {
|
|
|
26275
26275
|
}
|
|
26276
26276
|
//#endregion 机构树 END
|
|
26277
26277
|
}
|
|
26278
|
-
const propDefine$
|
|
26278
|
+
const propDefine$h = {
|
|
26279
26279
|
flowCode: {
|
|
26280
26280
|
// 流程唯一的code编码
|
|
26281
26281
|
type: String,
|
|
@@ -26302,7 +26302,7 @@ defineComponent({
|
|
|
26302
26302
|
components: { PersonSel },
|
|
26303
26303
|
emits: [""],
|
|
26304
26304
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
26305
|
-
props: propDefine$
|
|
26305
|
+
props: propDefine$h,
|
|
26306
26306
|
setup(props, ctx) {
|
|
26307
26307
|
return new FlowStepInstance2(props, ctx);
|
|
26308
26308
|
}
|
|
@@ -26405,7 +26405,7 @@ class FlowStepInstance2 extends BaseInstance {
|
|
|
26405
26405
|
}
|
|
26406
26406
|
//#endregion 业务逻辑 END
|
|
26407
26407
|
}
|
|
26408
|
-
const propDefine$
|
|
26408
|
+
const propDefine$g = {
|
|
26409
26409
|
linkParam: {
|
|
26410
26410
|
// 带入的参数
|
|
26411
26411
|
type: String,
|
|
@@ -26417,12 +26417,12 @@ const propDefine$e = {
|
|
|
26417
26417
|
default: "-"
|
|
26418
26418
|
}
|
|
26419
26419
|
};
|
|
26420
|
-
const _sfc_main$
|
|
26420
|
+
const _sfc_main$g = defineComponent({
|
|
26421
26421
|
name: "Module",
|
|
26422
26422
|
components: { SelectPlatform },
|
|
26423
26423
|
emits: ["change"],
|
|
26424
26424
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
26425
|
-
props: propDefine$
|
|
26425
|
+
props: propDefine$g,
|
|
26426
26426
|
setup(props, ctx) {
|
|
26427
26427
|
return new ModuleInstance$1(props, ctx);
|
|
26428
26428
|
}
|
|
@@ -27224,19 +27224,19 @@ let ModuleInstance$1 = class ModuleInstance extends BaseInstance {
|
|
|
27224
27224
|
//#endregion 业务逻辑 END
|
|
27225
27225
|
};
|
|
27226
27226
|
const Module_vue_vue_type_style_index_0_scoped_5a5ef504_lang = "";
|
|
27227
|
-
const _withScopeId$
|
|
27228
|
-
const _hoisted_1$
|
|
27229
|
-
const _hoisted_2$
|
|
27227
|
+
const _withScopeId$4 = (n) => (pushScopeId("data-v-5a5ef504"), n = n(), popScopeId(), n);
|
|
27228
|
+
const _hoisted_1$g = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
27229
|
+
const _hoisted_2$8 = {
|
|
27230
27230
|
class: "import-module",
|
|
27231
27231
|
style: { "height": "650px", "position": "relative" }
|
|
27232
27232
|
};
|
|
27233
|
-
const _hoisted_3$
|
|
27234
|
-
const _hoisted_4$
|
|
27235
|
-
const _hoisted_5$
|
|
27236
|
-
const _hoisted_6$
|
|
27237
|
-
const _hoisted_7$
|
|
27238
|
-
const _hoisted_8$
|
|
27239
|
-
function _sfc_render$
|
|
27233
|
+
const _hoisted_3$8 = { style: { "width": "100%", "height": "100%" } };
|
|
27234
|
+
const _hoisted_4$8 = { style: { "width": "560px", "height": "100%", "float": "left" } };
|
|
27235
|
+
const _hoisted_5$6 = { style: { "height": "calc(100% - 0px)" } };
|
|
27236
|
+
const _hoisted_6$6 = { style: { "width": "calc(100% - 570px)", "height": "100%", "margin-left": "10px", "display": "inline-block" } };
|
|
27237
|
+
const _hoisted_7$4 = { style: { "height": "calc(100% - 0px)" } };
|
|
27238
|
+
const _hoisted_8$4 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "点击选择要放置的位置!", -1));
|
|
27239
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27240
27240
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
27241
27241
|
const _component_Radio = resolveComponent("Radio");
|
|
27242
27242
|
const _component_RadioGroup = resolveComponent("RadioGroup");
|
|
@@ -27324,7 +27324,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27324
27324
|
}, 8, ["loading", "onClick"])
|
|
27325
27325
|
]),
|
|
27326
27326
|
default: withCtx(() => [
|
|
27327
|
-
createElementVNode("div", _hoisted_1$
|
|
27327
|
+
createElementVNode("div", _hoisted_1$g, [
|
|
27328
27328
|
createVNode(_component_Form, {
|
|
27329
27329
|
model: _ctx.moduleFormModel,
|
|
27330
27330
|
"label-width": 90
|
|
@@ -27374,9 +27374,9 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27374
27374
|
}, 8, ["loading", "onClick"])
|
|
27375
27375
|
]),
|
|
27376
27376
|
default: withCtx(() => [
|
|
27377
|
-
createElementVNode("div", _hoisted_2$
|
|
27378
|
-
createElementVNode("div", _hoisted_3$
|
|
27379
|
-
createElementVNode("div", _hoisted_4$
|
|
27377
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
27378
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
27379
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
27380
27380
|
createVNode(_component_Card, {
|
|
27381
27381
|
"dis-hover": "",
|
|
27382
27382
|
class: "import-module_card"
|
|
@@ -27385,7 +27385,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27385
27385
|
createTextVNode("源平台 - [" + toDisplayString(_ctx.originPlatform.selectedItem.PlatformName) + "] - 模块菜单", 1)
|
|
27386
27386
|
]),
|
|
27387
27387
|
default: withCtx(() => [
|
|
27388
|
-
createElementVNode("div", _hoisted_5$
|
|
27388
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
27389
27389
|
createVNode(_component_NvGrid, {
|
|
27390
27390
|
ref: "originModuleGrid",
|
|
27391
27391
|
option: _ctx.originModuleGridOption
|
|
@@ -27420,7 +27420,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27420
27420
|
_: 1
|
|
27421
27421
|
})
|
|
27422
27422
|
]),
|
|
27423
|
-
createElementVNode("div", _hoisted_6$
|
|
27423
|
+
createElementVNode("div", _hoisted_6$6, [
|
|
27424
27424
|
createVNode(_component_Card, {
|
|
27425
27425
|
"dis-hover": "",
|
|
27426
27426
|
class: "import-module_card"
|
|
@@ -27429,13 +27429,13 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27429
27429
|
createTextVNode("目标平台 - [" + toDisplayString(_ctx.targetPlatform.PlatformName) + "] - 模块菜单", 1)
|
|
27430
27430
|
]),
|
|
27431
27431
|
default: withCtx(() => [
|
|
27432
|
-
createElementVNode("div", _hoisted_7$
|
|
27432
|
+
createElementVNode("div", _hoisted_7$4, [
|
|
27433
27433
|
createVNode(_component_NvGrid, {
|
|
27434
27434
|
ref: "targetModuleGrid",
|
|
27435
27435
|
option: _ctx.targetModuleGridOption
|
|
27436
27436
|
}, {
|
|
27437
27437
|
default: withCtx(() => [
|
|
27438
|
-
_hoisted_8$
|
|
27438
|
+
_hoisted_8$4
|
|
27439
27439
|
]),
|
|
27440
27440
|
_: 1
|
|
27441
27441
|
}, 8, ["option"])
|
|
@@ -27459,8 +27459,8 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27459
27459
|
_: 1
|
|
27460
27460
|
});
|
|
27461
27461
|
}
|
|
27462
|
-
const Module = /* @__PURE__ */ _export_sfc$2(_sfc_main$
|
|
27463
|
-
const propDefine$
|
|
27462
|
+
const Module = /* @__PURE__ */ _export_sfc$2(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-5a5ef504"]]);
|
|
27463
|
+
const propDefine$f = {
|
|
27464
27464
|
linkParam: {
|
|
27465
27465
|
// 带入的参数
|
|
27466
27466
|
type: String,
|
|
@@ -27472,12 +27472,12 @@ const propDefine$d = {
|
|
|
27472
27472
|
default: "-"
|
|
27473
27473
|
}
|
|
27474
27474
|
};
|
|
27475
|
-
const _sfc_main$
|
|
27475
|
+
const _sfc_main$f = defineComponent({
|
|
27476
27476
|
name: "Role",
|
|
27477
27477
|
components: { SelectPlatform },
|
|
27478
27478
|
emits: [""],
|
|
27479
27479
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
27480
|
-
props: propDefine$
|
|
27480
|
+
props: propDefine$f,
|
|
27481
27481
|
setup(props, ctx) {
|
|
27482
27482
|
return new RoleInstance$1(props, ctx);
|
|
27483
27483
|
}
|
|
@@ -28268,14 +28268,14 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
|
|
|
28268
28268
|
//#endregion 导入角色 END
|
|
28269
28269
|
};
|
|
28270
28270
|
const Role_vue_vue_type_style_index_0_scoped_0f25fe31_lang = "";
|
|
28271
|
-
const _hoisted_1$
|
|
28272
|
-
const _hoisted_2$
|
|
28271
|
+
const _hoisted_1$f = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
|
|
28272
|
+
const _hoisted_2$7 = {
|
|
28273
28273
|
class: "import-role",
|
|
28274
28274
|
style: { "height": "610px", "position": "relative" }
|
|
28275
28275
|
};
|
|
28276
|
-
const _hoisted_3$
|
|
28277
|
-
const _hoisted_4$
|
|
28278
|
-
function _sfc_render$
|
|
28276
|
+
const _hoisted_3$7 = { style: { "width": "100%", "height": "100%" } };
|
|
28277
|
+
const _hoisted_4$7 = { style: { "height": "530px", "overflow-y": "auto" } };
|
|
28278
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
28279
28279
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
28280
28280
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
28281
28281
|
const _component_NvBox = resolveComponent("NvBox");
|
|
@@ -28341,7 +28341,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28341
28341
|
}, 8, ["loading", "onClick"])
|
|
28342
28342
|
]),
|
|
28343
28343
|
default: withCtx(() => [
|
|
28344
|
-
createElementVNode("div", _hoisted_1$
|
|
28344
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
28345
28345
|
createVNode(_component_NvGrid, {
|
|
28346
28346
|
ref: "moduleGrid",
|
|
28347
28347
|
option: _ctx.moduleGridOption
|
|
@@ -28382,8 +28382,8 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28382
28382
|
}, 8, ["loading", "onClick"])
|
|
28383
28383
|
]),
|
|
28384
28384
|
default: withCtx(() => [
|
|
28385
|
-
createElementVNode("div", _hoisted_2$
|
|
28386
|
-
createElementVNode("div", _hoisted_3$
|
|
28385
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
28386
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
28387
28387
|
createVNode(_component_NvGrid, {
|
|
28388
28388
|
ref: "originRoleGrid",
|
|
28389
28389
|
option: _ctx.originRoleGridOption
|
|
@@ -28453,7 +28453,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28453
28453
|
}, 8, ["loading", "onClick"])
|
|
28454
28454
|
]),
|
|
28455
28455
|
default: withCtx(() => [
|
|
28456
|
-
createElementVNode("div", _hoisted_4$
|
|
28456
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
28457
28457
|
createVNode(_component_Form, {
|
|
28458
28458
|
ref: "refRoleForm",
|
|
28459
28459
|
model: _ctx.roleFormModel,
|
|
@@ -28475,8 +28475,8 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28475
28475
|
_: 1
|
|
28476
28476
|
});
|
|
28477
28477
|
}
|
|
28478
|
-
const Role = /* @__PURE__ */ _export_sfc$2(_sfc_main$
|
|
28479
|
-
const propDefine$
|
|
28478
|
+
const Role = /* @__PURE__ */ _export_sfc$2(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-0f25fe31"]]);
|
|
28479
|
+
const propDefine$e = {
|
|
28480
28480
|
linkParam: {
|
|
28481
28481
|
// 带入的参数
|
|
28482
28482
|
type: String,
|
|
@@ -28488,12 +28488,12 @@ const propDefine$c = {
|
|
|
28488
28488
|
default: "-"
|
|
28489
28489
|
}
|
|
28490
28490
|
};
|
|
28491
|
-
const _sfc_main$
|
|
28491
|
+
const _sfc_main$e = defineComponent({
|
|
28492
28492
|
name: "InstitutionType",
|
|
28493
28493
|
components: {},
|
|
28494
28494
|
emits: [""],
|
|
28495
28495
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
28496
|
-
props: propDefine$
|
|
28496
|
+
props: propDefine$e,
|
|
28497
28497
|
setup(props, ctx) {
|
|
28498
28498
|
return new InstitutionTypeInstance(props, ctx);
|
|
28499
28499
|
}
|
|
@@ -28695,8 +28695,8 @@ class InstitutionTypeInstance extends BaseInstance {
|
|
|
28695
28695
|
//#endregion 编辑机构类型 END
|
|
28696
28696
|
}
|
|
28697
28697
|
const InstitutionType_vue_vue_type_style_index_0_scoped_947fe129_lang = "";
|
|
28698
|
-
const _hoisted_1$
|
|
28699
|
-
function _sfc_render$
|
|
28698
|
+
const _hoisted_1$e = { style: { "height": "350px", "overflow-y": "auto" } };
|
|
28699
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
28700
28700
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
28701
28701
|
const _component_NvBox = resolveComponent("NvBox");
|
|
28702
28702
|
const _component_NvComForm = resolveComponent("NvComForm");
|
|
@@ -28749,7 +28749,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28749
28749
|
}, 8, ["loading", "onClick"])
|
|
28750
28750
|
]),
|
|
28751
28751
|
default: withCtx(() => [
|
|
28752
|
-
createElementVNode("div", _hoisted_1$
|
|
28752
|
+
createElementVNode("div", _hoisted_1$e, [
|
|
28753
28753
|
createVNode(_component_Form, {
|
|
28754
28754
|
ref: "refInstitutionTypeForm",
|
|
28755
28755
|
model: _ctx.institutionTypeFormModel,
|
|
@@ -28771,8 +28771,8 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28771
28771
|
_: 1
|
|
28772
28772
|
});
|
|
28773
28773
|
}
|
|
28774
|
-
const InstitutionType = /* @__PURE__ */ _export_sfc$2(_sfc_main$
|
|
28775
|
-
const propDefine$
|
|
28774
|
+
const InstitutionType = /* @__PURE__ */ _export_sfc$2(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-947fe129"]]);
|
|
28775
|
+
const propDefine$d = {
|
|
28776
28776
|
linkParam: {
|
|
28777
28777
|
// 带入的参数
|
|
28778
28778
|
type: String,
|
|
@@ -28784,12 +28784,12 @@ const propDefine$b = {
|
|
|
28784
28784
|
default: "-"
|
|
28785
28785
|
}
|
|
28786
28786
|
};
|
|
28787
|
-
const _sfc_main$
|
|
28787
|
+
const _sfc_main$d = defineComponent({
|
|
28788
28788
|
name: "Institution",
|
|
28789
28789
|
components: { SelectPlatform },
|
|
28790
28790
|
emits: [""],
|
|
28791
28791
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
28792
|
-
props: propDefine$
|
|
28792
|
+
props: propDefine$d,
|
|
28793
28793
|
setup(props, ctx) {
|
|
28794
28794
|
return new InstitutionInstance$1(props, ctx);
|
|
28795
28795
|
}
|
|
@@ -29694,16 +29694,16 @@ let InstitutionInstance$1 = class InstitutionInstance extends BaseInstance {
|
|
|
29694
29694
|
//#endregion 绑定角色 END
|
|
29695
29695
|
};
|
|
29696
29696
|
const Institution_vue_vue_type_style_index_0_scoped_42799ba1_lang = "";
|
|
29697
|
-
const _hoisted_1$
|
|
29698
|
-
const _hoisted_2$
|
|
29699
|
-
const _hoisted_3$
|
|
29697
|
+
const _hoisted_1$d = { style: { "width": "100%", "height": "100%", "position": "relative" } };
|
|
29698
|
+
const _hoisted_2$6 = { style: { "height": "500px", "overflow-y": "auto" } };
|
|
29699
|
+
const _hoisted_3$6 = {
|
|
29700
29700
|
class: "import-institution",
|
|
29701
29701
|
style: { "height": "600px", "overflow-y": "auto", "position": "relative" }
|
|
29702
29702
|
};
|
|
29703
|
-
const _hoisted_4$
|
|
29704
|
-
const _hoisted_5$
|
|
29705
|
-
const _hoisted_6$
|
|
29706
|
-
function _sfc_render$
|
|
29703
|
+
const _hoisted_4$6 = { style: { "width": "100%", "height": "100%" } };
|
|
29704
|
+
const _hoisted_5$5 = { style: { "height": "calc(100%)" } };
|
|
29705
|
+
const _hoisted_6$5 = { style: { "height": "610px", "overflow-y": "auto", "position": "relative" } };
|
|
29706
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29707
29707
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
29708
29708
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
29709
29709
|
const _component_NvBox = resolveComponent("NvBox");
|
|
@@ -29773,7 +29773,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29773
29773
|
})
|
|
29774
29774
|
]),
|
|
29775
29775
|
default: withCtx(() => [
|
|
29776
|
-
createElementVNode("div", _hoisted_1$
|
|
29776
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
29777
29777
|
createVNode(_component_Tree, {
|
|
29778
29778
|
data: _ctx.institutionTree,
|
|
29779
29779
|
render: _ctx.renderContent,
|
|
@@ -29832,7 +29832,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29832
29832
|
}, 8, ["loading", "onClick"])
|
|
29833
29833
|
]),
|
|
29834
29834
|
default: withCtx(() => [
|
|
29835
|
-
createElementVNode("div", _hoisted_2$
|
|
29835
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
29836
29836
|
createVNode(_component_Form, {
|
|
29837
29837
|
model: _ctx.institutionFormModel,
|
|
29838
29838
|
"label-width": 90
|
|
@@ -29882,9 +29882,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29882
29882
|
}, 8, ["loading", "onClick"])
|
|
29883
29883
|
]),
|
|
29884
29884
|
default: withCtx(() => [
|
|
29885
|
-
createElementVNode("div", _hoisted_3$
|
|
29886
|
-
createElementVNode("div", _hoisted_4$
|
|
29887
|
-
createElementVNode("div", _hoisted_5$
|
|
29885
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
29886
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
29887
|
+
createElementVNode("div", _hoisted_5$5, [
|
|
29888
29888
|
createVNode(_component_NvGrid, {
|
|
29889
29889
|
ref: "originInstitutionGrid",
|
|
29890
29890
|
option: _ctx.originInstitutionGridOption
|
|
@@ -29955,7 +29955,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29955
29955
|
}, 8, ["loading", "onClick"])
|
|
29956
29956
|
]),
|
|
29957
29957
|
default: withCtx(() => [
|
|
29958
|
-
createElementVNode("div", _hoisted_6$
|
|
29958
|
+
createElementVNode("div", _hoisted_6$5, [
|
|
29959
29959
|
createVNode(_component_NvGrid, {
|
|
29960
29960
|
ref: "roleGrid",
|
|
29961
29961
|
option: _ctx.roleGridOption
|
|
@@ -29971,8 +29971,130 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29971
29971
|
_: 1
|
|
29972
29972
|
});
|
|
29973
29973
|
}
|
|
29974
|
-
const Institution = /* @__PURE__ */ _export_sfc$2(_sfc_main$
|
|
29975
|
-
const propDefine$
|
|
29974
|
+
const Institution = /* @__PURE__ */ _export_sfc$2(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-42799ba1"]]);
|
|
29975
|
+
const propDefine$c = {};
|
|
29976
|
+
const _sfc_main$c = defineComponent({
|
|
29977
|
+
name: "LoginLog",
|
|
29978
|
+
components: {},
|
|
29979
|
+
emits: [""],
|
|
29980
|
+
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
29981
|
+
props: propDefine$c,
|
|
29982
|
+
setup(props, ctx) {
|
|
29983
|
+
return new LoginLogInstance$1(props, ctx);
|
|
29984
|
+
}
|
|
29985
|
+
});
|
|
29986
|
+
let LoginLogInstance$1 = class LoginLogInstance extends BaseInstance {
|
|
29987
|
+
// 全局属性
|
|
29988
|
+
constructor(props, ctx) {
|
|
29989
|
+
super();
|
|
29990
|
+
__publicField(this, "props");
|
|
29991
|
+
__publicField(this, "ctx");
|
|
29992
|
+
// API实例化
|
|
29993
|
+
__publicField(this, "loginLogApi", new LoginLogApi());
|
|
29994
|
+
//#region 登录日志
|
|
29995
|
+
// 私有属性 | private
|
|
29996
|
+
__publicField(this, "platformId", 0);
|
|
29997
|
+
__publicField(this, "userId", 0);
|
|
29998
|
+
// 响应属性 | ref、reactive、computed
|
|
29999
|
+
__publicField(this, "loginLogGrid", ref());
|
|
30000
|
+
__publicField(this, "loginLogGridOption", reactive({
|
|
30001
|
+
api: this.loginLogApi,
|
|
30002
|
+
setting: {
|
|
30003
|
+
border: true,
|
|
30004
|
+
searchConfig: {
|
|
30005
|
+
btnSpan: 12,
|
|
30006
|
+
labelWidth: 90,
|
|
30007
|
+
defaultShowSearch: false
|
|
30008
|
+
},
|
|
30009
|
+
toolbarConfig: {
|
|
30010
|
+
isButtonGroup: false
|
|
30011
|
+
},
|
|
30012
|
+
rowConfig: {
|
|
30013
|
+
isHover: true
|
|
30014
|
+
},
|
|
30015
|
+
isPagination: true,
|
|
30016
|
+
pageSize: 10
|
|
30017
|
+
},
|
|
30018
|
+
searchOptions: [
|
|
30019
|
+
{
|
|
30020
|
+
field: "LoginDate",
|
|
30021
|
+
title: "登录日期",
|
|
30022
|
+
type: "DatePicker",
|
|
30023
|
+
span: 12
|
|
30024
|
+
},
|
|
30025
|
+
{
|
|
30026
|
+
field: "IPAddress",
|
|
30027
|
+
title: "登录IP",
|
|
30028
|
+
type: "Input",
|
|
30029
|
+
span: 12
|
|
30030
|
+
}
|
|
30031
|
+
],
|
|
30032
|
+
toolbars: [
|
|
30033
|
+
{
|
|
30034
|
+
name: "refresh",
|
|
30035
|
+
type: "primary"
|
|
30036
|
+
}
|
|
30037
|
+
],
|
|
30038
|
+
columns: [
|
|
30039
|
+
{
|
|
30040
|
+
colType: "seq"
|
|
30041
|
+
},
|
|
30042
|
+
{ colType: "ro", field: "LoginType", title: "登录方式", align: "center" },
|
|
30043
|
+
{
|
|
30044
|
+
colType: "ro",
|
|
30045
|
+
field: "LoginDate",
|
|
30046
|
+
title: "登录日期",
|
|
30047
|
+
align: "center",
|
|
30048
|
+
format: (h2, params) => {
|
|
30049
|
+
const loginDate = params.row.LoginDate;
|
|
30050
|
+
return this.utilities.isNull(loginDate) ? "" : loginDate;
|
|
30051
|
+
}
|
|
30052
|
+
},
|
|
30053
|
+
{ colType: "ro", field: "IPAddress", title: "登录IP", align: "center" }
|
|
30054
|
+
],
|
|
30055
|
+
event: {
|
|
30056
|
+
event_search: (data) => {
|
|
30057
|
+
this.loadLoginLog(this.platformId, this.userId, data);
|
|
30058
|
+
}
|
|
30059
|
+
}
|
|
30060
|
+
}));
|
|
30061
|
+
// 私有方法 | private 方法名() {}
|
|
30062
|
+
// 响应式方法 | xxx = () => {}
|
|
30063
|
+
/**
|
|
30064
|
+
* 加载登录日志
|
|
30065
|
+
*/
|
|
30066
|
+
__publicField(this, "loadLoginLog", (platformId, userId, data = {}) => {
|
|
30067
|
+
this.platformId = platformId;
|
|
30068
|
+
this.userId = userId;
|
|
30069
|
+
const queryWrapper = QueryWrapper.create();
|
|
30070
|
+
queryWrapper.eq("PlatformId", this.platformId).eq("UserId", this.userId).orderBy(["Id"], false);
|
|
30071
|
+
if (!this.utilities.isNull(data.IPAddress)) {
|
|
30072
|
+
queryWrapper.like("IPAddress", data.IPAddress);
|
|
30073
|
+
}
|
|
30074
|
+
const loginDateStr = this.utilities.dateHelper.format(data.LoginDate, "YYYY-MM-DD");
|
|
30075
|
+
if (!this.utilities.isNull(data.LoginDate)) {
|
|
30076
|
+
queryWrapper.between("LoginDate", `${loginDateStr} 00:00:00`, `${loginDateStr} 23:59:59`);
|
|
30077
|
+
}
|
|
30078
|
+
this.loginLogGrid.value.loadDataByQuery(queryWrapper);
|
|
30079
|
+
});
|
|
30080
|
+
this.props = props;
|
|
30081
|
+
this.ctx = ctx;
|
|
30082
|
+
}
|
|
30083
|
+
//#endregion 登录日志 END
|
|
30084
|
+
};
|
|
30085
|
+
const LoginLog_vue_vue_type_style_index_0_scoped_4e2e0184_lang = "";
|
|
30086
|
+
const _hoisted_1$c = { class: "loginLog" };
|
|
30087
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30088
|
+
const _component_NvGrid = resolveComponent("NvGrid");
|
|
30089
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
30090
|
+
createVNode(_component_NvGrid, {
|
|
30091
|
+
ref: "loginLogGrid",
|
|
30092
|
+
option: _ctx.loginLogGridOption
|
|
30093
|
+
}, null, 8, ["option"])
|
|
30094
|
+
]);
|
|
30095
|
+
}
|
|
30096
|
+
const LoginLog$1 = /* @__PURE__ */ _export_sfc$2(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-4e2e0184"]]);
|
|
30097
|
+
const propDefine$b = {
|
|
29976
30098
|
linkParam: {
|
|
29977
30099
|
// 带入的参数
|
|
29978
30100
|
type: String,
|
|
@@ -29984,47 +30106,100 @@ const propDefine$a = {
|
|
|
29984
30106
|
default: "-"
|
|
29985
30107
|
}
|
|
29986
30108
|
};
|
|
29987
|
-
const _sfc_main$
|
|
29988
|
-
name: "
|
|
29989
|
-
components: { SelectPlatform },
|
|
30109
|
+
const _sfc_main$b = defineComponent({
|
|
30110
|
+
name: "Userinfor",
|
|
30111
|
+
components: { SelectPlatform, LoginLog: LoginLog$1, BaseLogin },
|
|
29990
30112
|
emits: [""],
|
|
29991
30113
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
29992
|
-
props: propDefine$
|
|
30114
|
+
props: propDefine$b,
|
|
29993
30115
|
setup(props, ctx) {
|
|
29994
|
-
return new
|
|
30116
|
+
return new UserinforInstance$1(props, ctx);
|
|
29995
30117
|
}
|
|
29996
30118
|
});
|
|
29997
|
-
let
|
|
30119
|
+
let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
|
|
29998
30120
|
constructor(props, ctx) {
|
|
29999
30121
|
super();
|
|
30000
30122
|
__publicField(this, "props");
|
|
30001
30123
|
__publicField(this, "ctx");
|
|
30002
30124
|
// API实例化
|
|
30003
30125
|
__publicField(this, "platformApi", new PlatformApi());
|
|
30004
|
-
__publicField(this, "
|
|
30005
|
-
__publicField(this, "
|
|
30006
|
-
__publicField(this, "
|
|
30007
|
-
__publicField(this, "
|
|
30126
|
+
__publicField(this, "institutionTreeApi", new InstitutionTreeApi());
|
|
30127
|
+
__publicField(this, "userinforApi", new UserinforApi());
|
|
30128
|
+
__publicField(this, "institutionUserApi", new InstitutionUserApi());
|
|
30129
|
+
__publicField(this, "userRoleApi", new UserRoleApi());
|
|
30130
|
+
__publicField(this, "institutionPlatformApi", new InstitutionPlatformApi());
|
|
30131
|
+
__publicField(this, "roleApi", new RoleApi());
|
|
30132
|
+
__publicField(this, "oauthApi", new OAuthApi());
|
|
30133
|
+
__publicField(this, "userSignApi", new UserSignApi());
|
|
30134
|
+
__publicField(this, "signTaskInfoApi", new SignTaskInfoApi());
|
|
30008
30135
|
// 全局属性
|
|
30009
30136
|
__publicField(this, "selectedPlatform");
|
|
30010
|
-
//#region
|
|
30137
|
+
//#region 组织机构树
|
|
30011
30138
|
// 私有属性 | private
|
|
30012
|
-
__publicField(this, "
|
|
30013
|
-
__publicField(this, "cities", []);
|
|
30014
|
-
__publicField(this, "areas", []);
|
|
30015
|
-
// 响应属性 | ref、reactive、computed
|
|
30016
|
-
__publicField(this, "refSelectPlatform", ref());
|
|
30017
|
-
//#endregion 业务逻辑 省市区 END
|
|
30018
|
-
//#region 业务逻辑 - 企业列表
|
|
30139
|
+
__publicField(this, "selectedInsTree");
|
|
30019
30140
|
// 响应属性 | ref、reactive、computed
|
|
30020
|
-
__publicField(this, "
|
|
30021
|
-
__publicField(this, "
|
|
30022
|
-
|
|
30023
|
-
|
|
30141
|
+
__publicField(this, "institutionTree", ref([]));
|
|
30142
|
+
__publicField(this, "loadingInstitutionTree", ref(false));
|
|
30143
|
+
// 响应式方法 | xxx = () => {}
|
|
30144
|
+
/**
|
|
30145
|
+
* 平台切换
|
|
30146
|
+
*/
|
|
30147
|
+
__publicField(this, "doChangePlatform", (data) => {
|
|
30148
|
+
this.selectedPlatform = data;
|
|
30149
|
+
this.loadInsTree();
|
|
30150
|
+
});
|
|
30151
|
+
/**
|
|
30152
|
+
* 渲染机构树内容
|
|
30153
|
+
* @param h
|
|
30154
|
+
* @param param1
|
|
30155
|
+
* @returns
|
|
30156
|
+
*/
|
|
30157
|
+
__publicField(this, "renderInsTreeContent", (h2, { root, node, data }) => {
|
|
30158
|
+
return h2("span", {
|
|
30159
|
+
style: {
|
|
30160
|
+
display: "inline-block",
|
|
30161
|
+
paddingLeft: "4px",
|
|
30162
|
+
boxSizing: "content-box",
|
|
30163
|
+
border: data.intoDrag ? "1px dashed #2d8cf0" : "0px"
|
|
30164
|
+
}
|
|
30165
|
+
}, [
|
|
30166
|
+
h2("span", [
|
|
30167
|
+
h2("span", {
|
|
30168
|
+
style: {
|
|
30169
|
+
fontWeight: this.utilities.isNull(data.FakeId) ? "normal" : "bold"
|
|
30170
|
+
}
|
|
30171
|
+
}, this.utilities.getValueNotNull(data.title, "[未知节点]"))
|
|
30172
|
+
])
|
|
30173
|
+
]);
|
|
30174
|
+
});
|
|
30175
|
+
/**
|
|
30176
|
+
* 树选择事件
|
|
30177
|
+
* @param datas
|
|
30178
|
+
*/
|
|
30179
|
+
__publicField(this, "doChangeInsTree", (datas) => {
|
|
30180
|
+
if (datas.length > 0) {
|
|
30181
|
+
this.selectedInsTree = datas[0];
|
|
30182
|
+
this.loadInstitutionTreeUsers({});
|
|
30183
|
+
}
|
|
30184
|
+
});
|
|
30185
|
+
/**
|
|
30186
|
+
* 刷新机构树
|
|
30187
|
+
*/
|
|
30188
|
+
__publicField(this, "doRefreshInsTree", () => {
|
|
30189
|
+
this.loadInsTree();
|
|
30190
|
+
});
|
|
30191
|
+
//#endregion 组织机构树 END
|
|
30192
|
+
//#region 用户列表
|
|
30193
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
30194
|
+
__publicField(this, "userBoxWidth", ref("calc(100% - 300px)"));
|
|
30195
|
+
__publicField(this, "insTreeUserGrid", ref());
|
|
30196
|
+
__publicField(this, "insTreeUserGridOption", reactive({
|
|
30197
|
+
api: this.userinforApi,
|
|
30024
30198
|
setting: {
|
|
30199
|
+
border: true,
|
|
30025
30200
|
searchConfig: {
|
|
30026
|
-
btnSpan:
|
|
30027
|
-
labelWidth:
|
|
30201
|
+
btnSpan: 6,
|
|
30202
|
+
labelWidth: 90,
|
|
30028
30203
|
defaultShowSearch: false
|
|
30029
30204
|
},
|
|
30030
30205
|
toolbarConfig: {
|
|
@@ -30038,17 +30213,36 @@ let EnterpriseInstance$1 = class EnterpriseInstance extends BaseInstance {
|
|
|
30038
30213
|
},
|
|
30039
30214
|
searchOptions: [
|
|
30040
30215
|
{
|
|
30041
|
-
field: "
|
|
30042
|
-
title: "
|
|
30043
|
-
type: "Input"
|
|
30044
|
-
|
|
30216
|
+
field: "UserName",
|
|
30217
|
+
title: "用户姓名",
|
|
30218
|
+
type: "Input"
|
|
30219
|
+
},
|
|
30220
|
+
{
|
|
30221
|
+
field: "Account",
|
|
30222
|
+
title: "账号",
|
|
30223
|
+
type: "Input"
|
|
30224
|
+
},
|
|
30225
|
+
{
|
|
30226
|
+
field: "AccountStatus",
|
|
30227
|
+
title: "账号状态",
|
|
30228
|
+
type: "Radio",
|
|
30229
|
+
data: [{ text: "正常", value: 1 }, { text: "挂起", value: 2 }, { text: "禁用", value: 3 }, { text: "只读", value: 4 }]
|
|
30045
30230
|
}
|
|
30046
30231
|
],
|
|
30047
30232
|
toolbars: [
|
|
30048
30233
|
{
|
|
30049
30234
|
name: "add",
|
|
30235
|
+
text: "新增",
|
|
30050
30236
|
onclick: () => {
|
|
30051
|
-
this.
|
|
30237
|
+
this.doAddUser();
|
|
30238
|
+
}
|
|
30239
|
+
},
|
|
30240
|
+
{
|
|
30241
|
+
name: "import",
|
|
30242
|
+
icon: "md-arrow-round-up",
|
|
30243
|
+
text: "引入",
|
|
30244
|
+
onclick: () => {
|
|
30245
|
+
this.doShowImportUser();
|
|
30052
30246
|
}
|
|
30053
30247
|
}
|
|
30054
30248
|
],
|
|
@@ -30061,96 +30255,1454 @@ let EnterpriseInstance$1 = class EnterpriseInstance extends BaseInstance {
|
|
|
30061
30255
|
{
|
|
30062
30256
|
colType: "seq"
|
|
30063
30257
|
},
|
|
30064
|
-
{ colType: "ro", field: "
|
|
30065
|
-
{ colType: "
|
|
30066
|
-
{ colType: "ed", field: "EnterpriseCode", title: "企业代码", align: "center", minWidth: 160 },
|
|
30258
|
+
{ colType: "ro", field: "UserName", title: "姓名", minWidth: 160 },
|
|
30259
|
+
{ colType: "ro", field: "Account", title: "账号", width: 140 },
|
|
30067
30260
|
{
|
|
30068
30261
|
colType: "ro",
|
|
30069
|
-
field: "
|
|
30070
|
-
title: "
|
|
30262
|
+
field: "AccountStatus",
|
|
30263
|
+
title: "账号状态",
|
|
30264
|
+
width: 140,
|
|
30071
30265
|
align: "center",
|
|
30072
|
-
width: 220,
|
|
30073
30266
|
format: (h2, params) => {
|
|
30074
|
-
const
|
|
30075
|
-
|
|
30076
|
-
|
|
30077
|
-
|
|
30078
|
-
|
|
30079
|
-
|
|
30080
|
-
|
|
30081
|
-
|
|
30082
|
-
|
|
30083
|
-
result.push(cityResult[0].CityName);
|
|
30084
|
-
}
|
|
30085
|
-
if (areaResult.length > 0) {
|
|
30086
|
-
result.push(areaResult[0].AreaName);
|
|
30087
|
-
}
|
|
30088
|
-
return h2("span", result.join("-"));
|
|
30267
|
+
const dict = {
|
|
30268
|
+
1: { text: "正常", color: "green" },
|
|
30269
|
+
2: { text: "挂起", color: "gold" },
|
|
30270
|
+
3: { text: "禁用", color: "red" },
|
|
30271
|
+
4: { text: "只读", color: "default" }
|
|
30272
|
+
};
|
|
30273
|
+
const option = dict[params.row["AccountStatus"]];
|
|
30274
|
+
const accountType = params.row["AccountType"] == 0 ? "用户账号" : "内部账号";
|
|
30275
|
+
return h2(Tag, { color: option.color }, () => accountType + " - " + option.text);
|
|
30089
30276
|
}
|
|
30090
30277
|
},
|
|
30091
|
-
{
|
|
30092
|
-
|
|
30093
|
-
|
|
30094
|
-
|
|
30095
|
-
|
|
30096
|
-
|
|
30097
|
-
|
|
30278
|
+
{
|
|
30279
|
+
colType: "ro",
|
|
30280
|
+
field: "IsMutex",
|
|
30281
|
+
title: "单点登录",
|
|
30282
|
+
width: 90,
|
|
30283
|
+
align: "center",
|
|
30284
|
+
format: (h2, params) => {
|
|
30285
|
+
const dict = {
|
|
30286
|
+
0: "否",
|
|
30287
|
+
1: "是"
|
|
30288
|
+
};
|
|
30289
|
+
return dict[params.row["IsMutex"]];
|
|
30290
|
+
}
|
|
30291
|
+
},
|
|
30292
|
+
{
|
|
30293
|
+
colType: "ro",
|
|
30294
|
+
field: "ExpiredDate",
|
|
30295
|
+
title: "密码过期时间",
|
|
30296
|
+
width: 130,
|
|
30297
|
+
align: "center",
|
|
30298
|
+
format: (h2, params) => {
|
|
30299
|
+
const expiredDate = params.row.ExpiredDate;
|
|
30300
|
+
return this.utilities.isNull(expiredDate) ? "" : expiredDate.split(" ")[0];
|
|
30301
|
+
}
|
|
30302
|
+
},
|
|
30303
|
+
{
|
|
30304
|
+
colType: "ro",
|
|
30305
|
+
field: "ErrorNum",
|
|
30306
|
+
title: "错误次数",
|
|
30307
|
+
width: 90,
|
|
30308
|
+
align: "center",
|
|
30309
|
+
format: (h2, params) => {
|
|
30310
|
+
return params.row.ErrorNum + "/5";
|
|
30311
|
+
}
|
|
30312
|
+
},
|
|
30313
|
+
{ colType: "ro", field: "LastUpdateUserName", title: "最后修改人", width: 120, align: "center" },
|
|
30314
|
+
{ colType: "ro", field: "LastUpdateDate", title: "最后修改时间", width: 140, align: "center" },
|
|
30315
|
+
{ colType: "ro", field: "LastLoginTime", title: "最后登录时间", width: 140, align: "center" },
|
|
30098
30316
|
{
|
|
30099
30317
|
title: "操作",
|
|
30100
30318
|
width: 180,
|
|
30101
30319
|
rowButtons: [
|
|
30102
30320
|
{
|
|
30103
|
-
name: "
|
|
30104
|
-
text: "
|
|
30321
|
+
name: "edit",
|
|
30322
|
+
text: "编辑",
|
|
30105
30323
|
onclick: (row, btn) => {
|
|
30106
|
-
this.
|
|
30324
|
+
this.doEditUser(row);
|
|
30107
30325
|
}
|
|
30108
30326
|
},
|
|
30109
30327
|
{
|
|
30110
|
-
name: "
|
|
30111
|
-
text: "
|
|
30328
|
+
name: "role",
|
|
30329
|
+
text: "定岗",
|
|
30112
30330
|
onclick: (row, btn) => {
|
|
30113
|
-
this.
|
|
30331
|
+
this.doShowUserRole(row);
|
|
30114
30332
|
}
|
|
30115
30333
|
},
|
|
30116
30334
|
{
|
|
30117
30335
|
name: "delete",
|
|
30118
|
-
text: "
|
|
30336
|
+
text: "移除",
|
|
30337
|
+
onclick: (row, btn) => {
|
|
30338
|
+
this.doDeleteUser(row);
|
|
30339
|
+
}
|
|
30340
|
+
}
|
|
30341
|
+
]
|
|
30342
|
+
},
|
|
30343
|
+
{
|
|
30344
|
+
title: "运维",
|
|
30345
|
+
width: 180,
|
|
30346
|
+
rowButtons: [
|
|
30347
|
+
{
|
|
30348
|
+
name: "login",
|
|
30349
|
+
text: "登录",
|
|
30350
|
+
onclick: (row, btn) => {
|
|
30351
|
+
this.devOpsLogin(row);
|
|
30352
|
+
}
|
|
30353
|
+
},
|
|
30354
|
+
{
|
|
30355
|
+
name: "userSign",
|
|
30356
|
+
text: "签字",
|
|
30357
|
+
onclick: (row, btn) => {
|
|
30358
|
+
this.doShowEditUserSign(row);
|
|
30359
|
+
}
|
|
30360
|
+
},
|
|
30361
|
+
{
|
|
30362
|
+
name: "resize",
|
|
30363
|
+
text: "重置",
|
|
30364
|
+
onclick: (row, btn) => {
|
|
30365
|
+
this.doResetUserPwd(row.Id);
|
|
30366
|
+
}
|
|
30119
30367
|
}
|
|
30120
30368
|
]
|
|
30121
30369
|
}
|
|
30122
30370
|
],
|
|
30123
30371
|
event: {
|
|
30124
30372
|
event_search: (data) => {
|
|
30125
|
-
this.
|
|
30126
|
-
this.
|
|
30373
|
+
this.insTreeUserGrid.value.setPageIndex(1);
|
|
30374
|
+
this.loadInstitutionTreeUsers(data);
|
|
30127
30375
|
}
|
|
30128
30376
|
}
|
|
30129
30377
|
}));
|
|
30130
30378
|
// 响应式方法 | xxx = () => {}
|
|
30131
30379
|
/**
|
|
30132
|
-
|
|
30133
|
-
|
|
30134
|
-
|
|
30135
|
-
|
|
30136
|
-
this.selectedPlatform = data;
|
|
30137
|
-
this.loadEnterpriseGridData({});
|
|
30380
|
+
* 改变机构宽度
|
|
30381
|
+
*/
|
|
30382
|
+
__publicField(this, "doChangeUserBoxWidth", (isExpand) => {
|
|
30383
|
+
this.userBoxWidth.value = isExpand ? "calc(100% - 300px)" : "calc(100% - 45px)";
|
|
30138
30384
|
});
|
|
30139
|
-
//#endregion
|
|
30140
|
-
//#region
|
|
30385
|
+
//#endregion 用户列表 END
|
|
30386
|
+
//#region 编辑用户
|
|
30141
30387
|
// 响应属性 | ref、reactive、computed、watch
|
|
30142
|
-
__publicField(this, "
|
|
30143
|
-
__publicField(this, "
|
|
30144
|
-
__publicField(this, "
|
|
30145
|
-
__publicField(this, "
|
|
30388
|
+
__publicField(this, "showEditUser", ref(false));
|
|
30389
|
+
__publicField(this, "saveingUser", ref(false));
|
|
30390
|
+
__publicField(this, "editUserTitle", ref("新增 - 用户"));
|
|
30391
|
+
__publicField(this, "userForm", ref());
|
|
30392
|
+
__publicField(this, "userFormModel", reactive({
|
|
30146
30393
|
Id: 0,
|
|
30147
|
-
|
|
30148
|
-
|
|
30149
|
-
|
|
30150
|
-
|
|
30151
|
-
|
|
30152
|
-
|
|
30153
|
-
|
|
30394
|
+
UserName: "",
|
|
30395
|
+
Sex: 1,
|
|
30396
|
+
Phone: "",
|
|
30397
|
+
CIdNo: "",
|
|
30398
|
+
UserIconToken: "",
|
|
30399
|
+
UserSignImgToken: "",
|
|
30400
|
+
Account: "",
|
|
30401
|
+
AccountType: 0,
|
|
30402
|
+
AccountStatus: 1,
|
|
30403
|
+
ErrorNum: 0,
|
|
30404
|
+
ExpiredDate: "",
|
|
30405
|
+
IsMutex: 0,
|
|
30406
|
+
PwdAuthentication: 0,
|
|
30407
|
+
LastUpdateUserId: 0,
|
|
30408
|
+
LastUpdateUserName: "",
|
|
30409
|
+
LastUpdateDate: ""
|
|
30410
|
+
}));
|
|
30411
|
+
__publicField(this, "userFormItems", reactive([
|
|
30412
|
+
{
|
|
30413
|
+
model: "",
|
|
30414
|
+
label: "基础信息",
|
|
30415
|
+
span: 24,
|
|
30416
|
+
children: [
|
|
30417
|
+
{ model: "Account", label: "账号", type: "Input", prop: "Account" },
|
|
30418
|
+
{ model: "UserName", label: "姓名", type: "Input", prop: "UserName" },
|
|
30419
|
+
{ model: "Phone", label: "手机号", type: "Input" },
|
|
30420
|
+
{
|
|
30421
|
+
model: "Sex",
|
|
30422
|
+
label: "性别",
|
|
30423
|
+
type: "Select",
|
|
30424
|
+
selectProp: {
|
|
30425
|
+
datas: [{ text: "男", value: 1 }, { text: "女", value: 2 }, { text: "其他", value: 3 }],
|
|
30426
|
+
transfer: true
|
|
30427
|
+
}
|
|
30428
|
+
}
|
|
30429
|
+
]
|
|
30430
|
+
},
|
|
30431
|
+
{
|
|
30432
|
+
model: "",
|
|
30433
|
+
label: "账号信息",
|
|
30434
|
+
span: 24,
|
|
30435
|
+
children: [
|
|
30436
|
+
{
|
|
30437
|
+
model: "AccountType",
|
|
30438
|
+
label: "账号类型",
|
|
30439
|
+
type: "Radio",
|
|
30440
|
+
radioProp: {
|
|
30441
|
+
type: "button",
|
|
30442
|
+
"button-style": "solid",
|
|
30443
|
+
datas: [{ text: "用户账号", value: 0 }, { text: "内部账号", value: 1 }]
|
|
30444
|
+
}
|
|
30445
|
+
},
|
|
30446
|
+
{
|
|
30447
|
+
model: "AccountStatus",
|
|
30448
|
+
label: "账号状态",
|
|
30449
|
+
type: "Select",
|
|
30450
|
+
selectProp: {
|
|
30451
|
+
datas: [{ text: "正常", value: 1 }, { text: "挂起", value: 2 }, { text: "禁用", value: 3 }, { text: "只读", value: 4 }],
|
|
30452
|
+
transfer: true
|
|
30453
|
+
}
|
|
30454
|
+
},
|
|
30455
|
+
{ model: "ExpiredDate", label: "密码过期时间", type: "DatePicker" },
|
|
30456
|
+
{
|
|
30457
|
+
model: "PwdAuthentication",
|
|
30458
|
+
label: "密码强认证",
|
|
30459
|
+
type: "Select",
|
|
30460
|
+
selectProp: {
|
|
30461
|
+
datas: [{ text: "否", value: 0 }, { text: "是", value: 1 }],
|
|
30462
|
+
transfer: true
|
|
30463
|
+
}
|
|
30464
|
+
},
|
|
30465
|
+
{
|
|
30466
|
+
model: "IsMutex",
|
|
30467
|
+
label: "单点登录",
|
|
30468
|
+
type: "Select",
|
|
30469
|
+
selectProp: {
|
|
30470
|
+
datas: [{ text: "否", value: 0 }, { text: "是", value: 1 }],
|
|
30471
|
+
transfer: true
|
|
30472
|
+
}
|
|
30473
|
+
},
|
|
30474
|
+
{ model: "ErrorNum", label: "错误次数", type: "Input" }
|
|
30475
|
+
]
|
|
30476
|
+
}
|
|
30477
|
+
]));
|
|
30478
|
+
__publicField(this, "userFormRule", reactive({
|
|
30479
|
+
UserName: [
|
|
30480
|
+
{ required: true, message: "姓名不能为空", trigger: "blur" }
|
|
30481
|
+
],
|
|
30482
|
+
Account: [
|
|
30483
|
+
{ required: true, message: "姓名不能为空", trigger: "blur" }
|
|
30484
|
+
]
|
|
30485
|
+
}));
|
|
30486
|
+
// 响应式方法 | xxx = () => {}
|
|
30487
|
+
/**
|
|
30488
|
+
* 保存用户
|
|
30489
|
+
*/
|
|
30490
|
+
__publicField(this, "doSaveUser", async () => {
|
|
30491
|
+
this.saveingUser.value = true;
|
|
30492
|
+
let result = await this.userForm.value.validate();
|
|
30493
|
+
if (!result) {
|
|
30494
|
+
this.saveingUser.value = false;
|
|
30495
|
+
return;
|
|
30496
|
+
}
|
|
30497
|
+
if (this.userFormModel.AccountType == 0 && this.utilities.isNull(this.userFormModel.Phone)) {
|
|
30498
|
+
this.message.warning("在用户账号模式下,手机号必填!");
|
|
30499
|
+
this.saveingUser.value = false;
|
|
30500
|
+
return;
|
|
30501
|
+
}
|
|
30502
|
+
if (!this.utilities.isNull(this.userFormModel.Phone)) {
|
|
30503
|
+
const reg = /^[1][3,4,5,7,8]\d{9}$/;
|
|
30504
|
+
if (!reg.test(this.userFormModel.Phone)) {
|
|
30505
|
+
this.message.warning(`手机号格式不正确, 请重新输入!`);
|
|
30506
|
+
this.saveingUser.value = false;
|
|
30507
|
+
return;
|
|
30508
|
+
}
|
|
30509
|
+
const queryWrapper2 = QueryWrapper.create();
|
|
30510
|
+
queryWrapper2.eq("Phone", this.userFormModel.Phone).eq("IsDel", 0);
|
|
30511
|
+
if (this.userFormModel.Id > 0) {
|
|
30512
|
+
queryWrapper2.ne("Id", this.userFormModel.Id);
|
|
30513
|
+
}
|
|
30514
|
+
const apiResult2 = await this.userinforApi.isExist(queryWrapper2);
|
|
30515
|
+
result = this.utilities.parseApiResult(apiResult2);
|
|
30516
|
+
if (result) {
|
|
30517
|
+
this.message.warning(`手机号 ${this.userFormModel.Phone} 已关联其他账号, 请重新输入!`);
|
|
30518
|
+
this.saveingUser.value = false;
|
|
30519
|
+
return;
|
|
30520
|
+
}
|
|
30521
|
+
}
|
|
30522
|
+
const queryWrapper = QueryWrapper.create();
|
|
30523
|
+
queryWrapper.eq("Account", this.userFormModel.Account).eq("IsDel", 0);
|
|
30524
|
+
if (this.userFormModel.Id > 0) {
|
|
30525
|
+
queryWrapper.ne("Id", this.userFormModel.Id);
|
|
30526
|
+
}
|
|
30527
|
+
let apiResult = await this.userinforApi.isExist(queryWrapper);
|
|
30528
|
+
result = this.utilities.parseApiResult(apiResult);
|
|
30529
|
+
if (result) {
|
|
30530
|
+
this.message.warning(`账号 ${this.userFormModel.Account} 已存在, 请重新输入!`);
|
|
30531
|
+
this.saveingUser.value = false;
|
|
30532
|
+
return;
|
|
30533
|
+
}
|
|
30534
|
+
apiResult = await this.userinforApi.save(this.userFormModel);
|
|
30535
|
+
result = this.utilities.parseApiResult(apiResult);
|
|
30536
|
+
if (this.userFormModel.Id == 0) {
|
|
30537
|
+
await this.institutionUserApi.save({
|
|
30538
|
+
InstitutionId: this.selectedInsTree.InstitutionId,
|
|
30539
|
+
UserId: result,
|
|
30540
|
+
InsTreeId: this.selectedInsTree.Id
|
|
30541
|
+
});
|
|
30542
|
+
await this.userinforApi.initialUserPwd(result, this.selectedPlatform.Id);
|
|
30543
|
+
}
|
|
30544
|
+
this.saveingUser.value = false;
|
|
30545
|
+
if (result > 0) {
|
|
30546
|
+
this.message.success("保存成功");
|
|
30547
|
+
this.insTreeUserGrid.value.refreshData();
|
|
30548
|
+
this.showEditUser.value = false;
|
|
30549
|
+
} else {
|
|
30550
|
+
this.message.error(apiResult.msg);
|
|
30551
|
+
}
|
|
30552
|
+
});
|
|
30553
|
+
//#endregion 编辑用户 END
|
|
30554
|
+
//#region 定岗
|
|
30555
|
+
// 私有属性 | private
|
|
30556
|
+
__publicField(this, "currentUser");
|
|
30557
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
30558
|
+
__publicField(this, "showUserRole", ref(false));
|
|
30559
|
+
__publicField(this, "saveingUserRole", ref(false));
|
|
30560
|
+
__publicField(this, "userRoleGrid", ref());
|
|
30561
|
+
__publicField(this, "userRoleGridOption", reactive({
|
|
30562
|
+
api: this.userinforApi,
|
|
30563
|
+
setting: {
|
|
30564
|
+
border: false,
|
|
30565
|
+
toolbarConfig: {
|
|
30566
|
+
isButtonGroup: false
|
|
30567
|
+
},
|
|
30568
|
+
rowConfig: {
|
|
30569
|
+
isHover: true
|
|
30570
|
+
}
|
|
30571
|
+
},
|
|
30572
|
+
rightToolbars: [
|
|
30573
|
+
{
|
|
30574
|
+
name: "refresh"
|
|
30575
|
+
}
|
|
30576
|
+
],
|
|
30577
|
+
columns: [
|
|
30578
|
+
{
|
|
30579
|
+
colType: "seq"
|
|
30580
|
+
},
|
|
30581
|
+
{
|
|
30582
|
+
colType: "ro",
|
|
30583
|
+
width: 50,
|
|
30584
|
+
align: "center",
|
|
30585
|
+
format: (h2, params) => {
|
|
30586
|
+
return h2(Checkbox, {
|
|
30587
|
+
style: {
|
|
30588
|
+
"margin-right": "0px"
|
|
30589
|
+
},
|
|
30590
|
+
"model-value": params.row.IsChk,
|
|
30591
|
+
"onUpdate:model-value": (value) => {
|
|
30592
|
+
params.row.IsChk = value;
|
|
30593
|
+
}
|
|
30594
|
+
});
|
|
30595
|
+
}
|
|
30596
|
+
},
|
|
30597
|
+
{ colType: "ed", field: "RoleName", title: "角色名称" },
|
|
30598
|
+
{ colType: "ed", field: "DefaultUrl", title: "默认页面", width: 200, align: "center" },
|
|
30599
|
+
{ colType: "ed", field: "欢迎页面", title: "WelcomeUrl", width: 200, align: "center" },
|
|
30600
|
+
{ colType: "num", field: "OrderNo", title: "排序号", width: 100, align: "center" }
|
|
30601
|
+
]
|
|
30602
|
+
}));
|
|
30603
|
+
// 响应式方法 | xxx = () => {}
|
|
30604
|
+
/**
|
|
30605
|
+
* 保存用户角色
|
|
30606
|
+
*/
|
|
30607
|
+
__publicField(this, "doSaveUserRole", async () => {
|
|
30608
|
+
const datas = this.userRoleGrid.value.getDatas();
|
|
30609
|
+
const chkDatas = datas.filter((item) => item.IsChk == true);
|
|
30610
|
+
this.saveingUserRole.value = true;
|
|
30611
|
+
let apiResult = await this.userRoleApi.getEntities(QueryWrapper.create().eq("UserId", this.currentUser.Id).eq("PlatformId", this.selectedPlatform.Id));
|
|
30612
|
+
let userRoles = this.utilities.parseApiResult(apiResult);
|
|
30613
|
+
let insertRecords = [];
|
|
30614
|
+
for (const item of chkDatas) {
|
|
30615
|
+
if (userRoles.findIndex((d) => d.RoleId == item.Id) == -1) {
|
|
30616
|
+
insertRecords.push({
|
|
30617
|
+
PlatformId: this.selectedPlatform.Id,
|
|
30618
|
+
UserId: this.currentUser.Id,
|
|
30619
|
+
RoleId: item.Id
|
|
30620
|
+
});
|
|
30621
|
+
}
|
|
30622
|
+
}
|
|
30623
|
+
let deleteRecords = [];
|
|
30624
|
+
for (const item of userRoles) {
|
|
30625
|
+
if (chkDatas.findIndex((d) => d.Id == item.RoleId) == -1) {
|
|
30626
|
+
deleteRecords.push(item.Id);
|
|
30627
|
+
}
|
|
30628
|
+
}
|
|
30629
|
+
if (insertRecords.length == 0 && deleteRecords.length == 0) {
|
|
30630
|
+
this.message.warning("没有需要保存的数据");
|
|
30631
|
+
this.saveingUserRole.value = false;
|
|
30632
|
+
return;
|
|
30633
|
+
}
|
|
30634
|
+
let isSaveing = true;
|
|
30635
|
+
if (insertRecords.length > 0) {
|
|
30636
|
+
apiResult = await this.userRoleApi.saves(insertRecords);
|
|
30637
|
+
let insertResult = this.utilities.parseApiResult(apiResult);
|
|
30638
|
+
if (isSaveing == true) {
|
|
30639
|
+
isSaveing = insertResult > 0;
|
|
30640
|
+
}
|
|
30641
|
+
}
|
|
30642
|
+
if (deleteRecords.length > 0) {
|
|
30643
|
+
apiResult = await this.userRoleApi.deleteByIds(deleteRecords.join(","));
|
|
30644
|
+
let deleteResult = this.utilities.parseApiResult(apiResult);
|
|
30645
|
+
if (isSaveing == false) {
|
|
30646
|
+
isSaveing = deleteResult > 0;
|
|
30647
|
+
}
|
|
30648
|
+
}
|
|
30649
|
+
this.saveingUserRole.value = false;
|
|
30650
|
+
if (isSaveing) {
|
|
30651
|
+
this.message.success("保存成功");
|
|
30652
|
+
this.showUserRole.value = false;
|
|
30653
|
+
} else {
|
|
30654
|
+
this.message.error("保存失败, 请稍后重试!");
|
|
30655
|
+
}
|
|
30656
|
+
});
|
|
30657
|
+
//#endregion 定岗 END
|
|
30658
|
+
//#region 导入用户
|
|
30659
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
30660
|
+
__publicField(this, "showImportUser", ref(false));
|
|
30661
|
+
__publicField(this, "saveingImportUser", ref(false));
|
|
30662
|
+
__publicField(this, "otherUserGrid", ref());
|
|
30663
|
+
__publicField(this, "otherUserGridOption", reactive({
|
|
30664
|
+
api: this.userinforApi,
|
|
30665
|
+
setting: {
|
|
30666
|
+
border: true,
|
|
30667
|
+
searchConfig: {
|
|
30668
|
+
btnSpan: 24,
|
|
30669
|
+
labelWidth: 90,
|
|
30670
|
+
defaultShowSearch: false
|
|
30671
|
+
},
|
|
30672
|
+
toolbarConfig: {
|
|
30673
|
+
isButtonGroup: false
|
|
30674
|
+
},
|
|
30675
|
+
rowConfig: {
|
|
30676
|
+
isHover: true
|
|
30677
|
+
}
|
|
30678
|
+
},
|
|
30679
|
+
searchOptions: [
|
|
30680
|
+
{
|
|
30681
|
+
field: "UserName",
|
|
30682
|
+
title: "用户姓名",
|
|
30683
|
+
type: "Input",
|
|
30684
|
+
span: 8
|
|
30685
|
+
},
|
|
30686
|
+
{
|
|
30687
|
+
field: "Account",
|
|
30688
|
+
title: "账号",
|
|
30689
|
+
type: "Input",
|
|
30690
|
+
span: 8
|
|
30691
|
+
},
|
|
30692
|
+
{
|
|
30693
|
+
field: "AccountStatus",
|
|
30694
|
+
title: "账号状态",
|
|
30695
|
+
type: "Radio",
|
|
30696
|
+
data: [{ text: "正常", value: 1 }, { text: "挂起", value: 2 }, { text: "禁用", value: 3 }],
|
|
30697
|
+
span: 8
|
|
30698
|
+
}
|
|
30699
|
+
],
|
|
30700
|
+
rightToolbars: [
|
|
30701
|
+
{
|
|
30702
|
+
name: "refresh"
|
|
30703
|
+
}
|
|
30704
|
+
],
|
|
30705
|
+
columns: [
|
|
30706
|
+
{
|
|
30707
|
+
colType: "seq"
|
|
30708
|
+
},
|
|
30709
|
+
{
|
|
30710
|
+
colType: "checkbox"
|
|
30711
|
+
},
|
|
30712
|
+
{ colType: "ro", field: "UserName", title: "姓名", minWidth: 160 },
|
|
30713
|
+
{
|
|
30714
|
+
colType: "ro",
|
|
30715
|
+
field: "Sex",
|
|
30716
|
+
title: "性别",
|
|
30717
|
+
width: 120,
|
|
30718
|
+
align: "center",
|
|
30719
|
+
format: (h2, params) => {
|
|
30720
|
+
const dict = {
|
|
30721
|
+
1: "男",
|
|
30722
|
+
2: "女",
|
|
30723
|
+
3: "其他"
|
|
30724
|
+
};
|
|
30725
|
+
return dict[params.row["Sex"]];
|
|
30726
|
+
}
|
|
30727
|
+
},
|
|
30728
|
+
{ colType: "ro", field: "Account", title: "账号", width: 180 },
|
|
30729
|
+
{
|
|
30730
|
+
colType: "ro",
|
|
30731
|
+
field: "AccountStatus",
|
|
30732
|
+
title: "账号状态",
|
|
30733
|
+
width: 160,
|
|
30734
|
+
align: "center",
|
|
30735
|
+
format: (h2, params) => {
|
|
30736
|
+
const dict = {
|
|
30737
|
+
1: { text: "正常", color: "green" },
|
|
30738
|
+
2: { text: "挂起", color: "gold" },
|
|
30739
|
+
3: { text: "禁用", color: "red" }
|
|
30740
|
+
};
|
|
30741
|
+
const option = dict[params.row["AccountStatus"]];
|
|
30742
|
+
return h2(Tag, { color: option.color }, () => option.text);
|
|
30743
|
+
}
|
|
30744
|
+
}
|
|
30745
|
+
],
|
|
30746
|
+
event: {
|
|
30747
|
+
event_search: (data) => {
|
|
30748
|
+
this.loadImportUserGrid(data);
|
|
30749
|
+
}
|
|
30750
|
+
}
|
|
30751
|
+
}));
|
|
30752
|
+
// 响应式方法 | xxx = () => {}
|
|
30753
|
+
/**
|
|
30754
|
+
* 导入用户
|
|
30755
|
+
*/
|
|
30756
|
+
__publicField(this, "doImportUser", async () => {
|
|
30757
|
+
const datas = this.otherUserGrid.value.getCheckboxDatas();
|
|
30758
|
+
if (datas.length == 0) {
|
|
30759
|
+
this.message.warning("没有需要导入的用户");
|
|
30760
|
+
return;
|
|
30761
|
+
}
|
|
30762
|
+
const saveDatas = [];
|
|
30763
|
+
for (const data of datas) {
|
|
30764
|
+
saveDatas.push({
|
|
30765
|
+
InstitutionId: this.selectedInsTree.InstitutionId,
|
|
30766
|
+
UserId: data.Id,
|
|
30767
|
+
InsTreeId: this.selectedInsTree.Id
|
|
30768
|
+
});
|
|
30769
|
+
}
|
|
30770
|
+
this.saveingImportUser.value = true;
|
|
30771
|
+
let apiResult = await this.institutionUserApi.saves(saveDatas);
|
|
30772
|
+
let result = this.utilities.parseApiResult(apiResult);
|
|
30773
|
+
this.saveingImportUser.value = false;
|
|
30774
|
+
if (result) {
|
|
30775
|
+
this.message.success("导入成功");
|
|
30776
|
+
this.insTreeUserGrid.value.refreshData();
|
|
30777
|
+
this.showImportUser.value = false;
|
|
30778
|
+
} else {
|
|
30779
|
+
this.message.error("导入失败, 请稍后重试!");
|
|
30780
|
+
}
|
|
30781
|
+
});
|
|
30782
|
+
//#endregion 导入用户 END
|
|
30783
|
+
//#region 登录日志
|
|
30784
|
+
// 私有属性 | private
|
|
30785
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
30786
|
+
__publicField(this, "showLoginLog", ref(false));
|
|
30787
|
+
__publicField(this, "loginLogRef", ref());
|
|
30788
|
+
// 私有方法 | private 方法名() {}
|
|
30789
|
+
// 响应式方法 | xxx = () => {}
|
|
30790
|
+
/**
|
|
30791
|
+
* 显示登录日志
|
|
30792
|
+
*/
|
|
30793
|
+
__publicField(this, "doShowLoginLog", (item) => {
|
|
30794
|
+
this.showLoginLog.value = true;
|
|
30795
|
+
this.loginLogRef.value.loadLoginLog(this.selectedPlatform.Id, item.Id);
|
|
30796
|
+
});
|
|
30797
|
+
//#endregion 登录日志 END
|
|
30798
|
+
//#region 运维登录
|
|
30799
|
+
// 私有属性 | private
|
|
30800
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
30801
|
+
__publicField(this, "loginRef", ref());
|
|
30802
|
+
__publicField(this, "logining", ref(false));
|
|
30803
|
+
// 响应式方法 | xxx = () => {}
|
|
30804
|
+
//#endregion 运维登录 END
|
|
30805
|
+
//#region CA签字配置
|
|
30806
|
+
// 私有属性 | private
|
|
30807
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
30808
|
+
__publicField(this, "showEditUserSign", ref(false));
|
|
30809
|
+
__publicField(this, "saveingUserSign", ref(false));
|
|
30810
|
+
__publicField(this, "userSignForm", ref());
|
|
30811
|
+
__publicField(this, "userSignFormModel", reactive({
|
|
30812
|
+
Id: 0,
|
|
30813
|
+
UserId: 0,
|
|
30814
|
+
CAUserInfoKey: "",
|
|
30815
|
+
CAUserSealKey: "",
|
|
30816
|
+
CAUserYZKey: "",
|
|
30817
|
+
CAUserSealImg: "",
|
|
30818
|
+
CAUserYZImg: ""
|
|
30819
|
+
}));
|
|
30820
|
+
__publicField(this, "userSignFormItems", reactive([
|
|
30821
|
+
{ model: "CAUserInfoKey", label: "用户KEY", type: "Input", prop: "CAUserInfoKey", span: 24 },
|
|
30822
|
+
{ model: "CAUserSealKey", label: "印章KEY", type: "Input", prop: "CAUserSealKey", span: 24 },
|
|
30823
|
+
{ model: "CAUserYZKey", label: "圆章KEY", type: "Input", prop: "CAUserYZKey", span: 24 }
|
|
30824
|
+
]));
|
|
30825
|
+
// 响应式方法 | xxx = () => {}
|
|
30826
|
+
/**
|
|
30827
|
+
* 保存用户签字
|
|
30828
|
+
*/
|
|
30829
|
+
__publicField(this, "doSaveUserSign", async () => {
|
|
30830
|
+
this.saveingUserSign.value = true;
|
|
30831
|
+
const apiResult = await this.userSignApi.save(this.userSignFormModel);
|
|
30832
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
30833
|
+
this.saveingUserSign.value = false;
|
|
30834
|
+
if (result) {
|
|
30835
|
+
this.message.success("保存成功");
|
|
30836
|
+
this.showEditUserSign.value = false;
|
|
30837
|
+
} else {
|
|
30838
|
+
this.message.error("保存失败,请稍后重试");
|
|
30839
|
+
}
|
|
30840
|
+
});
|
|
30841
|
+
/**
|
|
30842
|
+
* 加载用户印章KEY
|
|
30843
|
+
*/
|
|
30844
|
+
__publicField(this, "doLoadUserSealImg", async () => {
|
|
30845
|
+
if (this.utilities.isNull(this.selectedPlatform.CABusinessKey)) {
|
|
30846
|
+
this.message.warning("请先在平台模块设置CA业务KEY");
|
|
30847
|
+
return;
|
|
30848
|
+
}
|
|
30849
|
+
if (this.utilities.isNull(this.userSignFormModel.CAUserSealKey)) {
|
|
30850
|
+
this.message.warning("请输入印章KEY");
|
|
30851
|
+
return;
|
|
30852
|
+
}
|
|
30853
|
+
const apiResult = await this.signTaskInfoApi.GetUserSealCloudInfo(this.selectedPlatform.CABusinessKey, this.userSignFormModel.CAUserSealKey);
|
|
30854
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
30855
|
+
if (result) {
|
|
30856
|
+
this.userSignFormModel.CAUserSealImg = "data:image/png;base64," + result.data.sealPic;
|
|
30857
|
+
} else {
|
|
30858
|
+
this.message.error("读取失败,请稍后重试");
|
|
30859
|
+
}
|
|
30860
|
+
});
|
|
30861
|
+
/**
|
|
30862
|
+
* 加载圆章KEY
|
|
30863
|
+
*/
|
|
30864
|
+
__publicField(this, "doLoadUserYZImg", async () => {
|
|
30865
|
+
if (this.utilities.isNull(this.selectedPlatform.CABusinessKey)) {
|
|
30866
|
+
this.message.warning("请先在平台模块设置CA业务KEY");
|
|
30867
|
+
return;
|
|
30868
|
+
}
|
|
30869
|
+
if (this.utilities.isNull(this.userSignFormModel.CAUserYZKey)) {
|
|
30870
|
+
this.message.warning("请输入圆章KEY");
|
|
30871
|
+
return;
|
|
30872
|
+
}
|
|
30873
|
+
const apiResult = await this.signTaskInfoApi.GetUserSealCloudInfo(this.selectedPlatform.CABusinessKey, this.userSignFormModel.CAUserYZKey);
|
|
30874
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
30875
|
+
if (result) {
|
|
30876
|
+
if (result.head.code == 10) {
|
|
30877
|
+
this.userSignFormModel.CAUserYZImg = "data:image/png;base64," + result.data.sealPic;
|
|
30878
|
+
} else {
|
|
30879
|
+
this.message.error(result.head.msg);
|
|
30880
|
+
}
|
|
30881
|
+
} else {
|
|
30882
|
+
this.message.error("读取失败,请稍后重试");
|
|
30883
|
+
}
|
|
30884
|
+
});
|
|
30885
|
+
this.props = props;
|
|
30886
|
+
this.ctx = ctx;
|
|
30887
|
+
}
|
|
30888
|
+
// 私有方法 | private 方法名() {}
|
|
30889
|
+
/**
|
|
30890
|
+
* 加载机构树
|
|
30891
|
+
*/
|
|
30892
|
+
async loadInsTree() {
|
|
30893
|
+
let hasSelected = false;
|
|
30894
|
+
this.loadingInstitutionTree.value = true;
|
|
30895
|
+
const apiResult = await this.institutionTreeApi.getInstitutionTrees(this.selectedPlatform.Id);
|
|
30896
|
+
const datas = this.utilities.parseApiResult(apiResult);
|
|
30897
|
+
this.loadingInstitutionTree.value = false;
|
|
30898
|
+
const whileChildData = (pId) => {
|
|
30899
|
+
const childDatas = datas.filter((item) => item.PId == pId);
|
|
30900
|
+
for (const data of childDatas) {
|
|
30901
|
+
data.title = data.InstitutionAbbreviation;
|
|
30902
|
+
data.expand = true;
|
|
30903
|
+
const selected = this.utilities.isNull(this.selectedInsTree) ? false : this.selectedInsTree.Id == data.Id;
|
|
30904
|
+
data.selected = selected;
|
|
30905
|
+
if (selected) {
|
|
30906
|
+
hasSelected = true;
|
|
30907
|
+
}
|
|
30908
|
+
const values = whileChildData(data.Id);
|
|
30909
|
+
if (values.length > 0) {
|
|
30910
|
+
data.children = values;
|
|
30911
|
+
}
|
|
30912
|
+
}
|
|
30913
|
+
return childDatas;
|
|
30914
|
+
};
|
|
30915
|
+
this.institutionTree.value = whileChildData(0);
|
|
30916
|
+
if (!hasSelected && this.institutionTree.value.length > 0) {
|
|
30917
|
+
const data = this.institutionTree.value[0];
|
|
30918
|
+
data.selected = true;
|
|
30919
|
+
this.doChangeInsTree([data]);
|
|
30920
|
+
}
|
|
30921
|
+
}
|
|
30922
|
+
// 私有方法 | private 方法名() {}
|
|
30923
|
+
/**
|
|
30924
|
+
* 加载机构树用户
|
|
30925
|
+
* @param search
|
|
30926
|
+
*/
|
|
30927
|
+
loadInstitutionTreeUsers(search) {
|
|
30928
|
+
this.insTreeUserGrid.value.loadData(async (option) => {
|
|
30929
|
+
const apiResult = await this.userinforApi.getInstitutionTreeUsers(
|
|
30930
|
+
option.page,
|
|
30931
|
+
option.pageSize,
|
|
30932
|
+
this.selectedInsTree.Id,
|
|
30933
|
+
this.utilities.getValueNotNull(search.UserName, ""),
|
|
30934
|
+
this.utilities.getValueNotNull(search.Account, ""),
|
|
30935
|
+
this.utilities.getValueNotNull(search.AccountStatus, 0)
|
|
30936
|
+
);
|
|
30937
|
+
const datas = this.utilities.parseApiResult(apiResult);
|
|
30938
|
+
option.success(datas);
|
|
30939
|
+
});
|
|
30940
|
+
}
|
|
30941
|
+
// 私有方法 | private 方法名() {}
|
|
30942
|
+
/**
|
|
30943
|
+
* 编辑用户信息
|
|
30944
|
+
* @param data
|
|
30945
|
+
*/
|
|
30946
|
+
doEditUser(data) {
|
|
30947
|
+
const user = this.storageInfo.getUser();
|
|
30948
|
+
this.userFormModel.Id = data.Id;
|
|
30949
|
+
this.userFormModel.UserName = data.UserName;
|
|
30950
|
+
this.userFormModel.Sex = data.Sex;
|
|
30951
|
+
this.userFormModel.Phone = data.Phone;
|
|
30952
|
+
this.userFormModel.CIdNo = data.CIdNo;
|
|
30953
|
+
this.userFormModel.UserIconToken = data.UserIconToken;
|
|
30954
|
+
this.userFormModel.UserSignImgToken = data.UserSignImgToken;
|
|
30955
|
+
this.userFormModel.Account = data.Account;
|
|
30956
|
+
this.userFormModel.AccountStatus = data.AccountStatus;
|
|
30957
|
+
this.userFormModel.AccountType = data.AccountType;
|
|
30958
|
+
this.userFormModel.ErrorNum = data.ErrorNum;
|
|
30959
|
+
this.userFormModel.ExpiredDate = data.ExpiredDate;
|
|
30960
|
+
this.userFormModel.IsMutex = data.IsMutex;
|
|
30961
|
+
this.userFormModel.PwdAuthentication = data.PwdAuthentication;
|
|
30962
|
+
this.userFormModel.LastUpdateUserId = user.Id;
|
|
30963
|
+
this.userFormModel.LastUpdateUserName = user.UserName;
|
|
30964
|
+
this.userFormModel.LastUpdateDate = this.utilities.getCurrentDate();
|
|
30965
|
+
this.editUserTitle.value = "编辑用户 - " + data.UserName;
|
|
30966
|
+
this.showEditUser.value = true;
|
|
30967
|
+
}
|
|
30968
|
+
/**
|
|
30969
|
+
* 新增用户信息
|
|
30970
|
+
*/
|
|
30971
|
+
doAddUser() {
|
|
30972
|
+
const user = this.storageInfo.getUser();
|
|
30973
|
+
this.userFormModel.Id = 0;
|
|
30974
|
+
this.userFormModel.UserName = "";
|
|
30975
|
+
this.userFormModel.Sex = 1;
|
|
30976
|
+
this.userFormModel.Phone = "";
|
|
30977
|
+
this.userFormModel.CIdNo = "";
|
|
30978
|
+
this.userFormModel.UserIconToken = "";
|
|
30979
|
+
this.userFormModel.UserSignImgToken = "";
|
|
30980
|
+
this.userFormModel.Account = "";
|
|
30981
|
+
this.userFormModel.AccountType = 1;
|
|
30982
|
+
this.userFormModel.AccountStatus = 1;
|
|
30983
|
+
this.userFormModel.ErrorNum = 0;
|
|
30984
|
+
let currentDate = this.utilities.getCurrentDate();
|
|
30985
|
+
currentDate = this.utilities.dateHelper.format(this.utilities.dateHelper.add(this.utilities.stringHelper.toDate(currentDate), 1, "years"), "YYYY-MM-DD");
|
|
30986
|
+
this.userFormModel.ExpiredDate = currentDate;
|
|
30987
|
+
this.userFormModel.IsMutex = 0;
|
|
30988
|
+
this.userFormModel.PwdAuthentication = 0;
|
|
30989
|
+
this.userFormModel.LastUpdateUserId = user.Id;
|
|
30990
|
+
this.userFormModel.LastUpdateUserName = user.UserName;
|
|
30991
|
+
this.userFormModel.LastUpdateDate = this.utilities.getCurrentDate();
|
|
30992
|
+
this.editUserTitle.value = "新增 - 用户";
|
|
30993
|
+
this.showEditUser.value = true;
|
|
30994
|
+
}
|
|
30995
|
+
/**
|
|
30996
|
+
* 删除用户信息
|
|
30997
|
+
* @param data
|
|
30998
|
+
*/
|
|
30999
|
+
doDeleteUser(data) {
|
|
31000
|
+
this.modal.confirm({
|
|
31001
|
+
title: "提示",
|
|
31002
|
+
content: `确定要移除用户${data.UserName}吗?`,
|
|
31003
|
+
onOk: async () => {
|
|
31004
|
+
const apiResult = await this.userinforApi.deleteUser(data.UserId, data.InstitutionUserId);
|
|
31005
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
31006
|
+
if (result > 0) {
|
|
31007
|
+
this.message.success("删除成功");
|
|
31008
|
+
this.insTreeUserGrid.value.refreshData();
|
|
31009
|
+
} else {
|
|
31010
|
+
this.message.error("删除失败, 请稍后重试!");
|
|
31011
|
+
}
|
|
31012
|
+
}
|
|
31013
|
+
});
|
|
31014
|
+
}
|
|
31015
|
+
// 私有方法 | private 方法名() {}
|
|
31016
|
+
/**
|
|
31017
|
+
* 显示用户角色绑定
|
|
31018
|
+
* @param user
|
|
31019
|
+
*/
|
|
31020
|
+
doShowUserRole(user) {
|
|
31021
|
+
this.currentUser = user;
|
|
31022
|
+
this.showUserRole.value = true;
|
|
31023
|
+
nextTick(() => {
|
|
31024
|
+
this.loadUserRole();
|
|
31025
|
+
});
|
|
31026
|
+
}
|
|
31027
|
+
/**
|
|
31028
|
+
* 加载用户角色
|
|
31029
|
+
*/
|
|
31030
|
+
loadUserRole() {
|
|
31031
|
+
this.userRoleGrid.value.loadData(async (option) => {
|
|
31032
|
+
let apiResult = await this.userRoleApi.getEntities(QueryWrapper.create().eq("UserId", this.currentUser.Id).eq("PlatformId", this.selectedPlatform.Id));
|
|
31033
|
+
let userRoles = this.utilities.parseApiResult(apiResult);
|
|
31034
|
+
apiResult = await this.institutionPlatformApi.getEntityByFilter(QueryWrapper.create().eq("PlatformId", this.selectedPlatform.Id).eq("InstitutionId", this.selectedInsTree.InstitutionId));
|
|
31035
|
+
let institutionPlatform = this.utilities.parseApiResult(apiResult);
|
|
31036
|
+
if (this.utilities.isNull(institutionPlatform) || this.utilities.isNull(institutionPlatform.RoleIds)) {
|
|
31037
|
+
option.success([]);
|
|
31038
|
+
return;
|
|
31039
|
+
}
|
|
31040
|
+
apiResult = await this.roleApi.getEntities(QueryWrapper.create().in("Id", institutionPlatform.RoleIds.split(",")));
|
|
31041
|
+
let roles = this.utilities.parseApiResult(apiResult);
|
|
31042
|
+
for (const role of roles) {
|
|
31043
|
+
const isChk = this.utilities.isNull(userRoles) ? false : userRoles.findIndex((item) => item.RoleId == role.Id) >= 0;
|
|
31044
|
+
role.IsChk = isChk;
|
|
31045
|
+
}
|
|
31046
|
+
option.success(roles);
|
|
31047
|
+
});
|
|
31048
|
+
}
|
|
31049
|
+
// 私有方法 | private 方法名() {}
|
|
31050
|
+
/**
|
|
31051
|
+
* 显示导入用户
|
|
31052
|
+
*/
|
|
31053
|
+
doShowImportUser() {
|
|
31054
|
+
this.showImportUser.value = true;
|
|
31055
|
+
nextTick(() => {
|
|
31056
|
+
this.loadImportUserGrid({});
|
|
31057
|
+
});
|
|
31058
|
+
}
|
|
31059
|
+
/**
|
|
31060
|
+
* 加载能导入用户的数据
|
|
31061
|
+
*/
|
|
31062
|
+
loadImportUserGrid(search) {
|
|
31063
|
+
this.otherUserGrid.value.loadData(async (option) => {
|
|
31064
|
+
const apiResult = await this.userinforApi.getNotInInstitutionTreeUsers(
|
|
31065
|
+
this.selectedInsTree.InstitutionId,
|
|
31066
|
+
this.selectedInsTree.Id,
|
|
31067
|
+
this.utilities.getValueNotNull(search.UserName, ""),
|
|
31068
|
+
this.utilities.getValueNotNull(search.Account, ""),
|
|
31069
|
+
this.utilities.getValueNotNull(search.AccountStatus, 0)
|
|
31070
|
+
);
|
|
31071
|
+
const datas = this.utilities.parseApiResult(apiResult);
|
|
31072
|
+
option.success(datas);
|
|
31073
|
+
});
|
|
31074
|
+
}
|
|
31075
|
+
// 私有方法 | private 方法名() {}
|
|
31076
|
+
/**
|
|
31077
|
+
* 运维登录
|
|
31078
|
+
* @param row
|
|
31079
|
+
*/
|
|
31080
|
+
async devOpsLogin(row) {
|
|
31081
|
+
this.logining.value = true;
|
|
31082
|
+
const apiResult = await this.oauthApi.devOpsLogin(row.Id);
|
|
31083
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
31084
|
+
this.logining.value = false;
|
|
31085
|
+
if (!result.IsSuccess) {
|
|
31086
|
+
this.message.warning(result.Msg);
|
|
31087
|
+
return;
|
|
31088
|
+
}
|
|
31089
|
+
this.message.success("登录成功!");
|
|
31090
|
+
this.storageInfo.removeAll();
|
|
31091
|
+
this.loginRef.value.setLoginResult(result);
|
|
31092
|
+
}
|
|
31093
|
+
// 私有方法 | private 方法名() {}
|
|
31094
|
+
/**
|
|
31095
|
+
* 编辑用户签字
|
|
31096
|
+
*/
|
|
31097
|
+
async doShowEditUserSign(row) {
|
|
31098
|
+
this.showEditUserSign.value = true;
|
|
31099
|
+
const apiResult = await this.userSignApi.getEntityByFilter(QueryWrapper.create().eq("UserId", row.Id));
|
|
31100
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
31101
|
+
if (!this.utilities.isNull(result)) {
|
|
31102
|
+
this.userSignFormModel.Id = result.Id;
|
|
31103
|
+
this.userSignFormModel.UserId = result.UserId;
|
|
31104
|
+
this.userSignFormModel.CAUserInfoKey = result.CAUserInfoKey;
|
|
31105
|
+
this.userSignFormModel.CAUserSealKey = result.CAUserSealKey;
|
|
31106
|
+
this.userSignFormModel.CAUserYZKey = result.CAUserYZKey;
|
|
31107
|
+
this.userSignFormModel.CAUserSealImg = result.CAUserSealImg;
|
|
31108
|
+
this.userSignFormModel.CAUserYZImg = result.CAUserYZImg;
|
|
31109
|
+
} else {
|
|
31110
|
+
this.userSignFormModel.Id = 0;
|
|
31111
|
+
this.userSignFormModel.UserId = row.Id;
|
|
31112
|
+
this.userSignFormModel.CAUserInfoKey = "";
|
|
31113
|
+
this.userSignFormModel.CAUserSealKey = "";
|
|
31114
|
+
this.userSignFormModel.CAUserYZKey = "";
|
|
31115
|
+
this.userSignFormModel.CAUserSealImg = "";
|
|
31116
|
+
this.userSignFormModel.CAUserYZImg = "";
|
|
31117
|
+
}
|
|
31118
|
+
}
|
|
31119
|
+
//#endregion CA签字配置 END
|
|
31120
|
+
//#region 重置密码
|
|
31121
|
+
// 私有属性 | private
|
|
31122
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
31123
|
+
// 私有方法 | private 方法名() {}
|
|
31124
|
+
/**
|
|
31125
|
+
* 重置密码
|
|
31126
|
+
* @param userId
|
|
31127
|
+
*/
|
|
31128
|
+
doResetUserPwd(userId) {
|
|
31129
|
+
this.modal.confirm({
|
|
31130
|
+
title: "提示",
|
|
31131
|
+
content: "确定要重置为初始密码吗?",
|
|
31132
|
+
onOk: async () => {
|
|
31133
|
+
const apiResult = await this.userinforApi.resetUserPwd(userId);
|
|
31134
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
31135
|
+
if (result > 0) {
|
|
31136
|
+
this.message.success("重置成功");
|
|
31137
|
+
} else {
|
|
31138
|
+
this.message.error("操作失败,请稍后重试");
|
|
31139
|
+
}
|
|
31140
|
+
}
|
|
31141
|
+
});
|
|
31142
|
+
}
|
|
31143
|
+
// 响应式方法 | xxx = () => {}
|
|
31144
|
+
//#endregion 重置密码 END
|
|
31145
|
+
};
|
|
31146
|
+
const Userinfor_vue_vue_type_style_index_0_scoped_3969fae6_lang = "";
|
|
31147
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-3969fae6"), n = n(), popScopeId(), n);
|
|
31148
|
+
const _hoisted_1$b = { class: "instree-search" };
|
|
31149
|
+
const _hoisted_2$5 = { class: "instree-list" };
|
|
31150
|
+
const _hoisted_3$5 = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
31151
|
+
const _hoisted_4$5 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
|
|
31152
|
+
/* @__PURE__ */ createElementVNode("div", { style: { "padding-bottom": "8px" } }, "用户账号:手机号必填。在新设备登录时,需进行短信验证。"),
|
|
31153
|
+
/* @__PURE__ */ createElementVNode("div", null, "内部账号:手机号可不填。")
|
|
31154
|
+
], -1));
|
|
31155
|
+
const _hoisted_5$4 = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
31156
|
+
const _hoisted_6$4 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选绑定用户角色!", -1));
|
|
31157
|
+
const _hoisted_7$3 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
31158
|
+
const _hoisted_8$3 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选需要引入的用户!", -1));
|
|
31159
|
+
const _hoisted_9$2 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
31160
|
+
const _hoisted_10$2 = { style: { "display": "none" } };
|
|
31161
|
+
const _hoisted_11$2 = { style: { "height": "400px", "overflow-y": "auto" } };
|
|
31162
|
+
const _hoisted_12$1 = ["src"];
|
|
31163
|
+
const _hoisted_13$1 = ["src"];
|
|
31164
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31165
|
+
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
31166
|
+
const _component_Tree = resolveComponent("Tree");
|
|
31167
|
+
const _component_Spin = resolveComponent("Spin");
|
|
31168
|
+
const _component_Button = resolveComponent("Button");
|
|
31169
|
+
const _component_Space = resolveComponent("Space");
|
|
31170
|
+
const _component_NvBox = resolveComponent("NvBox");
|
|
31171
|
+
const _component_NvGrid = resolveComponent("NvGrid");
|
|
31172
|
+
const _component_NvComForm = resolveComponent("NvComForm");
|
|
31173
|
+
const _component_Form = resolveComponent("Form");
|
|
31174
|
+
const _component_Modal = resolveComponent("Modal");
|
|
31175
|
+
const _component_LoginLog = resolveComponent("LoginLog");
|
|
31176
|
+
const _component_BaseLogin = resolveComponent("BaseLogin");
|
|
31177
|
+
const _component_FormItem = resolveComponent("FormItem");
|
|
31178
|
+
const _component_NvPage = resolveComponent("NvPage");
|
|
31179
|
+
return openBlock(), createBlock(_component_NvPage, {
|
|
31180
|
+
gutter: 8,
|
|
31181
|
+
class: "userinfor"
|
|
31182
|
+
}, {
|
|
31183
|
+
default: withCtx(() => [
|
|
31184
|
+
createVNode(_component_NvBox, {
|
|
31185
|
+
width: "300px",
|
|
31186
|
+
title: "组织机构树",
|
|
31187
|
+
showArrow: true,
|
|
31188
|
+
onChange: _ctx.doChangeUserBoxWidth
|
|
31189
|
+
}, {
|
|
31190
|
+
footer: withCtx(() => [
|
|
31191
|
+
createVNode(_component_Space, null, {
|
|
31192
|
+
default: withCtx(() => [
|
|
31193
|
+
createVNode(_component_Button, {
|
|
31194
|
+
type: "text",
|
|
31195
|
+
onClick: _ctx.doRefreshInsTree
|
|
31196
|
+
}, {
|
|
31197
|
+
default: withCtx(() => [
|
|
31198
|
+
createTextVNode("刷新")
|
|
31199
|
+
]),
|
|
31200
|
+
_: 1
|
|
31201
|
+
}, 8, ["onClick"])
|
|
31202
|
+
]),
|
|
31203
|
+
_: 1
|
|
31204
|
+
})
|
|
31205
|
+
]),
|
|
31206
|
+
default: withCtx(() => [
|
|
31207
|
+
createElementVNode("div", _hoisted_1$b, [
|
|
31208
|
+
createVNode(_component_SelectPlatform, {
|
|
31209
|
+
onSelect: _ctx.doChangePlatform,
|
|
31210
|
+
width: "100%",
|
|
31211
|
+
showLabel: false
|
|
31212
|
+
}, null, 8, ["onSelect"])
|
|
31213
|
+
]),
|
|
31214
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
31215
|
+
createVNode(_component_Tree, {
|
|
31216
|
+
data: _ctx.institutionTree,
|
|
31217
|
+
render: _ctx.renderInsTreeContent,
|
|
31218
|
+
class: "tree-render",
|
|
31219
|
+
onOnSelectChange: _ctx.doChangeInsTree
|
|
31220
|
+
}, null, 8, ["data", "render", "onOnSelectChange"]),
|
|
31221
|
+
withDirectives(createVNode(_component_Spin, { fix: "" }, {
|
|
31222
|
+
default: withCtx(() => [
|
|
31223
|
+
createTextVNode("数据加载中")
|
|
31224
|
+
]),
|
|
31225
|
+
_: 1
|
|
31226
|
+
}, 512), [
|
|
31227
|
+
[vShow, _ctx.loadingInstitutionTree]
|
|
31228
|
+
])
|
|
31229
|
+
])
|
|
31230
|
+
]),
|
|
31231
|
+
_: 1
|
|
31232
|
+
}, 8, ["onChange"]),
|
|
31233
|
+
createVNode(_component_NvBox, {
|
|
31234
|
+
width: _ctx.userBoxWidth,
|
|
31235
|
+
title: "用户列表"
|
|
31236
|
+
}, {
|
|
31237
|
+
default: withCtx(() => [
|
|
31238
|
+
createVNode(_component_NvGrid, {
|
|
31239
|
+
ref: "insTreeUserGrid",
|
|
31240
|
+
option: _ctx.insTreeUserGridOption
|
|
31241
|
+
}, null, 8, ["option"])
|
|
31242
|
+
]),
|
|
31243
|
+
_: 1
|
|
31244
|
+
}, 8, ["width"]),
|
|
31245
|
+
createVNode(_component_Modal, {
|
|
31246
|
+
modelValue: _ctx.showEditUser,
|
|
31247
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.showEditUser = $event),
|
|
31248
|
+
draggable: "",
|
|
31249
|
+
mask: true,
|
|
31250
|
+
"mask-closable": false,
|
|
31251
|
+
width: 850,
|
|
31252
|
+
title: _ctx.editUserTitle,
|
|
31253
|
+
styles: { top: "3%" }
|
|
31254
|
+
}, {
|
|
31255
|
+
footer: withCtx(() => [
|
|
31256
|
+
createVNode(_component_Button, {
|
|
31257
|
+
type: "text",
|
|
31258
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.showEditUser = false)
|
|
31259
|
+
}, {
|
|
31260
|
+
default: withCtx(() => [
|
|
31261
|
+
createTextVNode("关闭")
|
|
31262
|
+
]),
|
|
31263
|
+
_: 1
|
|
31264
|
+
}),
|
|
31265
|
+
createVNode(_component_Button, {
|
|
31266
|
+
type: "primary",
|
|
31267
|
+
loading: _ctx.saveingUser,
|
|
31268
|
+
onClick: _ctx.doSaveUser
|
|
31269
|
+
}, {
|
|
31270
|
+
default: withCtx(() => [
|
|
31271
|
+
createTextVNode("保存")
|
|
31272
|
+
]),
|
|
31273
|
+
_: 1
|
|
31274
|
+
}, 8, ["loading", "onClick"])
|
|
31275
|
+
]),
|
|
31276
|
+
default: withCtx(() => [
|
|
31277
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
31278
|
+
createVNode(_component_Form, {
|
|
31279
|
+
ref: "userForm",
|
|
31280
|
+
model: _ctx.userFormModel,
|
|
31281
|
+
"label-width": 120,
|
|
31282
|
+
rules: _ctx.userFormRule
|
|
31283
|
+
}, {
|
|
31284
|
+
default: withCtx(() => [
|
|
31285
|
+
createVNode(_component_NvComForm, {
|
|
31286
|
+
ref: "userComForm",
|
|
31287
|
+
formModel: _ctx.userFormModel,
|
|
31288
|
+
formItems: _ctx.userFormItems
|
|
31289
|
+
}, null, 8, ["formModel", "formItems"])
|
|
31290
|
+
]),
|
|
31291
|
+
_: 1
|
|
31292
|
+
}, 8, ["model", "rules"]),
|
|
31293
|
+
_hoisted_4$5
|
|
31294
|
+
])
|
|
31295
|
+
]),
|
|
31296
|
+
_: 1
|
|
31297
|
+
}, 8, ["modelValue", "title"]),
|
|
31298
|
+
createVNode(_component_Modal, {
|
|
31299
|
+
modelValue: _ctx.showUserRole,
|
|
31300
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.showUserRole = $event),
|
|
31301
|
+
draggable: "",
|
|
31302
|
+
mask: true,
|
|
31303
|
+
"mask-closable": false,
|
|
31304
|
+
width: 850,
|
|
31305
|
+
title: "定岗",
|
|
31306
|
+
styles: { top: "3%" }
|
|
31307
|
+
}, {
|
|
31308
|
+
footer: withCtx(() => [
|
|
31309
|
+
createVNode(_component_Button, {
|
|
31310
|
+
type: "text",
|
|
31311
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.showUserRole = false)
|
|
31312
|
+
}, {
|
|
31313
|
+
default: withCtx(() => [
|
|
31314
|
+
createTextVNode("关闭")
|
|
31315
|
+
]),
|
|
31316
|
+
_: 1
|
|
31317
|
+
}),
|
|
31318
|
+
createVNode(_component_Button, {
|
|
31319
|
+
type: "primary",
|
|
31320
|
+
loading: _ctx.saveingUserRole,
|
|
31321
|
+
onClick: _ctx.doSaveUserRole
|
|
31322
|
+
}, {
|
|
31323
|
+
default: withCtx(() => [
|
|
31324
|
+
createTextVNode("保存")
|
|
31325
|
+
]),
|
|
31326
|
+
_: 1
|
|
31327
|
+
}, 8, ["loading", "onClick"])
|
|
31328
|
+
]),
|
|
31329
|
+
default: withCtx(() => [
|
|
31330
|
+
createElementVNode("div", _hoisted_5$4, [
|
|
31331
|
+
createVNode(_component_NvGrid, {
|
|
31332
|
+
ref: "userRoleGrid",
|
|
31333
|
+
option: _ctx.userRoleGridOption
|
|
31334
|
+
}, {
|
|
31335
|
+
default: withCtx(() => [
|
|
31336
|
+
_hoisted_6$4
|
|
31337
|
+
]),
|
|
31338
|
+
_: 1
|
|
31339
|
+
}, 8, ["option"])
|
|
31340
|
+
])
|
|
31341
|
+
]),
|
|
31342
|
+
_: 1
|
|
31343
|
+
}, 8, ["modelValue"]),
|
|
31344
|
+
createVNode(_component_Modal, {
|
|
31345
|
+
modelValue: _ctx.showImportUser,
|
|
31346
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.showImportUser = $event),
|
|
31347
|
+
draggable: "",
|
|
31348
|
+
mask: true,
|
|
31349
|
+
"mask-closable": false,
|
|
31350
|
+
width: 800,
|
|
31351
|
+
title: "引入用户",
|
|
31352
|
+
styles: { top: "3%" }
|
|
31353
|
+
}, {
|
|
31354
|
+
footer: withCtx(() => [
|
|
31355
|
+
createVNode(_component_Button, {
|
|
31356
|
+
type: "text",
|
|
31357
|
+
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.showImportUser = false)
|
|
31358
|
+
}, {
|
|
31359
|
+
default: withCtx(() => [
|
|
31360
|
+
createTextVNode("关闭")
|
|
31361
|
+
]),
|
|
31362
|
+
_: 1
|
|
31363
|
+
}),
|
|
31364
|
+
createVNode(_component_Button, {
|
|
31365
|
+
type: "primary",
|
|
31366
|
+
loading: _ctx.saveingImportUser,
|
|
31367
|
+
onClick: _ctx.doImportUser
|
|
31368
|
+
}, {
|
|
31369
|
+
default: withCtx(() => [
|
|
31370
|
+
createTextVNode("引入")
|
|
31371
|
+
]),
|
|
31372
|
+
_: 1
|
|
31373
|
+
}, 8, ["loading", "onClick"])
|
|
31374
|
+
]),
|
|
31375
|
+
default: withCtx(() => [
|
|
31376
|
+
createElementVNode("div", _hoisted_7$3, [
|
|
31377
|
+
createVNode(_component_NvGrid, {
|
|
31378
|
+
ref: "otherUserGrid",
|
|
31379
|
+
option: _ctx.otherUserGridOption
|
|
31380
|
+
}, {
|
|
31381
|
+
default: withCtx(() => [
|
|
31382
|
+
_hoisted_8$3
|
|
31383
|
+
]),
|
|
31384
|
+
_: 1
|
|
31385
|
+
}, 8, ["option"])
|
|
31386
|
+
])
|
|
31387
|
+
]),
|
|
31388
|
+
_: 1
|
|
31389
|
+
}, 8, ["modelValue"]),
|
|
31390
|
+
createVNode(_component_Modal, {
|
|
31391
|
+
modelValue: _ctx.showLoginLog,
|
|
31392
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.showLoginLog = $event),
|
|
31393
|
+
draggable: "",
|
|
31394
|
+
mask: true,
|
|
31395
|
+
"mask-closable": false,
|
|
31396
|
+
width: 800,
|
|
31397
|
+
title: "登录日志",
|
|
31398
|
+
styles: { top: "3%" }
|
|
31399
|
+
}, {
|
|
31400
|
+
footer: withCtx(() => [
|
|
31401
|
+
createVNode(_component_Button, {
|
|
31402
|
+
type: "text",
|
|
31403
|
+
onClick: _cache[6] || (_cache[6] = ($event) => _ctx.showLoginLog = false)
|
|
31404
|
+
}, {
|
|
31405
|
+
default: withCtx(() => [
|
|
31406
|
+
createTextVNode("关闭")
|
|
31407
|
+
]),
|
|
31408
|
+
_: 1
|
|
31409
|
+
})
|
|
31410
|
+
]),
|
|
31411
|
+
default: withCtx(() => [
|
|
31412
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
31413
|
+
createVNode(_component_LoginLog, { ref: "loginLogRef" }, null, 512)
|
|
31414
|
+
])
|
|
31415
|
+
]),
|
|
31416
|
+
_: 1
|
|
31417
|
+
}, 8, ["modelValue"]),
|
|
31418
|
+
createVNode(_component_Spin, {
|
|
31419
|
+
size: "large",
|
|
31420
|
+
fix: "",
|
|
31421
|
+
show: _ctx.logining
|
|
31422
|
+
}, null, 8, ["show"]),
|
|
31423
|
+
createElementVNode("div", _hoisted_10$2, [
|
|
31424
|
+
createVNode(_component_BaseLogin, {
|
|
31425
|
+
ref: "loginRef",
|
|
31426
|
+
autoLogin: false
|
|
31427
|
+
}, null, 512)
|
|
31428
|
+
]),
|
|
31429
|
+
createVNode(_component_Modal, {
|
|
31430
|
+
modelValue: _ctx.showEditUserSign,
|
|
31431
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => _ctx.showEditUserSign = $event),
|
|
31432
|
+
draggable: "",
|
|
31433
|
+
mask: true,
|
|
31434
|
+
"mask-closable": false,
|
|
31435
|
+
width: 440,
|
|
31436
|
+
title: "编辑签字信息",
|
|
31437
|
+
styles: { top: "3%" }
|
|
31438
|
+
}, {
|
|
31439
|
+
footer: withCtx(() => [
|
|
31440
|
+
createVNode(_component_Button, {
|
|
31441
|
+
type: "text",
|
|
31442
|
+
onClick: _cache[8] || (_cache[8] = ($event) => _ctx.showEditUserSign = false)
|
|
31443
|
+
}, {
|
|
31444
|
+
default: withCtx(() => [
|
|
31445
|
+
createTextVNode("关闭")
|
|
31446
|
+
]),
|
|
31447
|
+
_: 1
|
|
31448
|
+
}),
|
|
31449
|
+
createVNode(_component_Button, {
|
|
31450
|
+
type: "primary",
|
|
31451
|
+
loading: _ctx.saveingUserSign,
|
|
31452
|
+
onClick: _ctx.doSaveUserSign
|
|
31453
|
+
}, {
|
|
31454
|
+
default: withCtx(() => [
|
|
31455
|
+
createTextVNode("保存")
|
|
31456
|
+
]),
|
|
31457
|
+
_: 1
|
|
31458
|
+
}, 8, ["loading", "onClick"])
|
|
31459
|
+
]),
|
|
31460
|
+
default: withCtx(() => [
|
|
31461
|
+
createElementVNode("div", _hoisted_11$2, [
|
|
31462
|
+
createVNode(_component_Form, {
|
|
31463
|
+
ref: "userSignForm",
|
|
31464
|
+
model: _ctx.userSignFormModel,
|
|
31465
|
+
"label-width": 85
|
|
31466
|
+
}, {
|
|
31467
|
+
default: withCtx(() => [
|
|
31468
|
+
createVNode(_component_NvComForm, {
|
|
31469
|
+
ref: "userSignComForm",
|
|
31470
|
+
formModel: _ctx.userSignFormModel,
|
|
31471
|
+
formItems: _ctx.userSignFormItems
|
|
31472
|
+
}, null, 8, ["formModel", "formItems"]),
|
|
31473
|
+
createVNode(_component_FormItem, { label: "印章图片" }, {
|
|
31474
|
+
default: withCtx(() => [
|
|
31475
|
+
_ctx.userSignFormModel.CAUserSealImg != "" ? (openBlock(), createElementBlock("img", {
|
|
31476
|
+
key: 0,
|
|
31477
|
+
src: _ctx.userSignFormModel.CAUserSealImg,
|
|
31478
|
+
alt: "",
|
|
31479
|
+
style: { "width": "120px", "height": "35px" }
|
|
31480
|
+
}, null, 8, _hoisted_12$1)) : createCommentVNode("", true),
|
|
31481
|
+
createVNode(_component_Button, {
|
|
31482
|
+
type: "primary",
|
|
31483
|
+
style: { "float": "right" },
|
|
31484
|
+
onClick: _ctx.doLoadUserSealImg
|
|
31485
|
+
}, {
|
|
31486
|
+
default: withCtx(() => [
|
|
31487
|
+
createTextVNode("加载")
|
|
31488
|
+
]),
|
|
31489
|
+
_: 1
|
|
31490
|
+
}, 8, ["onClick"])
|
|
31491
|
+
]),
|
|
31492
|
+
_: 1
|
|
31493
|
+
}),
|
|
31494
|
+
createVNode(_component_FormItem, { label: "圆章图片" }, {
|
|
31495
|
+
default: withCtx(() => [
|
|
31496
|
+
_ctx.userSignFormModel.CAUserYZImg != "" ? (openBlock(), createElementBlock("img", {
|
|
31497
|
+
key: 0,
|
|
31498
|
+
src: _ctx.userSignFormModel.CAUserYZImg,
|
|
31499
|
+
alt: "",
|
|
31500
|
+
style: { "width": "120px", "height": "120px", "margin-left": "16px" }
|
|
31501
|
+
}, null, 8, _hoisted_13$1)) : createCommentVNode("", true),
|
|
31502
|
+
createVNode(_component_Button, {
|
|
31503
|
+
type: "primary",
|
|
31504
|
+
style: { "float": "right" },
|
|
31505
|
+
onClick: _ctx.doLoadUserYZImg
|
|
31506
|
+
}, {
|
|
31507
|
+
default: withCtx(() => [
|
|
31508
|
+
createTextVNode("加载")
|
|
31509
|
+
]),
|
|
31510
|
+
_: 1
|
|
31511
|
+
}, 8, ["onClick"])
|
|
31512
|
+
]),
|
|
31513
|
+
_: 1
|
|
31514
|
+
})
|
|
31515
|
+
]),
|
|
31516
|
+
_: 1
|
|
31517
|
+
}, 8, ["model"])
|
|
31518
|
+
])
|
|
31519
|
+
]),
|
|
31520
|
+
_: 1
|
|
31521
|
+
}, 8, ["modelValue"])
|
|
31522
|
+
]),
|
|
31523
|
+
_: 1
|
|
31524
|
+
});
|
|
31525
|
+
}
|
|
31526
|
+
const Userinfor = /* @__PURE__ */ _export_sfc$2(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-3969fae6"]]);
|
|
31527
|
+
const propDefine$a = {
|
|
31528
|
+
linkParam: {
|
|
31529
|
+
// 带入的参数
|
|
31530
|
+
type: String,
|
|
31531
|
+
default: ""
|
|
31532
|
+
},
|
|
31533
|
+
operates: {
|
|
31534
|
+
// 按钮权限码
|
|
31535
|
+
type: String,
|
|
31536
|
+
default: "-"
|
|
31537
|
+
}
|
|
31538
|
+
};
|
|
31539
|
+
const _sfc_main$a = defineComponent({
|
|
31540
|
+
name: "Enterprise",
|
|
31541
|
+
components: { SelectPlatform },
|
|
31542
|
+
emits: [""],
|
|
31543
|
+
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
31544
|
+
props: propDefine$a,
|
|
31545
|
+
setup(props, ctx) {
|
|
31546
|
+
return new EnterpriseInstance$1(props, ctx);
|
|
31547
|
+
}
|
|
31548
|
+
});
|
|
31549
|
+
let EnterpriseInstance$1 = class EnterpriseInstance extends BaseInstance {
|
|
31550
|
+
constructor(props, ctx) {
|
|
31551
|
+
super();
|
|
31552
|
+
__publicField(this, "props");
|
|
31553
|
+
__publicField(this, "ctx");
|
|
31554
|
+
// API实例化
|
|
31555
|
+
__publicField(this, "platformApi", new PlatformApi());
|
|
31556
|
+
__publicField(this, "enterpriseApi", new EnterpriseApi());
|
|
31557
|
+
__publicField(this, "provinceApi", new ProvinceApi());
|
|
31558
|
+
__publicField(this, "cityApi", new CityApi());
|
|
31559
|
+
__publicField(this, "areaApi", new AreaApi());
|
|
31560
|
+
// 全局属性
|
|
31561
|
+
__publicField(this, "selectedPlatform");
|
|
31562
|
+
//#region 业务逻辑 省市区
|
|
31563
|
+
// 私有属性 | private
|
|
31564
|
+
__publicField(this, "provinces", []);
|
|
31565
|
+
__publicField(this, "cities", []);
|
|
31566
|
+
__publicField(this, "areas", []);
|
|
31567
|
+
// 响应属性 | ref、reactive、computed
|
|
31568
|
+
__publicField(this, "refSelectPlatform", ref());
|
|
31569
|
+
//#endregion 业务逻辑 省市区 END
|
|
31570
|
+
//#region 业务逻辑 - 企业列表
|
|
31571
|
+
// 响应属性 | ref、reactive、computed
|
|
31572
|
+
__publicField(this, "onlyView", ref(false));
|
|
31573
|
+
__publicField(this, "enterpriseGrid", ref());
|
|
31574
|
+
__publicField(this, "enterpriseGridOption", reactive({
|
|
31575
|
+
api: this.enterpriseApi,
|
|
31576
|
+
setting: {
|
|
31577
|
+
searchConfig: {
|
|
31578
|
+
btnSpan: 8,
|
|
31579
|
+
labelWidth: 120,
|
|
31580
|
+
defaultShowSearch: false
|
|
31581
|
+
},
|
|
31582
|
+
toolbarConfig: {
|
|
31583
|
+
isButtonGroup: false
|
|
31584
|
+
},
|
|
31585
|
+
rowConfig: {
|
|
31586
|
+
isHover: true
|
|
31587
|
+
},
|
|
31588
|
+
isPagination: true,
|
|
31589
|
+
pageSize: 10
|
|
31590
|
+
},
|
|
31591
|
+
searchOptions: [
|
|
31592
|
+
{
|
|
31593
|
+
field: "EnterpriseName",
|
|
31594
|
+
title: "企业名称",
|
|
31595
|
+
type: "Input",
|
|
31596
|
+
span: 6
|
|
31597
|
+
}
|
|
31598
|
+
],
|
|
31599
|
+
toolbars: [
|
|
31600
|
+
{
|
|
31601
|
+
name: "add",
|
|
31602
|
+
onclick: () => {
|
|
31603
|
+
this.doAddEnterprise();
|
|
31604
|
+
}
|
|
31605
|
+
}
|
|
31606
|
+
],
|
|
31607
|
+
rightToolbars: [
|
|
31608
|
+
{
|
|
31609
|
+
name: "refresh"
|
|
31610
|
+
}
|
|
31611
|
+
],
|
|
31612
|
+
columns: [
|
|
31613
|
+
{
|
|
31614
|
+
colType: "seq"
|
|
31615
|
+
},
|
|
31616
|
+
{ colType: "ro", field: "Id", title: "ID", width: 70, align: "center" },
|
|
31617
|
+
{ colType: "ed", field: "EnterpriseName", title: "企业名称", minWidth: 300 },
|
|
31618
|
+
{ colType: "ed", field: "EnterpriseCode", title: "企业代码", align: "center", minWidth: 160 },
|
|
31619
|
+
{
|
|
31620
|
+
colType: "ro",
|
|
31621
|
+
field: "Province",
|
|
31622
|
+
title: "省 市 区",
|
|
31623
|
+
align: "center",
|
|
31624
|
+
width: 220,
|
|
31625
|
+
format: (h2, params) => {
|
|
31626
|
+
const row = params.row;
|
|
31627
|
+
let result = [];
|
|
31628
|
+
let provinceResult = this.provinces.filter((item) => item.ProvinceCode == row.Province);
|
|
31629
|
+
let cityResult = this.cities.filter((item) => item.CityCode == row.City);
|
|
31630
|
+
let areaResult = this.areas.filter((item) => item.AreaCode == row.Area);
|
|
31631
|
+
if (provinceResult.length > 0) {
|
|
31632
|
+
result.push(provinceResult[0].ProvinceName);
|
|
31633
|
+
}
|
|
31634
|
+
if (cityResult.length > 0) {
|
|
31635
|
+
result.push(cityResult[0].CityName);
|
|
31636
|
+
}
|
|
31637
|
+
if (areaResult.length > 0) {
|
|
31638
|
+
result.push(areaResult[0].AreaName);
|
|
31639
|
+
}
|
|
31640
|
+
return h2("span", result.join("-"));
|
|
31641
|
+
}
|
|
31642
|
+
},
|
|
31643
|
+
{ colType: "ro", field: "Contact", title: "联系人", align: "center", width: 120 },
|
|
31644
|
+
{ colType: "ro", field: "TelPhone", title: "联系电话", align: "center", width: 140 },
|
|
31645
|
+
// { colType: 'ro', field: 'LegalPerson', title: '企业法人', align: 'center', width: 120 },
|
|
31646
|
+
// { colType: 'ro', field: 'RegisteredCapital', title: '注册资金', align: 'center', width: 120 },
|
|
31647
|
+
// { colType: 'ro', field: 'Address', title: '地址', align: 'center', width: 320 },
|
|
31648
|
+
{ colType: "ro", field: "LastUpdateUserName", title: "最后修改人", align: "center", width: 140 },
|
|
31649
|
+
{ colType: "ro", field: "LastUpdateTime", title: "最后修改时间", align: "center", width: 160 },
|
|
31650
|
+
{
|
|
31651
|
+
title: "操作",
|
|
31652
|
+
width: 180,
|
|
31653
|
+
rowButtons: [
|
|
31654
|
+
{
|
|
31655
|
+
name: "view",
|
|
31656
|
+
text: "预览",
|
|
31657
|
+
onclick: (row, btn) => {
|
|
31658
|
+
this.doViewEnterprise(row);
|
|
31659
|
+
}
|
|
31660
|
+
},
|
|
31661
|
+
{
|
|
31662
|
+
name: "edit",
|
|
31663
|
+
text: "编辑",
|
|
31664
|
+
onclick: (row, btn) => {
|
|
31665
|
+
this.doEditEnterprise(row);
|
|
31666
|
+
}
|
|
31667
|
+
},
|
|
31668
|
+
{
|
|
31669
|
+
name: "delete",
|
|
31670
|
+
text: "删除"
|
|
31671
|
+
}
|
|
31672
|
+
]
|
|
31673
|
+
}
|
|
31674
|
+
],
|
|
31675
|
+
event: {
|
|
31676
|
+
event_search: (data) => {
|
|
31677
|
+
this.enterpriseGrid.value.setPageIndex(1);
|
|
31678
|
+
this.loadEnterpriseGridData(data);
|
|
31679
|
+
}
|
|
31680
|
+
}
|
|
31681
|
+
}));
|
|
31682
|
+
// 响应式方法 | xxx = () => {}
|
|
31683
|
+
/**
|
|
31684
|
+
* 系统平台改变
|
|
31685
|
+
* @param data
|
|
31686
|
+
*/
|
|
31687
|
+
__publicField(this, "doPlatformChange", (data) => {
|
|
31688
|
+
this.selectedPlatform = data;
|
|
31689
|
+
this.loadEnterpriseGridData({});
|
|
31690
|
+
});
|
|
31691
|
+
//#endregion 业务逻辑 - 企业列表 END
|
|
31692
|
+
//#region 业务逻辑 - 编辑企业信息
|
|
31693
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
31694
|
+
__publicField(this, "saveingEnterprise", ref(false));
|
|
31695
|
+
__publicField(this, "showEditEnterprise", ref(false));
|
|
31696
|
+
__publicField(this, "editEnterpriseTitle", ref("新增 - 企业"));
|
|
31697
|
+
__publicField(this, "enterpriseFormModel", reactive({
|
|
31698
|
+
Id: 0,
|
|
31699
|
+
PlatformId: 0,
|
|
31700
|
+
EnterpriseName: "",
|
|
31701
|
+
EnterpriseCode: "",
|
|
31702
|
+
LegalPerson: "",
|
|
31703
|
+
RegisteredCapital: 0,
|
|
31704
|
+
Province: "",
|
|
31705
|
+
City: "",
|
|
30154
31706
|
Area: "",
|
|
30155
31707
|
Address: "",
|
|
30156
31708
|
Contact: "",
|
|
@@ -34967,10 +36519,10 @@ const _sfc_main$3 = defineComponent({
|
|
|
34967
36519
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
34968
36520
|
props: propDefine$3,
|
|
34969
36521
|
setup(props, ctx) {
|
|
34970
|
-
return new
|
|
36522
|
+
return new LoginLogInstance2(props, ctx);
|
|
34971
36523
|
}
|
|
34972
36524
|
});
|
|
34973
|
-
class
|
|
36525
|
+
class LoginLogInstance2 extends BaseInstance {
|
|
34974
36526
|
// 全局属性
|
|
34975
36527
|
constructor(props, ctx) {
|
|
34976
36528
|
super();
|
|
@@ -35100,10 +36652,10 @@ const _sfc_main$2 = defineComponent({
|
|
|
35100
36652
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
35101
36653
|
props: propDefine$2,
|
|
35102
36654
|
setup(props, ctx) {
|
|
35103
|
-
return new
|
|
36655
|
+
return new UserinforInstance2(props, ctx);
|
|
35104
36656
|
}
|
|
35105
36657
|
});
|
|
35106
|
-
class
|
|
36658
|
+
class UserinforInstance2 extends BaseInstance {
|
|
35107
36659
|
constructor(props, ctx) {
|
|
35108
36660
|
super();
|
|
35109
36661
|
__publicField(this, "props");
|
|
@@ -35556,7 +37108,6 @@ class UserinforInstance extends BaseInstance {
|
|
|
35556
37108
|
UserId: result,
|
|
35557
37109
|
InsTreeId: this.selectedInsTree.Id
|
|
35558
37110
|
});
|
|
35559
|
-
debugger;
|
|
35560
37111
|
await this.userinforApi.initialUserPwd(result, this.selectedPlatform.Id);
|
|
35561
37112
|
}
|
|
35562
37113
|
this.saveingUser.value = false;
|
|
@@ -39198,7 +40749,7 @@ const index = [
|
|
|
39198
40749
|
{
|
|
39199
40750
|
// 用户管理
|
|
39200
40751
|
path: "/permission-service/institution/userinfor",
|
|
39201
|
-
component:
|
|
40752
|
+
component: Userinfor
|
|
39202
40753
|
},
|
|
39203
40754
|
{
|
|
39204
40755
|
// 企业管理
|