@newview/permission-service 1.2.8 → 1.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -5
- package/dist/permission-service.js +2474 -693
- package/dist/permission-service.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { BaseInstance } from "@newview/base-vue";
|
|
8
|
-
import { defineComponent, ref, reactive, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, createElementBlock, renderSlot, normalizeClass, withDirectives, vShow, toDisplayString,
|
|
8
|
+
import { defineComponent, ref, reactive, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, watch, createElementBlock, renderSlot, normalizeClass, withDirectives, vShow, toDisplayString, Fragment, renderList, pushScopeId, popScopeId, nextTick, onUnmounted, createCommentVNode, createSlots, withModifiers, onBeforeUnmount, h, watchEffect, normalizeStyle } from "vue";
|
|
9
9
|
import { BaseApi, Methods, QueryWrapper, BaseOldApi, storageInfo } from "@newview/infrastructure";
|
|
10
10
|
import { utilities } from "@newview/tools";
|
|
11
11
|
import { Icon, Tag, Checkbox, Divider, CheckboxGroup, Space } from "view-ui-plus";
|
|
@@ -31,6 +31,20 @@ class InstitutioninforApi extends PermissionBaseApi {
|
|
|
31
31
|
getInstitutioninfors(platformId, institutionCode, institutionName, institutionAbbreviation) {
|
|
32
32
|
return this.send({ platformId, institutionCode, institutionName, institutionAbbreviation }, "getInstitutioninfors", Methods.GET);
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* 获取机构信息
|
|
36
|
+
* @param platformId 平台Id
|
|
37
|
+
* @param selectType 筛选类别 1:全部机构;2:当前机构;3:当前及以下机构;4:机构类别查询
|
|
38
|
+
* @param selectValue 要获取的机构Id 或 要筛选的机构类型(根据selectType决定)
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
41
|
+
GetInstitutioninforTree(platformId, selectType, selectValue) {
|
|
42
|
+
return this.send({
|
|
43
|
+
platformId,
|
|
44
|
+
selectType,
|
|
45
|
+
selectValue
|
|
46
|
+
}, "GetInstitutioninforTree", this.Methods.GET);
|
|
47
|
+
}
|
|
34
48
|
}
|
|
35
49
|
class InstitutionPlatformApi extends PermissionBaseApi {
|
|
36
50
|
get ControllerName() {
|
|
@@ -302,6 +316,15 @@ class UserinforApi extends PermissionBaseApi {
|
|
|
302
316
|
updateUserPwd(userId, newPwd) {
|
|
303
317
|
return this.send({ UserId: userId, Pwd: newPwd }, "updateUserPwd", Methods.POST);
|
|
304
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* 获取角色及用户信息
|
|
321
|
+
* @param platformId 平台Id
|
|
322
|
+
* @param insTreeIds 机构树Id集合
|
|
323
|
+
* @returns
|
|
324
|
+
*/
|
|
325
|
+
getRoleUsersForInstitution(platformId, insTreeIds) {
|
|
326
|
+
return this.send({ platformId, insTreeIds }, "getRoleUsersForInstitution", Methods.GET);
|
|
327
|
+
}
|
|
305
328
|
}
|
|
306
329
|
class UserRoleApi extends PermissionBaseApi {
|
|
307
330
|
get ControllerName() {
|
|
@@ -391,7 +414,7 @@ class UserSignApi extends PermissionBaseApi {
|
|
|
391
414
|
return "UserSign";
|
|
392
415
|
}
|
|
393
416
|
}
|
|
394
|
-
const propDefine$
|
|
417
|
+
const propDefine$m = {
|
|
395
418
|
linkParam: {
|
|
396
419
|
// 带入的参数
|
|
397
420
|
type: String,
|
|
@@ -403,12 +426,12 @@ const propDefine$s = {
|
|
|
403
426
|
default: "-"
|
|
404
427
|
}
|
|
405
428
|
};
|
|
406
|
-
const _sfc_main$
|
|
429
|
+
const _sfc_main$l = defineComponent({
|
|
407
430
|
name: "Platform",
|
|
408
431
|
components: {},
|
|
409
432
|
emits: [""],
|
|
410
433
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
411
|
-
props: propDefine$
|
|
434
|
+
props: propDefine$m,
|
|
412
435
|
setup(props, ctx) {
|
|
413
436
|
return new PlatformInstance$1(props, ctx);
|
|
414
437
|
}
|
|
@@ -775,20 +798,20 @@ let PlatformInstance$1 = class PlatformInstance extends BaseInstance {
|
|
|
775
798
|
//#endregion 系统平台编辑 END
|
|
776
799
|
};
|
|
777
800
|
const Platform_vue_vue_type_style_index_0_scoped_c0da56b4_lang = "";
|
|
778
|
-
const _export_sfc = (sfc, props) => {
|
|
801
|
+
const _export_sfc$1 = (sfc, props) => {
|
|
779
802
|
const target = sfc.__vccOpts || sfc;
|
|
780
803
|
for (const [key, val] of props) {
|
|
781
804
|
target[key] = val;
|
|
782
805
|
}
|
|
783
806
|
return target;
|
|
784
807
|
};
|
|
785
|
-
const _hoisted_1$
|
|
808
|
+
const _hoisted_1$j = {
|
|
786
809
|
class: "nv-flex",
|
|
787
810
|
style: { "justify-content": "space-between" }
|
|
788
811
|
};
|
|
789
812
|
const _hoisted_2$b = { style: { "height": "500px", "overflow-y": "auto" } };
|
|
790
813
|
const _hoisted_3$a = { style: { "height": "400px", "overflow-y": "auto" } };
|
|
791
|
-
function _sfc_render$
|
|
814
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
792
815
|
const _component_NvList = resolveComponent("NvList");
|
|
793
816
|
const _component_Icon = resolveComponent("Icon");
|
|
794
817
|
const _component_Space = resolveComponent("Space");
|
|
@@ -810,7 +833,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
810
833
|
"show-arrow": true
|
|
811
834
|
}, {
|
|
812
835
|
footer: withCtx(() => [
|
|
813
|
-
createElementVNode("div", _hoisted_1$
|
|
836
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
814
837
|
createVNode(_component_Space, null, {
|
|
815
838
|
default: withCtx(() => [
|
|
816
839
|
createVNode(_component_Icon, {
|
|
@@ -963,7 +986,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
963
986
|
_: 1
|
|
964
987
|
});
|
|
965
988
|
}
|
|
966
|
-
const Platform = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
989
|
+
const Platform = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-c0da56b4"]]);
|
|
967
990
|
class BasicsBaseApi extends BaseApi {
|
|
968
991
|
get ProxyName() {
|
|
969
992
|
return "BasicsApi";
|
|
@@ -1032,7 +1055,13 @@ class CaptchaApi extends BasicsBaseApi {
|
|
|
1032
1055
|
return this.send({ source }, "getCaptcha", Methods.GET);
|
|
1033
1056
|
}
|
|
1034
1057
|
}
|
|
1035
|
-
|
|
1058
|
+
var __defProp2 = Object.defineProperty;
|
|
1059
|
+
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1060
|
+
var __publicField2 = (obj, key, value) => {
|
|
1061
|
+
__defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1062
|
+
return value;
|
|
1063
|
+
};
|
|
1064
|
+
const propDefine$8$1 = {
|
|
1036
1065
|
theme: {
|
|
1037
1066
|
// 主题颜色 light dark
|
|
1038
1067
|
type: String,
|
|
@@ -1044,12 +1073,12 @@ const propDefine$r = {
|
|
|
1044
1073
|
default: true
|
|
1045
1074
|
}
|
|
1046
1075
|
};
|
|
1047
|
-
const _sfc_main$
|
|
1076
|
+
const _sfc_main$4$1 = defineComponent({
|
|
1048
1077
|
name: "BaseLogin",
|
|
1049
1078
|
components: {},
|
|
1050
1079
|
emits: [""],
|
|
1051
1080
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
1052
|
-
props: propDefine$
|
|
1081
|
+
props: propDefine$8$1,
|
|
1053
1082
|
setup(props, ctx) {
|
|
1054
1083
|
return new BaseLoginInstance$1(props, ctx);
|
|
1055
1084
|
}
|
|
@@ -1057,30 +1086,18 @@ const _sfc_main$l = defineComponent({
|
|
|
1057
1086
|
let BaseLoginInstance$1 = class BaseLoginInstance extends BaseInstance {
|
|
1058
1087
|
constructor(props, ctx) {
|
|
1059
1088
|
super();
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
//#endregion 自动登录 END
|
|
1073
|
-
//#region 密码登录
|
|
1074
|
-
// 响应属性 | ref、reactive、computed
|
|
1075
|
-
__publicField(this, "userName", ref(""));
|
|
1076
|
-
__publicField(this, "passWord", ref(""));
|
|
1077
|
-
__publicField(this, "isloading", ref(false));
|
|
1078
|
-
__publicField(this, "loadType", ref("userName"));
|
|
1079
|
-
// 响应式方法 | xxx = () => {}
|
|
1080
|
-
/**
|
|
1081
|
-
* 用户名密码登录
|
|
1082
|
-
*/
|
|
1083
|
-
__publicField(this, "doUserNamePwdLogin", async () => {
|
|
1089
|
+
__publicField2(this, "props");
|
|
1090
|
+
__publicField2(this, "ctx");
|
|
1091
|
+
__publicField2(this, "oauthApi", new OAuthApi());
|
|
1092
|
+
__publicField2(this, "captchaApi", new CaptchaApi());
|
|
1093
|
+
__publicField2(this, "router");
|
|
1094
|
+
__publicField2(this, "aesKey", "d2140707ca3a469c8527e546fe961276");
|
|
1095
|
+
__publicField2(this, "autoLogin", ref(true));
|
|
1096
|
+
__publicField2(this, "userName", ref(""));
|
|
1097
|
+
__publicField2(this, "passWord", ref(""));
|
|
1098
|
+
__publicField2(this, "isloading", ref(false));
|
|
1099
|
+
__publicField2(this, "loadType", ref("userName"));
|
|
1100
|
+
__publicField2(this, "doUserNamePwdLogin", async () => {
|
|
1084
1101
|
if (this.utilities.isNull(this.userName.value)) {
|
|
1085
1102
|
this.loginTip.value = "用户名不能为空!";
|
|
1086
1103
|
return;
|
|
@@ -1091,22 +1108,13 @@ let BaseLoginInstance$1 = class BaseLoginInstance extends BaseInstance {
|
|
|
1091
1108
|
}
|
|
1092
1109
|
this.login(this.userName.value, this.passWord.value);
|
|
1093
1110
|
});
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
__publicField(this, "canGetCaptchaTime", ref(60));
|
|
1102
|
-
__publicField(this, "sendCaptchaing", ref(false));
|
|
1103
|
-
__publicField(this, "loginTip", ref(""));
|
|
1104
|
-
// 私有方法 | private 方法名() {}
|
|
1105
|
-
// 响应式方法 | xxx = () => {}
|
|
1106
|
-
/**
|
|
1107
|
-
* 发送验证码
|
|
1108
|
-
*/
|
|
1109
|
-
__publicField(this, "doSendCaptcha", async () => {
|
|
1111
|
+
__publicField2(this, "phone", ref(""));
|
|
1112
|
+
__publicField2(this, "captcha", ref(""));
|
|
1113
|
+
__publicField2(this, "canGetCaptcha", ref(true));
|
|
1114
|
+
__publicField2(this, "canGetCaptchaTime", ref(60));
|
|
1115
|
+
__publicField2(this, "sendCaptchaing", ref(false));
|
|
1116
|
+
__publicField2(this, "loginTip", ref(""));
|
|
1117
|
+
__publicField2(this, "doSendCaptcha", async () => {
|
|
1110
1118
|
this.sendCaptchaing.value = true;
|
|
1111
1119
|
this.loginTip.value = "";
|
|
1112
1120
|
const reg = /^[1][3,4,5,7,8]\d{9}$/;
|
|
@@ -1140,11 +1148,7 @@ let BaseLoginInstance$1 = class BaseLoginInstance extends BaseInstance {
|
|
|
1140
1148
|
this.loginTip.value = apiResult.msg;
|
|
1141
1149
|
}
|
|
1142
1150
|
});
|
|
1143
|
-
|
|
1144
|
-
* 手机号验证码登录
|
|
1145
|
-
* @returns
|
|
1146
|
-
*/
|
|
1147
|
-
__publicField(this, "doPhoneLogin", async () => {
|
|
1151
|
+
__publicField2(this, "doPhoneLogin", async () => {
|
|
1148
1152
|
this.isloading.value = true;
|
|
1149
1153
|
this.loginTip.value = "";
|
|
1150
1154
|
const reg = /^[1][3,4,5,7,8]\d{9}$/;
|
|
@@ -1169,33 +1173,25 @@ let BaseLoginInstance$1 = class BaseLoginInstance extends BaseInstance {
|
|
|
1169
1173
|
this.storageInfo.removeAll();
|
|
1170
1174
|
this.setLoginResult(result);
|
|
1171
1175
|
});
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
__publicField(this, "resendTime", ref(60));
|
|
1184
|
-
__publicField(this, "validateing", ref(false));
|
|
1185
|
-
__publicField(this, "captchaFormRef", ref());
|
|
1186
|
-
__publicField(this, "phoneValidateModel", reactive({
|
|
1176
|
+
__publicField2(this, "loginUserName", "");
|
|
1177
|
+
__publicField2(this, "encryptPassword", "");
|
|
1178
|
+
__publicField2(this, "loginResult");
|
|
1179
|
+
__publicField2(this, "intervalId");
|
|
1180
|
+
__publicField2(this, "showPhoneValidate", ref(false));
|
|
1181
|
+
__publicField2(this, "sending", ref(false));
|
|
1182
|
+
__publicField2(this, "canSendCaptcha", ref(true));
|
|
1183
|
+
__publicField2(this, "resendTime", ref(60));
|
|
1184
|
+
__publicField2(this, "validateing", ref(false));
|
|
1185
|
+
__publicField2(this, "captchaFormRef", ref());
|
|
1186
|
+
__publicField2(this, "phoneValidateModel", reactive({
|
|
1187
1187
|
Captcha: ""
|
|
1188
1188
|
}));
|
|
1189
|
-
|
|
1189
|
+
__publicField2(this, "phoneValidateRule", reactive({
|
|
1190
1190
|
Captcha: [
|
|
1191
1191
|
{ required: true, message: "验证码不能空!", trigger: "blur" }
|
|
1192
1192
|
]
|
|
1193
1193
|
}));
|
|
1194
|
-
|
|
1195
|
-
/**
|
|
1196
|
-
* 发送手机验证码
|
|
1197
|
-
*/
|
|
1198
|
-
__publicField(this, "doSendPhoneCaptcha", async () => {
|
|
1194
|
+
__publicField2(this, "doSendPhoneCaptcha", async () => {
|
|
1199
1195
|
this.sending.value = true;
|
|
1200
1196
|
const apiResult = await this.captchaApi.sendPhoneCaptcha(this.loginResult.User.Phone);
|
|
1201
1197
|
const result = this.utilities.parseApiResult(apiResult);
|
|
@@ -1215,10 +1211,7 @@ let BaseLoginInstance$1 = class BaseLoginInstance extends BaseInstance {
|
|
|
1215
1211
|
this.message.warning(apiResult.msg);
|
|
1216
1212
|
}
|
|
1217
1213
|
});
|
|
1218
|
-
|
|
1219
|
-
* 手机验证
|
|
1220
|
-
*/
|
|
1221
|
-
__publicField(this, "doPhoneValidate", async () => {
|
|
1214
|
+
__publicField2(this, "doPhoneValidate", async () => {
|
|
1222
1215
|
this.validateing.value = true;
|
|
1223
1216
|
const valid = await this.captchaFormRef.value.validate();
|
|
1224
1217
|
if (!valid) {
|
|
@@ -1238,13 +1231,7 @@ let BaseLoginInstance$1 = class BaseLoginInstance extends BaseInstance {
|
|
|
1238
1231
|
this.message.warning("验证码填写错误!");
|
|
1239
1232
|
}
|
|
1240
1233
|
});
|
|
1241
|
-
|
|
1242
|
-
/**
|
|
1243
|
-
* 执行登录
|
|
1244
|
-
* @param userName
|
|
1245
|
-
* @param password
|
|
1246
|
-
*/
|
|
1247
|
-
__publicField(this, "login", async (userName, password, isEncrypt = false) => {
|
|
1234
|
+
__publicField2(this, "login", async (userName, password, isEncrypt = false) => {
|
|
1248
1235
|
this.isloading.value = true;
|
|
1249
1236
|
this.loginTip.value = "";
|
|
1250
1237
|
password = isEncrypt == true ? password : this.utilities.stringHelper.encryptAES(password, this.aesKey);
|
|
@@ -1261,11 +1248,7 @@ let BaseLoginInstance$1 = class BaseLoginInstance extends BaseInstance {
|
|
|
1261
1248
|
this.loginSuccess(userName, password, result);
|
|
1262
1249
|
}
|
|
1263
1250
|
});
|
|
1264
|
-
|
|
1265
|
-
* 设置登录结果
|
|
1266
|
-
* @param result
|
|
1267
|
-
*/
|
|
1268
|
-
__publicField(this, "setLoginResult", (result, isJump = true) => {
|
|
1251
|
+
__publicField2(this, "setLoginResult", (result, isJump = true) => {
|
|
1269
1252
|
this.storageInfo.setToken(result.Token);
|
|
1270
1253
|
this.storageInfo.setUser(result.User);
|
|
1271
1254
|
this.storageInfo.setPlatforms(result.Platforms);
|
|
@@ -1347,22 +1330,28 @@ let BaseLoginInstance$1 = class BaseLoginInstance extends BaseInstance {
|
|
|
1347
1330
|
}
|
|
1348
1331
|
//#endregion API END
|
|
1349
1332
|
};
|
|
1350
|
-
const
|
|
1351
|
-
const
|
|
1352
|
-
const
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
const
|
|
1358
|
-
const
|
|
1333
|
+
const _export_sfc = (sfc, props) => {
|
|
1334
|
+
const target = sfc.__vccOpts || sfc;
|
|
1335
|
+
for (const [key, val] of props) {
|
|
1336
|
+
target[key] = val;
|
|
1337
|
+
}
|
|
1338
|
+
return target;
|
|
1339
|
+
};
|
|
1340
|
+
const _withScopeId$1$1 = (n) => (pushScopeId("data-v-74a37534"), n = n(), popScopeId(), n);
|
|
1341
|
+
const _hoisted_1$3$1 = { class: "login-form" };
|
|
1342
|
+
const _hoisted_2$3$1 = { class: "login-body" };
|
|
1343
|
+
const _hoisted_3$2$1 = { class: "login-tabs" };
|
|
1344
|
+
const _hoisted_4$2$1 = { class: "login-panel" };
|
|
1345
|
+
const _hoisted_5$8 = { class: "login-input-item" };
|
|
1346
|
+
const _hoisted_6$8 = { class: "login-input-item" };
|
|
1347
|
+
const _hoisted_7$6 = {
|
|
1359
1348
|
class: "login-input-item",
|
|
1360
1349
|
style: { "text-align": "right" }
|
|
1361
1350
|
};
|
|
1362
|
-
const _hoisted_8$
|
|
1363
|
-
const _hoisted_9$
|
|
1364
|
-
const _hoisted_10$
|
|
1365
|
-
const _hoisted_11$
|
|
1351
|
+
const _hoisted_8$6 = { class: "login-panel" };
|
|
1352
|
+
const _hoisted_9$4 = { class: "login-input-item" };
|
|
1353
|
+
const _hoisted_10$4 = { class: "login-input-item" };
|
|
1354
|
+
const _hoisted_11$4 = {
|
|
1366
1355
|
class: "login-input-item",
|
|
1367
1356
|
style: { "text-align": "right" }
|
|
1368
1357
|
};
|
|
@@ -1379,14 +1368,14 @@ const _hoisted_15 = {
|
|
|
1379
1368
|
const _hoisted_16 = { class: "login-tip" };
|
|
1380
1369
|
const _hoisted_17 = { key: 0 };
|
|
1381
1370
|
const _hoisted_18 = { key: 1 };
|
|
1382
|
-
const _hoisted_19 = /* @__PURE__ */ _withScopeId$
|
|
1371
|
+
const _hoisted_19 = /* @__PURE__ */ _withScopeId$1$1(() => /* @__PURE__ */ createElementVNode("div", { class: "captcha-tip" }, "在新设备登录,需要进行短信验证!", -1));
|
|
1383
1372
|
const _hoisted_20 = { key: 0 };
|
|
1384
1373
|
const _hoisted_21 = { key: 1 };
|
|
1385
1374
|
const _hoisted_22 = {
|
|
1386
1375
|
key: 1,
|
|
1387
1376
|
class: "captcha-item"
|
|
1388
1377
|
};
|
|
1389
|
-
function _sfc_render$
|
|
1378
|
+
function _sfc_render$4$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1390
1379
|
const _component_Input = resolveComponent("Input");
|
|
1391
1380
|
const _component_Checkbox = resolveComponent("Checkbox");
|
|
1392
1381
|
const _component_Icon = resolveComponent("Icon");
|
|
@@ -1394,10 +1383,10 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1394
1383
|
const _component_FormItem = resolveComponent("FormItem");
|
|
1395
1384
|
const _component_Form = resolveComponent("Form");
|
|
1396
1385
|
const _component_Modal = resolveComponent("Modal");
|
|
1397
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1386
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3$1, [
|
|
1398
1387
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1399
|
-
createElementVNode("div", _hoisted_2$
|
|
1400
|
-
createElementVNode("div", _hoisted_3$
|
|
1388
|
+
createElementVNode("div", _hoisted_2$3$1, [
|
|
1389
|
+
createElementVNode("div", _hoisted_3$2$1, [
|
|
1401
1390
|
createElementVNode("div", {
|
|
1402
1391
|
class: normalizeClass(_ctx.loadType == "userName" ? "login-tab login-tab--active" : "login-tab"),
|
|
1403
1392
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.loadType = "userName")
|
|
@@ -1407,8 +1396,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1407
1396
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.loadType = "captcha")
|
|
1408
1397
|
}, "验证码登录", 2)
|
|
1409
1398
|
]),
|
|
1410
|
-
withDirectives(createElementVNode("div", _hoisted_4$
|
|
1411
|
-
createElementVNode("div", _hoisted_5$
|
|
1399
|
+
withDirectives(createElementVNode("div", _hoisted_4$2$1, [
|
|
1400
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
1412
1401
|
createVNode(_component_Input, {
|
|
1413
1402
|
size: "large",
|
|
1414
1403
|
prefix: "md-person",
|
|
@@ -1418,7 +1407,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1418
1407
|
clearable: ""
|
|
1419
1408
|
}, null, 8, ["modelValue"])
|
|
1420
1409
|
]),
|
|
1421
|
-
createElementVNode("div", _hoisted_6$
|
|
1410
|
+
createElementVNode("div", _hoisted_6$8, [
|
|
1422
1411
|
createVNode(_component_Input, {
|
|
1423
1412
|
type: "password",
|
|
1424
1413
|
size: "large",
|
|
@@ -1429,7 +1418,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1429
1418
|
password: ""
|
|
1430
1419
|
}, null, 8, ["modelValue"])
|
|
1431
1420
|
]),
|
|
1432
|
-
createElementVNode("div", _hoisted_7$
|
|
1421
|
+
createElementVNode("div", _hoisted_7$6, [
|
|
1433
1422
|
createVNode(_component_Checkbox, {
|
|
1434
1423
|
modelValue: _ctx.autoLogin,
|
|
1435
1424
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.autoLogin = $event)
|
|
@@ -1443,8 +1432,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1443
1432
|
], 512), [
|
|
1444
1433
|
[vShow, _ctx.loadType == "userName"]
|
|
1445
1434
|
]),
|
|
1446
|
-
withDirectives(createElementVNode("div", _hoisted_8$
|
|
1447
|
-
createElementVNode("div", _hoisted_9$
|
|
1435
|
+
withDirectives(createElementVNode("div", _hoisted_8$6, [
|
|
1436
|
+
createElementVNode("div", _hoisted_9$4, [
|
|
1448
1437
|
createVNode(_component_Input, {
|
|
1449
1438
|
size: "large",
|
|
1450
1439
|
prefix: "md-phone-portrait",
|
|
@@ -1454,7 +1443,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1454
1443
|
clearable: ""
|
|
1455
1444
|
}, null, 8, ["modelValue"])
|
|
1456
1445
|
]),
|
|
1457
|
-
createElementVNode("div", _hoisted_10$
|
|
1446
|
+
createElementVNode("div", _hoisted_10$4, [
|
|
1458
1447
|
createVNode(_component_Input, {
|
|
1459
1448
|
size: "large",
|
|
1460
1449
|
prefix: "md-keypad",
|
|
@@ -1466,7 +1455,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1466
1455
|
"show-word-limit": ""
|
|
1467
1456
|
}, null, 8, ["modelValue"])
|
|
1468
1457
|
]),
|
|
1469
|
-
createElementVNode("div", _hoisted_11$
|
|
1458
|
+
createElementVNode("div", _hoisted_11$4, [
|
|
1470
1459
|
_ctx.sendCaptchaing ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
|
|
1471
1460
|
createVNode(_component_Icon, {
|
|
1472
1461
|
type: "ios-loading",
|
|
@@ -1571,8 +1560,8 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1571
1560
|
}, 8, ["modelValue"])
|
|
1572
1561
|
]);
|
|
1573
1562
|
}
|
|
1574
|
-
const BaseLogin = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1575
|
-
const propDefine$
|
|
1563
|
+
const BaseLogin = /* @__PURE__ */ _export_sfc(_sfc_main$4$1, [["render", _sfc_render$4$1], ["__scopeId", "data-v-74a37534"]]);
|
|
1564
|
+
const propDefine$7$1 = {
|
|
1576
1565
|
defaultLoad: {
|
|
1577
1566
|
// 默认选中
|
|
1578
1567
|
type: Boolean,
|
|
@@ -1589,12 +1578,12 @@ const propDefine$q = {
|
|
|
1589
1578
|
default: true
|
|
1590
1579
|
}
|
|
1591
1580
|
};
|
|
1592
|
-
const _sfc_main$
|
|
1581
|
+
const _sfc_main$3$1 = defineComponent({
|
|
1593
1582
|
name: "SelectPlatform",
|
|
1594
1583
|
components: {},
|
|
1595
1584
|
emits: ["select"],
|
|
1596
1585
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
1597
|
-
props: propDefine$
|
|
1586
|
+
props: propDefine$7$1,
|
|
1598
1587
|
setup(props, ctx) {
|
|
1599
1588
|
return new SelectPlatformInstance$1(props, ctx);
|
|
1600
1589
|
}
|
|
@@ -1603,21 +1592,13 @@ let SelectPlatformInstance$1 = class SelectPlatformInstance extends BaseInstance
|
|
|
1603
1592
|
// 全局属性
|
|
1604
1593
|
constructor(props, ctx) {
|
|
1605
1594
|
super();
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
__publicField(this, "platforms", ref([]));
|
|
1614
|
-
__publicField(this, "selectPlatformId", ref(0));
|
|
1615
|
-
__publicField(this, "spinShow", ref(false));
|
|
1616
|
-
// 响应式方法 | xxx = () => {}
|
|
1617
|
-
/**
|
|
1618
|
-
* 加载平台数据
|
|
1619
|
-
*/
|
|
1620
|
-
__publicField(this, "loadPlatforms", async () => {
|
|
1595
|
+
__publicField2(this, "props");
|
|
1596
|
+
__publicField2(this, "ctx");
|
|
1597
|
+
__publicField2(this, "platformApi", new PlatformApi());
|
|
1598
|
+
__publicField2(this, "platforms", ref([]));
|
|
1599
|
+
__publicField2(this, "selectPlatformId", ref(0));
|
|
1600
|
+
__publicField2(this, "spinShow", ref(false));
|
|
1601
|
+
__publicField2(this, "loadPlatforms", async () => {
|
|
1621
1602
|
this.spinShow.value = true;
|
|
1622
1603
|
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("1", "1").orderBy(["OrderNo"], true));
|
|
1623
1604
|
this.platforms.value = this.utilities.parseApiResult(apiResult);
|
|
@@ -1627,10 +1608,7 @@ let SelectPlatformInstance$1 = class SelectPlatformInstance extends BaseInstance
|
|
|
1627
1608
|
this.ctx.emit("select", this.platforms.value[0]);
|
|
1628
1609
|
}
|
|
1629
1610
|
});
|
|
1630
|
-
|
|
1631
|
-
* 平台改变事件
|
|
1632
|
-
*/
|
|
1633
|
-
__publicField(this, "doPlatformChange", () => {
|
|
1611
|
+
__publicField2(this, "doPlatformChange", () => {
|
|
1634
1612
|
const data = this.platforms.value.find((item) => item.Id == this.selectPlatformId.value);
|
|
1635
1613
|
if (this.utilities.isNull(data)) {
|
|
1636
1614
|
return;
|
|
@@ -1652,7 +1630,7 @@ let SelectPlatformInstance$1 = class SelectPlatformInstance extends BaseInstance
|
|
|
1652
1630
|
}
|
|
1653
1631
|
//#endregion 系统平台 END
|
|
1654
1632
|
};
|
|
1655
|
-
function _sfc_render$
|
|
1633
|
+
function _sfc_render$3$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1656
1634
|
const _component_Option = resolveComponent("Option");
|
|
1657
1635
|
const _component_Select = resolveComponent("Select");
|
|
1658
1636
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -1694,13 +1672,13 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1694
1672
|
_: 1
|
|
1695
1673
|
}, 8, ["width", "label", "labelWidth", "onClick"]);
|
|
1696
1674
|
}
|
|
1697
|
-
const SelectPlatform = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1698
|
-
class CASignBaseApi extends BaseOldApi {
|
|
1675
|
+
const SelectPlatform = /* @__PURE__ */ _export_sfc(_sfc_main$3$1, [["render", _sfc_render$3$1]]);
|
|
1676
|
+
let CASignBaseApi$1 = class CASignBaseApi extends BaseOldApi {
|
|
1699
1677
|
get ProxyName() {
|
|
1700
1678
|
return "CASignApi";
|
|
1701
1679
|
}
|
|
1702
|
-
}
|
|
1703
|
-
class SignTaskInfoApi extends CASignBaseApi {
|
|
1680
|
+
};
|
|
1681
|
+
let SignTaskInfoApi$1 = class SignTaskInfoApi extends CASignBaseApi$1 {
|
|
1704
1682
|
get ControllerName() {
|
|
1705
1683
|
return "SignTaskInfo";
|
|
1706
1684
|
}
|
|
@@ -1742,9 +1720,9 @@ class SignTaskInfoApi extends CASignBaseApi {
|
|
|
1742
1720
|
SendCloudVerificationSign(businessKey, taskKey, SignContent) {
|
|
1743
1721
|
return this.send({ businessKey, taskKey, SignContent }, "SendCloudVerificationSign", Methods.GET);
|
|
1744
1722
|
}
|
|
1745
|
-
}
|
|
1723
|
+
};
|
|
1746
1724
|
new UserSignApi();
|
|
1747
|
-
const signTaskInfoApi = new SignTaskInfoApi();
|
|
1725
|
+
const signTaskInfoApi = new SignTaskInfoApi$1();
|
|
1748
1726
|
const errorResult = (msg) => {
|
|
1749
1727
|
return { code: -1, msg, result: "" };
|
|
1750
1728
|
};
|
|
@@ -1772,7 +1750,7 @@ const doSeal = async (sealKey, userPin, sealContent) => {
|
|
|
1772
1750
|
return errorResult(result.head.msg);
|
|
1773
1751
|
}
|
|
1774
1752
|
};
|
|
1775
|
-
const propDefine$
|
|
1753
|
+
const propDefine$6$1 = {
|
|
1776
1754
|
platformId: {
|
|
1777
1755
|
// 平台Id
|
|
1778
1756
|
type: Number,
|
|
@@ -1804,7 +1782,7 @@ defineComponent({
|
|
|
1804
1782
|
components: {},
|
|
1805
1783
|
emits: ["signSuccess"],
|
|
1806
1784
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
1807
|
-
props: propDefine$
|
|
1785
|
+
props: propDefine$6$1,
|
|
1808
1786
|
setup(props, ctx) {
|
|
1809
1787
|
return new CASignInstance$1(props, ctx);
|
|
1810
1788
|
}
|
|
@@ -1813,39 +1791,22 @@ let CASignInstance$1 = class CASignInstance extends BaseInstance {
|
|
|
1813
1791
|
// 全局属性
|
|
1814
1792
|
constructor(props, ctx) {
|
|
1815
1793
|
super();
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
// 响应式方法 | xxx = () => {}
|
|
1829
|
-
//#endregion 签字信息 END
|
|
1830
|
-
//#region 执行签字
|
|
1831
|
-
// 私有属性 | private
|
|
1832
|
-
// 响应属性 | ref、reactive、computed、watch
|
|
1833
|
-
__publicField(this, "showSignPwd", ref(false));
|
|
1834
|
-
__publicField(this, "userPin", ref(""));
|
|
1835
|
-
__publicField(this, "signing", ref(false));
|
|
1836
|
-
// 私有方法 | private 方法名() {}
|
|
1837
|
-
// 响应式方法 | xxx = () => {}
|
|
1838
|
-
/**
|
|
1839
|
-
* 显示签字密码输入框
|
|
1840
|
-
*/
|
|
1841
|
-
__publicField(this, "doShowSignPwd", () => {
|
|
1794
|
+
__publicField2(this, "props");
|
|
1795
|
+
__publicField2(this, "ctx");
|
|
1796
|
+
__publicField2(this, "signTaskInfoApi", new SignTaskInfoApi$1());
|
|
1797
|
+
__publicField2(this, "userSignApi", new UserSignApi());
|
|
1798
|
+
__publicField2(this, "userSign");
|
|
1799
|
+
__publicField2(this, "sealKey", "");
|
|
1800
|
+
__publicField2(this, "hasSign", ref(false));
|
|
1801
|
+
__publicField2(this, "signImg", ref(""));
|
|
1802
|
+
__publicField2(this, "showSignPwd", ref(false));
|
|
1803
|
+
__publicField2(this, "userPin", ref(""));
|
|
1804
|
+
__publicField2(this, "signing", ref(false));
|
|
1805
|
+
__publicField2(this, "doShowSignPwd", () => {
|
|
1842
1806
|
this.userPin.value = "";
|
|
1843
1807
|
this.showSignPwd.value = true;
|
|
1844
1808
|
});
|
|
1845
|
-
|
|
1846
|
-
* 执行签字
|
|
1847
|
-
*/
|
|
1848
|
-
__publicField(this, "doRunSeal", async () => {
|
|
1809
|
+
__publicField2(this, "doRunSeal", async () => {
|
|
1849
1810
|
this.signing.value = true;
|
|
1850
1811
|
if (this.utilities.isNull(this.userPin.value)) {
|
|
1851
1812
|
this.message.error("请输入证书密钥");
|
|
@@ -1900,8 +1861,7 @@ let CASignInstance$1 = class CASignInstance extends BaseInstance {
|
|
|
1900
1861
|
}
|
|
1901
1862
|
//#endregion 执行签字 END
|
|
1902
1863
|
};
|
|
1903
|
-
const
|
|
1904
|
-
const propDefine$o = {
|
|
1864
|
+
const propDefine$5$1 = {
|
|
1905
1865
|
loadCount: {
|
|
1906
1866
|
// 加载Count方法
|
|
1907
1867
|
type: Function
|
|
@@ -1912,7 +1872,7 @@ defineComponent({
|
|
|
1912
1872
|
components: { SelectPlatform },
|
|
1913
1873
|
emits: ["change"],
|
|
1914
1874
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
1915
|
-
props: propDefine$
|
|
1875
|
+
props: propDefine$5$1,
|
|
1916
1876
|
setup(props, ctx) {
|
|
1917
1877
|
return new InstitutionTreeInstance$1(props, ctx);
|
|
1918
1878
|
}
|
|
@@ -1921,17 +1881,13 @@ let InstitutionTreeInstance$1 = class InstitutionTreeInstance extends BaseInstan
|
|
|
1921
1881
|
// 全局属性
|
|
1922
1882
|
constructor(props, ctx) {
|
|
1923
1883
|
super();
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
// 响应属性 | ref、reactive、computed
|
|
1932
|
-
__publicField(this, "treeDatas", ref([]));
|
|
1933
|
-
__publicField(this, "treeGrid", ref());
|
|
1934
|
-
__publicField(this, "treeOption", reactive({
|
|
1884
|
+
__publicField2(this, "props");
|
|
1885
|
+
__publicField2(this, "ctx");
|
|
1886
|
+
__publicField2(this, "institutionTreeApi", new InstitutionTreeApi());
|
|
1887
|
+
__publicField2(this, "selectedPlatform");
|
|
1888
|
+
__publicField2(this, "treeDatas", ref([]));
|
|
1889
|
+
__publicField2(this, "treeGrid", ref());
|
|
1890
|
+
__publicField2(this, "treeOption", reactive({
|
|
1935
1891
|
api: this.institutionTreeApi,
|
|
1936
1892
|
setting: {
|
|
1937
1893
|
border: false,
|
|
@@ -1966,18 +1922,11 @@ let InstitutionTreeInstance$1 = class InstitutionTreeInstance extends BaseInstan
|
|
|
1966
1922
|
}
|
|
1967
1923
|
}
|
|
1968
1924
|
}));
|
|
1969
|
-
|
|
1970
|
-
/**
|
|
1971
|
-
* 平台切换
|
|
1972
|
-
*/
|
|
1973
|
-
__publicField(this, "doChangePlatform", (data) => {
|
|
1925
|
+
__publicField2(this, "doChangePlatform", (data) => {
|
|
1974
1926
|
this.selectedPlatform = data;
|
|
1975
1927
|
this.loadInsTree();
|
|
1976
1928
|
});
|
|
1977
|
-
|
|
1978
|
-
* 加载机构树
|
|
1979
|
-
*/
|
|
1980
|
-
__publicField(this, "loadInsTree", () => {
|
|
1929
|
+
__publicField2(this, "loadInsTree", () => {
|
|
1981
1930
|
this.treeGrid.value.loadData(async (option) => {
|
|
1982
1931
|
const apiResult = await this.institutionTreeApi.getInstitutionTrees(this.selectedPlatform.Id);
|
|
1983
1932
|
const datas = this.utilities.parseApiResult(apiResult);
|
|
@@ -1986,11 +1935,7 @@ let InstitutionTreeInstance$1 = class InstitutionTreeInstance extends BaseInstan
|
|
|
1986
1935
|
option.success(this.treeDatas.value);
|
|
1987
1936
|
});
|
|
1988
1937
|
});
|
|
1989
|
-
|
|
1990
|
-
* 汇总数据
|
|
1991
|
-
* @returns
|
|
1992
|
-
*/
|
|
1993
|
-
__publicField(this, "loadCount", async () => {
|
|
1938
|
+
__publicField2(this, "loadCount", async () => {
|
|
1994
1939
|
if (this.utilities.isNull(this.props.loadCount)) {
|
|
1995
1940
|
return;
|
|
1996
1941
|
}
|
|
@@ -2009,8 +1954,267 @@ let InstitutionTreeInstance$1 = class InstitutionTreeInstance extends BaseInstan
|
|
|
2009
1954
|
}
|
|
2010
1955
|
//#endregion 机构树 END
|
|
2011
1956
|
};
|
|
2012
|
-
const
|
|
2013
|
-
|
|
1957
|
+
const propDefine$4$1 = {
|
|
1958
|
+
multiple: {
|
|
1959
|
+
// 是否多选
|
|
1960
|
+
type: Boolean,
|
|
1961
|
+
default: true
|
|
1962
|
+
},
|
|
1963
|
+
filterType: {
|
|
1964
|
+
// 机构筛选类别 1:全部机构;2:当前机构;3:当前及以下机构;4:机构类别查询
|
|
1965
|
+
type: Number,
|
|
1966
|
+
default: 1
|
|
1967
|
+
},
|
|
1968
|
+
insTreeId: {
|
|
1969
|
+
// 机构treeId,不传默认为当前登录人机构treeId
|
|
1970
|
+
type: Number,
|
|
1971
|
+
default: 0
|
|
1972
|
+
}
|
|
1973
|
+
};
|
|
1974
|
+
defineComponent({
|
|
1975
|
+
name: "ProjectSel",
|
|
1976
|
+
components: {},
|
|
1977
|
+
emits: ["on-select", "on-close"],
|
|
1978
|
+
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
1979
|
+
props: propDefine$4$1,
|
|
1980
|
+
setup(props, ctx) {
|
|
1981
|
+
return new Instance(props, ctx);
|
|
1982
|
+
}
|
|
1983
|
+
});
|
|
1984
|
+
class Instance extends BaseInstance {
|
|
1985
|
+
constructor(props, ctx) {
|
|
1986
|
+
super();
|
|
1987
|
+
__publicField2(this, "props");
|
|
1988
|
+
__publicField2(this, "ctx");
|
|
1989
|
+
__publicField2(this, "institutionRoleApi", new InstitutionRoleApi());
|
|
1990
|
+
__publicField2(this, "platformId", this.storageInfo.getCurrentPlatform().Id);
|
|
1991
|
+
__publicField2(this, "insTreeId", this.storageInfo.getCurrentInsTree().Id);
|
|
1992
|
+
__publicField2(this, "institutioninforApi", new InstitutioninforApi());
|
|
1993
|
+
__publicField2(this, "institutionPlaneData", []);
|
|
1994
|
+
__publicField2(this, "institutionShow", ref(false));
|
|
1995
|
+
__publicField2(this, "institutionData", reactive([]));
|
|
1996
|
+
__publicField2(this, "institutionTreeRef", ref());
|
|
1997
|
+
__publicField2(this, "institutionRender", (h2, { data }) => {
|
|
1998
|
+
return data.InstitutionAbbreviation;
|
|
1999
|
+
});
|
|
2000
|
+
__publicField2(this, "handleInstitutionChange", async () => {
|
|
2001
|
+
const datas = this.institutionTreeRef.value.getCheckedNodes();
|
|
2002
|
+
let insTreeIds = datas.map((e) => {
|
|
2003
|
+
return e["Id"];
|
|
2004
|
+
}).toString();
|
|
2005
|
+
this.loadMainDataByBIIds(insTreeIds);
|
|
2006
|
+
});
|
|
2007
|
+
__publicField2(this, "handleInstitutionSelectChange", async (datas, data) => {
|
|
2008
|
+
this.loadMainDataByBIIds(data.Id);
|
|
2009
|
+
});
|
|
2010
|
+
__publicField2(this, "userinforApi", new UserinforApi());
|
|
2011
|
+
__publicField2(this, "mainSourceDatas", []);
|
|
2012
|
+
__publicField2(this, "mainSelectData", []);
|
|
2013
|
+
__publicField2(this, "personSearchText", ref(""));
|
|
2014
|
+
__publicField2(this, "mainGridRef", ref());
|
|
2015
|
+
__publicField2(this, "mainGridOption", reactive({
|
|
2016
|
+
api: this.institutionRoleApi,
|
|
2017
|
+
setting: {
|
|
2018
|
+
isPagination: false,
|
|
2019
|
+
toolbarConfig: {
|
|
2020
|
+
isButtonGroup: false
|
|
2021
|
+
},
|
|
2022
|
+
editConfig: {
|
|
2023
|
+
trigger: "click",
|
|
2024
|
+
mode: "row",
|
|
2025
|
+
showStatus: true
|
|
2026
|
+
},
|
|
2027
|
+
rowConfig: {
|
|
2028
|
+
isCurrent: true,
|
|
2029
|
+
isHover: true
|
|
2030
|
+
}
|
|
2031
|
+
},
|
|
2032
|
+
columns: [
|
|
2033
|
+
{
|
|
2034
|
+
colType: "checkbox"
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
colType: "ro",
|
|
2038
|
+
field: "InstitutionAbbreviation",
|
|
2039
|
+
title: "机构",
|
|
2040
|
+
align: "center"
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
colType: "ro",
|
|
2044
|
+
field: "RoleName",
|
|
2045
|
+
title: "部门",
|
|
2046
|
+
align: "center"
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
colType: "ro",
|
|
2050
|
+
field: "UserName",
|
|
2051
|
+
title: "人员",
|
|
2052
|
+
align: "center"
|
|
2053
|
+
}
|
|
2054
|
+
],
|
|
2055
|
+
event: {
|
|
2056
|
+
checkboxChange: () => {
|
|
2057
|
+
this.mainSelectData = this.mainGridRef.value.getCheckboxDatas();
|
|
2058
|
+
},
|
|
2059
|
+
currentChange: ({ row }) => {
|
|
2060
|
+
if (!this.props.multiple) {
|
|
2061
|
+
this.mainSelectData = [row];
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
}));
|
|
2066
|
+
__publicField2(this, "handleMainSelectChange", (datas, data) => {
|
|
2067
|
+
var _a;
|
|
2068
|
+
if (data.selected) {
|
|
2069
|
+
this.mainSelectData.splice(0, 1, data);
|
|
2070
|
+
} else {
|
|
2071
|
+
this.mainSelectData.splice(0, 1);
|
|
2072
|
+
}
|
|
2073
|
+
(_a = this.mainGridRef.value) == null ? void 0 : _a.loadData(async (options) => {
|
|
2074
|
+
options.success(this.utilities.deepCopy(this.mainSelectData));
|
|
2075
|
+
});
|
|
2076
|
+
});
|
|
2077
|
+
__publicField2(this, "close", () => {
|
|
2078
|
+
this.ctx.emit("on-close");
|
|
2079
|
+
});
|
|
2080
|
+
__publicField2(this, "confirm", () => {
|
|
2081
|
+
console.log(this.mainSelectData);
|
|
2082
|
+
this.ctx.emit("on-select", this.mainSelectData);
|
|
2083
|
+
});
|
|
2084
|
+
__publicField2(this, "searchPerson", () => {
|
|
2085
|
+
const res = this.mainSourceDatas.filter((e) => {
|
|
2086
|
+
return e["UserName"].indexOf(this.personSearchText.value) > -1 || e["RoleName"].indexOf(this.personSearchText.value) > -1;
|
|
2087
|
+
});
|
|
2088
|
+
this.setMainData(res);
|
|
2089
|
+
});
|
|
2090
|
+
this.props = props;
|
|
2091
|
+
this.ctx = ctx;
|
|
2092
|
+
this.init();
|
|
2093
|
+
}
|
|
2094
|
+
init() {
|
|
2095
|
+
if (this.props.insTreeId > 0) {
|
|
2096
|
+
this.insTreeId = this.props.insTreeId;
|
|
2097
|
+
}
|
|
2098
|
+
this.setGridOptions();
|
|
2099
|
+
onMounted(() => {
|
|
2100
|
+
this.loadInstitution();
|
|
2101
|
+
});
|
|
2102
|
+
}
|
|
2103
|
+
// 私有方法 | private 方法名() {}
|
|
2104
|
+
// private test2() {}
|
|
2105
|
+
/**获取机构数据 */
|
|
2106
|
+
async loadInstitution() {
|
|
2107
|
+
let res = this.utilities.parseApiResult(await this.institutioninforApi.GetInstitutioninforTree(this.platformId, this.props.filterType, this.insTreeId));
|
|
2108
|
+
this.institutionPlaneData = res;
|
|
2109
|
+
if (res.length === 1) {
|
|
2110
|
+
this.loadMainDataByBIIds(res[0].Id);
|
|
2111
|
+
} else {
|
|
2112
|
+
this.institutionShow.value = true;
|
|
2113
|
+
const treeData = this.parsePlaneToTree(res);
|
|
2114
|
+
this.institutionData.splice(0, this.institutionData.length, ...treeData);
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
/**将平面数据解析为树 */
|
|
2118
|
+
parsePlaneToTree(sourceData) {
|
|
2119
|
+
const data = this.utilities.deepCopy(sourceData);
|
|
2120
|
+
const treeData = data.filter((e) => e["PId"] === 0);
|
|
2121
|
+
let innerFun = (levelData) => {
|
|
2122
|
+
if (levelData.length === 0)
|
|
2123
|
+
return;
|
|
2124
|
+
levelData.forEach((item) => {
|
|
2125
|
+
item.expand = true;
|
|
2126
|
+
item.children = data.filter((e) => e["PId"] === item["Id"]);
|
|
2127
|
+
innerFun(item.children);
|
|
2128
|
+
});
|
|
2129
|
+
};
|
|
2130
|
+
innerFun(treeData);
|
|
2131
|
+
return treeData;
|
|
2132
|
+
}
|
|
2133
|
+
// 私有方法 | private 方法名() {}
|
|
2134
|
+
/**根据单选/多选设置表格配置 */
|
|
2135
|
+
setGridOptions() {
|
|
2136
|
+
if (this.props.multiple) {
|
|
2137
|
+
this.mainGridOption.columns = [
|
|
2138
|
+
{
|
|
2139
|
+
colType: "checkbox"
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
colType: "ro",
|
|
2143
|
+
field: "InstitutionAbbreviation",
|
|
2144
|
+
title: "机构",
|
|
2145
|
+
align: "center"
|
|
2146
|
+
},
|
|
2147
|
+
{
|
|
2148
|
+
colType: "ro",
|
|
2149
|
+
field: "RoleName",
|
|
2150
|
+
title: "部门",
|
|
2151
|
+
align: "center"
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
colType: "ro",
|
|
2155
|
+
field: "UserName",
|
|
2156
|
+
title: "人员",
|
|
2157
|
+
align: "center"
|
|
2158
|
+
}
|
|
2159
|
+
];
|
|
2160
|
+
} else {
|
|
2161
|
+
this.mainGridOption.columns = [
|
|
2162
|
+
{
|
|
2163
|
+
colType: "ro",
|
|
2164
|
+
field: "InstitutionAbbreviation",
|
|
2165
|
+
title: "机构",
|
|
2166
|
+
align: "center"
|
|
2167
|
+
},
|
|
2168
|
+
{
|
|
2169
|
+
colType: "ro",
|
|
2170
|
+
field: "RoleName",
|
|
2171
|
+
title: "部门",
|
|
2172
|
+
align: "center"
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
colType: "ro",
|
|
2176
|
+
field: "UserName",
|
|
2177
|
+
title: "人员",
|
|
2178
|
+
align: "center"
|
|
2179
|
+
}
|
|
2180
|
+
];
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
/** 获取主表数据 */
|
|
2184
|
+
async loadMainDataByBIIds(insTreeIds) {
|
|
2185
|
+
if (insTreeIds.length === 0) {
|
|
2186
|
+
this.setMainData();
|
|
2187
|
+
return;
|
|
2188
|
+
}
|
|
2189
|
+
const res = this.utilities.parseApiResult(await this.userinforApi.getRoleUsersForInstitution(this.platformId, insTreeIds));
|
|
2190
|
+
if (res) {
|
|
2191
|
+
res.forEach((item) => {
|
|
2192
|
+
let institution = this.institutionPlaneData.find((e) => e["Id"] === item.InsTreeId);
|
|
2193
|
+
item.InstitutionAbbreviation = institution == null ? void 0 : institution.InstitutionAbbreviation;
|
|
2194
|
+
const user = this.mainSelectData.find((e) => e["Id"] === item.Id);
|
|
2195
|
+
if (user) {
|
|
2196
|
+
item.checked = true;
|
|
2197
|
+
}
|
|
2198
|
+
});
|
|
2199
|
+
this.mainSourceDatas = res;
|
|
2200
|
+
this.setMainData(res);
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
/**设置人员表格数据 */
|
|
2204
|
+
setMainData(datas = []) {
|
|
2205
|
+
if (this.props.multiple) {
|
|
2206
|
+
let unSelectDatas = datas.filter((e) => {
|
|
2207
|
+
return !this.mainSelectData.find((item) => e["Id"] === item["Id"]);
|
|
2208
|
+
});
|
|
2209
|
+
datas = this.mainSelectData.concat(unSelectDatas);
|
|
2210
|
+
}
|
|
2211
|
+
this.mainGridRef.value.loadData(async (options) => {
|
|
2212
|
+
options.success(datas);
|
|
2213
|
+
});
|
|
2214
|
+
}
|
|
2215
|
+
//#endregion 人员相关 END
|
|
2216
|
+
}
|
|
2217
|
+
const propDefine$3$1 = {
|
|
2014
2218
|
theme: {
|
|
2015
2219
|
// 主题颜色 light dark
|
|
2016
2220
|
type: String,
|
|
@@ -2027,7 +2231,7 @@ defineComponent({
|
|
|
2027
2231
|
components: {},
|
|
2028
2232
|
emits: [""],
|
|
2029
2233
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
2030
|
-
props: propDefine$
|
|
2234
|
+
props: propDefine$3$1,
|
|
2031
2235
|
setup(props, ctx) {
|
|
2032
2236
|
return new BaseLoginInstance2(props, ctx);
|
|
2033
2237
|
}
|
|
@@ -2035,30 +2239,18 @@ defineComponent({
|
|
|
2035
2239
|
class BaseLoginInstance2 extends BaseInstance {
|
|
2036
2240
|
constructor(props, ctx) {
|
|
2037
2241
|
super();
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
//#endregion 自动登录 END
|
|
2051
|
-
//#region 密码登录
|
|
2052
|
-
// 响应属性 | ref、reactive、computed
|
|
2053
|
-
__publicField(this, "userName", ref(""));
|
|
2054
|
-
__publicField(this, "passWord", ref(""));
|
|
2055
|
-
__publicField(this, "isloading", ref(false));
|
|
2056
|
-
__publicField(this, "loadType", ref("userName"));
|
|
2057
|
-
// 响应式方法 | xxx = () => {}
|
|
2058
|
-
/**
|
|
2059
|
-
* 用户名密码登录
|
|
2060
|
-
*/
|
|
2061
|
-
__publicField(this, "doUserNamePwdLogin", async () => {
|
|
2242
|
+
__publicField2(this, "props");
|
|
2243
|
+
__publicField2(this, "ctx");
|
|
2244
|
+
__publicField2(this, "oauthApi", new OAuthApi());
|
|
2245
|
+
__publicField2(this, "captchaApi", new CaptchaApi());
|
|
2246
|
+
__publicField2(this, "router");
|
|
2247
|
+
__publicField2(this, "aesKey", "d2140707ca3a469c8527e546fe961276");
|
|
2248
|
+
__publicField2(this, "autoLogin", ref(true));
|
|
2249
|
+
__publicField2(this, "userName", ref(""));
|
|
2250
|
+
__publicField2(this, "passWord", ref(""));
|
|
2251
|
+
__publicField2(this, "isloading", ref(false));
|
|
2252
|
+
__publicField2(this, "loadType", ref("userName"));
|
|
2253
|
+
__publicField2(this, "doUserNamePwdLogin", async () => {
|
|
2062
2254
|
if (this.utilities.isNull(this.userName.value)) {
|
|
2063
2255
|
this.loginTip.value = "用户名不能为空!";
|
|
2064
2256
|
return;
|
|
@@ -2069,22 +2261,13 @@ class BaseLoginInstance2 extends BaseInstance {
|
|
|
2069
2261
|
}
|
|
2070
2262
|
this.login(this.userName.value, this.passWord.value);
|
|
2071
2263
|
});
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
__publicField(this, "canGetCaptchaTime", ref(60));
|
|
2080
|
-
__publicField(this, "sendCaptchaing", ref(false));
|
|
2081
|
-
__publicField(this, "loginTip", ref(""));
|
|
2082
|
-
// 私有方法 | private 方法名() {}
|
|
2083
|
-
// 响应式方法 | xxx = () => {}
|
|
2084
|
-
/**
|
|
2085
|
-
* 发送验证码
|
|
2086
|
-
*/
|
|
2087
|
-
__publicField(this, "doSendCaptcha", async () => {
|
|
2264
|
+
__publicField2(this, "phone", ref(""));
|
|
2265
|
+
__publicField2(this, "captcha", ref(""));
|
|
2266
|
+
__publicField2(this, "canGetCaptcha", ref(true));
|
|
2267
|
+
__publicField2(this, "canGetCaptchaTime", ref(60));
|
|
2268
|
+
__publicField2(this, "sendCaptchaing", ref(false));
|
|
2269
|
+
__publicField2(this, "loginTip", ref(""));
|
|
2270
|
+
__publicField2(this, "doSendCaptcha", async () => {
|
|
2088
2271
|
this.sendCaptchaing.value = true;
|
|
2089
2272
|
this.loginTip.value = "";
|
|
2090
2273
|
const reg = /^[1][3,4,5,7,8]\d{9}$/;
|
|
@@ -2118,11 +2301,7 @@ class BaseLoginInstance2 extends BaseInstance {
|
|
|
2118
2301
|
this.loginTip.value = apiResult.msg;
|
|
2119
2302
|
}
|
|
2120
2303
|
});
|
|
2121
|
-
|
|
2122
|
-
* 手机号验证码登录
|
|
2123
|
-
* @returns
|
|
2124
|
-
*/
|
|
2125
|
-
__publicField(this, "doPhoneLogin", async () => {
|
|
2304
|
+
__publicField2(this, "doPhoneLogin", async () => {
|
|
2126
2305
|
this.isloading.value = true;
|
|
2127
2306
|
this.loginTip.value = "";
|
|
2128
2307
|
const reg = /^[1][3,4,5,7,8]\d{9}$/;
|
|
@@ -2147,33 +2326,25 @@ class BaseLoginInstance2 extends BaseInstance {
|
|
|
2147
2326
|
this.storageInfo.removeAll();
|
|
2148
2327
|
this.setLoginResult(result);
|
|
2149
2328
|
});
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
__publicField(this, "resendTime", ref(60));
|
|
2162
|
-
__publicField(this, "validateing", ref(false));
|
|
2163
|
-
__publicField(this, "captchaFormRef", ref());
|
|
2164
|
-
__publicField(this, "phoneValidateModel", reactive({
|
|
2329
|
+
__publicField2(this, "loginUserName", "");
|
|
2330
|
+
__publicField2(this, "encryptPassword", "");
|
|
2331
|
+
__publicField2(this, "loginResult");
|
|
2332
|
+
__publicField2(this, "intervalId");
|
|
2333
|
+
__publicField2(this, "showPhoneValidate", ref(false));
|
|
2334
|
+
__publicField2(this, "sending", ref(false));
|
|
2335
|
+
__publicField2(this, "canSendCaptcha", ref(true));
|
|
2336
|
+
__publicField2(this, "resendTime", ref(60));
|
|
2337
|
+
__publicField2(this, "validateing", ref(false));
|
|
2338
|
+
__publicField2(this, "captchaFormRef", ref());
|
|
2339
|
+
__publicField2(this, "phoneValidateModel", reactive({
|
|
2165
2340
|
Captcha: ""
|
|
2166
2341
|
}));
|
|
2167
|
-
|
|
2342
|
+
__publicField2(this, "phoneValidateRule", reactive({
|
|
2168
2343
|
Captcha: [
|
|
2169
2344
|
{ required: true, message: "验证码不能空!", trigger: "blur" }
|
|
2170
2345
|
]
|
|
2171
2346
|
}));
|
|
2172
|
-
|
|
2173
|
-
/**
|
|
2174
|
-
* 发送手机验证码
|
|
2175
|
-
*/
|
|
2176
|
-
__publicField(this, "doSendPhoneCaptcha", async () => {
|
|
2347
|
+
__publicField2(this, "doSendPhoneCaptcha", async () => {
|
|
2177
2348
|
this.sending.value = true;
|
|
2178
2349
|
const apiResult = await this.captchaApi.sendPhoneCaptcha(this.loginResult.User.Phone);
|
|
2179
2350
|
const result = this.utilities.parseApiResult(apiResult);
|
|
@@ -2193,10 +2364,7 @@ class BaseLoginInstance2 extends BaseInstance {
|
|
|
2193
2364
|
this.message.warning(apiResult.msg);
|
|
2194
2365
|
}
|
|
2195
2366
|
});
|
|
2196
|
-
|
|
2197
|
-
* 手机验证
|
|
2198
|
-
*/
|
|
2199
|
-
__publicField(this, "doPhoneValidate", async () => {
|
|
2367
|
+
__publicField2(this, "doPhoneValidate", async () => {
|
|
2200
2368
|
this.validateing.value = true;
|
|
2201
2369
|
const valid = await this.captchaFormRef.value.validate();
|
|
2202
2370
|
if (!valid) {
|
|
@@ -2216,13 +2384,7 @@ class BaseLoginInstance2 extends BaseInstance {
|
|
|
2216
2384
|
this.message.warning("验证码填写错误!");
|
|
2217
2385
|
}
|
|
2218
2386
|
});
|
|
2219
|
-
|
|
2220
|
-
/**
|
|
2221
|
-
* 执行登录
|
|
2222
|
-
* @param userName
|
|
2223
|
-
* @param password
|
|
2224
|
-
*/
|
|
2225
|
-
__publicField(this, "login", async (userName, password, isEncrypt = false) => {
|
|
2387
|
+
__publicField2(this, "login", async (userName, password, isEncrypt = false) => {
|
|
2226
2388
|
this.isloading.value = true;
|
|
2227
2389
|
this.loginTip.value = "";
|
|
2228
2390
|
password = isEncrypt == true ? password : this.utilities.stringHelper.encryptAES(password, this.aesKey);
|
|
@@ -2239,11 +2401,7 @@ class BaseLoginInstance2 extends BaseInstance {
|
|
|
2239
2401
|
this.loginSuccess(userName, password, result);
|
|
2240
2402
|
}
|
|
2241
2403
|
});
|
|
2242
|
-
|
|
2243
|
-
* 设置登录结果
|
|
2244
|
-
* @param result
|
|
2245
|
-
*/
|
|
2246
|
-
__publicField(this, "setLoginResult", (result, isJump = true) => {
|
|
2404
|
+
__publicField2(this, "setLoginResult", (result, isJump = true) => {
|
|
2247
2405
|
this.storageInfo.setToken(result.Token);
|
|
2248
2406
|
this.storageInfo.setUser(result.User);
|
|
2249
2407
|
this.storageInfo.setPlatforms(result.Platforms);
|
|
@@ -2325,7 +2483,7 @@ class BaseLoginInstance2 extends BaseInstance {
|
|
|
2325
2483
|
}
|
|
2326
2484
|
//#endregion API END
|
|
2327
2485
|
}
|
|
2328
|
-
const propDefine$
|
|
2486
|
+
const propDefine$2$1 = {
|
|
2329
2487
|
defaultLoad: {
|
|
2330
2488
|
// 默认选中
|
|
2331
2489
|
type: Boolean,
|
|
@@ -2347,7 +2505,7 @@ defineComponent({
|
|
|
2347
2505
|
components: {},
|
|
2348
2506
|
emits: ["select"],
|
|
2349
2507
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
2350
|
-
props: propDefine$
|
|
2508
|
+
props: propDefine$2$1,
|
|
2351
2509
|
setup(props, ctx) {
|
|
2352
2510
|
return new SelectPlatformInstance2(props, ctx);
|
|
2353
2511
|
}
|
|
@@ -2356,21 +2514,13 @@ class SelectPlatformInstance2 extends BaseInstance {
|
|
|
2356
2514
|
// 全局属性
|
|
2357
2515
|
constructor(props, ctx) {
|
|
2358
2516
|
super();
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
__publicField(this, "platforms", ref([]));
|
|
2367
|
-
__publicField(this, "selectPlatformId", ref(0));
|
|
2368
|
-
__publicField(this, "spinShow", ref(false));
|
|
2369
|
-
// 响应式方法 | xxx = () => {}
|
|
2370
|
-
/**
|
|
2371
|
-
* 加载平台数据
|
|
2372
|
-
*/
|
|
2373
|
-
__publicField(this, "loadPlatforms", async () => {
|
|
2517
|
+
__publicField2(this, "props");
|
|
2518
|
+
__publicField2(this, "ctx");
|
|
2519
|
+
__publicField2(this, "platformApi", new PlatformApi());
|
|
2520
|
+
__publicField2(this, "platforms", ref([]));
|
|
2521
|
+
__publicField2(this, "selectPlatformId", ref(0));
|
|
2522
|
+
__publicField2(this, "spinShow", ref(false));
|
|
2523
|
+
__publicField2(this, "loadPlatforms", async () => {
|
|
2374
2524
|
this.spinShow.value = true;
|
|
2375
2525
|
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("1", "1").orderBy(["OrderNo"], true));
|
|
2376
2526
|
this.platforms.value = this.utilities.parseApiResult(apiResult);
|
|
@@ -2380,10 +2530,7 @@ class SelectPlatformInstance2 extends BaseInstance {
|
|
|
2380
2530
|
this.ctx.emit("select", this.platforms.value[0]);
|
|
2381
2531
|
}
|
|
2382
2532
|
});
|
|
2383
|
-
|
|
2384
|
-
* 平台改变事件
|
|
2385
|
-
*/
|
|
2386
|
-
__publicField(this, "doPlatformChange", () => {
|
|
2533
|
+
__publicField2(this, "doPlatformChange", () => {
|
|
2387
2534
|
const data = this.platforms.value.find((item) => item.Id == this.selectPlatformId.value);
|
|
2388
2535
|
if (this.utilities.isNull(data)) {
|
|
2389
2536
|
return;
|
|
@@ -2405,7 +2552,7 @@ class SelectPlatformInstance2 extends BaseInstance {
|
|
|
2405
2552
|
}
|
|
2406
2553
|
//#endregion 系统平台 END
|
|
2407
2554
|
}
|
|
2408
|
-
const propDefine$
|
|
2555
|
+
const propDefine$1$1 = {
|
|
2409
2556
|
platformId: {
|
|
2410
2557
|
// 平台Id
|
|
2411
2558
|
type: Number,
|
|
@@ -2437,7 +2584,7 @@ defineComponent({
|
|
|
2437
2584
|
components: {},
|
|
2438
2585
|
emits: ["signSuccess"],
|
|
2439
2586
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
2440
|
-
props: propDefine$
|
|
2587
|
+
props: propDefine$1$1,
|
|
2441
2588
|
setup(props, ctx) {
|
|
2442
2589
|
return new CASignInstance2(props, ctx);
|
|
2443
2590
|
}
|
|
@@ -2446,39 +2593,22 @@ class CASignInstance2 extends BaseInstance {
|
|
|
2446
2593
|
// 全局属性
|
|
2447
2594
|
constructor(props, ctx) {
|
|
2448
2595
|
super();
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
// 响应式方法 | xxx = () => {}
|
|
2462
|
-
//#endregion 签字信息 END
|
|
2463
|
-
//#region 执行签字
|
|
2464
|
-
// 私有属性 | private
|
|
2465
|
-
// 响应属性 | ref、reactive、computed、watch
|
|
2466
|
-
__publicField(this, "showSignPwd", ref(false));
|
|
2467
|
-
__publicField(this, "userPin", ref(""));
|
|
2468
|
-
__publicField(this, "signing", ref(false));
|
|
2469
|
-
// 私有方法 | private 方法名() {}
|
|
2470
|
-
// 响应式方法 | xxx = () => {}
|
|
2471
|
-
/**
|
|
2472
|
-
* 显示签字密码输入框
|
|
2473
|
-
*/
|
|
2474
|
-
__publicField(this, "doShowSignPwd", () => {
|
|
2596
|
+
__publicField2(this, "props");
|
|
2597
|
+
__publicField2(this, "ctx");
|
|
2598
|
+
__publicField2(this, "signTaskInfoApi", new SignTaskInfoApi$1());
|
|
2599
|
+
__publicField2(this, "userSignApi", new UserSignApi());
|
|
2600
|
+
__publicField2(this, "userSign");
|
|
2601
|
+
__publicField2(this, "sealKey", "");
|
|
2602
|
+
__publicField2(this, "hasSign", ref(false));
|
|
2603
|
+
__publicField2(this, "signImg", ref(""));
|
|
2604
|
+
__publicField2(this, "showSignPwd", ref(false));
|
|
2605
|
+
__publicField2(this, "userPin", ref(""));
|
|
2606
|
+
__publicField2(this, "signing", ref(false));
|
|
2607
|
+
__publicField2(this, "doShowSignPwd", () => {
|
|
2475
2608
|
this.userPin.value = "";
|
|
2476
2609
|
this.showSignPwd.value = true;
|
|
2477
2610
|
});
|
|
2478
|
-
|
|
2479
|
-
* 执行签字
|
|
2480
|
-
*/
|
|
2481
|
-
__publicField(this, "doRunSeal", async () => {
|
|
2611
|
+
__publicField2(this, "doRunSeal", async () => {
|
|
2482
2612
|
this.signing.value = true;
|
|
2483
2613
|
if (this.utilities.isNull(this.userPin.value)) {
|
|
2484
2614
|
this.message.error("请输入证书密钥");
|
|
@@ -2533,7 +2663,7 @@ class CASignInstance2 extends BaseInstance {
|
|
|
2533
2663
|
}
|
|
2534
2664
|
//#endregion 执行签字 END
|
|
2535
2665
|
}
|
|
2536
|
-
const propDefine$
|
|
2666
|
+
const propDefine$l = {
|
|
2537
2667
|
loadCount: {
|
|
2538
2668
|
// 加载Count方法
|
|
2539
2669
|
type: Function
|
|
@@ -2544,7 +2674,7 @@ defineComponent({
|
|
|
2544
2674
|
components: { SelectPlatform },
|
|
2545
2675
|
emits: ["change"],
|
|
2546
2676
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
2547
|
-
props: propDefine$
|
|
2677
|
+
props: propDefine$l,
|
|
2548
2678
|
setup(props, ctx) {
|
|
2549
2679
|
return new InstitutionTreeInstance2(props, ctx);
|
|
2550
2680
|
}
|
|
@@ -2553,17 +2683,13 @@ class InstitutionTreeInstance2 extends BaseInstance {
|
|
|
2553
2683
|
// 全局属性
|
|
2554
2684
|
constructor(props, ctx) {
|
|
2555
2685
|
super();
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
// 响应属性 | ref、reactive、computed
|
|
2564
|
-
__publicField(this, "treeDatas", ref([]));
|
|
2565
|
-
__publicField(this, "treeGrid", ref());
|
|
2566
|
-
__publicField(this, "treeOption", reactive({
|
|
2686
|
+
__publicField2(this, "props");
|
|
2687
|
+
__publicField2(this, "ctx");
|
|
2688
|
+
__publicField2(this, "institutionTreeApi", new InstitutionTreeApi());
|
|
2689
|
+
__publicField2(this, "selectedPlatform");
|
|
2690
|
+
__publicField2(this, "treeDatas", ref([]));
|
|
2691
|
+
__publicField2(this, "treeGrid", ref());
|
|
2692
|
+
__publicField2(this, "treeOption", reactive({
|
|
2567
2693
|
api: this.institutionTreeApi,
|
|
2568
2694
|
setting: {
|
|
2569
2695
|
border: false,
|
|
@@ -2598,18 +2724,11 @@ class InstitutionTreeInstance2 extends BaseInstance {
|
|
|
2598
2724
|
}
|
|
2599
2725
|
}
|
|
2600
2726
|
}));
|
|
2601
|
-
|
|
2602
|
-
/**
|
|
2603
|
-
* 平台切换
|
|
2604
|
-
*/
|
|
2605
|
-
__publicField(this, "doChangePlatform", (data) => {
|
|
2727
|
+
__publicField2(this, "doChangePlatform", (data) => {
|
|
2606
2728
|
this.selectedPlatform = data;
|
|
2607
2729
|
this.loadInsTree();
|
|
2608
2730
|
});
|
|
2609
|
-
|
|
2610
|
-
* 加载机构树
|
|
2611
|
-
*/
|
|
2612
|
-
__publicField(this, "loadInsTree", () => {
|
|
2731
|
+
__publicField2(this, "loadInsTree", () => {
|
|
2613
2732
|
this.treeGrid.value.loadData(async (option) => {
|
|
2614
2733
|
const apiResult = await this.institutionTreeApi.getInstitutionTrees(this.selectedPlatform.Id);
|
|
2615
2734
|
const datas = this.utilities.parseApiResult(apiResult);
|
|
@@ -2618,11 +2737,7 @@ class InstitutionTreeInstance2 extends BaseInstance {
|
|
|
2618
2737
|
option.success(this.treeDatas.value);
|
|
2619
2738
|
});
|
|
2620
2739
|
});
|
|
2621
|
-
|
|
2622
|
-
* 汇总数据
|
|
2623
|
-
* @returns
|
|
2624
|
-
*/
|
|
2625
|
-
__publicField(this, "loadCount", async () => {
|
|
2740
|
+
__publicField2(this, "loadCount", async () => {
|
|
2626
2741
|
if (this.utilities.isNull(this.props.loadCount)) {
|
|
2627
2742
|
return;
|
|
2628
2743
|
}
|
|
@@ -2641,7 +2756,7 @@ class InstitutionTreeInstance2 extends BaseInstance {
|
|
|
2641
2756
|
}
|
|
2642
2757
|
//#endregion 机构树 END
|
|
2643
2758
|
}
|
|
2644
|
-
const propDefine$
|
|
2759
|
+
const propDefine$k = {
|
|
2645
2760
|
linkParam: {
|
|
2646
2761
|
// 带入的参数
|
|
2647
2762
|
type: String,
|
|
@@ -2653,12 +2768,12 @@ const propDefine$j = {
|
|
|
2653
2768
|
default: "-"
|
|
2654
2769
|
}
|
|
2655
2770
|
};
|
|
2656
|
-
const _sfc_main$
|
|
2771
|
+
const _sfc_main$k = defineComponent({
|
|
2657
2772
|
name: "Module",
|
|
2658
2773
|
components: { SelectPlatform },
|
|
2659
2774
|
emits: ["change"],
|
|
2660
2775
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
2661
|
-
props: propDefine$
|
|
2776
|
+
props: propDefine$k,
|
|
2662
2777
|
setup(props, ctx) {
|
|
2663
2778
|
return new ModuleInstance$1(props, ctx);
|
|
2664
2779
|
}
|
|
@@ -3460,19 +3575,19 @@ let ModuleInstance$1 = class ModuleInstance extends BaseInstance {
|
|
|
3460
3575
|
//#endregion 业务逻辑 END
|
|
3461
3576
|
};
|
|
3462
3577
|
const Module_vue_vue_type_style_index_0_scoped_5a5ef504_lang = "";
|
|
3463
|
-
const _withScopeId$
|
|
3578
|
+
const _withScopeId$5 = (n) => (pushScopeId("data-v-5a5ef504"), n = n(), popScopeId(), n);
|
|
3464
3579
|
const _hoisted_1$i = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
3465
|
-
const _hoisted_2$
|
|
3580
|
+
const _hoisted_2$a = {
|
|
3466
3581
|
class: "import-module",
|
|
3467
3582
|
style: { "height": "650px", "position": "relative" }
|
|
3468
3583
|
};
|
|
3469
|
-
const _hoisted_3$
|
|
3470
|
-
const _hoisted_4$
|
|
3471
|
-
const _hoisted_5$
|
|
3472
|
-
const _hoisted_6$
|
|
3473
|
-
const _hoisted_7$
|
|
3474
|
-
const _hoisted_8$
|
|
3475
|
-
function _sfc_render$
|
|
3584
|
+
const _hoisted_3$9 = { style: { "width": "100%", "height": "100%" } };
|
|
3585
|
+
const _hoisted_4$9 = { style: { "width": "560px", "height": "100%", "float": "left" } };
|
|
3586
|
+
const _hoisted_5$7 = { style: { "height": "calc(100% - 0px)" } };
|
|
3587
|
+
const _hoisted_6$7 = { style: { "width": "calc(100% - 570px)", "height": "100%", "margin-left": "10px", "display": "inline-block" } };
|
|
3588
|
+
const _hoisted_7$5 = { style: { "height": "calc(100% - 0px)" } };
|
|
3589
|
+
const _hoisted_8$5 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "点击选择要放置的位置!", -1));
|
|
3590
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3476
3591
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
3477
3592
|
const _component_Radio = resolveComponent("Radio");
|
|
3478
3593
|
const _component_RadioGroup = resolveComponent("RadioGroup");
|
|
@@ -3610,9 +3725,9 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3610
3725
|
}, 8, ["loading", "onClick"])
|
|
3611
3726
|
]),
|
|
3612
3727
|
default: withCtx(() => [
|
|
3613
|
-
createElementVNode("div", _hoisted_2$
|
|
3614
|
-
createElementVNode("div", _hoisted_3$
|
|
3615
|
-
createElementVNode("div", _hoisted_4$
|
|
3728
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
3729
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
3730
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
3616
3731
|
createVNode(_component_Card, {
|
|
3617
3732
|
"dis-hover": "",
|
|
3618
3733
|
class: "import-module_card"
|
|
@@ -3621,7 +3736,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3621
3736
|
createTextVNode("源平台 - [" + toDisplayString(_ctx.originPlatform.selectedItem.PlatformName) + "] - 模块菜单", 1)
|
|
3622
3737
|
]),
|
|
3623
3738
|
default: withCtx(() => [
|
|
3624
|
-
createElementVNode("div", _hoisted_5$
|
|
3739
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
3625
3740
|
createVNode(_component_NvGrid, {
|
|
3626
3741
|
ref: "originModuleGrid",
|
|
3627
3742
|
option: _ctx.originModuleGridOption
|
|
@@ -3656,7 +3771,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3656
3771
|
_: 1
|
|
3657
3772
|
})
|
|
3658
3773
|
]),
|
|
3659
|
-
createElementVNode("div", _hoisted_6$
|
|
3774
|
+
createElementVNode("div", _hoisted_6$7, [
|
|
3660
3775
|
createVNode(_component_Card, {
|
|
3661
3776
|
"dis-hover": "",
|
|
3662
3777
|
class: "import-module_card"
|
|
@@ -3665,13 +3780,13 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3665
3780
|
createTextVNode("目标平台 - [" + toDisplayString(_ctx.targetPlatform.PlatformName) + "] - 模块菜单", 1)
|
|
3666
3781
|
]),
|
|
3667
3782
|
default: withCtx(() => [
|
|
3668
|
-
createElementVNode("div", _hoisted_7$
|
|
3783
|
+
createElementVNode("div", _hoisted_7$5, [
|
|
3669
3784
|
createVNode(_component_NvGrid, {
|
|
3670
3785
|
ref: "targetModuleGrid",
|
|
3671
3786
|
option: _ctx.targetModuleGridOption
|
|
3672
3787
|
}, {
|
|
3673
3788
|
default: withCtx(() => [
|
|
3674
|
-
_hoisted_8$
|
|
3789
|
+
_hoisted_8$5
|
|
3675
3790
|
]),
|
|
3676
3791
|
_: 1
|
|
3677
3792
|
}, 8, ["option"])
|
|
@@ -3695,8 +3810,8 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3695
3810
|
_: 1
|
|
3696
3811
|
});
|
|
3697
3812
|
}
|
|
3698
|
-
const Module = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3699
|
-
const propDefine$
|
|
3813
|
+
const Module = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-5a5ef504"]]);
|
|
3814
|
+
const propDefine$j = {
|
|
3700
3815
|
linkParam: {
|
|
3701
3816
|
// 带入的参数
|
|
3702
3817
|
type: String,
|
|
@@ -3708,12 +3823,12 @@ const propDefine$i = {
|
|
|
3708
3823
|
default: "-"
|
|
3709
3824
|
}
|
|
3710
3825
|
};
|
|
3711
|
-
const _sfc_main$
|
|
3826
|
+
const _sfc_main$j = defineComponent({
|
|
3712
3827
|
name: "Role",
|
|
3713
3828
|
components: { SelectPlatform },
|
|
3714
3829
|
emits: [""],
|
|
3715
3830
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
3716
|
-
props: propDefine$
|
|
3831
|
+
props: propDefine$j,
|
|
3717
3832
|
setup(props, ctx) {
|
|
3718
3833
|
return new RoleInstance$1(props, ctx);
|
|
3719
3834
|
}
|
|
@@ -4503,15 +4618,15 @@ let RoleInstance$1 = class RoleInstance extends BaseInstance {
|
|
|
4503
4618
|
}
|
|
4504
4619
|
//#endregion 导入角色 END
|
|
4505
4620
|
};
|
|
4506
|
-
const
|
|
4621
|
+
const Role_vue_vue_type_style_index_0_scoped_0f25fe31_lang = "";
|
|
4507
4622
|
const _hoisted_1$h = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
|
|
4508
|
-
const _hoisted_2$
|
|
4623
|
+
const _hoisted_2$9 = {
|
|
4509
4624
|
class: "import-role",
|
|
4510
4625
|
style: { "height": "610px", "position": "relative" }
|
|
4511
4626
|
};
|
|
4512
|
-
const _hoisted_3$
|
|
4513
|
-
const _hoisted_4$
|
|
4514
|
-
function _sfc_render$
|
|
4627
|
+
const _hoisted_3$8 = { style: { "width": "100%", "height": "100%" } };
|
|
4628
|
+
const _hoisted_4$8 = { style: { "height": "530px", "overflow-y": "auto" } };
|
|
4629
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4515
4630
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
4516
4631
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
4517
4632
|
const _component_NvBox = resolveComponent("NvBox");
|
|
@@ -4530,7 +4645,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4530
4645
|
default: withCtx(() => [
|
|
4531
4646
|
createVNode(_component_NvBox, {
|
|
4532
4647
|
width: "100%",
|
|
4533
|
-
title: "角色列表
|
|
4648
|
+
title: "角色列表"
|
|
4534
4649
|
}, {
|
|
4535
4650
|
default: withCtx(() => [
|
|
4536
4651
|
createVNode(_component_NvGrid, {
|
|
@@ -4618,8 +4733,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4618
4733
|
}, 8, ["loading", "onClick"])
|
|
4619
4734
|
]),
|
|
4620
4735
|
default: withCtx(() => [
|
|
4621
|
-
createElementVNode("div", _hoisted_2$
|
|
4622
|
-
createElementVNode("div", _hoisted_3$
|
|
4736
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
4737
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
4623
4738
|
createVNode(_component_NvGrid, {
|
|
4624
4739
|
ref: "originRoleGrid",
|
|
4625
4740
|
option: _ctx.originRoleGridOption
|
|
@@ -4689,7 +4804,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4689
4804
|
}, 8, ["loading", "onClick"])
|
|
4690
4805
|
]),
|
|
4691
4806
|
default: withCtx(() => [
|
|
4692
|
-
createElementVNode("div", _hoisted_4$
|
|
4807
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
4693
4808
|
createVNode(_component_Form, {
|
|
4694
4809
|
ref: "refRoleForm",
|
|
4695
4810
|
model: _ctx.roleFormModel,
|
|
@@ -4711,8 +4826,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4711
4826
|
_: 1
|
|
4712
4827
|
});
|
|
4713
4828
|
}
|
|
4714
|
-
const Role = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4715
|
-
const propDefine$
|
|
4829
|
+
const Role = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-0f25fe31"]]);
|
|
4830
|
+
const propDefine$i = {
|
|
4716
4831
|
linkParam: {
|
|
4717
4832
|
// 带入的参数
|
|
4718
4833
|
type: String,
|
|
@@ -4724,12 +4839,12 @@ const propDefine$h = {
|
|
|
4724
4839
|
default: "-"
|
|
4725
4840
|
}
|
|
4726
4841
|
};
|
|
4727
|
-
const _sfc_main$
|
|
4842
|
+
const _sfc_main$i = defineComponent({
|
|
4728
4843
|
name: "InstitutionType",
|
|
4729
4844
|
components: {},
|
|
4730
4845
|
emits: [""],
|
|
4731
4846
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
4732
|
-
props: propDefine$
|
|
4847
|
+
props: propDefine$i,
|
|
4733
4848
|
setup(props, ctx) {
|
|
4734
4849
|
return new InstitutionTypeInstance(props, ctx);
|
|
4735
4850
|
}
|
|
@@ -4932,7 +5047,7 @@ class InstitutionTypeInstance extends BaseInstance {
|
|
|
4932
5047
|
}
|
|
4933
5048
|
const InstitutionType_vue_vue_type_style_index_0_scoped_947fe129_lang = "";
|
|
4934
5049
|
const _hoisted_1$g = { style: { "height": "350px", "overflow-y": "auto" } };
|
|
4935
|
-
function _sfc_render$
|
|
5050
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4936
5051
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
4937
5052
|
const _component_NvBox = resolveComponent("NvBox");
|
|
4938
5053
|
const _component_NvComForm = resolveComponent("NvComForm");
|
|
@@ -5007,8 +5122,8 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5007
5122
|
_: 1
|
|
5008
5123
|
});
|
|
5009
5124
|
}
|
|
5010
|
-
const InstitutionType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5011
|
-
const propDefine$
|
|
5125
|
+
const InstitutionType = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-947fe129"]]);
|
|
5126
|
+
const propDefine$h = {
|
|
5012
5127
|
linkParam: {
|
|
5013
5128
|
// 带入的参数
|
|
5014
5129
|
type: String,
|
|
@@ -5020,12 +5135,12 @@ const propDefine$g = {
|
|
|
5020
5135
|
default: "-"
|
|
5021
5136
|
}
|
|
5022
5137
|
};
|
|
5023
|
-
const _sfc_main$
|
|
5138
|
+
const _sfc_main$h = defineComponent({
|
|
5024
5139
|
name: "Institution",
|
|
5025
5140
|
components: { SelectPlatform },
|
|
5026
5141
|
emits: [""],
|
|
5027
5142
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
5028
|
-
props: propDefine$
|
|
5143
|
+
props: propDefine$h,
|
|
5029
5144
|
setup(props, ctx) {
|
|
5030
5145
|
return new InstitutionInstance$1(props, ctx);
|
|
5031
5146
|
}
|
|
@@ -5931,15 +6046,15 @@ let InstitutionInstance$1 = class InstitutionInstance extends BaseInstance {
|
|
|
5931
6046
|
};
|
|
5932
6047
|
const Institution_vue_vue_type_style_index_0_scoped_42799ba1_lang = "";
|
|
5933
6048
|
const _hoisted_1$f = { style: { "width": "100%", "height": "100%", "position": "relative" } };
|
|
5934
|
-
const _hoisted_2$
|
|
5935
|
-
const _hoisted_3$
|
|
6049
|
+
const _hoisted_2$8 = { style: { "height": "500px", "overflow-y": "auto" } };
|
|
6050
|
+
const _hoisted_3$7 = {
|
|
5936
6051
|
class: "import-institution",
|
|
5937
6052
|
style: { "height": "600px", "overflow-y": "auto", "position": "relative" }
|
|
5938
6053
|
};
|
|
5939
|
-
const _hoisted_4$
|
|
5940
|
-
const _hoisted_5$
|
|
5941
|
-
const _hoisted_6$
|
|
5942
|
-
function _sfc_render$
|
|
6054
|
+
const _hoisted_4$7 = { style: { "width": "100%", "height": "100%" } };
|
|
6055
|
+
const _hoisted_5$6 = { style: { "height": "calc(100%)" } };
|
|
6056
|
+
const _hoisted_6$6 = { style: { "height": "610px", "overflow-y": "auto", "position": "relative" } };
|
|
6057
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5943
6058
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
5944
6059
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
5945
6060
|
const _component_NvBox = resolveComponent("NvBox");
|
|
@@ -6068,7 +6183,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6068
6183
|
}, 8, ["loading", "onClick"])
|
|
6069
6184
|
]),
|
|
6070
6185
|
default: withCtx(() => [
|
|
6071
|
-
createElementVNode("div", _hoisted_2$
|
|
6186
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
6072
6187
|
createVNode(_component_Form, {
|
|
6073
6188
|
model: _ctx.institutionFormModel,
|
|
6074
6189
|
"label-width": 90
|
|
@@ -6118,9 +6233,9 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6118
6233
|
}, 8, ["loading", "onClick"])
|
|
6119
6234
|
]),
|
|
6120
6235
|
default: withCtx(() => [
|
|
6121
|
-
createElementVNode("div", _hoisted_3$
|
|
6122
|
-
createElementVNode("div", _hoisted_4$
|
|
6123
|
-
createElementVNode("div", _hoisted_5$
|
|
6236
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
6237
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
6238
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
6124
6239
|
createVNode(_component_NvGrid, {
|
|
6125
6240
|
ref: "originInstitutionGrid",
|
|
6126
6241
|
option: _ctx.originInstitutionGridOption
|
|
@@ -6191,7 +6306,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6191
6306
|
}, 8, ["loading", "onClick"])
|
|
6192
6307
|
]),
|
|
6193
6308
|
default: withCtx(() => [
|
|
6194
|
-
createElementVNode("div", _hoisted_6$
|
|
6309
|
+
createElementVNode("div", _hoisted_6$6, [
|
|
6195
6310
|
createVNode(_component_NvGrid, {
|
|
6196
6311
|
ref: "roleGrid",
|
|
6197
6312
|
option: _ctx.roleGridOption
|
|
@@ -6207,14 +6322,14 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6207
6322
|
_: 1
|
|
6208
6323
|
});
|
|
6209
6324
|
}
|
|
6210
|
-
const Institution = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6211
|
-
const propDefine$
|
|
6212
|
-
const _sfc_main$
|
|
6325
|
+
const Institution = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-42799ba1"]]);
|
|
6326
|
+
const propDefine$g = {};
|
|
6327
|
+
const _sfc_main$g = defineComponent({
|
|
6213
6328
|
name: "LoginLog",
|
|
6214
6329
|
components: {},
|
|
6215
6330
|
emits: [""],
|
|
6216
6331
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
6217
|
-
props: propDefine$
|
|
6332
|
+
props: propDefine$g,
|
|
6218
6333
|
setup(props, ctx) {
|
|
6219
6334
|
return new LoginLogInstance$1(props, ctx);
|
|
6220
6335
|
}
|
|
@@ -6320,7 +6435,7 @@ let LoginLogInstance$1 = class LoginLogInstance extends BaseInstance {
|
|
|
6320
6435
|
};
|
|
6321
6436
|
const LoginLog_vue_vue_type_style_index_0_scoped_4e2e0184_lang = "";
|
|
6322
6437
|
const _hoisted_1$e = { class: "loginLog" };
|
|
6323
|
-
function _sfc_render$
|
|
6438
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6324
6439
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
6325
6440
|
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
6326
6441
|
createVNode(_component_NvGrid, {
|
|
@@ -6329,8 +6444,56 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6329
6444
|
}, null, 8, ["option"])
|
|
6330
6445
|
]);
|
|
6331
6446
|
}
|
|
6332
|
-
const LoginLog$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6333
|
-
|
|
6447
|
+
const LoginLog$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-4e2e0184"]]);
|
|
6448
|
+
class CASignBaseApi2 extends BaseOldApi {
|
|
6449
|
+
get ProxyName() {
|
|
6450
|
+
return "CASignApi";
|
|
6451
|
+
}
|
|
6452
|
+
}
|
|
6453
|
+
class SignTaskInfoApi2 extends CASignBaseApi2 {
|
|
6454
|
+
get ControllerName() {
|
|
6455
|
+
return "SignTaskInfo";
|
|
6456
|
+
}
|
|
6457
|
+
/**
|
|
6458
|
+
* 验证签章信息
|
|
6459
|
+
* @param taskKey
|
|
6460
|
+
* @returns
|
|
6461
|
+
*/
|
|
6462
|
+
SignVerification(taskKey) {
|
|
6463
|
+
return this.send({ taskKey }, "SignVerification", Methods.GET);
|
|
6464
|
+
}
|
|
6465
|
+
/**
|
|
6466
|
+
* 获取印章信息
|
|
6467
|
+
* @param businessKey
|
|
6468
|
+
* @param userSealKey
|
|
6469
|
+
* @returns
|
|
6470
|
+
*/
|
|
6471
|
+
GetUserSealCloudInfo(businessKey, userSealKey) {
|
|
6472
|
+
return this.send({ businessKey, userSealKey }, "GetUserSealCloudInfo", Methods.GET);
|
|
6473
|
+
}
|
|
6474
|
+
/**
|
|
6475
|
+
* 云签签章
|
|
6476
|
+
* @param businessKey
|
|
6477
|
+
* @param userSealKey
|
|
6478
|
+
* @param userPin
|
|
6479
|
+
* @param signContent
|
|
6480
|
+
* @returns
|
|
6481
|
+
*/
|
|
6482
|
+
SendCloudSignTask(businessKey, userSealKey, userPin, signContent) {
|
|
6483
|
+
return this.send({ BusinessKey: businessKey, UserSealKey: userSealKey, UserPin: userPin, SignContent: signContent }, "SendCloudSignTask", Methods.POST);
|
|
6484
|
+
}
|
|
6485
|
+
/**
|
|
6486
|
+
* 云签验章
|
|
6487
|
+
* @param businessKey
|
|
6488
|
+
* @param taskKey
|
|
6489
|
+
* @param SignContent
|
|
6490
|
+
* @returns
|
|
6491
|
+
*/
|
|
6492
|
+
SendCloudVerificationSign(businessKey, taskKey, SignContent) {
|
|
6493
|
+
return this.send({ businessKey, taskKey, SignContent }, "SendCloudVerificationSign", Methods.GET);
|
|
6494
|
+
}
|
|
6495
|
+
}
|
|
6496
|
+
const propDefine$f = {
|
|
6334
6497
|
linkParam: {
|
|
6335
6498
|
// 带入的参数
|
|
6336
6499
|
type: String,
|
|
@@ -6342,12 +6505,12 @@ const propDefine$e = {
|
|
|
6342
6505
|
default: "-"
|
|
6343
6506
|
}
|
|
6344
6507
|
};
|
|
6345
|
-
const _sfc_main$
|
|
6508
|
+
const _sfc_main$f = defineComponent({
|
|
6346
6509
|
name: "Userinfor",
|
|
6347
6510
|
components: { SelectPlatform, LoginLog: LoginLog$1, BaseLogin },
|
|
6348
6511
|
emits: [""],
|
|
6349
6512
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
6350
|
-
props: propDefine$
|
|
6513
|
+
props: propDefine$f,
|
|
6351
6514
|
setup(props, ctx) {
|
|
6352
6515
|
return new UserinforInstance$1(props, ctx);
|
|
6353
6516
|
}
|
|
@@ -6367,7 +6530,7 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
|
|
|
6367
6530
|
__publicField(this, "roleApi", new RoleApi());
|
|
6368
6531
|
__publicField(this, "oauthApi", new OAuthApi());
|
|
6369
6532
|
__publicField(this, "userSignApi", new UserSignApi());
|
|
6370
|
-
__publicField(this, "signTaskInfoApi", new
|
|
6533
|
+
__publicField(this, "signTaskInfoApi", new SignTaskInfoApi2());
|
|
6371
6534
|
// 全局属性
|
|
6372
6535
|
__publicField(this, "selectedPlatform");
|
|
6373
6536
|
//#region 组织机构树
|
|
@@ -7380,24 +7543,24 @@ let UserinforInstance$1 = class UserinforInstance extends BaseInstance {
|
|
|
7380
7543
|
//#endregion 重置密码 END
|
|
7381
7544
|
};
|
|
7382
7545
|
const Userinfor_vue_vue_type_style_index_0_scoped_3969fae6_lang = "";
|
|
7383
|
-
const _withScopeId$
|
|
7546
|
+
const _withScopeId$4 = (n) => (pushScopeId("data-v-3969fae6"), n = n(), popScopeId(), n);
|
|
7384
7547
|
const _hoisted_1$d = { class: "instree-search" };
|
|
7385
|
-
const _hoisted_2$
|
|
7386
|
-
const _hoisted_3$
|
|
7387
|
-
const _hoisted_4$
|
|
7548
|
+
const _hoisted_2$7 = { class: "instree-list" };
|
|
7549
|
+
const _hoisted_3$6 = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
7550
|
+
const _hoisted_4$6 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
|
|
7388
7551
|
/* @__PURE__ */ createElementVNode("div", { style: { "padding-bottom": "8px" } }, "用户账号:手机号必填。在新设备登录时,需进行短信验证。"),
|
|
7389
7552
|
/* @__PURE__ */ createElementVNode("div", null, "内部账号:手机号可不填。")
|
|
7390
7553
|
], -1));
|
|
7391
|
-
const _hoisted_5$
|
|
7392
|
-
const _hoisted_6$
|
|
7393
|
-
const _hoisted_7$
|
|
7394
|
-
const _hoisted_8$
|
|
7395
|
-
const _hoisted_9$
|
|
7396
|
-
const _hoisted_10$
|
|
7397
|
-
const _hoisted_11$
|
|
7554
|
+
const _hoisted_5$5 = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
7555
|
+
const _hoisted_6$5 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选绑定用户角色!", -1));
|
|
7556
|
+
const _hoisted_7$4 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
7557
|
+
const _hoisted_8$4 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选需要引入的用户!", -1));
|
|
7558
|
+
const _hoisted_9$3 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
7559
|
+
const _hoisted_10$3 = { style: { "display": "none" } };
|
|
7560
|
+
const _hoisted_11$3 = { style: { "height": "400px", "overflow-y": "auto" } };
|
|
7398
7561
|
const _hoisted_12$1 = ["src"];
|
|
7399
7562
|
const _hoisted_13$1 = ["src"];
|
|
7400
|
-
function _sfc_render$
|
|
7563
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7401
7564
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
7402
7565
|
const _component_Tree = resolveComponent("Tree");
|
|
7403
7566
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -7447,7 +7610,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7447
7610
|
showLabel: false
|
|
7448
7611
|
}, null, 8, ["onSelect"])
|
|
7449
7612
|
]),
|
|
7450
|
-
createElementVNode("div", _hoisted_2$
|
|
7613
|
+
createElementVNode("div", _hoisted_2$7, [
|
|
7451
7614
|
createVNode(_component_Tree, {
|
|
7452
7615
|
data: _ctx.institutionTree,
|
|
7453
7616
|
render: _ctx.renderInsTreeContent,
|
|
@@ -7510,7 +7673,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7510
7673
|
}, 8, ["loading", "onClick"])
|
|
7511
7674
|
]),
|
|
7512
7675
|
default: withCtx(() => [
|
|
7513
|
-
createElementVNode("div", _hoisted_3$
|
|
7676
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
7514
7677
|
createVNode(_component_Form, {
|
|
7515
7678
|
ref: "userForm",
|
|
7516
7679
|
model: _ctx.userFormModel,
|
|
@@ -7526,7 +7689,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7526
7689
|
]),
|
|
7527
7690
|
_: 1
|
|
7528
7691
|
}, 8, ["model", "rules"]),
|
|
7529
|
-
_hoisted_4$
|
|
7692
|
+
_hoisted_4$6
|
|
7530
7693
|
])
|
|
7531
7694
|
]),
|
|
7532
7695
|
_: 1
|
|
@@ -7563,13 +7726,13 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7563
7726
|
}, 8, ["loading", "onClick"])
|
|
7564
7727
|
]),
|
|
7565
7728
|
default: withCtx(() => [
|
|
7566
|
-
createElementVNode("div", _hoisted_5$
|
|
7729
|
+
createElementVNode("div", _hoisted_5$5, [
|
|
7567
7730
|
createVNode(_component_NvGrid, {
|
|
7568
7731
|
ref: "userRoleGrid",
|
|
7569
7732
|
option: _ctx.userRoleGridOption
|
|
7570
7733
|
}, {
|
|
7571
7734
|
default: withCtx(() => [
|
|
7572
|
-
_hoisted_6$
|
|
7735
|
+
_hoisted_6$5
|
|
7573
7736
|
]),
|
|
7574
7737
|
_: 1
|
|
7575
7738
|
}, 8, ["option"])
|
|
@@ -7609,13 +7772,13 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7609
7772
|
}, 8, ["loading", "onClick"])
|
|
7610
7773
|
]),
|
|
7611
7774
|
default: withCtx(() => [
|
|
7612
|
-
createElementVNode("div", _hoisted_7$
|
|
7775
|
+
createElementVNode("div", _hoisted_7$4, [
|
|
7613
7776
|
createVNode(_component_NvGrid, {
|
|
7614
7777
|
ref: "otherUserGrid",
|
|
7615
7778
|
option: _ctx.otherUserGridOption
|
|
7616
7779
|
}, {
|
|
7617
7780
|
default: withCtx(() => [
|
|
7618
|
-
_hoisted_8$
|
|
7781
|
+
_hoisted_8$4
|
|
7619
7782
|
]),
|
|
7620
7783
|
_: 1
|
|
7621
7784
|
}, 8, ["option"])
|
|
@@ -7645,7 +7808,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7645
7808
|
})
|
|
7646
7809
|
]),
|
|
7647
7810
|
default: withCtx(() => [
|
|
7648
|
-
createElementVNode("div", _hoisted_9$
|
|
7811
|
+
createElementVNode("div", _hoisted_9$3, [
|
|
7649
7812
|
createVNode(_component_LoginLog, { ref: "loginLogRef" }, null, 512)
|
|
7650
7813
|
])
|
|
7651
7814
|
]),
|
|
@@ -7656,7 +7819,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7656
7819
|
fix: "",
|
|
7657
7820
|
show: _ctx.logining
|
|
7658
7821
|
}, null, 8, ["show"]),
|
|
7659
|
-
createElementVNode("div", _hoisted_10$
|
|
7822
|
+
createElementVNode("div", _hoisted_10$3, [
|
|
7660
7823
|
createVNode(_component_BaseLogin, {
|
|
7661
7824
|
ref: "loginRef",
|
|
7662
7825
|
autoLogin: false
|
|
@@ -7694,7 +7857,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7694
7857
|
}, 8, ["loading", "onClick"])
|
|
7695
7858
|
]),
|
|
7696
7859
|
default: withCtx(() => [
|
|
7697
|
-
createElementVNode("div", _hoisted_11$
|
|
7860
|
+
createElementVNode("div", _hoisted_11$3, [
|
|
7698
7861
|
createVNode(_component_Form, {
|
|
7699
7862
|
ref: "userSignForm",
|
|
7700
7863
|
model: _ctx.userSignFormModel,
|
|
@@ -7759,8 +7922,8 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7759
7922
|
_: 1
|
|
7760
7923
|
});
|
|
7761
7924
|
}
|
|
7762
|
-
const Userinfor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7763
|
-
const propDefine$
|
|
7925
|
+
const Userinfor = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-3969fae6"]]);
|
|
7926
|
+
const propDefine$e = {
|
|
7764
7927
|
linkParam: {
|
|
7765
7928
|
// 带入的参数
|
|
7766
7929
|
type: String,
|
|
@@ -7772,12 +7935,12 @@ const propDefine$d = {
|
|
|
7772
7935
|
default: "-"
|
|
7773
7936
|
}
|
|
7774
7937
|
};
|
|
7775
|
-
const _sfc_main$
|
|
7938
|
+
const _sfc_main$e = defineComponent({
|
|
7776
7939
|
name: "Enterprise",
|
|
7777
7940
|
components: { SelectPlatform },
|
|
7778
7941
|
emits: [""],
|
|
7779
7942
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
7780
|
-
props: propDefine$
|
|
7943
|
+
props: propDefine$e,
|
|
7781
7944
|
setup(props, ctx) {
|
|
7782
7945
|
return new EnterpriseInstance$1(props, ctx);
|
|
7783
7946
|
}
|
|
@@ -8165,7 +8328,7 @@ let EnterpriseInstance$1 = class EnterpriseInstance extends BaseInstance {
|
|
|
8165
8328
|
};
|
|
8166
8329
|
const Enterprise_vue_vue_type_style_index_0_scoped_58aa3e77_lang = "";
|
|
8167
8330
|
const _hoisted_1$c = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
8168
|
-
function _sfc_render$
|
|
8331
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8169
8332
|
const _component_SelectPlatform = resolveComponent("SelectPlatform");
|
|
8170
8333
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
8171
8334
|
const _component_NvBox = resolveComponent("NvBox");
|
|
@@ -8256,7 +8419,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8256
8419
|
_: 1
|
|
8257
8420
|
});
|
|
8258
8421
|
}
|
|
8259
|
-
const Enterprise = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8422
|
+
const Enterprise = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-58aa3e77"]]);
|
|
8260
8423
|
class DBCenterBaseApi extends BaseApi {
|
|
8261
8424
|
get ProxyName() {
|
|
8262
8425
|
return "CalcPythonApi";
|
|
@@ -8286,7 +8449,7 @@ class CorePlatformConfigApi extends DBCenterBaseApi {
|
|
|
8286
8449
|
this.addHeader("tableName", "core_platform_config");
|
|
8287
8450
|
}
|
|
8288
8451
|
}
|
|
8289
|
-
const propDefine$
|
|
8452
|
+
const propDefine$d = {
|
|
8290
8453
|
modelValue: {
|
|
8291
8454
|
// 是否显示
|
|
8292
8455
|
type: Boolean,
|
|
@@ -8309,12 +8472,12 @@ const propDefine$c = {
|
|
|
8309
8472
|
default: 0
|
|
8310
8473
|
}
|
|
8311
8474
|
};
|
|
8312
|
-
const _sfc_main$
|
|
8475
|
+
const _sfc_main$d = defineComponent({
|
|
8313
8476
|
name: "FilePreview",
|
|
8314
8477
|
components: {},
|
|
8315
8478
|
emits: ["update:modelValue"],
|
|
8316
8479
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
8317
|
-
props: propDefine$
|
|
8480
|
+
props: propDefine$d,
|
|
8318
8481
|
setup(props, ctx) {
|
|
8319
8482
|
return new FilePreviewInstance(props, ctx);
|
|
8320
8483
|
}
|
|
@@ -8420,8 +8583,8 @@ class FilePreviewInstance extends BaseInstance {
|
|
|
8420
8583
|
}
|
|
8421
8584
|
const FilePreview_vue_vue_type_style_index_0_scoped_33abffa5_lang = "";
|
|
8422
8585
|
const _hoisted_1$b = { class: "ifr-container" };
|
|
8423
|
-
const _hoisted_2$
|
|
8424
|
-
function _sfc_render$
|
|
8586
|
+
const _hoisted_2$6 = ["src", "title"];
|
|
8587
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8425
8588
|
const _component_ImagePreview = resolveComponent("ImagePreview");
|
|
8426
8589
|
const _component_Modal = resolveComponent("Modal");
|
|
8427
8590
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -8449,15 +8612,15 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8449
8612
|
src: _ctx.ifrUrl,
|
|
8450
8613
|
class: "ifr-content",
|
|
8451
8614
|
title: _ctx.fileInfo.fileInfo
|
|
8452
|
-
}, " ", 8, _hoisted_2$
|
|
8615
|
+
}, " ", 8, _hoisted_2$6)
|
|
8453
8616
|
])
|
|
8454
8617
|
]),
|
|
8455
8618
|
_: 1
|
|
8456
8619
|
}, 8, ["modelValue", "title", "onOnVisibleChange"])
|
|
8457
8620
|
], 64);
|
|
8458
8621
|
}
|
|
8459
|
-
const filePreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8460
|
-
const propDefine$
|
|
8622
|
+
const filePreview = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-33abffa5"]]);
|
|
8623
|
+
const propDefine$c = {
|
|
8461
8624
|
linkParam: {
|
|
8462
8625
|
// 带入的参数
|
|
8463
8626
|
type: String,
|
|
@@ -8517,14 +8680,19 @@ const propDefine$b = {
|
|
|
8517
8680
|
// 单文件
|
|
8518
8681
|
type: Boolean,
|
|
8519
8682
|
default: false
|
|
8683
|
+
},
|
|
8684
|
+
nullMsg: {
|
|
8685
|
+
//只读状态且无附件信息下的显示
|
|
8686
|
+
type: String,
|
|
8687
|
+
default: "暂无附件"
|
|
8520
8688
|
}
|
|
8521
8689
|
};
|
|
8522
|
-
const _sfc_main$
|
|
8690
|
+
const _sfc_main$c = defineComponent({
|
|
8523
8691
|
name: "UploadFile",
|
|
8524
8692
|
components: { filePreview },
|
|
8525
8693
|
emits: ["success", "returnFileList"],
|
|
8526
8694
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
8527
|
-
props: propDefine$
|
|
8695
|
+
props: propDefine$c,
|
|
8528
8696
|
setup(props, ctx) {
|
|
8529
8697
|
return new UploadFileInstance(props, ctx);
|
|
8530
8698
|
}
|
|
@@ -8789,6 +8957,7 @@ class UploadFileInstance extends BaseInstance {
|
|
|
8789
8957
|
* @param fileInfo
|
|
8790
8958
|
*/
|
|
8791
8959
|
__publicField(this, "doView", (fileInfo) => {
|
|
8960
|
+
debugger;
|
|
8792
8961
|
this.previewFileInfo = fileInfo;
|
|
8793
8962
|
this.previewVisible.value = true;
|
|
8794
8963
|
this.previewIndex.value = fileInfo.PreviewIndex;
|
|
@@ -8852,6 +9021,7 @@ class UploadFileInstance extends BaseInstance {
|
|
|
8852
9021
|
*/
|
|
8853
9022
|
setPreviewList() {
|
|
8854
9023
|
let index2 = 0;
|
|
9024
|
+
this.previewList.value = [];
|
|
8855
9025
|
for (const fileInfo of this.fileList.value) {
|
|
8856
9026
|
if (this.isImage(fileInfo)) {
|
|
8857
9027
|
fileInfo.PreviewIndex = index2;
|
|
@@ -8862,14 +9032,40 @@ class UploadFileInstance extends BaseInstance {
|
|
|
8862
9032
|
}
|
|
8863
9033
|
//#endregion 业务逻辑 文件预览 END
|
|
8864
9034
|
}
|
|
8865
|
-
const
|
|
9035
|
+
const UploadFile_vue_vue_type_style_index_0_scoped_43bf6b9a_lang = "";
|
|
9036
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-43bf6b9a"), n = n(), popScopeId(), n);
|
|
8866
9037
|
const _hoisted_1$a = { class: "uploadFile" };
|
|
8867
|
-
const _hoisted_2$
|
|
8868
|
-
const _hoisted_3$
|
|
8869
|
-
const _hoisted_4$
|
|
8870
|
-
const _hoisted_5$
|
|
8871
|
-
|
|
8872
|
-
|
|
9038
|
+
const _hoisted_2$5 = ["onClick", "title"];
|
|
9039
|
+
const _hoisted_3$5 = { class: "file-upload-list-cover" };
|
|
9040
|
+
const _hoisted_4$5 = { class: "file-upload-btn" };
|
|
9041
|
+
const _hoisted_5$4 = {
|
|
9042
|
+
key: 1,
|
|
9043
|
+
class: "nv-flex",
|
|
9044
|
+
style: { "color": "#949494", "border": "1px dashed #dcdee2", "height": "60px", "padding": "0 20px", "font-size": "16px", "justify-content": "center" }
|
|
9045
|
+
};
|
|
9046
|
+
const _hoisted_6$4 = {
|
|
9047
|
+
class: "nv-flex",
|
|
9048
|
+
style: { "width": "40px", "margin-right": "6px" }
|
|
9049
|
+
};
|
|
9050
|
+
const _hoisted_7$3 = {
|
|
9051
|
+
t: "1706683071705",
|
|
9052
|
+
class: "icon",
|
|
9053
|
+
viewBox: "0 0 1566 1024",
|
|
9054
|
+
version: "1.1",
|
|
9055
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9056
|
+
"p-id": "4559",
|
|
9057
|
+
style: { "fill": "currentColor" }
|
|
9058
|
+
};
|
|
9059
|
+
const _hoisted_8$3 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("path", {
|
|
9060
|
+
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",
|
|
9061
|
+
"p-id": "4560"
|
|
9062
|
+
}, null, -1));
|
|
9063
|
+
const _hoisted_9$2 = [
|
|
9064
|
+
_hoisted_8$3
|
|
9065
|
+
];
|
|
9066
|
+
const _hoisted_10$2 = { class: "file-upload-list-cover" };
|
|
9067
|
+
const _hoisted_11$2 = { class: "file-upload-btn" };
|
|
9068
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8873
9069
|
const _component_Image = resolveComponent("Image");
|
|
8874
9070
|
const _component_Icon = resolveComponent("Icon");
|
|
8875
9071
|
const _component_Space = resolveComponent("Space");
|
|
@@ -8886,7 +9082,9 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8886
9082
|
default: withCtx(() => [
|
|
8887
9083
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getGroupFiles(groupName), (item, index2) => {
|
|
8888
9084
|
return openBlock(), createElementBlock("div", {
|
|
8889
|
-
class: normalizeClass(
|
|
9085
|
+
class: normalizeClass(
|
|
9086
|
+
_ctx.isImage(item) ? "file-upload-list file-upload-list-bs" : "file-upload-list"
|
|
9087
|
+
)
|
|
8890
9088
|
}, [
|
|
8891
9089
|
createElementVNode("div", {
|
|
8892
9090
|
class: "file-upload-list-content",
|
|
@@ -8899,7 +9097,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8899
9097
|
width: "100%",
|
|
8900
9098
|
height: "100%"
|
|
8901
9099
|
}, null, 8, ["src"]),
|
|
8902
|
-
createElementVNode("div", _hoisted_3$
|
|
9100
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
8903
9101
|
createVNode(_component_Space, null, {
|
|
8904
9102
|
default: withCtx(() => [
|
|
8905
9103
|
createVNode(_component_Icon, {
|
|
@@ -8917,7 +9115,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8917
9115
|
_: 2
|
|
8918
9116
|
}, 1024)
|
|
8919
9117
|
])
|
|
8920
|
-
], 8, _hoisted_2$
|
|
9118
|
+
], 8, _hoisted_2$5)
|
|
8921
9119
|
], 2);
|
|
8922
9120
|
}), 256)),
|
|
8923
9121
|
!_ctx.readonly ? (openBlock(), createBlock(_component_Upload, {
|
|
@@ -8940,7 +9138,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8940
9138
|
style: { "display": "inline-block", "width": "78px" }
|
|
8941
9139
|
}, {
|
|
8942
9140
|
default: withCtx(() => [
|
|
8943
|
-
createElementVNode("div", _hoisted_4$
|
|
9141
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
8944
9142
|
createVNode(_component_Icon, {
|
|
8945
9143
|
type: "ios-camera",
|
|
8946
9144
|
size: "20"
|
|
@@ -8948,7 +9146,13 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8948
9146
|
])
|
|
8949
9147
|
]),
|
|
8950
9148
|
_: 2
|
|
8951
|
-
}, 1032, ["multiple", "format", "max-size", "action", "headers", "data", "on-success", "on-format-error", "on-exceeded-size", "before-upload"])) : createCommentVNode("", true)
|
|
9149
|
+
}, 1032, ["multiple", "format", "max-size", "action", "headers", "data", "on-success", "on-format-error", "on-exceeded-size", "before-upload"])) : createCommentVNode("", true),
|
|
9150
|
+
_ctx.readonly && _ctx.fileList.length == 0 ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
9151
|
+
createElementVNode("i", _hoisted_6$4, [
|
|
9152
|
+
(openBlock(), createElementBlock("svg", _hoisted_7$3, _hoisted_9$2))
|
|
9153
|
+
]),
|
|
9154
|
+
createElementVNode("div", null, toDisplayString(_ctx.nullMsg), 1)
|
|
9155
|
+
])) : createCommentVNode("", true)
|
|
8952
9156
|
]),
|
|
8953
9157
|
_: 2
|
|
8954
9158
|
}, [
|
|
@@ -8973,7 +9177,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8973
9177
|
width: "100%",
|
|
8974
9178
|
height: "100%"
|
|
8975
9179
|
}, null, 8, ["src"]),
|
|
8976
|
-
createElementVNode("div",
|
|
9180
|
+
createElementVNode("div", _hoisted_10$2, [
|
|
8977
9181
|
createVNode(_component_Space, null, {
|
|
8978
9182
|
default: withCtx(() => [
|
|
8979
9183
|
createVNode(_component_Icon, {
|
|
@@ -9016,7 +9220,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9016
9220
|
style: { "display": "inline-block", "width": "78px" }
|
|
9017
9221
|
}, {
|
|
9018
9222
|
default: withCtx(() => [
|
|
9019
|
-
createElementVNode("div",
|
|
9223
|
+
createElementVNode("div", _hoisted_11$2, [
|
|
9020
9224
|
createVNode(_component_Icon, {
|
|
9021
9225
|
type: "ios-camera",
|
|
9022
9226
|
size: "20"
|
|
@@ -9042,7 +9246,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9042
9246
|
}, null, 8, ["modelValue", "preview-list", "preview-index", "file-info"])
|
|
9043
9247
|
]);
|
|
9044
9248
|
}
|
|
9045
|
-
const UploadFile = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9249
|
+
const UploadFile = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-43bf6b9a"]]);
|
|
9046
9250
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
9047
9251
|
function getDefaultExportFromCjs(x) {
|
|
9048
9252
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -23374,7 +23578,7 @@ const QuillEditor = defineComponent({
|
|
|
23374
23578
|
});
|
|
23375
23579
|
const vueQuill_snow = "";
|
|
23376
23580
|
const vueQuill_bubble = "";
|
|
23377
|
-
const propDefine$
|
|
23581
|
+
const propDefine$b = {
|
|
23378
23582
|
modelValue: {
|
|
23379
23583
|
default: "",
|
|
23380
23584
|
type: String
|
|
@@ -23386,16 +23590,20 @@ const propDefine$a = {
|
|
|
23386
23590
|
readonly: {
|
|
23387
23591
|
type: Boolean,
|
|
23388
23592
|
default: false
|
|
23593
|
+
},
|
|
23594
|
+
border: {
|
|
23595
|
+
type: Boolean,
|
|
23596
|
+
default: true
|
|
23389
23597
|
}
|
|
23390
23598
|
};
|
|
23391
|
-
const _sfc_main$
|
|
23599
|
+
const _sfc_main$b = defineComponent({
|
|
23392
23600
|
name: "TextEditor",
|
|
23393
23601
|
components: {
|
|
23394
23602
|
QuillEditor
|
|
23395
23603
|
},
|
|
23396
23604
|
emits: ["update:modelValue", "textChange"],
|
|
23397
23605
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
23398
|
-
props: propDefine$
|
|
23606
|
+
props: propDefine$b,
|
|
23399
23607
|
setup(props, ctx) {
|
|
23400
23608
|
return new TextEditor$1(props, ctx);
|
|
23401
23609
|
}
|
|
@@ -23444,6 +23652,13 @@ let TextEditor$1 = class TextEditor extends BaseInstance {
|
|
|
23444
23652
|
this.ctx.emit("update:modelValue", this.content.value);
|
|
23445
23653
|
this.ctx.emit("textChange", this.content.value);
|
|
23446
23654
|
});
|
|
23655
|
+
/**
|
|
23656
|
+
* 获取长文本
|
|
23657
|
+
* @returns
|
|
23658
|
+
*/
|
|
23659
|
+
__publicField(this, "getText", () => {
|
|
23660
|
+
return this.QuillEditorRef.value.getHTML();
|
|
23661
|
+
});
|
|
23447
23662
|
/**
|
|
23448
23663
|
* 保存长文本
|
|
23449
23664
|
*/
|
|
@@ -23506,11 +23721,13 @@ let TextEditor$1 = class TextEditor extends BaseInstance {
|
|
|
23506
23721
|
}
|
|
23507
23722
|
//#endregion 业务逻辑 END
|
|
23508
23723
|
};
|
|
23509
|
-
const
|
|
23510
|
-
|
|
23511
|
-
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23724
|
+
const TextEditor_vue_vue_type_style_index_0_scoped_3d4d07e3_lang = "";
|
|
23725
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23512
23726
|
const _component_QuillEditor = resolveComponent("QuillEditor");
|
|
23513
|
-
return openBlock(), createElementBlock("div",
|
|
23727
|
+
return openBlock(), createElementBlock("div", {
|
|
23728
|
+
style: { "height": "100%" },
|
|
23729
|
+
class: normalizeClass({ "text-edit-border": _ctx.border && _ctx.readonly })
|
|
23730
|
+
}, [
|
|
23514
23731
|
_ctx.componentShow ? (openBlock(), createBlock(_component_QuillEditor, {
|
|
23515
23732
|
key: 0,
|
|
23516
23733
|
content: _ctx.content,
|
|
@@ -23522,10 +23739,10 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23522
23739
|
ref: "QuillEditorRef",
|
|
23523
23740
|
options: _ctx.options
|
|
23524
23741
|
}, null, 8, ["content", "readOnly", "theme", "onTextChange", "options"])) : createCommentVNode("", true)
|
|
23525
|
-
]);
|
|
23742
|
+
], 2);
|
|
23526
23743
|
}
|
|
23527
|
-
const TextEditor2 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23528
|
-
const propDefine$
|
|
23744
|
+
const TextEditor2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-3d4d07e3"]]);
|
|
23745
|
+
const propDefine$a = {
|
|
23529
23746
|
onlyView: {
|
|
23530
23747
|
// 是否只读
|
|
23531
23748
|
type: Boolean,
|
|
@@ -23543,11 +23760,11 @@ const propDefine$9 = {
|
|
|
23543
23760
|
}
|
|
23544
23761
|
}
|
|
23545
23762
|
};
|
|
23546
|
-
const _sfc_main$
|
|
23763
|
+
const _sfc_main$a = defineComponent({
|
|
23547
23764
|
name: "NvComFormUp",
|
|
23548
23765
|
components: { UploadFile, TextEditor: TextEditor2 },
|
|
23549
|
-
emits: [""],
|
|
23550
|
-
props: propDefine$
|
|
23766
|
+
emits: ["textChange"],
|
|
23767
|
+
props: propDefine$a,
|
|
23551
23768
|
setup(props, ctx) {
|
|
23552
23769
|
return new ComFormInstance(props, ctx);
|
|
23553
23770
|
}
|
|
@@ -23588,12 +23805,25 @@ class ComFormInstance extends BaseInstance {
|
|
|
23588
23805
|
__publicField(this, "deleteTextDataByToken", async (Token) => {
|
|
23589
23806
|
this.textEditorRef.value.deleteTextDataByToken(Token);
|
|
23590
23807
|
});
|
|
23808
|
+
/**
|
|
23809
|
+
* 获取长文本
|
|
23810
|
+
*/
|
|
23811
|
+
__publicField(this, "getText", () => {
|
|
23812
|
+
return this.textEditorRef.value.getText();
|
|
23813
|
+
});
|
|
23814
|
+
/**
|
|
23815
|
+
* 文本改变
|
|
23816
|
+
* @param data
|
|
23817
|
+
*/
|
|
23818
|
+
__publicField(this, "textChange", (data) => {
|
|
23819
|
+
this.ctx.emit("textChange", data);
|
|
23820
|
+
});
|
|
23591
23821
|
this.props = props;
|
|
23592
23822
|
this.ctx = ctx;
|
|
23593
23823
|
}
|
|
23594
23824
|
//#endregion 文本输入框 END
|
|
23595
23825
|
}
|
|
23596
|
-
function _sfc_render$
|
|
23826
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23597
23827
|
const _component_UploadFile = resolveComponent("UploadFile");
|
|
23598
23828
|
const _component_TextEditor = resolveComponent("TextEditor");
|
|
23599
23829
|
const _component_NvComForm = resolveComponent("NvComForm");
|
|
@@ -23613,14 +23843,16 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23613
23843
|
ref: "textEditorRef",
|
|
23614
23844
|
readonly: _ctx.onlyView,
|
|
23615
23845
|
style: normalizeStyle({ height: `${item.textHeight == void 0 ? "300" : item.textHeight}px` }),
|
|
23616
|
-
token: _ctx.formModel[item.model]
|
|
23617
|
-
|
|
23846
|
+
token: _ctx.formModel[item.model],
|
|
23847
|
+
border: item.textBorder,
|
|
23848
|
+
onTextChange: _ctx.textChange
|
|
23849
|
+
}, null, 8, ["readonly", "style", "token", "border", "onTextChange"])) : createCommentVNode("", true)
|
|
23618
23850
|
]),
|
|
23619
23851
|
_: 1
|
|
23620
23852
|
}, 8, ["onlyView", "formItems", "formModel"]);
|
|
23621
23853
|
}
|
|
23622
|
-
const NvComFormUp = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23623
|
-
const propDefine$
|
|
23854
|
+
const NvComFormUp = /* @__PURE__ */ _export_sfc$1(_sfc_main$a, [["render", _sfc_render$a]]);
|
|
23855
|
+
const propDefine$9 = {
|
|
23624
23856
|
linkParam: {
|
|
23625
23857
|
// 带入的参数
|
|
23626
23858
|
type: String,
|
|
@@ -23632,14 +23864,14 @@ const propDefine$8 = {
|
|
|
23632
23864
|
default: "-"
|
|
23633
23865
|
}
|
|
23634
23866
|
};
|
|
23635
|
-
const _sfc_main$
|
|
23867
|
+
const _sfc_main$9 = defineComponent({
|
|
23636
23868
|
name: "Information",
|
|
23637
23869
|
components: {
|
|
23638
23870
|
NvComFormUp
|
|
23639
23871
|
},
|
|
23640
23872
|
emits: [""],
|
|
23641
23873
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
23642
|
-
props: propDefine$
|
|
23874
|
+
props: propDefine$9,
|
|
23643
23875
|
setup(props, ctx) {
|
|
23644
23876
|
return new InformationInstance(props, ctx);
|
|
23645
23877
|
}
|
|
@@ -24004,8 +24236,8 @@ class InformationInstance extends BaseInstance {
|
|
|
24004
24236
|
}
|
|
24005
24237
|
//#endregion 编辑信息 END
|
|
24006
24238
|
}
|
|
24007
|
-
const _hoisted_1$
|
|
24008
|
-
function _sfc_render$
|
|
24239
|
+
const _hoisted_1$9 = { style: { "overflow-y": "auto" } };
|
|
24240
|
+
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24009
24241
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
24010
24242
|
const _component_NvBox = resolveComponent("NvBox");
|
|
24011
24243
|
const _component_NvComFormUp = resolveComponent("NvComFormUp");
|
|
@@ -24062,7 +24294,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24062
24294
|
}, 8, ["loading", "onClick"])
|
|
24063
24295
|
]),
|
|
24064
24296
|
default: withCtx(() => [
|
|
24065
|
-
createElementVNode("div", _hoisted_1$
|
|
24297
|
+
createElementVNode("div", _hoisted_1$9, [
|
|
24066
24298
|
createVNode(_component_Form, {
|
|
24067
24299
|
ref: "refRoleForm",
|
|
24068
24300
|
model: _ctx.roleFormModel,
|
|
@@ -24084,8 +24316,8 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24084
24316
|
_: 1
|
|
24085
24317
|
});
|
|
24086
24318
|
}
|
|
24087
|
-
const Information = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24088
|
-
const propDefine$
|
|
24319
|
+
const Information = /* @__PURE__ */ _export_sfc$1(_sfc_main$9, [["render", _sfc_render$9]]);
|
|
24320
|
+
const propDefine$8 = {
|
|
24089
24321
|
linkParam: {
|
|
24090
24322
|
// 带入的参数
|
|
24091
24323
|
type: String,
|
|
@@ -24107,12 +24339,12 @@ const propDefine$7 = {
|
|
|
24107
24339
|
default: "BD"
|
|
24108
24340
|
}
|
|
24109
24341
|
};
|
|
24110
|
-
const _sfc_main$
|
|
24342
|
+
const _sfc_main$8 = defineComponent({
|
|
24111
24343
|
name: "GeneralConfiguration",
|
|
24112
24344
|
components: {},
|
|
24113
24345
|
emits: [""],
|
|
24114
24346
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
24115
|
-
props: propDefine$
|
|
24347
|
+
props: propDefine$8,
|
|
24116
24348
|
setup(props, ctx) {
|
|
24117
24349
|
return new GeneralConfigurationInstance(props, ctx);
|
|
24118
24350
|
}
|
|
@@ -24639,8 +24871,8 @@ class GeneralConfigurationInstance extends BaseInstance {
|
|
|
24639
24871
|
//#endregion 概况选择modal END
|
|
24640
24872
|
}
|
|
24641
24873
|
const GeneralConfiguration_vue_vue_type_style_index_0_scoped_a01b6a2e_lang = "";
|
|
24642
|
-
const _hoisted_1$
|
|
24643
|
-
function _sfc_render$
|
|
24874
|
+
const _hoisted_1$8 = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
24875
|
+
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24644
24876
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
24645
24877
|
const _component_NvBox = resolveComponent("NvBox");
|
|
24646
24878
|
const _component_Button = resolveComponent("Button");
|
|
@@ -24692,7 +24924,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24692
24924
|
}, 8, ["loading", "onClick"])
|
|
24693
24925
|
]),
|
|
24694
24926
|
default: withCtx(() => [
|
|
24695
|
-
createElementVNode("div", _hoisted_1$
|
|
24927
|
+
createElementVNode("div", _hoisted_1$8, [
|
|
24696
24928
|
createVNode(_component_NvGrid, {
|
|
24697
24929
|
ref: "dicModalGrid",
|
|
24698
24930
|
option: _ctx.dicModalGridOption
|
|
@@ -24705,8 +24937,8 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24705
24937
|
_: 1
|
|
24706
24938
|
});
|
|
24707
24939
|
}
|
|
24708
|
-
const GeneralConfiguration = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24709
|
-
const propDefine$
|
|
24940
|
+
const GeneralConfiguration = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-a01b6a2e"]]);
|
|
24941
|
+
const propDefine$7 = {
|
|
24710
24942
|
linkParam: {
|
|
24711
24943
|
// 带入的参数
|
|
24712
24944
|
type: String,
|
|
@@ -24718,14 +24950,14 @@ const propDefine$6 = {
|
|
|
24718
24950
|
default: "-"
|
|
24719
24951
|
}
|
|
24720
24952
|
};
|
|
24721
|
-
const _sfc_main$
|
|
24953
|
+
const _sfc_main$7 = defineComponent({
|
|
24722
24954
|
name: "Platform",
|
|
24723
24955
|
components: {
|
|
24724
24956
|
GeneralConfiguration
|
|
24725
24957
|
},
|
|
24726
24958
|
emits: [""],
|
|
24727
24959
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
24728
|
-
props: propDefine$
|
|
24960
|
+
props: propDefine$7,
|
|
24729
24961
|
setup(props, ctx) {
|
|
24730
24962
|
return new PlatformInstance2(props, ctx);
|
|
24731
24963
|
}
|
|
@@ -24760,7 +24992,7 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
24760
24992
|
isHover: true
|
|
24761
24993
|
},
|
|
24762
24994
|
isPagination: true,
|
|
24763
|
-
pageSize:
|
|
24995
|
+
pageSize: 15
|
|
24764
24996
|
},
|
|
24765
24997
|
searchOptions: [
|
|
24766
24998
|
{
|
|
@@ -25055,8 +25287,8 @@ class PlatformInstance2 extends BaseInstance {
|
|
|
25055
25287
|
//#endregion 系统平台编辑 END
|
|
25056
25288
|
}
|
|
25057
25289
|
const Platform_vue_vue_type_style_index_0_scoped_30a3712d_lang = "";
|
|
25058
|
-
const _hoisted_1$
|
|
25059
|
-
function _sfc_render$
|
|
25290
|
+
const _hoisted_1$7 = { style: { "height": "500px", "overflow-y": "auto" } };
|
|
25291
|
+
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25060
25292
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
25061
25293
|
const _component_NvBox = resolveComponent("NvBox");
|
|
25062
25294
|
const _component_NvComForm = resolveComponent("NvComForm");
|
|
@@ -25111,7 +25343,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25111
25343
|
}, 8, ["loading", "onClick"])
|
|
25112
25344
|
]),
|
|
25113
25345
|
default: withCtx(() => [
|
|
25114
|
-
createElementVNode("div", _hoisted_1$
|
|
25346
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
25115
25347
|
createVNode(_component_Form, {
|
|
25116
25348
|
ref: "refPlatformForm",
|
|
25117
25349
|
model: _ctx.platformFormModel,
|
|
@@ -25159,8 +25391,8 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25159
25391
|
_: 1
|
|
25160
25392
|
});
|
|
25161
25393
|
}
|
|
25162
|
-
const subplatform = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25163
|
-
const propDefine$
|
|
25394
|
+
const subplatform = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-30a3712d"]]);
|
|
25395
|
+
const propDefine$6 = {
|
|
25164
25396
|
linkParam: {
|
|
25165
25397
|
// 带入的参数
|
|
25166
25398
|
type: String,
|
|
@@ -25172,12 +25404,12 @@ const propDefine$5 = {
|
|
|
25172
25404
|
default: "-"
|
|
25173
25405
|
}
|
|
25174
25406
|
};
|
|
25175
|
-
const _sfc_main$
|
|
25407
|
+
const _sfc_main$6 = defineComponent({
|
|
25176
25408
|
name: "Role",
|
|
25177
25409
|
components: { SelectPlatform },
|
|
25178
25410
|
emits: [""],
|
|
25179
25411
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
25180
|
-
props: propDefine$
|
|
25412
|
+
props: propDefine$6,
|
|
25181
25413
|
setup(props, ctx) {
|
|
25182
25414
|
return new RoleInstance2(props, ctx);
|
|
25183
25415
|
}
|
|
@@ -25242,7 +25474,7 @@ class RoleInstance2 extends BaseInstance {
|
|
|
25242
25474
|
isHover: true
|
|
25243
25475
|
},
|
|
25244
25476
|
isPagination: true,
|
|
25245
|
-
pageSize:
|
|
25477
|
+
pageSize: 15
|
|
25246
25478
|
},
|
|
25247
25479
|
searchOptions: [
|
|
25248
25480
|
{
|
|
@@ -25997,14 +26229,14 @@ class RoleInstance2 extends BaseInstance {
|
|
|
25997
26229
|
//#endregion 导入角色 END
|
|
25998
26230
|
}
|
|
25999
26231
|
const Role_vue_vue_type_style_index_0_scoped_ffab91cb_lang = "";
|
|
26000
|
-
const _hoisted_1$
|
|
26001
|
-
const _hoisted_2$
|
|
26232
|
+
const _hoisted_1$6 = { style: { "height": "650px", "overflow-y": "auto", "position": "relative" } };
|
|
26233
|
+
const _hoisted_2$4 = {
|
|
26002
26234
|
class: "import-role",
|
|
26003
26235
|
style: { "height": "610px", "position": "relative" }
|
|
26004
26236
|
};
|
|
26005
|
-
const _hoisted_3$
|
|
26006
|
-
const _hoisted_4$
|
|
26007
|
-
function _sfc_render$
|
|
26237
|
+
const _hoisted_3$4 = { style: { "width": "100%", "height": "100%" } };
|
|
26238
|
+
const _hoisted_4$4 = { style: { "height": "530px", "overflow-y": "auto" } };
|
|
26239
|
+
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26008
26240
|
const _component_Option = resolveComponent("Option");
|
|
26009
26241
|
const _component_Select = resolveComponent("Select");
|
|
26010
26242
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -26105,7 +26337,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26105
26337
|
}, 8, ["loading", "onClick"])
|
|
26106
26338
|
]),
|
|
26107
26339
|
default: withCtx(() => [
|
|
26108
|
-
createElementVNode("div", _hoisted_1$
|
|
26340
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
26109
26341
|
createVNode(_component_NvGrid, {
|
|
26110
26342
|
ref: "moduleGrid",
|
|
26111
26343
|
option: _ctx.moduleGridOption
|
|
@@ -26146,8 +26378,8 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26146
26378
|
}, 8, ["loading", "onClick"])
|
|
26147
26379
|
]),
|
|
26148
26380
|
default: withCtx(() => [
|
|
26149
|
-
createElementVNode("div", _hoisted_2$
|
|
26150
|
-
createElementVNode("div", _hoisted_3$
|
|
26381
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
26382
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
26151
26383
|
createVNode(_component_NvGrid, {
|
|
26152
26384
|
ref: "originRoleGrid",
|
|
26153
26385
|
option: _ctx.originRoleGridOption
|
|
@@ -26217,7 +26449,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26217
26449
|
}, 8, ["loading", "onClick"])
|
|
26218
26450
|
]),
|
|
26219
26451
|
default: withCtx(() => [
|
|
26220
|
-
createElementVNode("div", _hoisted_4$
|
|
26452
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
26221
26453
|
createVNode(_component_Form, {
|
|
26222
26454
|
ref: "refRoleForm",
|
|
26223
26455
|
model: _ctx.roleFormModel,
|
|
@@ -26239,8 +26471,8 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26239
26471
|
_: 1
|
|
26240
26472
|
});
|
|
26241
26473
|
}
|
|
26242
|
-
const subrole = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26243
|
-
const propDefine$
|
|
26474
|
+
const subrole = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-ffab91cb"]]);
|
|
26475
|
+
const propDefine$5 = {
|
|
26244
26476
|
linkParam: {
|
|
26245
26477
|
// 带入的参数
|
|
26246
26478
|
type: String,
|
|
@@ -26252,12 +26484,12 @@ const propDefine$4 = {
|
|
|
26252
26484
|
default: "-"
|
|
26253
26485
|
}
|
|
26254
26486
|
};
|
|
26255
|
-
const _sfc_main$
|
|
26487
|
+
const _sfc_main$5 = defineComponent({
|
|
26256
26488
|
name: "Enterprise",
|
|
26257
26489
|
components: { SelectPlatform },
|
|
26258
26490
|
emits: [""],
|
|
26259
26491
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
26260
|
-
props: propDefine$
|
|
26492
|
+
props: propDefine$5,
|
|
26261
26493
|
setup(props, ctx) {
|
|
26262
26494
|
return new EnterpriseInstance2(props, ctx);
|
|
26263
26495
|
}
|
|
@@ -26326,7 +26558,7 @@ class EnterpriseInstance2 extends BaseInstance {
|
|
|
26326
26558
|
isHover: true
|
|
26327
26559
|
},
|
|
26328
26560
|
isPagination: true,
|
|
26329
|
-
pageSize:
|
|
26561
|
+
pageSize: 15
|
|
26330
26562
|
},
|
|
26331
26563
|
searchOptions: [
|
|
26332
26564
|
{
|
|
@@ -26668,8 +26900,8 @@ class EnterpriseInstance2 extends BaseInstance {
|
|
|
26668
26900
|
//#endregion 业务逻辑 编辑企业信息 END
|
|
26669
26901
|
}
|
|
26670
26902
|
const Enterprise_vue_vue_type_style_index_0_scoped_57711b94_lang = "";
|
|
26671
|
-
const _hoisted_1$
|
|
26672
|
-
function _sfc_render$
|
|
26903
|
+
const _hoisted_1$5 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
26904
|
+
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
26673
26905
|
const _component_Option = resolveComponent("Option");
|
|
26674
26906
|
const _component_Select = resolveComponent("Select");
|
|
26675
26907
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -26771,7 +27003,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26771
27003
|
}, 8, ["loading", "onClick"])) : createCommentVNode("", true)
|
|
26772
27004
|
]),
|
|
26773
27005
|
default: withCtx(() => [
|
|
26774
|
-
createElementVNode("div", _hoisted_1$
|
|
27006
|
+
createElementVNode("div", _hoisted_1$5, [
|
|
26775
27007
|
createVNode(_component_Form, {
|
|
26776
27008
|
model: _ctx.enterpriseFormModel,
|
|
26777
27009
|
"label-width": 90
|
|
@@ -26794,8 +27026,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26794
27026
|
_: 1
|
|
26795
27027
|
});
|
|
26796
27028
|
}
|
|
26797
|
-
const subenterprise = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26798
|
-
const propDefine$
|
|
27029
|
+
const subenterprise = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-57711b94"]]);
|
|
27030
|
+
const propDefine$4 = {
|
|
26799
27031
|
linkParam: {
|
|
26800
27032
|
// 带入的参数
|
|
26801
27033
|
type: String,
|
|
@@ -26807,12 +27039,12 @@ const propDefine$3 = {
|
|
|
26807
27039
|
default: "-"
|
|
26808
27040
|
}
|
|
26809
27041
|
};
|
|
26810
|
-
const _sfc_main$
|
|
27042
|
+
const _sfc_main$4 = defineComponent({
|
|
26811
27043
|
name: "Institution",
|
|
26812
27044
|
components: { SelectPlatform },
|
|
26813
27045
|
emits: [""],
|
|
26814
27046
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
26815
|
-
props: propDefine$
|
|
27047
|
+
props: propDefine$4,
|
|
26816
27048
|
setup(props, ctx) {
|
|
26817
27049
|
return new InstitutionInstance2(props, ctx);
|
|
26818
27050
|
}
|
|
@@ -27758,16 +27990,16 @@ class InstitutionInstance2 extends BaseInstance {
|
|
|
27758
27990
|
//#endregion 绑定角色 END
|
|
27759
27991
|
}
|
|
27760
27992
|
const Institution_vue_vue_type_style_index_0_scoped_ed65a91d_lang = "";
|
|
27761
|
-
const _hoisted_1$
|
|
27762
|
-
const _hoisted_2$
|
|
27763
|
-
const _hoisted_3$
|
|
27993
|
+
const _hoisted_1$4 = { style: { "width": "100%", "height": "100%", "position": "relative" } };
|
|
27994
|
+
const _hoisted_2$3 = { style: { "height": "500px", "overflow-y": "auto" } };
|
|
27995
|
+
const _hoisted_3$3 = {
|
|
27764
27996
|
class: "import-institution",
|
|
27765
27997
|
style: { "height": "600px", "overflow-y": "auto", "position": "relative" }
|
|
27766
27998
|
};
|
|
27767
|
-
const _hoisted_4$
|
|
27768
|
-
const _hoisted_5$
|
|
27769
|
-
const _hoisted_6$
|
|
27770
|
-
function _sfc_render$
|
|
27999
|
+
const _hoisted_4$3 = { style: { "width": "100%", "height": "100%" } };
|
|
28000
|
+
const _hoisted_5$3 = { style: { "height": "calc(100%)" } };
|
|
28001
|
+
const _hoisted_6$3 = { style: { "height": "610px", "overflow-y": "auto", "position": "relative" } };
|
|
28002
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27771
28003
|
const _component_Option = resolveComponent("Option");
|
|
27772
28004
|
const _component_Select = resolveComponent("Select");
|
|
27773
28005
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -27872,7 +28104,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27872
28104
|
})
|
|
27873
28105
|
]),
|
|
27874
28106
|
default: withCtx(() => [
|
|
27875
|
-
createElementVNode("div", _hoisted_1$
|
|
28107
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
27876
28108
|
createVNode(_component_Tree, {
|
|
27877
28109
|
data: _ctx.institutionTree,
|
|
27878
28110
|
render: _ctx.renderContent,
|
|
@@ -27931,7 +28163,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27931
28163
|
}, 8, ["loading", "onClick"])
|
|
27932
28164
|
]),
|
|
27933
28165
|
default: withCtx(() => [
|
|
27934
|
-
createElementVNode("div", _hoisted_2$
|
|
28166
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
27935
28167
|
createVNode(_component_Form, {
|
|
27936
28168
|
model: _ctx.institutionFormModel,
|
|
27937
28169
|
"label-width": 90
|
|
@@ -27981,9 +28213,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27981
28213
|
}, 8, ["loading", "onClick"])
|
|
27982
28214
|
]),
|
|
27983
28215
|
default: withCtx(() => [
|
|
27984
|
-
createElementVNode("div", _hoisted_3$
|
|
27985
|
-
createElementVNode("div", _hoisted_4$
|
|
27986
|
-
createElementVNode("div", _hoisted_5$
|
|
28216
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
28217
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
28218
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
27987
28219
|
createVNode(_component_NvGrid, {
|
|
27988
28220
|
ref: "originInstitutionGrid",
|
|
27989
28221
|
option: _ctx.originInstitutionGridOption
|
|
@@ -28054,7 +28286,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28054
28286
|
}, 8, ["loading", "onClick"])
|
|
28055
28287
|
]),
|
|
28056
28288
|
default: withCtx(() => [
|
|
28057
|
-
createElementVNode("div", _hoisted_6$
|
|
28289
|
+
createElementVNode("div", _hoisted_6$3, [
|
|
28058
28290
|
createVNode(_component_NvGrid, {
|
|
28059
28291
|
ref: "roleGrid",
|
|
28060
28292
|
option: _ctx.roleGridOption
|
|
@@ -28070,14 +28302,14 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28070
28302
|
_: 1
|
|
28071
28303
|
});
|
|
28072
28304
|
}
|
|
28073
|
-
const subinstitution = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
28074
|
-
const propDefine$
|
|
28075
|
-
const _sfc_main$
|
|
28305
|
+
const subinstitution = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-ed65a91d"]]);
|
|
28306
|
+
const propDefine$3 = {};
|
|
28307
|
+
const _sfc_main$3 = defineComponent({
|
|
28076
28308
|
name: "LoginLog",
|
|
28077
28309
|
components: {},
|
|
28078
28310
|
emits: [""],
|
|
28079
28311
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
28080
|
-
props: propDefine$
|
|
28312
|
+
props: propDefine$3,
|
|
28081
28313
|
setup(props, ctx) {
|
|
28082
28314
|
return new LoginLogInstance2(props, ctx);
|
|
28083
28315
|
}
|
|
@@ -28182,18 +28414,18 @@ class LoginLogInstance2 extends BaseInstance {
|
|
|
28182
28414
|
//#endregion 登录日志 END
|
|
28183
28415
|
}
|
|
28184
28416
|
const LoginLog_vue_vue_type_style_index_0_scoped_a0d5af5b_lang = "";
|
|
28185
|
-
const _hoisted_1$
|
|
28186
|
-
function _sfc_render$
|
|
28417
|
+
const _hoisted_1$3 = { class: "loginLog" };
|
|
28418
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
28187
28419
|
const _component_NvGrid = resolveComponent("NvGrid");
|
|
28188
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28420
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
28189
28421
|
createVNode(_component_NvGrid, {
|
|
28190
28422
|
ref: "loginLogGrid",
|
|
28191
28423
|
option: _ctx.loginLogGridOption
|
|
28192
28424
|
}, null, 8, ["option"])
|
|
28193
28425
|
]);
|
|
28194
28426
|
}
|
|
28195
|
-
const LoginLog = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
28196
|
-
const propDefine$
|
|
28427
|
+
const LoginLog = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-a0d5af5b"]]);
|
|
28428
|
+
const propDefine$2 = {
|
|
28197
28429
|
linkParam: {
|
|
28198
28430
|
// 带入的参数
|
|
28199
28431
|
type: String,
|
|
@@ -28205,12 +28437,12 @@ const propDefine$1 = {
|
|
|
28205
28437
|
default: "-"
|
|
28206
28438
|
}
|
|
28207
28439
|
};
|
|
28208
|
-
const _sfc_main$
|
|
28440
|
+
const _sfc_main$2 = defineComponent({
|
|
28209
28441
|
name: "Userinfor",
|
|
28210
28442
|
components: { SelectPlatform, LoginLog, BaseLogin },
|
|
28211
28443
|
emits: [""],
|
|
28212
28444
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
28213
|
-
props: propDefine$
|
|
28445
|
+
props: propDefine$2,
|
|
28214
28446
|
setup(props, ctx) {
|
|
28215
28447
|
return new UserinforInstance2(props, ctx);
|
|
28216
28448
|
}
|
|
@@ -28230,7 +28462,7 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
28230
28462
|
__publicField(this, "roleApi", new RoleApi());
|
|
28231
28463
|
__publicField(this, "oauthApi", new OAuthApi());
|
|
28232
28464
|
__publicField(this, "userSignApi", new UserSignApi());
|
|
28233
|
-
__publicField(this, "signTaskInfoApi", new
|
|
28465
|
+
__publicField(this, "signTaskInfoApi", new SignTaskInfoApi2());
|
|
28234
28466
|
// 全局属性
|
|
28235
28467
|
__publicField(this, "selectedPlatform");
|
|
28236
28468
|
//#region 系统平台
|
|
@@ -28338,7 +28570,7 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
28338
28570
|
isHover: true
|
|
28339
28571
|
},
|
|
28340
28572
|
isPagination: true,
|
|
28341
|
-
pageSize:
|
|
28573
|
+
pageSize: 13
|
|
28342
28574
|
},
|
|
28343
28575
|
searchOptions: [
|
|
28344
28576
|
{
|
|
@@ -29281,25 +29513,25 @@ class UserinforInstance2 extends BaseInstance {
|
|
|
29281
29513
|
// 响应式方法 | xxx = () => {}
|
|
29282
29514
|
//#endregion 重置密码 END
|
|
29283
29515
|
}
|
|
29284
|
-
const
|
|
29285
|
-
const _withScopeId$
|
|
29286
|
-
const _hoisted_1$
|
|
29287
|
-
const _hoisted_2$
|
|
29288
|
-
const _hoisted_3$
|
|
29289
|
-
const _hoisted_4$
|
|
29516
|
+
const Userinfor_vue_vue_type_style_index_0_scoped_e699b018_lang = "";
|
|
29517
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-e699b018"), n = n(), popScopeId(), n);
|
|
29518
|
+
const _hoisted_1$2 = { class: "instree-search" };
|
|
29519
|
+
const _hoisted_2$2 = { class: "instree-list" };
|
|
29520
|
+
const _hoisted_3$2 = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
29521
|
+
const _hoisted_4$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
|
|
29290
29522
|
/* @__PURE__ */ createElementVNode("div", { style: { "padding-bottom": "8px" } }, "用户账号:手机号必填。在新设备登录时,需进行短信验证。"),
|
|
29291
29523
|
/* @__PURE__ */ createElementVNode("div", null, "内部账号:手机号可不填。")
|
|
29292
29524
|
], -1));
|
|
29293
|
-
const _hoisted_5$
|
|
29294
|
-
const _hoisted_6$
|
|
29295
|
-
const _hoisted_7$
|
|
29296
|
-
const _hoisted_8$
|
|
29297
|
-
const _hoisted_9 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
29298
|
-
const _hoisted_10 = { style: { "display": "none" } };
|
|
29299
|
-
const _hoisted_11 = { style: { "height": "400px", "overflow-y": "auto" } };
|
|
29525
|
+
const _hoisted_5$2 = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
29526
|
+
const _hoisted_6$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选绑定用户角色!", -1));
|
|
29527
|
+
const _hoisted_7$2 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
29528
|
+
const _hoisted_8$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选需要引入的用户!", -1));
|
|
29529
|
+
const _hoisted_9$1 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
29530
|
+
const _hoisted_10$1 = { style: { "display": "none" } };
|
|
29531
|
+
const _hoisted_11$1 = { style: { "height": "400px", "overflow-y": "auto" } };
|
|
29300
29532
|
const _hoisted_12 = ["src"];
|
|
29301
29533
|
const _hoisted_13 = ["src"];
|
|
29302
|
-
function _sfc_render$
|
|
29534
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29303
29535
|
const _component_Option = resolveComponent("Option");
|
|
29304
29536
|
const _component_Select = resolveComponent("Select");
|
|
29305
29537
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -29344,7 +29576,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29344
29576
|
})
|
|
29345
29577
|
]),
|
|
29346
29578
|
default: withCtx(() => [
|
|
29347
|
-
createElementVNode("div", _hoisted_1$
|
|
29579
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
29348
29580
|
createVNode(_component_NvControlGroup, {
|
|
29349
29581
|
width: "100%",
|
|
29350
29582
|
icon: "md-refresh",
|
|
@@ -29382,7 +29614,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29382
29614
|
_: 1
|
|
29383
29615
|
}, 8, ["onClick"])
|
|
29384
29616
|
]),
|
|
29385
|
-
createElementVNode("div", _hoisted_2$
|
|
29617
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
29386
29618
|
createVNode(_component_Tree, {
|
|
29387
29619
|
data: _ctx.institutionTree,
|
|
29388
29620
|
render: _ctx.renderInsTreeContent,
|
|
@@ -29445,7 +29677,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29445
29677
|
}, 8, ["loading", "onClick"])
|
|
29446
29678
|
]),
|
|
29447
29679
|
default: withCtx(() => [
|
|
29448
|
-
createElementVNode("div", _hoisted_3$
|
|
29680
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
29449
29681
|
createVNode(_component_Form, {
|
|
29450
29682
|
ref: "userForm",
|
|
29451
29683
|
model: _ctx.userFormModel,
|
|
@@ -29461,7 +29693,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29461
29693
|
]),
|
|
29462
29694
|
_: 1
|
|
29463
29695
|
}, 8, ["model", "rules"]),
|
|
29464
|
-
_hoisted_4$
|
|
29696
|
+
_hoisted_4$2
|
|
29465
29697
|
])
|
|
29466
29698
|
]),
|
|
29467
29699
|
_: 1
|
|
@@ -29498,13 +29730,13 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29498
29730
|
}, 8, ["loading", "onClick"])
|
|
29499
29731
|
]),
|
|
29500
29732
|
default: withCtx(() => [
|
|
29501
|
-
createElementVNode("div", _hoisted_5$
|
|
29733
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
29502
29734
|
createVNode(_component_NvGrid, {
|
|
29503
29735
|
ref: "userRoleGrid",
|
|
29504
29736
|
option: _ctx.userRoleGridOption
|
|
29505
29737
|
}, {
|
|
29506
29738
|
default: withCtx(() => [
|
|
29507
|
-
_hoisted_6$
|
|
29739
|
+
_hoisted_6$2
|
|
29508
29740
|
]),
|
|
29509
29741
|
_: 1
|
|
29510
29742
|
}, 8, ["option"])
|
|
@@ -29544,13 +29776,13 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29544
29776
|
}, 8, ["loading", "onClick"])
|
|
29545
29777
|
]),
|
|
29546
29778
|
default: withCtx(() => [
|
|
29547
|
-
createElementVNode("div", _hoisted_7$
|
|
29779
|
+
createElementVNode("div", _hoisted_7$2, [
|
|
29548
29780
|
createVNode(_component_NvGrid, {
|
|
29549
29781
|
ref: "otherUserGrid",
|
|
29550
29782
|
option: _ctx.otherUserGridOption
|
|
29551
29783
|
}, {
|
|
29552
29784
|
default: withCtx(() => [
|
|
29553
|
-
_hoisted_8$
|
|
29785
|
+
_hoisted_8$2
|
|
29554
29786
|
]),
|
|
29555
29787
|
_: 1
|
|
29556
29788
|
}, 8, ["option"])
|
|
@@ -29580,7 +29812,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29580
29812
|
})
|
|
29581
29813
|
]),
|
|
29582
29814
|
default: withCtx(() => [
|
|
29583
|
-
createElementVNode("div", _hoisted_9, [
|
|
29815
|
+
createElementVNode("div", _hoisted_9$1, [
|
|
29584
29816
|
createVNode(_component_LoginLog, { ref: "loginLogRef" }, null, 512)
|
|
29585
29817
|
])
|
|
29586
29818
|
]),
|
|
@@ -29591,7 +29823,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29591
29823
|
fix: "",
|
|
29592
29824
|
show: _ctx.logining
|
|
29593
29825
|
}, null, 8, ["show"]),
|
|
29594
|
-
createElementVNode("div", _hoisted_10, [
|
|
29826
|
+
createElementVNode("div", _hoisted_10$1, [
|
|
29595
29827
|
createVNode(_component_BaseLogin, {
|
|
29596
29828
|
ref: "loginRef",
|
|
29597
29829
|
autoLogin: false
|
|
@@ -29629,7 +29861,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29629
29861
|
}, 8, ["loading", "onClick"])
|
|
29630
29862
|
]),
|
|
29631
29863
|
default: withCtx(() => [
|
|
29632
|
-
createElementVNode("div", _hoisted_11, [
|
|
29864
|
+
createElementVNode("div", _hoisted_11$1, [
|
|
29633
29865
|
createVNode(_component_Form, {
|
|
29634
29866
|
ref: "userSignForm",
|
|
29635
29867
|
model: _ctx.userSignFormModel,
|
|
@@ -29694,8 +29926,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
29694
29926
|
_: 1
|
|
29695
29927
|
});
|
|
29696
29928
|
}
|
|
29697
|
-
const subuserinfor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
29698
|
-
const propDefine = {
|
|
29929
|
+
const subuserinfor = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-e699b018"]]);
|
|
29930
|
+
const propDefine$1 = {
|
|
29699
29931
|
linkParam: {
|
|
29700
29932
|
// 带入的参数
|
|
29701
29933
|
type: String,
|
|
@@ -29707,12 +29939,12 @@ const propDefine = {
|
|
|
29707
29939
|
default: "-"
|
|
29708
29940
|
}
|
|
29709
29941
|
};
|
|
29710
|
-
const _sfc_main = defineComponent({
|
|
29942
|
+
const _sfc_main$1 = defineComponent({
|
|
29711
29943
|
name: "Module",
|
|
29712
29944
|
components: { SelectPlatform },
|
|
29713
29945
|
emits: ["change"],
|
|
29714
29946
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
29715
|
-
props: propDefine,
|
|
29947
|
+
props: propDefine$1,
|
|
29716
29948
|
setup(props, ctx) {
|
|
29717
29949
|
return new ModuleInstance2(props, ctx);
|
|
29718
29950
|
}
|
|
@@ -30561,19 +30793,19 @@ class ModuleInstance2 extends BaseInstance {
|
|
|
30561
30793
|
//#endregion 业务逻辑 END
|
|
30562
30794
|
}
|
|
30563
30795
|
const Module_vue_vue_type_style_index_0_scoped_23a8ab5f_lang = "";
|
|
30564
|
-
const _withScopeId = (n) => (pushScopeId("data-v-23a8ab5f"), n = n(), popScopeId(), n);
|
|
30565
|
-
const _hoisted_1 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
30566
|
-
const _hoisted_2 = {
|
|
30796
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-23a8ab5f"), n = n(), popScopeId(), n);
|
|
30797
|
+
const _hoisted_1$1 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
30798
|
+
const _hoisted_2$1 = {
|
|
30567
30799
|
class: "import-module",
|
|
30568
30800
|
style: { "height": "650px", "position": "relative" }
|
|
30569
30801
|
};
|
|
30570
|
-
const _hoisted_3 = { style: { "width": "100%", "height": "100%" } };
|
|
30571
|
-
const _hoisted_4 = { style: { "width": "560px", "height": "100%", "float": "left" } };
|
|
30572
|
-
const _hoisted_5 = { style: { "height": "calc(100% - 0px)" } };
|
|
30573
|
-
const _hoisted_6 = { style: { "width": "calc(100% - 570px)", "height": "100%", "margin-left": "10px", "display": "inline-block" } };
|
|
30574
|
-
const _hoisted_7 = { style: { "height": "calc(100% - 0px)" } };
|
|
30575
|
-
const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "点击选择要放置的位置!", -1));
|
|
30576
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30802
|
+
const _hoisted_3$1 = { style: { "width": "100%", "height": "100%" } };
|
|
30803
|
+
const _hoisted_4$1 = { style: { "width": "560px", "height": "100%", "float": "left" } };
|
|
30804
|
+
const _hoisted_5$1 = { style: { "height": "calc(100% - 0px)" } };
|
|
30805
|
+
const _hoisted_6$1 = { style: { "width": "calc(100% - 570px)", "height": "100%", "margin-left": "10px", "display": "inline-block" } };
|
|
30806
|
+
const _hoisted_7$1 = { style: { "height": "calc(100% - 0px)" } };
|
|
30807
|
+
const _hoisted_8$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "点击选择要放置的位置!", -1));
|
|
30808
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30577
30809
|
const _component_Option = resolveComponent("Option");
|
|
30578
30810
|
const _component_Select = resolveComponent("Select");
|
|
30579
30811
|
const _component_Spin = resolveComponent("Spin");
|
|
@@ -30696,7 +30928,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30696
30928
|
}, 8, ["loading", "onClick"])
|
|
30697
30929
|
]),
|
|
30698
30930
|
default: withCtx(() => [
|
|
30699
|
-
createElementVNode("div", _hoisted_1, [
|
|
30931
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
30700
30932
|
createVNode(_component_Form, {
|
|
30701
30933
|
model: _ctx.moduleFormModel,
|
|
30702
30934
|
"label-width": 90
|
|
@@ -30746,9 +30978,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30746
30978
|
}, 8, ["loading", "onClick"])
|
|
30747
30979
|
]),
|
|
30748
30980
|
default: withCtx(() => [
|
|
30749
|
-
createElementVNode("div", _hoisted_2, [
|
|
30750
|
-
createElementVNode("div", _hoisted_3, [
|
|
30751
|
-
createElementVNode("div", _hoisted_4, [
|
|
30981
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
30982
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
30983
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
30752
30984
|
createVNode(_component_Card, {
|
|
30753
30985
|
"dis-hover": "",
|
|
30754
30986
|
class: "import-module_card"
|
|
@@ -30757,7 +30989,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30757
30989
|
createTextVNode("源平台 - [" + toDisplayString(_ctx.originPlatform.selectedItem.PlatformName) + "] - 模块菜单", 1)
|
|
30758
30990
|
]),
|
|
30759
30991
|
default: withCtx(() => [
|
|
30760
|
-
createElementVNode("div", _hoisted_5, [
|
|
30992
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
30761
30993
|
createVNode(_component_NvGrid, {
|
|
30762
30994
|
ref: "originModuleGrid",
|
|
30763
30995
|
option: _ctx.originModuleGridOption
|
|
@@ -30792,7 +31024,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30792
31024
|
_: 1
|
|
30793
31025
|
})
|
|
30794
31026
|
]),
|
|
30795
|
-
createElementVNode("div", _hoisted_6, [
|
|
31027
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
30796
31028
|
createVNode(_component_Card, {
|
|
30797
31029
|
"dis-hover": "",
|
|
30798
31030
|
class: "import-module_card"
|
|
@@ -30801,13 +31033,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30801
31033
|
createTextVNode("目标平台 - [" + toDisplayString(_ctx.targetPlatform.PlatformName) + "] - 模块菜单", 1)
|
|
30802
31034
|
]),
|
|
30803
31035
|
default: withCtx(() => [
|
|
30804
|
-
createElementVNode("div", _hoisted_7, [
|
|
31036
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
30805
31037
|
createVNode(_component_NvGrid, {
|
|
30806
31038
|
ref: "targetModuleGrid",
|
|
30807
31039
|
option: _ctx.targetModuleGridOption
|
|
30808
31040
|
}, {
|
|
30809
31041
|
default: withCtx(() => [
|
|
30810
|
-
_hoisted_8
|
|
31042
|
+
_hoisted_8$1
|
|
30811
31043
|
]),
|
|
30812
31044
|
_: 1
|
|
30813
31045
|
}, 8, ["option"])
|
|
@@ -30831,73 +31063,1622 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30831
31063
|
_: 1
|
|
30832
31064
|
});
|
|
30833
31065
|
}
|
|
30834
|
-
const subModule = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-23a8ab5f"]]);
|
|
30835
|
-
const
|
|
30836
|
-
{
|
|
30837
|
-
//
|
|
30838
|
-
|
|
30839
|
-
|
|
30840
|
-
},
|
|
30841
|
-
{
|
|
30842
|
-
// 菜单模块
|
|
30843
|
-
path: "/permission-service/platform/module",
|
|
30844
|
-
component: Module
|
|
30845
|
-
},
|
|
30846
|
-
{
|
|
30847
|
-
// 角色管理
|
|
30848
|
-
path: "/permission-service/platform/role",
|
|
30849
|
-
component: Role
|
|
30850
|
-
},
|
|
30851
|
-
{
|
|
30852
|
-
// 机构类型
|
|
30853
|
-
path: "/permission-service/institution/institutiontype",
|
|
30854
|
-
component: InstitutionType
|
|
30855
|
-
},
|
|
30856
|
-
{
|
|
30857
|
-
// 组织机构
|
|
30858
|
-
path: "/permission-service/institution/institution",
|
|
30859
|
-
component: Institution
|
|
30860
|
-
},
|
|
30861
|
-
{
|
|
30862
|
-
// 用户管理
|
|
30863
|
-
path: "/permission-service/institution/userinfor",
|
|
30864
|
-
component: Userinfor
|
|
30865
|
-
},
|
|
30866
|
-
{
|
|
30867
|
-
// 企业管理
|
|
30868
|
-
path: "/permission-service/institution/enterprise",
|
|
30869
|
-
component: Enterprise
|
|
30870
|
-
},
|
|
30871
|
-
{
|
|
30872
|
-
// 第三方信息
|
|
30873
|
-
path: "/permission-service/thirdparty/information",
|
|
30874
|
-
component: Information
|
|
30875
|
-
},
|
|
30876
|
-
// 平台设置(二级)
|
|
30877
|
-
{
|
|
30878
|
-
// 项目管理
|
|
30879
|
-
path: "/permission-service/platform/subplatform",
|
|
30880
|
-
component: subplatform
|
|
30881
|
-
},
|
|
30882
|
-
{
|
|
30883
|
-
// 平台角色
|
|
30884
|
-
path: "/permission-service/platform/subrole",
|
|
30885
|
-
component: subrole
|
|
30886
|
-
},
|
|
30887
|
-
{
|
|
30888
|
-
// 平台企业
|
|
30889
|
-
path: "/permission-service/institution/subenterprise",
|
|
30890
|
-
component: subenterprise
|
|
30891
|
-
},
|
|
30892
|
-
{
|
|
30893
|
-
// 平台机构
|
|
30894
|
-
path: "/permission-service/institution/subinstitution",
|
|
30895
|
-
component: subinstitution
|
|
31066
|
+
const subModule = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-23a8ab5f"]]);
|
|
31067
|
+
const propDefine = {
|
|
31068
|
+
linkParam: {
|
|
31069
|
+
// 带入的参数
|
|
31070
|
+
type: String,
|
|
31071
|
+
default: ""
|
|
30896
31072
|
},
|
|
30897
|
-
{
|
|
30898
|
-
//
|
|
30899
|
-
|
|
30900
|
-
|
|
31073
|
+
operates: {
|
|
31074
|
+
// 按钮权限码
|
|
31075
|
+
type: String,
|
|
31076
|
+
default: "-"
|
|
31077
|
+
}
|
|
31078
|
+
};
|
|
31079
|
+
const _sfc_main = defineComponent({
|
|
31080
|
+
name: "ProjectUserinfor",
|
|
31081
|
+
components: { SelectPlatform, LoginLog, BaseLogin },
|
|
31082
|
+
emits: [""],
|
|
31083
|
+
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
31084
|
+
props: propDefine,
|
|
31085
|
+
setup(props, ctx) {
|
|
31086
|
+
return new ProjectUserinforInstance(props, ctx);
|
|
31087
|
+
}
|
|
31088
|
+
});
|
|
31089
|
+
class ProjectUserinforInstance extends BaseInstance {
|
|
31090
|
+
constructor(props, ctx) {
|
|
31091
|
+
super();
|
|
31092
|
+
__publicField(this, "props");
|
|
31093
|
+
__publicField(this, "ctx");
|
|
31094
|
+
// API实例化
|
|
31095
|
+
__publicField(this, "platformApi", new PlatformApi());
|
|
31096
|
+
__publicField(this, "institutionTreeApi", new InstitutionTreeApi());
|
|
31097
|
+
__publicField(this, "userinforApi", new UserinforApi());
|
|
31098
|
+
__publicField(this, "institutionUserApi", new InstitutionUserApi());
|
|
31099
|
+
__publicField(this, "userRoleApi", new UserRoleApi());
|
|
31100
|
+
__publicField(this, "institutionPlatformApi", new InstitutionPlatformApi());
|
|
31101
|
+
__publicField(this, "roleApi", new RoleApi());
|
|
31102
|
+
__publicField(this, "oauthApi", new OAuthApi());
|
|
31103
|
+
__publicField(this, "userSignApi", new UserSignApi());
|
|
31104
|
+
__publicField(this, "signTaskInfoApi", new SignTaskInfoApi2());
|
|
31105
|
+
// 全局属性
|
|
31106
|
+
__publicField(this, "selectedPlatform");
|
|
31107
|
+
//#region 系统平台
|
|
31108
|
+
// 私有属性 | private
|
|
31109
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
31110
|
+
__publicField(this, "platId", ref(0));
|
|
31111
|
+
__publicField(this, "platData", ref([]));
|
|
31112
|
+
__publicField(this, "spinPlatShow", ref(false));
|
|
31113
|
+
// 响应式方法 | xxx = () => {}
|
|
31114
|
+
/**
|
|
31115
|
+
* 系统平台列表
|
|
31116
|
+
*/
|
|
31117
|
+
__publicField(this, "getPlatData", async () => {
|
|
31118
|
+
var _a;
|
|
31119
|
+
this.spinPlatShow.value = true;
|
|
31120
|
+
const platId = (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id;
|
|
31121
|
+
const apiResult = await this.platformApi.getEntities(QueryWrapper.create().eq("Id", platId).or((i) => i.allEq({
|
|
31122
|
+
PId: platId
|
|
31123
|
+
})).orderBy(["OrderNo"]));
|
|
31124
|
+
this.platData.value = this.utilities.parseApiResult(apiResult);
|
|
31125
|
+
this.spinPlatShow.value = false;
|
|
31126
|
+
if (this.platData.value.length > 0)
|
|
31127
|
+
this.platId.value = this.platData.value[0].Id;
|
|
31128
|
+
nextTick(() => {
|
|
31129
|
+
this.doChangePlatform(this.platData.value[0]);
|
|
31130
|
+
});
|
|
31131
|
+
});
|
|
31132
|
+
//#endregion 系统平台 END
|
|
31133
|
+
//#region 组织机构树
|
|
31134
|
+
// 私有属性 | private
|
|
31135
|
+
__publicField(this, "selectedInsTree");
|
|
31136
|
+
// 响应属性 | ref、reactive、computed
|
|
31137
|
+
__publicField(this, "institutionTree", ref([]));
|
|
31138
|
+
__publicField(this, "loadingInstitutionTree", ref(false));
|
|
31139
|
+
// 响应式方法 | xxx = () => {}
|
|
31140
|
+
/**
|
|
31141
|
+
* 平台切换
|
|
31142
|
+
*/
|
|
31143
|
+
__publicField(this, "doChangePlatform", (data) => {
|
|
31144
|
+
const res = this.platData.value.find((item) => item.Id == this.platId.value);
|
|
31145
|
+
if (this.utilities.isNull(data)) {
|
|
31146
|
+
return;
|
|
31147
|
+
}
|
|
31148
|
+
this.selectedPlatform = res;
|
|
31149
|
+
this.loadInsTree();
|
|
31150
|
+
});
|
|
31151
|
+
/**
|
|
31152
|
+
* 渲染机构树内容
|
|
31153
|
+
* @param h
|
|
31154
|
+
* @param param1
|
|
31155
|
+
* @returns
|
|
31156
|
+
*/
|
|
31157
|
+
__publicField(this, "renderInsTreeContent", (h2, { root, node, data }) => {
|
|
31158
|
+
return h2("span", {
|
|
31159
|
+
style: {
|
|
31160
|
+
display: "inline-block",
|
|
31161
|
+
paddingLeft: "4px",
|
|
31162
|
+
boxSizing: "content-box",
|
|
31163
|
+
border: data.intoDrag ? "1px dashed #2d8cf0" : "0px"
|
|
31164
|
+
}
|
|
31165
|
+
}, [
|
|
31166
|
+
h2("span", [
|
|
31167
|
+
h2("span", {
|
|
31168
|
+
style: {
|
|
31169
|
+
fontWeight: this.utilities.isNull(data.FakeId) ? "normal" : "bold"
|
|
31170
|
+
}
|
|
31171
|
+
}, this.utilities.getValueNotNull(data.title, "[未知节点]"))
|
|
31172
|
+
])
|
|
31173
|
+
]);
|
|
31174
|
+
});
|
|
31175
|
+
/**
|
|
31176
|
+
* 树选择事件
|
|
31177
|
+
* @param datas
|
|
31178
|
+
*/
|
|
31179
|
+
__publicField(this, "doChangeInsTree", (datas) => {
|
|
31180
|
+
if (datas.length > 0) {
|
|
31181
|
+
this.selectedInsTree = datas[0];
|
|
31182
|
+
this.loadInstitutionTreeUsers({});
|
|
31183
|
+
}
|
|
31184
|
+
});
|
|
31185
|
+
/**
|
|
31186
|
+
* 刷新机构树
|
|
31187
|
+
*/
|
|
31188
|
+
__publicField(this, "doRefreshInsTree", () => {
|
|
31189
|
+
this.loadInsTree();
|
|
31190
|
+
});
|
|
31191
|
+
//#endregion 组织机构树 END
|
|
31192
|
+
//#region 用户列表
|
|
31193
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
31194
|
+
__publicField(this, "userBoxWidth", ref("calc(100% - 300px)"));
|
|
31195
|
+
__publicField(this, "insTreeUserGrid", ref());
|
|
31196
|
+
__publicField(this, "insTreeUserGridOption", reactive({
|
|
31197
|
+
api: this.userinforApi,
|
|
31198
|
+
setting: {
|
|
31199
|
+
border: true,
|
|
31200
|
+
searchConfig: {
|
|
31201
|
+
btnSpan: 6,
|
|
31202
|
+
labelWidth: 90,
|
|
31203
|
+
defaultShowSearch: false
|
|
31204
|
+
},
|
|
31205
|
+
toolbarConfig: {
|
|
31206
|
+
isButtonGroup: false
|
|
31207
|
+
},
|
|
31208
|
+
rowConfig: {
|
|
31209
|
+
isHover: true
|
|
31210
|
+
},
|
|
31211
|
+
isPagination: true,
|
|
31212
|
+
pageSize: 13
|
|
31213
|
+
},
|
|
31214
|
+
searchOptions: [
|
|
31215
|
+
{
|
|
31216
|
+
field: "UserName",
|
|
31217
|
+
title: "用户姓名",
|
|
31218
|
+
type: "Input"
|
|
31219
|
+
},
|
|
31220
|
+
{
|
|
31221
|
+
field: "Account",
|
|
31222
|
+
title: "账号",
|
|
31223
|
+
type: "Input"
|
|
31224
|
+
},
|
|
31225
|
+
{
|
|
31226
|
+
field: "AccountStatus",
|
|
31227
|
+
title: "账号状态",
|
|
31228
|
+
type: "Radio",
|
|
31229
|
+
data: [{ text: "正常", value: 1 }, { text: "挂起", value: 2 }, { text: "禁用", value: 3 }, { text: "只读", value: 4 }]
|
|
31230
|
+
}
|
|
31231
|
+
],
|
|
31232
|
+
toolbars: [
|
|
31233
|
+
{
|
|
31234
|
+
name: "add",
|
|
31235
|
+
text: "新增",
|
|
31236
|
+
onclick: () => {
|
|
31237
|
+
this.doAddUser();
|
|
31238
|
+
}
|
|
31239
|
+
}
|
|
31240
|
+
// {
|
|
31241
|
+
// name: 'import', icon: 'md-arrow-round-up', text: '引入', onclick: () => {
|
|
31242
|
+
// this.doShowImportUser();
|
|
31243
|
+
// }
|
|
31244
|
+
// }
|
|
31245
|
+
],
|
|
31246
|
+
rightToolbars: [
|
|
31247
|
+
{
|
|
31248
|
+
name: "refresh"
|
|
31249
|
+
}
|
|
31250
|
+
],
|
|
31251
|
+
columns: [
|
|
31252
|
+
{
|
|
31253
|
+
colType: "seq"
|
|
31254
|
+
},
|
|
31255
|
+
{ colType: "ro", field: "UserName", title: "姓名", minWidth: 160 },
|
|
31256
|
+
{ colType: "ro", field: "Account", title: "账号", width: 140 },
|
|
31257
|
+
{
|
|
31258
|
+
colType: "ro",
|
|
31259
|
+
field: "AccountStatus",
|
|
31260
|
+
title: "账号状态",
|
|
31261
|
+
width: 140,
|
|
31262
|
+
align: "center",
|
|
31263
|
+
format: (h2, params) => {
|
|
31264
|
+
const dict = {
|
|
31265
|
+
1: { text: "正常", color: "green" },
|
|
31266
|
+
2: { text: "挂起", color: "gold" },
|
|
31267
|
+
3: { text: "禁用", color: "red" },
|
|
31268
|
+
4: { text: "只读", color: "default" }
|
|
31269
|
+
};
|
|
31270
|
+
const option = dict[params.row["AccountStatus"]];
|
|
31271
|
+
const accountType = params.row["AccountType"] == 0 ? "用户账号" : "内部账号";
|
|
31272
|
+
return h2(Tag, { color: option.color }, () => accountType + " - " + option.text);
|
|
31273
|
+
}
|
|
31274
|
+
},
|
|
31275
|
+
{
|
|
31276
|
+
colType: "ro",
|
|
31277
|
+
field: "IsMutex",
|
|
31278
|
+
title: "单点登录",
|
|
31279
|
+
width: 90,
|
|
31280
|
+
align: "center",
|
|
31281
|
+
format: (h2, params) => {
|
|
31282
|
+
const dict = {
|
|
31283
|
+
0: "否",
|
|
31284
|
+
1: "是"
|
|
31285
|
+
};
|
|
31286
|
+
return dict[params.row["IsMutex"]];
|
|
31287
|
+
}
|
|
31288
|
+
},
|
|
31289
|
+
{
|
|
31290
|
+
colType: "ro",
|
|
31291
|
+
field: "ExpiredDate",
|
|
31292
|
+
title: "密码过期时间",
|
|
31293
|
+
width: 130,
|
|
31294
|
+
align: "center",
|
|
31295
|
+
format: (h2, params) => {
|
|
31296
|
+
const expiredDate = params.row.ExpiredDate;
|
|
31297
|
+
return this.utilities.isNull(expiredDate) ? "" : expiredDate.split(" ")[0];
|
|
31298
|
+
}
|
|
31299
|
+
},
|
|
31300
|
+
{
|
|
31301
|
+
colType: "ro",
|
|
31302
|
+
field: "ErrorNum",
|
|
31303
|
+
title: "错误次数",
|
|
31304
|
+
width: 90,
|
|
31305
|
+
align: "center",
|
|
31306
|
+
format: (h2, params) => {
|
|
31307
|
+
return params.row.ErrorNum + "/5";
|
|
31308
|
+
}
|
|
31309
|
+
},
|
|
31310
|
+
{ colType: "ro", field: "LastUpdateUserName", title: "最后修改人", width: 120, align: "center" },
|
|
31311
|
+
{ colType: "ro", field: "LastUpdateDate", title: "最后修改时间", width: 140, align: "center" },
|
|
31312
|
+
{ colType: "ro", field: "LastLoginTime", title: "最后登录时间", width: 140, align: "center" },
|
|
31313
|
+
{
|
|
31314
|
+
title: "操作",
|
|
31315
|
+
width: 180,
|
|
31316
|
+
rowButtons: [
|
|
31317
|
+
{
|
|
31318
|
+
name: "edit",
|
|
31319
|
+
text: "编辑",
|
|
31320
|
+
onclick: (row, btn) => {
|
|
31321
|
+
this.doEditUser(row);
|
|
31322
|
+
}
|
|
31323
|
+
},
|
|
31324
|
+
{
|
|
31325
|
+
name: "role",
|
|
31326
|
+
text: "定岗",
|
|
31327
|
+
onclick: (row, btn) => {
|
|
31328
|
+
this.doShowUserRole(row);
|
|
31329
|
+
}
|
|
31330
|
+
},
|
|
31331
|
+
{
|
|
31332
|
+
name: "delete",
|
|
31333
|
+
text: "移除",
|
|
31334
|
+
onclick: (row, btn) => {
|
|
31335
|
+
this.doDeleteUser(row);
|
|
31336
|
+
}
|
|
31337
|
+
}
|
|
31338
|
+
]
|
|
31339
|
+
},
|
|
31340
|
+
{
|
|
31341
|
+
title: "运维",
|
|
31342
|
+
width: 150,
|
|
31343
|
+
rowButtons: [
|
|
31344
|
+
{
|
|
31345
|
+
name: "userSign",
|
|
31346
|
+
text: "签字",
|
|
31347
|
+
onclick: (row, btn) => {
|
|
31348
|
+
this.doShowEditUserSign(row);
|
|
31349
|
+
}
|
|
31350
|
+
},
|
|
31351
|
+
{
|
|
31352
|
+
name: "resize",
|
|
31353
|
+
text: "重置",
|
|
31354
|
+
onclick: (row, btn) => {
|
|
31355
|
+
this.doResetUserPwd(row.Id);
|
|
31356
|
+
}
|
|
31357
|
+
}
|
|
31358
|
+
]
|
|
31359
|
+
}
|
|
31360
|
+
],
|
|
31361
|
+
event: {
|
|
31362
|
+
event_search: (data) => {
|
|
31363
|
+
this.insTreeUserGrid.value.setPageIndex(1);
|
|
31364
|
+
this.loadInstitutionTreeUsers(data);
|
|
31365
|
+
}
|
|
31366
|
+
}
|
|
31367
|
+
}));
|
|
31368
|
+
// 响应式方法 | xxx = () => {}
|
|
31369
|
+
/**
|
|
31370
|
+
* 改变机构宽度
|
|
31371
|
+
*/
|
|
31372
|
+
__publicField(this, "doChangeUserBoxWidth", (isExpand) => {
|
|
31373
|
+
this.userBoxWidth.value = isExpand ? "calc(100% - 300px)" : "calc(100% - 45px)";
|
|
31374
|
+
});
|
|
31375
|
+
//#endregion 用户列表 END
|
|
31376
|
+
//#region 编辑用户
|
|
31377
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
31378
|
+
__publicField(this, "showEditUser", ref(false));
|
|
31379
|
+
__publicField(this, "saveingUser", ref(false));
|
|
31380
|
+
__publicField(this, "editUserTitle", ref("新增 - 用户"));
|
|
31381
|
+
__publicField(this, "userForm", ref());
|
|
31382
|
+
__publicField(this, "userFormModel", reactive({
|
|
31383
|
+
Id: 0,
|
|
31384
|
+
UserName: "",
|
|
31385
|
+
Sex: 1,
|
|
31386
|
+
Phone: "",
|
|
31387
|
+
CIdNo: "",
|
|
31388
|
+
UserIconToken: "",
|
|
31389
|
+
UserSignImgToken: "",
|
|
31390
|
+
Account: "",
|
|
31391
|
+
AccountType: 0,
|
|
31392
|
+
AccountStatus: 1,
|
|
31393
|
+
ErrorNum: 0,
|
|
31394
|
+
ExpiredDate: "",
|
|
31395
|
+
IsMutex: 0,
|
|
31396
|
+
PwdAuthentication: 0,
|
|
31397
|
+
LastUpdateUserId: 0,
|
|
31398
|
+
LastUpdateUserName: "",
|
|
31399
|
+
LastUpdateDate: ""
|
|
31400
|
+
}));
|
|
31401
|
+
__publicField(this, "userFormItems", reactive([
|
|
31402
|
+
{
|
|
31403
|
+
model: "",
|
|
31404
|
+
label: "基础信息",
|
|
31405
|
+
span: 24,
|
|
31406
|
+
children: [
|
|
31407
|
+
{ model: "Account", label: "账号", type: "Input", prop: "Account" },
|
|
31408
|
+
{ model: "UserName", label: "姓名", type: "Input", prop: "UserName" },
|
|
31409
|
+
{ model: "Phone", label: "手机号", type: "Input", prop: "Phone" },
|
|
31410
|
+
{
|
|
31411
|
+
model: "Sex",
|
|
31412
|
+
label: "性别",
|
|
31413
|
+
type: "Select",
|
|
31414
|
+
selectProp: {
|
|
31415
|
+
datas: [{ text: "男", value: 1 }, { text: "女", value: 2 }, { text: "其他", value: 3 }],
|
|
31416
|
+
transfer: true
|
|
31417
|
+
}
|
|
31418
|
+
}
|
|
31419
|
+
]
|
|
31420
|
+
},
|
|
31421
|
+
{
|
|
31422
|
+
model: "",
|
|
31423
|
+
label: "账号信息",
|
|
31424
|
+
span: 24,
|
|
31425
|
+
children: [
|
|
31426
|
+
// {
|
|
31427
|
+
// model: 'AccountType', label: '账号类型', type: 'Radio', radioProp: {
|
|
31428
|
+
// type: 'button',
|
|
31429
|
+
// 'button-style': 'solid',
|
|
31430
|
+
// datas: [{ text: '用户账号', value: 0 }]
|
|
31431
|
+
// }
|
|
31432
|
+
// },
|
|
31433
|
+
{
|
|
31434
|
+
model: "AccountStatus",
|
|
31435
|
+
label: "账号状态",
|
|
31436
|
+
type: "Select",
|
|
31437
|
+
selectProp: {
|
|
31438
|
+
datas: [{ text: "正常", value: 1 }, { text: "挂起", value: 2 }, { text: "禁用", value: 3 }, { text: "只读", value: 4 }],
|
|
31439
|
+
transfer: true
|
|
31440
|
+
}
|
|
31441
|
+
},
|
|
31442
|
+
{ model: "ExpiredDate", label: "密码过期时间", type: "DatePicker" },
|
|
31443
|
+
{
|
|
31444
|
+
model: "PwdAuthentication",
|
|
31445
|
+
label: "密码强认证",
|
|
31446
|
+
type: "Select",
|
|
31447
|
+
selectProp: {
|
|
31448
|
+
datas: [{ text: "否", value: 0 }, { text: "是", value: 1 }],
|
|
31449
|
+
transfer: true
|
|
31450
|
+
}
|
|
31451
|
+
},
|
|
31452
|
+
{
|
|
31453
|
+
model: "IsMutex",
|
|
31454
|
+
label: "单点登录",
|
|
31455
|
+
type: "Select",
|
|
31456
|
+
selectProp: {
|
|
31457
|
+
datas: [{ text: "否", value: 0 }, { text: "是", value: 1 }],
|
|
31458
|
+
transfer: true
|
|
31459
|
+
}
|
|
31460
|
+
},
|
|
31461
|
+
{ model: "ErrorNum", label: "错误次数", type: "Input" },
|
|
31462
|
+
{ model: "WechatOpenId", label: "微信授权Id", type: "Input" }
|
|
31463
|
+
]
|
|
31464
|
+
}
|
|
31465
|
+
]));
|
|
31466
|
+
__publicField(this, "userFormRule", reactive({
|
|
31467
|
+
UserName: [
|
|
31468
|
+
{ required: true, message: "姓名不能为空", trigger: "blur" }
|
|
31469
|
+
],
|
|
31470
|
+
Account: [
|
|
31471
|
+
{ required: true, message: "账号不能为空", trigger: "blur" }
|
|
31472
|
+
],
|
|
31473
|
+
Phone: [
|
|
31474
|
+
{ required: true, validator: this.validPhone, trigger: "blur" }
|
|
31475
|
+
]
|
|
31476
|
+
}));
|
|
31477
|
+
// 响应式方法 | xxx = () => {}
|
|
31478
|
+
/**
|
|
31479
|
+
* 保存用户
|
|
31480
|
+
*/
|
|
31481
|
+
__publicField(this, "doSaveUser", async () => {
|
|
31482
|
+
this.saveingUser.value = true;
|
|
31483
|
+
let result = await this.userForm.value.validate();
|
|
31484
|
+
if (!result) {
|
|
31485
|
+
this.saveingUser.value = false;
|
|
31486
|
+
return;
|
|
31487
|
+
}
|
|
31488
|
+
if (this.userFormModel.AccountType == 0 && this.utilities.isNull(this.userFormModel.Phone)) {
|
|
31489
|
+
this.message.warning("在用户账号模式下,手机号必填!");
|
|
31490
|
+
this.saveingUser.value = false;
|
|
31491
|
+
return;
|
|
31492
|
+
}
|
|
31493
|
+
if (!this.utilities.isNull(this.userFormModel.Phone)) {
|
|
31494
|
+
const reg = /^[1][3,4,5,7,8]\d{9}$/;
|
|
31495
|
+
if (!reg.test(this.userFormModel.Phone)) {
|
|
31496
|
+
this.message.warning(`手机号格式不正确, 请重新输入!`);
|
|
31497
|
+
this.saveingUser.value = false;
|
|
31498
|
+
return;
|
|
31499
|
+
}
|
|
31500
|
+
const queryWrapper2 = QueryWrapper.create();
|
|
31501
|
+
queryWrapper2.eq("Phone", this.userFormModel.Phone).eq("IsDel", 0);
|
|
31502
|
+
if (this.userFormModel.Id > 0) {
|
|
31503
|
+
queryWrapper2.ne("Id", this.userFormModel.Id);
|
|
31504
|
+
}
|
|
31505
|
+
const apiResult2 = await this.userinforApi.isExist(queryWrapper2);
|
|
31506
|
+
result = this.utilities.parseApiResult(apiResult2);
|
|
31507
|
+
if (result) {
|
|
31508
|
+
this.message.warning(`手机号 ${this.userFormModel.Phone} 已关联其他账号, 请重新输入!`);
|
|
31509
|
+
this.saveingUser.value = false;
|
|
31510
|
+
return;
|
|
31511
|
+
}
|
|
31512
|
+
}
|
|
31513
|
+
const queryWrapper = QueryWrapper.create();
|
|
31514
|
+
queryWrapper.eq("Account", this.userFormModel.Account).eq("IsDel", 0);
|
|
31515
|
+
if (this.userFormModel.Id > 0) {
|
|
31516
|
+
queryWrapper.ne("Id", this.userFormModel.Id);
|
|
31517
|
+
}
|
|
31518
|
+
let apiResult = await this.userinforApi.isExist(queryWrapper);
|
|
31519
|
+
result = this.utilities.parseApiResult(apiResult);
|
|
31520
|
+
if (result) {
|
|
31521
|
+
this.message.warning(`账号 ${this.userFormModel.Account} 已存在, 请重新输入!`);
|
|
31522
|
+
this.saveingUser.value = false;
|
|
31523
|
+
return;
|
|
31524
|
+
}
|
|
31525
|
+
apiResult = await this.userinforApi.save(this.userFormModel);
|
|
31526
|
+
result = this.utilities.parseApiResult(apiResult);
|
|
31527
|
+
if (this.userFormModel.Id == 0) {
|
|
31528
|
+
await this.institutionUserApi.save({
|
|
31529
|
+
InstitutionId: this.selectedInsTree.InstitutionId,
|
|
31530
|
+
UserId: result,
|
|
31531
|
+
InsTreeId: this.selectedInsTree.Id
|
|
31532
|
+
});
|
|
31533
|
+
await this.userinforApi.resetUserPwd(result);
|
|
31534
|
+
}
|
|
31535
|
+
this.saveingUser.value = false;
|
|
31536
|
+
if (result > 0) {
|
|
31537
|
+
this.message.success("保存成功");
|
|
31538
|
+
this.insTreeUserGrid.value.refreshData();
|
|
31539
|
+
this.showEditUser.value = false;
|
|
31540
|
+
} else {
|
|
31541
|
+
this.message.error(apiResult.msg);
|
|
31542
|
+
}
|
|
31543
|
+
});
|
|
31544
|
+
//#endregion 编辑用户 END
|
|
31545
|
+
//#region 定岗
|
|
31546
|
+
// 私有属性 | private
|
|
31547
|
+
__publicField(this, "currentUser");
|
|
31548
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
31549
|
+
__publicField(this, "showUserRole", ref(false));
|
|
31550
|
+
__publicField(this, "saveingUserRole", ref(false));
|
|
31551
|
+
__publicField(this, "userRoleGrid", ref());
|
|
31552
|
+
__publicField(this, "userRoleGridOption", reactive({
|
|
31553
|
+
api: this.userinforApi,
|
|
31554
|
+
setting: {
|
|
31555
|
+
border: false,
|
|
31556
|
+
toolbarConfig: {
|
|
31557
|
+
isButtonGroup: false
|
|
31558
|
+
},
|
|
31559
|
+
rowConfig: {
|
|
31560
|
+
isHover: true
|
|
31561
|
+
}
|
|
31562
|
+
},
|
|
31563
|
+
rightToolbars: [
|
|
31564
|
+
{
|
|
31565
|
+
name: "refresh"
|
|
31566
|
+
}
|
|
31567
|
+
],
|
|
31568
|
+
columns: [
|
|
31569
|
+
{
|
|
31570
|
+
colType: "seq"
|
|
31571
|
+
},
|
|
31572
|
+
{
|
|
31573
|
+
colType: "ro",
|
|
31574
|
+
width: 50,
|
|
31575
|
+
align: "center",
|
|
31576
|
+
format: (h2, params) => {
|
|
31577
|
+
return h2(Checkbox, {
|
|
31578
|
+
style: {
|
|
31579
|
+
"margin-right": "0px"
|
|
31580
|
+
},
|
|
31581
|
+
"model-value": params.row.IsChk,
|
|
31582
|
+
"onUpdate:model-value": (value) => {
|
|
31583
|
+
params.row.IsChk = value;
|
|
31584
|
+
}
|
|
31585
|
+
});
|
|
31586
|
+
}
|
|
31587
|
+
},
|
|
31588
|
+
{ colType: "ed", field: "RoleName", title: "角色名称" },
|
|
31589
|
+
{ colType: "ed", field: "DefaultUrl", title: "默认页面", width: 200, align: "center" },
|
|
31590
|
+
{ colType: "ed", field: "欢迎页面", title: "WelcomeUrl", width: 200, align: "center" },
|
|
31591
|
+
{ colType: "num", field: "OrderNo", title: "排序号", width: 100, align: "center" }
|
|
31592
|
+
]
|
|
31593
|
+
}));
|
|
31594
|
+
// 响应式方法 | xxx = () => {}
|
|
31595
|
+
/**
|
|
31596
|
+
* 保存用户角色
|
|
31597
|
+
*/
|
|
31598
|
+
__publicField(this, "doSaveUserRole", async () => {
|
|
31599
|
+
const datas = this.userRoleGrid.value.getDatas();
|
|
31600
|
+
const chkDatas = datas.filter((item) => item.IsChk == true);
|
|
31601
|
+
this.saveingUserRole.value = true;
|
|
31602
|
+
let apiResult = await this.userRoleApi.getEntities(QueryWrapper.create().eq("UserId", this.currentUser.Id).eq("PlatformId", this.selectedPlatform.Id));
|
|
31603
|
+
let userRoles = this.utilities.parseApiResult(apiResult);
|
|
31604
|
+
let insertRecords = [];
|
|
31605
|
+
for (const item of chkDatas) {
|
|
31606
|
+
if (userRoles.findIndex((d) => d.RoleId == item.Id) == -1) {
|
|
31607
|
+
insertRecords.push({
|
|
31608
|
+
PlatformId: this.selectedPlatform.Id,
|
|
31609
|
+
UserId: this.currentUser.Id,
|
|
31610
|
+
RoleId: item.Id
|
|
31611
|
+
});
|
|
31612
|
+
}
|
|
31613
|
+
}
|
|
31614
|
+
let deleteRecords = [];
|
|
31615
|
+
for (const item of userRoles) {
|
|
31616
|
+
if (chkDatas.findIndex((d) => d.Id == item.RoleId) == -1) {
|
|
31617
|
+
deleteRecords.push(item.Id);
|
|
31618
|
+
}
|
|
31619
|
+
}
|
|
31620
|
+
if (insertRecords.length == 0 && deleteRecords.length == 0) {
|
|
31621
|
+
this.message.warning("没有需要保存的数据");
|
|
31622
|
+
this.saveingUserRole.value = false;
|
|
31623
|
+
return;
|
|
31624
|
+
}
|
|
31625
|
+
let isSaveing = true;
|
|
31626
|
+
if (insertRecords.length > 0) {
|
|
31627
|
+
apiResult = await this.userRoleApi.saves(insertRecords);
|
|
31628
|
+
let insertResult = this.utilities.parseApiResult(apiResult);
|
|
31629
|
+
if (isSaveing == true) {
|
|
31630
|
+
isSaveing = insertResult > 0;
|
|
31631
|
+
}
|
|
31632
|
+
}
|
|
31633
|
+
if (deleteRecords.length > 0) {
|
|
31634
|
+
apiResult = await this.userRoleApi.deleteByIds(deleteRecords.join(","));
|
|
31635
|
+
let deleteResult = this.utilities.parseApiResult(apiResult);
|
|
31636
|
+
if (isSaveing == false) {
|
|
31637
|
+
isSaveing = deleteResult > 0;
|
|
31638
|
+
}
|
|
31639
|
+
}
|
|
31640
|
+
this.saveingUserRole.value = false;
|
|
31641
|
+
if (isSaveing) {
|
|
31642
|
+
this.message.success("保存成功");
|
|
31643
|
+
this.showUserRole.value = false;
|
|
31644
|
+
} else {
|
|
31645
|
+
this.message.error("保存失败, 请稍后重试!");
|
|
31646
|
+
}
|
|
31647
|
+
});
|
|
31648
|
+
//#endregion 定岗 END
|
|
31649
|
+
//#region 导入用户
|
|
31650
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
31651
|
+
__publicField(this, "showImportUser", ref(false));
|
|
31652
|
+
__publicField(this, "saveingImportUser", ref(false));
|
|
31653
|
+
__publicField(this, "otherUserGrid", ref());
|
|
31654
|
+
__publicField(this, "otherUserGridOption", reactive({
|
|
31655
|
+
api: this.userinforApi,
|
|
31656
|
+
setting: {
|
|
31657
|
+
border: true,
|
|
31658
|
+
searchConfig: {
|
|
31659
|
+
btnSpan: 24,
|
|
31660
|
+
labelWidth: 90,
|
|
31661
|
+
defaultShowSearch: false
|
|
31662
|
+
},
|
|
31663
|
+
toolbarConfig: {
|
|
31664
|
+
isButtonGroup: false
|
|
31665
|
+
},
|
|
31666
|
+
rowConfig: {
|
|
31667
|
+
isHover: true
|
|
31668
|
+
}
|
|
31669
|
+
},
|
|
31670
|
+
searchOptions: [
|
|
31671
|
+
{
|
|
31672
|
+
field: "UserName",
|
|
31673
|
+
title: "用户姓名",
|
|
31674
|
+
type: "Input",
|
|
31675
|
+
span: 8
|
|
31676
|
+
},
|
|
31677
|
+
{
|
|
31678
|
+
field: "Account",
|
|
31679
|
+
title: "账号",
|
|
31680
|
+
type: "Input",
|
|
31681
|
+
span: 8
|
|
31682
|
+
},
|
|
31683
|
+
{
|
|
31684
|
+
field: "AccountStatus",
|
|
31685
|
+
title: "账号状态",
|
|
31686
|
+
type: "Radio",
|
|
31687
|
+
data: [{ text: "正常", value: 1 }, { text: "挂起", value: 2 }, { text: "禁用", value: 3 }],
|
|
31688
|
+
span: 8
|
|
31689
|
+
}
|
|
31690
|
+
],
|
|
31691
|
+
rightToolbars: [
|
|
31692
|
+
{
|
|
31693
|
+
name: "refresh"
|
|
31694
|
+
}
|
|
31695
|
+
],
|
|
31696
|
+
columns: [
|
|
31697
|
+
{
|
|
31698
|
+
colType: "seq"
|
|
31699
|
+
},
|
|
31700
|
+
{
|
|
31701
|
+
colType: "checkbox"
|
|
31702
|
+
},
|
|
31703
|
+
{ colType: "ro", field: "UserName", title: "姓名", minWidth: 160 },
|
|
31704
|
+
{
|
|
31705
|
+
colType: "ro",
|
|
31706
|
+
field: "Sex",
|
|
31707
|
+
title: "性别",
|
|
31708
|
+
width: 120,
|
|
31709
|
+
align: "center",
|
|
31710
|
+
format: (h2, params) => {
|
|
31711
|
+
const dict = {
|
|
31712
|
+
1: "男",
|
|
31713
|
+
2: "女",
|
|
31714
|
+
3: "其他"
|
|
31715
|
+
};
|
|
31716
|
+
return dict[params.row["Sex"]];
|
|
31717
|
+
}
|
|
31718
|
+
},
|
|
31719
|
+
{ colType: "ro", field: "Account", title: "账号", width: 180 },
|
|
31720
|
+
{
|
|
31721
|
+
colType: "ro",
|
|
31722
|
+
field: "AccountStatus",
|
|
31723
|
+
title: "账号状态",
|
|
31724
|
+
width: 160,
|
|
31725
|
+
align: "center",
|
|
31726
|
+
format: (h2, params) => {
|
|
31727
|
+
const dict = {
|
|
31728
|
+
1: { text: "正常", color: "green" },
|
|
31729
|
+
2: { text: "挂起", color: "gold" },
|
|
31730
|
+
3: { text: "禁用", color: "red" }
|
|
31731
|
+
};
|
|
31732
|
+
const option = dict[params.row["AccountStatus"]];
|
|
31733
|
+
return h2(Tag, { color: option.color }, () => option.text);
|
|
31734
|
+
}
|
|
31735
|
+
}
|
|
31736
|
+
],
|
|
31737
|
+
event: {
|
|
31738
|
+
event_search: (data) => {
|
|
31739
|
+
this.loadImportUserGrid(data);
|
|
31740
|
+
}
|
|
31741
|
+
}
|
|
31742
|
+
}));
|
|
31743
|
+
// 响应式方法 | xxx = () => {}
|
|
31744
|
+
/**
|
|
31745
|
+
* 导入用户
|
|
31746
|
+
*/
|
|
31747
|
+
__publicField(this, "doImportUser", async () => {
|
|
31748
|
+
const datas = this.otherUserGrid.value.getCheckboxDatas();
|
|
31749
|
+
if (datas.length == 0) {
|
|
31750
|
+
this.message.warning("没有需要导入的用户");
|
|
31751
|
+
return;
|
|
31752
|
+
}
|
|
31753
|
+
const saveDatas = [];
|
|
31754
|
+
for (const data of datas) {
|
|
31755
|
+
saveDatas.push({
|
|
31756
|
+
InstitutionId: this.selectedInsTree.InstitutionId,
|
|
31757
|
+
UserId: data.Id,
|
|
31758
|
+
InsTreeId: this.selectedInsTree.Id
|
|
31759
|
+
});
|
|
31760
|
+
}
|
|
31761
|
+
this.saveingImportUser.value = true;
|
|
31762
|
+
let apiResult = await this.institutionUserApi.saves(saveDatas);
|
|
31763
|
+
let result = this.utilities.parseApiResult(apiResult);
|
|
31764
|
+
this.saveingImportUser.value = false;
|
|
31765
|
+
if (result) {
|
|
31766
|
+
this.message.success("导入成功");
|
|
31767
|
+
this.insTreeUserGrid.value.refreshData();
|
|
31768
|
+
this.showImportUser.value = false;
|
|
31769
|
+
} else {
|
|
31770
|
+
this.message.error("导入失败, 请稍后重试!");
|
|
31771
|
+
}
|
|
31772
|
+
});
|
|
31773
|
+
//#endregion 导入用户 END
|
|
31774
|
+
//#region 登录日志
|
|
31775
|
+
// 私有属性 | private
|
|
31776
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
31777
|
+
__publicField(this, "showLoginLog", ref(false));
|
|
31778
|
+
__publicField(this, "loginLogRef", ref());
|
|
31779
|
+
// 私有方法 | private 方法名() {}
|
|
31780
|
+
// 响应式方法 | xxx = () => {}
|
|
31781
|
+
/**
|
|
31782
|
+
* 显示登录日志
|
|
31783
|
+
*/
|
|
31784
|
+
__publicField(this, "doShowLoginLog", (item) => {
|
|
31785
|
+
this.showLoginLog.value = true;
|
|
31786
|
+
this.loginLogRef.value.loadLoginLog(this.selectedPlatform.Id, item.Id);
|
|
31787
|
+
});
|
|
31788
|
+
//#endregion 登录日志 END
|
|
31789
|
+
//#region 运维登录
|
|
31790
|
+
// 私有属性 | private
|
|
31791
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
31792
|
+
__publicField(this, "loginRef", ref());
|
|
31793
|
+
__publicField(this, "logining", ref(false));
|
|
31794
|
+
// 响应式方法 | xxx = () => {}
|
|
31795
|
+
//#endregion 运维登录 END
|
|
31796
|
+
//#region CA签字配置
|
|
31797
|
+
// 私有属性 | private
|
|
31798
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
31799
|
+
__publicField(this, "showEditUserSign", ref(false));
|
|
31800
|
+
__publicField(this, "saveingUserSign", ref(false));
|
|
31801
|
+
__publicField(this, "userSignForm", ref());
|
|
31802
|
+
__publicField(this, "userSignFormModel", reactive({
|
|
31803
|
+
Id: 0,
|
|
31804
|
+
UserId: 0,
|
|
31805
|
+
CAUserInfoKey: "",
|
|
31806
|
+
CAUserSealKey: "",
|
|
31807
|
+
CAUserYZKey: "",
|
|
31808
|
+
CAUserSealImg: "",
|
|
31809
|
+
CAUserYZImg: ""
|
|
31810
|
+
}));
|
|
31811
|
+
__publicField(this, "userSignFormItems", reactive([
|
|
31812
|
+
{ model: "CAUserInfoKey", label: "用户KEY", type: "Input", prop: "CAUserInfoKey", span: 24 },
|
|
31813
|
+
{ model: "CAUserSealKey", label: "印章KEY", type: "Input", prop: "CAUserSealKey", span: 24 },
|
|
31814
|
+
{ model: "CAUserYZKey", label: "圆章KEY", type: "Input", prop: "CAUserYZKey", span: 24 }
|
|
31815
|
+
]));
|
|
31816
|
+
// 响应式方法 | xxx = () => {}
|
|
31817
|
+
/**
|
|
31818
|
+
* 保存用户签字
|
|
31819
|
+
*/
|
|
31820
|
+
__publicField(this, "doSaveUserSign", async () => {
|
|
31821
|
+
this.saveingUserSign.value = true;
|
|
31822
|
+
const apiResult = await this.userSignApi.save(this.userSignFormModel);
|
|
31823
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
31824
|
+
this.saveingUserSign.value = false;
|
|
31825
|
+
if (result) {
|
|
31826
|
+
this.message.success("保存成功");
|
|
31827
|
+
this.showEditUserSign.value = false;
|
|
31828
|
+
} else {
|
|
31829
|
+
this.message.error("保存失败,请稍后重试");
|
|
31830
|
+
}
|
|
31831
|
+
});
|
|
31832
|
+
/**
|
|
31833
|
+
* 加载用户印章KEY
|
|
31834
|
+
*/
|
|
31835
|
+
__publicField(this, "doLoadUserSealImg", async () => {
|
|
31836
|
+
if (this.utilities.isNull(this.selectedPlatform.CABusinessKey)) {
|
|
31837
|
+
this.message.warning("请先在平台模块设置CA业务KEY");
|
|
31838
|
+
return;
|
|
31839
|
+
}
|
|
31840
|
+
if (this.utilities.isNull(this.userSignFormModel.CAUserSealKey)) {
|
|
31841
|
+
this.message.warning("请输入印章KEY");
|
|
31842
|
+
return;
|
|
31843
|
+
}
|
|
31844
|
+
const apiResult = await this.signTaskInfoApi.GetUserSealCloudInfo(this.selectedPlatform.CABusinessKey, this.userSignFormModel.CAUserSealKey);
|
|
31845
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
31846
|
+
if (result) {
|
|
31847
|
+
this.userSignFormModel.CAUserSealImg = "data:image/png;base64," + result.data.sealPic;
|
|
31848
|
+
} else {
|
|
31849
|
+
this.message.error("读取失败,请稍后重试");
|
|
31850
|
+
}
|
|
31851
|
+
});
|
|
31852
|
+
/**
|
|
31853
|
+
* 加载圆章KEY
|
|
31854
|
+
*/
|
|
31855
|
+
__publicField(this, "doLoadUserYZImg", async () => {
|
|
31856
|
+
if (this.utilities.isNull(this.selectedPlatform.CABusinessKey)) {
|
|
31857
|
+
this.message.warning("请先在平台模块设置CA业务KEY");
|
|
31858
|
+
return;
|
|
31859
|
+
}
|
|
31860
|
+
if (this.utilities.isNull(this.userSignFormModel.CAUserYZKey)) {
|
|
31861
|
+
this.message.warning("请输入圆章KEY");
|
|
31862
|
+
return;
|
|
31863
|
+
}
|
|
31864
|
+
const apiResult = await this.signTaskInfoApi.GetUserSealCloudInfo(this.selectedPlatform.CABusinessKey, this.userSignFormModel.CAUserYZKey);
|
|
31865
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
31866
|
+
if (result) {
|
|
31867
|
+
if (result.head.code == 10) {
|
|
31868
|
+
this.userSignFormModel.CAUserYZImg = "data:image/png;base64," + result.data.sealPic;
|
|
31869
|
+
} else {
|
|
31870
|
+
this.message.error(result.head.msg);
|
|
31871
|
+
}
|
|
31872
|
+
} else {
|
|
31873
|
+
this.message.error("读取失败,请稍后重试");
|
|
31874
|
+
}
|
|
31875
|
+
});
|
|
31876
|
+
//#region 重置密码
|
|
31877
|
+
__publicField(this, "showPW", ref(false));
|
|
31878
|
+
__publicField(this, "curUser", {});
|
|
31879
|
+
__publicField(this, "pwUserComForm", ref());
|
|
31880
|
+
__publicField(this, "pwFormModel", reactive({
|
|
31881
|
+
newPwd: "",
|
|
31882
|
+
oldPwd: "",
|
|
31883
|
+
AffirmPassword: ""
|
|
31884
|
+
}));
|
|
31885
|
+
__publicField(this, "pwFormItems", reactive([
|
|
31886
|
+
{ model: "oldPwd", label: "原密码", span: 24, type: "Input", inputProp: { type: "password", password: true }, prop: "oldPwd", rules: [{ required: true, message: "请输入原密码", trigger: "blur" }] },
|
|
31887
|
+
{ model: "newPwd", label: "新密码", span: 24, type: "Input", inputProp: { type: "password", password: true }, prop: "newPwd", rules: [{ required: true, message: "请输入新密码", trigger: "blur" }] },
|
|
31888
|
+
{ model: "AffirmPassword", label: "确认密码", span: 24, type: "Input", inputProp: { type: "password", password: true }, prop: "AffirmPassword", rules: [{ required: true, message: "请确认密码", trigger: "blur" }] }
|
|
31889
|
+
]));
|
|
31890
|
+
// private doResetUserPwd(userId: number) {
|
|
31891
|
+
// this.pwFormModel.newPwd = ''
|
|
31892
|
+
// this.pwFormModel.oldPwd = ''
|
|
31893
|
+
// this.pwFormModel.AffirmPassword = ''
|
|
31894
|
+
// this.showPW.value = true
|
|
31895
|
+
// this.curUser = userId
|
|
31896
|
+
// }
|
|
31897
|
+
// 响应式方法 | xxx = () => {}
|
|
31898
|
+
__publicField(this, "savePassword", async () => {
|
|
31899
|
+
const validate = await this.pwUserComForm.value.validate();
|
|
31900
|
+
if (!validate) {
|
|
31901
|
+
return;
|
|
31902
|
+
}
|
|
31903
|
+
if (this.pwFormModel.newPwd != this.pwFormModel.AffirmPassword) {
|
|
31904
|
+
this.message.warning("请确认两次密码输入一致");
|
|
31905
|
+
return;
|
|
31906
|
+
}
|
|
31907
|
+
const res = this.utilities.parseApiResult(await this.userinforApi.updateUserPwd(this.curUser, this.pwFormModel.newPwd));
|
|
31908
|
+
if (res > 0) {
|
|
31909
|
+
const apiResult = await this.userinforApi.resetUserPwd(this.curUser);
|
|
31910
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
31911
|
+
if (result > 0) {
|
|
31912
|
+
this.message.success("重置成功");
|
|
31913
|
+
} else {
|
|
31914
|
+
this.message.error("操作失败,请稍后重试");
|
|
31915
|
+
}
|
|
31916
|
+
} else {
|
|
31917
|
+
this.message.error("操作失败,请稍后重试");
|
|
31918
|
+
}
|
|
31919
|
+
});
|
|
31920
|
+
this.props = props;
|
|
31921
|
+
this.ctx = ctx;
|
|
31922
|
+
this.initData();
|
|
31923
|
+
}
|
|
31924
|
+
// 私有方法 | private 方法名() {}
|
|
31925
|
+
initData() {
|
|
31926
|
+
onMounted(() => {
|
|
31927
|
+
this.getPlatData();
|
|
31928
|
+
});
|
|
31929
|
+
onUnmounted(() => {
|
|
31930
|
+
});
|
|
31931
|
+
}
|
|
31932
|
+
// 私有方法 | private 方法名() {}
|
|
31933
|
+
/**
|
|
31934
|
+
* 加载机构树
|
|
31935
|
+
*/
|
|
31936
|
+
async loadInsTree() {
|
|
31937
|
+
let hasSelected = false;
|
|
31938
|
+
this.loadingInstitutionTree.value = true;
|
|
31939
|
+
const apiResult = await this.institutionTreeApi.getInstitutionTrees(this.selectedPlatform.Id);
|
|
31940
|
+
const datas = this.utilities.parseApiResult(apiResult);
|
|
31941
|
+
this.loadingInstitutionTree.value = false;
|
|
31942
|
+
const whileChildData = (pId) => {
|
|
31943
|
+
const childDatas = datas.filter((item) => item.PId == pId);
|
|
31944
|
+
for (const data of childDatas) {
|
|
31945
|
+
data.title = data.InstitutionAbbreviation;
|
|
31946
|
+
data.expand = true;
|
|
31947
|
+
const selected = this.utilities.isNull(this.selectedInsTree) ? false : this.selectedInsTree.Id == data.Id;
|
|
31948
|
+
data.selected = selected;
|
|
31949
|
+
if (selected) {
|
|
31950
|
+
hasSelected = true;
|
|
31951
|
+
}
|
|
31952
|
+
const values = whileChildData(data.Id);
|
|
31953
|
+
if (values.length > 0) {
|
|
31954
|
+
data.children = values;
|
|
31955
|
+
}
|
|
31956
|
+
}
|
|
31957
|
+
return childDatas;
|
|
31958
|
+
};
|
|
31959
|
+
this.institutionTree.value = whileChildData(0);
|
|
31960
|
+
if (!hasSelected && this.institutionTree.value.length > 0) {
|
|
31961
|
+
const data = this.institutionTree.value[0];
|
|
31962
|
+
data.selected = true;
|
|
31963
|
+
this.doChangeInsTree([data]);
|
|
31964
|
+
}
|
|
31965
|
+
}
|
|
31966
|
+
// 私有方法 | private 方法名() {}
|
|
31967
|
+
/**
|
|
31968
|
+
* 加载机构树用户
|
|
31969
|
+
* @param search
|
|
31970
|
+
*/
|
|
31971
|
+
loadInstitutionTreeUsers(search) {
|
|
31972
|
+
this.insTreeUserGrid.value.loadData(async (option) => {
|
|
31973
|
+
const apiResult = await this.userinforApi.getInstitutionTreeUsers(
|
|
31974
|
+
option.page,
|
|
31975
|
+
option.pageSize,
|
|
31976
|
+
this.selectedInsTree.Id,
|
|
31977
|
+
this.utilities.getValueNotNull(search.UserName, ""),
|
|
31978
|
+
this.utilities.getValueNotNull(search.Account, ""),
|
|
31979
|
+
this.utilities.getValueNotNull(search.AccountStatus, 0)
|
|
31980
|
+
);
|
|
31981
|
+
const datas = this.utilities.parseApiResult(apiResult);
|
|
31982
|
+
option.success(datas);
|
|
31983
|
+
});
|
|
31984
|
+
}
|
|
31985
|
+
// 私有方法 | private 方法名() {}
|
|
31986
|
+
/**
|
|
31987
|
+
* 编辑用户信息
|
|
31988
|
+
* @param data
|
|
31989
|
+
*/
|
|
31990
|
+
doEditUser(data) {
|
|
31991
|
+
const user = this.storageInfo.getUser();
|
|
31992
|
+
this.userFormModel.Id = data.Id;
|
|
31993
|
+
this.userFormModel.UserName = data.UserName;
|
|
31994
|
+
this.userFormModel.Sex = data.Sex;
|
|
31995
|
+
this.userFormModel.Phone = data.Phone;
|
|
31996
|
+
this.userFormModel.CIdNo = data.CIdNo;
|
|
31997
|
+
this.userFormModel.UserIconToken = data.UserIconToken;
|
|
31998
|
+
this.userFormModel.UserSignImgToken = data.UserSignImgToken;
|
|
31999
|
+
this.userFormModel.Account = data.Account;
|
|
32000
|
+
this.userFormModel.AccountStatus = data.AccountStatus;
|
|
32001
|
+
this.userFormModel.AccountType = data.AccountType;
|
|
32002
|
+
this.userFormModel.ErrorNum = data.ErrorNum;
|
|
32003
|
+
this.userFormModel.ExpiredDate = data.ExpiredDate;
|
|
32004
|
+
this.userFormModel.IsMutex = data.IsMutex;
|
|
32005
|
+
this.userFormModel.PwdAuthentication = data.PwdAuthentication;
|
|
32006
|
+
this.userFormModel.LastUpdateUserId = user.Id;
|
|
32007
|
+
this.userFormModel.LastUpdateUserName = user.UserName;
|
|
32008
|
+
this.userFormModel.LastUpdateDate = this.utilities.getCurrentDate();
|
|
32009
|
+
this.editUserTitle.value = "编辑用户 - " + data.UserName;
|
|
32010
|
+
this.showEditUser.value = true;
|
|
32011
|
+
}
|
|
32012
|
+
/**
|
|
32013
|
+
* 新增用户信息
|
|
32014
|
+
*/
|
|
32015
|
+
doAddUser() {
|
|
32016
|
+
const user = this.storageInfo.getUser();
|
|
32017
|
+
this.userFormModel.Id = 0;
|
|
32018
|
+
this.userFormModel.UserName = "";
|
|
32019
|
+
this.userFormModel.Sex = 1;
|
|
32020
|
+
this.userFormModel.Phone = "";
|
|
32021
|
+
this.userFormModel.CIdNo = "";
|
|
32022
|
+
this.userFormModel.UserIconToken = "";
|
|
32023
|
+
this.userFormModel.UserSignImgToken = "";
|
|
32024
|
+
this.userFormModel.Account = "";
|
|
32025
|
+
this.userFormModel.AccountType = 0;
|
|
32026
|
+
this.userFormModel.AccountStatus = 1;
|
|
32027
|
+
this.userFormModel.ErrorNum = 0;
|
|
32028
|
+
let currentDate = this.utilities.getCurrentDate();
|
|
32029
|
+
currentDate = this.utilities.dateHelper.format(this.utilities.dateHelper.add(this.utilities.stringHelper.toDate(currentDate), 1, "years"), "YYYY-MM-DD");
|
|
32030
|
+
this.userFormModel.ExpiredDate = currentDate;
|
|
32031
|
+
this.userFormModel.IsMutex = 0;
|
|
32032
|
+
this.userFormModel.PwdAuthentication = 0;
|
|
32033
|
+
this.userFormModel.LastUpdateUserId = user.Id;
|
|
32034
|
+
this.userFormModel.LastUpdateUserName = user.UserName;
|
|
32035
|
+
this.userFormModel.LastUpdateDate = this.utilities.getCurrentDate();
|
|
32036
|
+
this.editUserTitle.value = "新增 - 用户";
|
|
32037
|
+
this.showEditUser.value = true;
|
|
32038
|
+
}
|
|
32039
|
+
/**
|
|
32040
|
+
* 删除用户信息
|
|
32041
|
+
* @param data
|
|
32042
|
+
*/
|
|
32043
|
+
doDeleteUser(data) {
|
|
32044
|
+
this.modal.confirm({
|
|
32045
|
+
title: "提示",
|
|
32046
|
+
content: `确定要移除用户${data.UserName}吗?`,
|
|
32047
|
+
onOk: async () => {
|
|
32048
|
+
const apiResult = await this.userinforApi.save({ Id: data.Id, IsDel: 1 });
|
|
32049
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
32050
|
+
if (result > 0) {
|
|
32051
|
+
this.message.success("删除成功");
|
|
32052
|
+
this.insTreeUserGrid.value.refreshData();
|
|
32053
|
+
} else {
|
|
32054
|
+
this.message.error("删除失败, 请稍后重试!");
|
|
32055
|
+
}
|
|
32056
|
+
}
|
|
32057
|
+
});
|
|
32058
|
+
}
|
|
32059
|
+
// 私有方法 | private 方法名() {}
|
|
32060
|
+
/**
|
|
32061
|
+
* 显示用户角色绑定
|
|
32062
|
+
* @param user
|
|
32063
|
+
*/
|
|
32064
|
+
doShowUserRole(user) {
|
|
32065
|
+
this.currentUser = user;
|
|
32066
|
+
this.showUserRole.value = true;
|
|
32067
|
+
nextTick(() => {
|
|
32068
|
+
this.loadUserRole();
|
|
32069
|
+
});
|
|
32070
|
+
}
|
|
32071
|
+
/**
|
|
32072
|
+
* 加载用户角色
|
|
32073
|
+
*/
|
|
32074
|
+
loadUserRole() {
|
|
32075
|
+
this.userRoleGrid.value.loadData(async (option) => {
|
|
32076
|
+
let apiResult = await this.userRoleApi.getEntities(QueryWrapper.create().eq("UserId", this.currentUser.Id).eq("PlatformId", this.selectedPlatform.Id));
|
|
32077
|
+
let userRoles = this.utilities.parseApiResult(apiResult);
|
|
32078
|
+
apiResult = await this.institutionPlatformApi.getEntityByFilter(QueryWrapper.create().eq("PlatformId", this.selectedPlatform.Id).eq("InstitutionId", this.selectedInsTree.InstitutionId));
|
|
32079
|
+
let institutionPlatform = this.utilities.parseApiResult(apiResult);
|
|
32080
|
+
if (this.utilities.isNull(institutionPlatform) || this.utilities.isNull(institutionPlatform.RoleIds)) {
|
|
32081
|
+
option.success([]);
|
|
32082
|
+
return;
|
|
32083
|
+
}
|
|
32084
|
+
apiResult = await this.roleApi.getEntities(QueryWrapper.create().in("Id", institutionPlatform.RoleIds.split(",")));
|
|
32085
|
+
let roles = this.utilities.parseApiResult(apiResult);
|
|
32086
|
+
for (const role of roles) {
|
|
32087
|
+
const isChk = this.utilities.isNull(userRoles) ? false : userRoles.findIndex((item) => item.RoleId == role.Id) >= 0;
|
|
32088
|
+
role.IsChk = isChk;
|
|
32089
|
+
}
|
|
32090
|
+
option.success(roles);
|
|
32091
|
+
});
|
|
32092
|
+
}
|
|
32093
|
+
// 私有方法 | private 方法名() {}
|
|
32094
|
+
// /**
|
|
32095
|
+
// * 显示导入用户
|
|
32096
|
+
// */
|
|
32097
|
+
// private doShowImportUser() {
|
|
32098
|
+
// this.showImportUser.value = true;
|
|
32099
|
+
// nextTick(() => {
|
|
32100
|
+
// this.loadImportUserGrid({});
|
|
32101
|
+
// })
|
|
32102
|
+
// }
|
|
32103
|
+
/**
|
|
32104
|
+
* 加载能导入用户的数据
|
|
32105
|
+
*/
|
|
32106
|
+
loadImportUserGrid(search) {
|
|
32107
|
+
this.otherUserGrid.value.loadData(async (option) => {
|
|
32108
|
+
const apiResult = await this.userinforApi.getNotInInstitutionTreeUsers(
|
|
32109
|
+
this.selectedInsTree.InstitutionId,
|
|
32110
|
+
this.selectedInsTree.Id,
|
|
32111
|
+
this.utilities.getValueNotNull(search.UserName, ""),
|
|
32112
|
+
this.utilities.getValueNotNull(search.Account, ""),
|
|
32113
|
+
this.utilities.getValueNotNull(search.AccountStatus, 0)
|
|
32114
|
+
);
|
|
32115
|
+
const datas = this.utilities.parseApiResult(apiResult);
|
|
32116
|
+
option.success(datas);
|
|
32117
|
+
});
|
|
32118
|
+
}
|
|
32119
|
+
// 私有方法 | private 方法名() {}
|
|
32120
|
+
/**
|
|
32121
|
+
* 运维登录
|
|
32122
|
+
* @param row
|
|
32123
|
+
*/
|
|
32124
|
+
async devOpsLogin(row) {
|
|
32125
|
+
this.logining.value = true;
|
|
32126
|
+
const apiResult = await this.oauthApi.devOpsLogin(row.Id);
|
|
32127
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
32128
|
+
this.logining.value = false;
|
|
32129
|
+
if (!result.IsSuccess) {
|
|
32130
|
+
this.message.warning(result.Msg);
|
|
32131
|
+
return;
|
|
32132
|
+
}
|
|
32133
|
+
this.message.success("登录成功!");
|
|
32134
|
+
this.storageInfo.removeAll();
|
|
32135
|
+
this.loginRef.value.setLoginResult(result);
|
|
32136
|
+
}
|
|
32137
|
+
// 私有方法 | private 方法名() {}
|
|
32138
|
+
/**
|
|
32139
|
+
* 编辑用户签字
|
|
32140
|
+
*/
|
|
32141
|
+
async doShowEditUserSign(row) {
|
|
32142
|
+
this.showEditUserSign.value = true;
|
|
32143
|
+
const apiResult = await this.userSignApi.getEntityByFilter(QueryWrapper.create().eq("UserId", row.Id));
|
|
32144
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
32145
|
+
if (!this.utilities.isNull(result)) {
|
|
32146
|
+
this.userSignFormModel.Id = result.Id;
|
|
32147
|
+
this.userSignFormModel.UserId = result.UserId;
|
|
32148
|
+
this.userSignFormModel.CAUserInfoKey = result.CAUserInfoKey;
|
|
32149
|
+
this.userSignFormModel.CAUserSealKey = result.CAUserSealKey;
|
|
32150
|
+
this.userSignFormModel.CAUserYZKey = result.CAUserYZKey;
|
|
32151
|
+
this.userSignFormModel.CAUserSealImg = result.CAUserSealImg;
|
|
32152
|
+
this.userSignFormModel.CAUserYZImg = result.CAUserYZImg;
|
|
32153
|
+
} else {
|
|
32154
|
+
this.userSignFormModel.Id = 0;
|
|
32155
|
+
this.userSignFormModel.UserId = row.Id;
|
|
32156
|
+
this.userSignFormModel.CAUserInfoKey = "";
|
|
32157
|
+
this.userSignFormModel.CAUserSealKey = "";
|
|
32158
|
+
this.userSignFormModel.CAUserYZKey = "";
|
|
32159
|
+
this.userSignFormModel.CAUserSealImg = "";
|
|
32160
|
+
this.userSignFormModel.CAUserYZImg = "";
|
|
32161
|
+
}
|
|
32162
|
+
}
|
|
32163
|
+
//#endregion CA签字配置 END
|
|
32164
|
+
validPhone(rule, value, callback) {
|
|
32165
|
+
if (!value) {
|
|
32166
|
+
return callback(new Error(`手机号不能为空`));
|
|
32167
|
+
} else if (!/^1[3456789]\d{9}$/.test(value)) {
|
|
32168
|
+
callback("手机号格式不正确!");
|
|
32169
|
+
} else {
|
|
32170
|
+
callback();
|
|
32171
|
+
}
|
|
32172
|
+
}
|
|
32173
|
+
// 私有属性 | private
|
|
32174
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
32175
|
+
// 私有方法 | private 方法名() {}
|
|
32176
|
+
/**
|
|
32177
|
+
* 重置密码
|
|
32178
|
+
* @param userId
|
|
32179
|
+
*/
|
|
32180
|
+
doResetUserPwd(userId) {
|
|
32181
|
+
this.modal.confirm({
|
|
32182
|
+
title: "提示",
|
|
32183
|
+
content: "确定要重置为初始密码吗?",
|
|
32184
|
+
onOk: async () => {
|
|
32185
|
+
const apiResult = await this.userinforApi.resetUserPwd(userId);
|
|
32186
|
+
const result = this.utilities.parseApiResult(apiResult);
|
|
32187
|
+
if (result > 0) {
|
|
32188
|
+
this.message.success("重置成功");
|
|
32189
|
+
} else {
|
|
32190
|
+
this.message.error("操作失败,请稍后重试");
|
|
32191
|
+
}
|
|
32192
|
+
}
|
|
32193
|
+
});
|
|
32194
|
+
}
|
|
32195
|
+
//#endregion 业务逻辑 END
|
|
32196
|
+
}
|
|
32197
|
+
const ProjectUserinfor_vue_vue_type_style_index_0_scoped_9a899d22_lang = "";
|
|
32198
|
+
const _withScopeId = (n) => (pushScopeId("data-v-9a899d22"), n = n(), popScopeId(), n);
|
|
32199
|
+
const _hoisted_1 = { class: "instree-search" };
|
|
32200
|
+
const _hoisted_2 = { class: "instree-list" };
|
|
32201
|
+
const _hoisted_3 = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
32202
|
+
const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { style: { "margin-left": "16px", "color": "#ff9900" } }, [
|
|
32203
|
+
/* @__PURE__ */ createElementVNode("div", { style: { "padding-bottom": "8px" } }, "用户账号:手机号必填。在新设备登录时,需进行短信验证。"),
|
|
32204
|
+
/* @__PURE__ */ createElementVNode("div", null, "内部账号:手机号可不填。")
|
|
32205
|
+
], -1));
|
|
32206
|
+
const _hoisted_5 = { style: { "height": "600px", "overflow-y": "auto" } };
|
|
32207
|
+
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "primary-color gird-tip" }, "勾选绑定用户角色!", -1));
|
|
32208
|
+
const _hoisted_7 = { style: { "height": "650px", "overflow-y": "auto" } };
|
|
32209
|
+
const _hoisted_8 = { style: { "display": "none" } };
|
|
32210
|
+
const _hoisted_9 = { style: { "height": "400px", "overflow-y": "auto" } };
|
|
32211
|
+
const _hoisted_10 = ["src"];
|
|
32212
|
+
const _hoisted_11 = ["src"];
|
|
32213
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32214
|
+
const _component_Option = resolveComponent("Option");
|
|
32215
|
+
const _component_Select = resolveComponent("Select");
|
|
32216
|
+
const _component_Spin = resolveComponent("Spin");
|
|
32217
|
+
const _component_NvControlGroup = resolveComponent("NvControlGroup");
|
|
32218
|
+
const _component_Tree = resolveComponent("Tree");
|
|
32219
|
+
const _component_Button = resolveComponent("Button");
|
|
32220
|
+
const _component_Space = resolveComponent("Space");
|
|
32221
|
+
const _component_NvBox = resolveComponent("NvBox");
|
|
32222
|
+
const _component_NvGrid = resolveComponent("NvGrid");
|
|
32223
|
+
const _component_NvComForm = resolveComponent("NvComForm");
|
|
32224
|
+
const _component_Form = resolveComponent("Form");
|
|
32225
|
+
const _component_Modal = resolveComponent("Modal");
|
|
32226
|
+
const _component_LoginLog = resolveComponent("LoginLog");
|
|
32227
|
+
const _component_BaseLogin = resolveComponent("BaseLogin");
|
|
32228
|
+
const _component_FormItem = resolveComponent("FormItem");
|
|
32229
|
+
const _component_NvPage = resolveComponent("NvPage");
|
|
32230
|
+
return openBlock(), createBlock(_component_NvPage, {
|
|
32231
|
+
gutter: 8,
|
|
32232
|
+
class: "userinfor"
|
|
32233
|
+
}, {
|
|
32234
|
+
default: withCtx(() => [
|
|
32235
|
+
createVNode(_component_NvBox, {
|
|
32236
|
+
width: "300px",
|
|
32237
|
+
title: "组织机构树",
|
|
32238
|
+
showArrow: true,
|
|
32239
|
+
onChange: _ctx.doChangeUserBoxWidth
|
|
32240
|
+
}, {
|
|
32241
|
+
footer: withCtx(() => [
|
|
32242
|
+
createVNode(_component_Space, null, {
|
|
32243
|
+
default: withCtx(() => [
|
|
32244
|
+
createVNode(_component_Button, {
|
|
32245
|
+
type: "text",
|
|
32246
|
+
onClick: _ctx.doRefreshInsTree
|
|
32247
|
+
}, {
|
|
32248
|
+
default: withCtx(() => [
|
|
32249
|
+
createTextVNode("刷新")
|
|
32250
|
+
]),
|
|
32251
|
+
_: 1
|
|
32252
|
+
}, 8, ["onClick"])
|
|
32253
|
+
]),
|
|
32254
|
+
_: 1
|
|
32255
|
+
})
|
|
32256
|
+
]),
|
|
32257
|
+
default: withCtx(() => [
|
|
32258
|
+
createElementVNode("div", _hoisted_1, [
|
|
32259
|
+
createVNode(_component_NvControlGroup, {
|
|
32260
|
+
width: "100%",
|
|
32261
|
+
icon: "md-refresh",
|
|
32262
|
+
label: "系统平台",
|
|
32263
|
+
labelWidth: 75,
|
|
32264
|
+
onClick: _ctx.getPlatData
|
|
32265
|
+
}, {
|
|
32266
|
+
default: withCtx(() => [
|
|
32267
|
+
createVNode(_component_Select, {
|
|
32268
|
+
modelValue: _ctx.platId,
|
|
32269
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.platId = $event),
|
|
32270
|
+
onOnChange: _ctx.doChangePlatform,
|
|
32271
|
+
transfer: ""
|
|
32272
|
+
}, {
|
|
32273
|
+
default: withCtx(() => [
|
|
32274
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.platData, (item, index2) => {
|
|
32275
|
+
return openBlock(), createBlock(_component_Option, {
|
|
32276
|
+
key: index2,
|
|
32277
|
+
value: item.Id
|
|
32278
|
+
}, {
|
|
32279
|
+
default: withCtx(() => [
|
|
32280
|
+
createTextVNode(toDisplayString(item.PlatformAbbreviation), 1)
|
|
32281
|
+
]),
|
|
32282
|
+
_: 2
|
|
32283
|
+
}, 1032, ["value"]);
|
|
32284
|
+
}), 128))
|
|
32285
|
+
]),
|
|
32286
|
+
_: 1
|
|
32287
|
+
}, 8, ["modelValue", "onOnChange"]),
|
|
32288
|
+
createVNode(_component_Spin, {
|
|
32289
|
+
fix: "",
|
|
32290
|
+
show: _ctx.spinPlatShow
|
|
32291
|
+
}, null, 8, ["show"])
|
|
32292
|
+
]),
|
|
32293
|
+
_: 1
|
|
32294
|
+
}, 8, ["onClick"])
|
|
32295
|
+
]),
|
|
32296
|
+
createElementVNode("div", _hoisted_2, [
|
|
32297
|
+
createVNode(_component_Tree, {
|
|
32298
|
+
data: _ctx.institutionTree,
|
|
32299
|
+
render: _ctx.renderInsTreeContent,
|
|
32300
|
+
class: "tree-render",
|
|
32301
|
+
onOnSelectChange: _ctx.doChangeInsTree
|
|
32302
|
+
}, null, 8, ["data", "render", "onOnSelectChange"]),
|
|
32303
|
+
withDirectives(createVNode(_component_Spin, { fix: "" }, {
|
|
32304
|
+
default: withCtx(() => [
|
|
32305
|
+
createTextVNode("数据加载中")
|
|
32306
|
+
]),
|
|
32307
|
+
_: 1
|
|
32308
|
+
}, 512), [
|
|
32309
|
+
[vShow, _ctx.loadingInstitutionTree]
|
|
32310
|
+
])
|
|
32311
|
+
])
|
|
32312
|
+
]),
|
|
32313
|
+
_: 1
|
|
32314
|
+
}, 8, ["onChange"]),
|
|
32315
|
+
createVNode(_component_NvBox, {
|
|
32316
|
+
width: _ctx.userBoxWidth,
|
|
32317
|
+
title: "用户列表"
|
|
32318
|
+
}, {
|
|
32319
|
+
default: withCtx(() => [
|
|
32320
|
+
createVNode(_component_NvGrid, {
|
|
32321
|
+
ref: "insTreeUserGrid",
|
|
32322
|
+
option: _ctx.insTreeUserGridOption
|
|
32323
|
+
}, null, 8, ["option"])
|
|
32324
|
+
]),
|
|
32325
|
+
_: 1
|
|
32326
|
+
}, 8, ["width"]),
|
|
32327
|
+
createVNode(_component_Modal, {
|
|
32328
|
+
modelValue: _ctx.showEditUser,
|
|
32329
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.showEditUser = $event),
|
|
32330
|
+
draggable: "",
|
|
32331
|
+
mask: true,
|
|
32332
|
+
"mask-closable": false,
|
|
32333
|
+
width: 850,
|
|
32334
|
+
title: _ctx.editUserTitle,
|
|
32335
|
+
styles: { top: "3%" }
|
|
32336
|
+
}, {
|
|
32337
|
+
footer: withCtx(() => [
|
|
32338
|
+
createVNode(_component_Button, {
|
|
32339
|
+
type: "text",
|
|
32340
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.showEditUser = false)
|
|
32341
|
+
}, {
|
|
32342
|
+
default: withCtx(() => [
|
|
32343
|
+
createTextVNode("关闭")
|
|
32344
|
+
]),
|
|
32345
|
+
_: 1
|
|
32346
|
+
}),
|
|
32347
|
+
createVNode(_component_Button, {
|
|
32348
|
+
type: "primary",
|
|
32349
|
+
loading: _ctx.saveingUser,
|
|
32350
|
+
onClick: _ctx.doSaveUser
|
|
32351
|
+
}, {
|
|
32352
|
+
default: withCtx(() => [
|
|
32353
|
+
createTextVNode("保存")
|
|
32354
|
+
]),
|
|
32355
|
+
_: 1
|
|
32356
|
+
}, 8, ["loading", "onClick"])
|
|
32357
|
+
]),
|
|
32358
|
+
default: withCtx(() => [
|
|
32359
|
+
createElementVNode("div", _hoisted_3, [
|
|
32360
|
+
createVNode(_component_Form, {
|
|
32361
|
+
ref: "userForm",
|
|
32362
|
+
model: _ctx.userFormModel,
|
|
32363
|
+
"label-width": 120,
|
|
32364
|
+
rules: _ctx.userFormRule
|
|
32365
|
+
}, {
|
|
32366
|
+
default: withCtx(() => [
|
|
32367
|
+
createVNode(_component_NvComForm, {
|
|
32368
|
+
ref: "userComForm",
|
|
32369
|
+
formModel: _ctx.userFormModel,
|
|
32370
|
+
formItems: _ctx.userFormItems
|
|
32371
|
+
}, null, 8, ["formModel", "formItems"])
|
|
32372
|
+
]),
|
|
32373
|
+
_: 1
|
|
32374
|
+
}, 8, ["model", "rules"]),
|
|
32375
|
+
_hoisted_4
|
|
32376
|
+
])
|
|
32377
|
+
]),
|
|
32378
|
+
_: 1
|
|
32379
|
+
}, 8, ["modelValue", "title"]),
|
|
32380
|
+
createVNode(_component_Modal, {
|
|
32381
|
+
modelValue: _ctx.showUserRole,
|
|
32382
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.showUserRole = $event),
|
|
32383
|
+
draggable: "",
|
|
32384
|
+
mask: true,
|
|
32385
|
+
"mask-closable": false,
|
|
32386
|
+
width: 850,
|
|
32387
|
+
title: "定岗",
|
|
32388
|
+
styles: { top: "3%" }
|
|
32389
|
+
}, {
|
|
32390
|
+
footer: withCtx(() => [
|
|
32391
|
+
createVNode(_component_Button, {
|
|
32392
|
+
type: "text",
|
|
32393
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.showUserRole = false)
|
|
32394
|
+
}, {
|
|
32395
|
+
default: withCtx(() => [
|
|
32396
|
+
createTextVNode("关闭")
|
|
32397
|
+
]),
|
|
32398
|
+
_: 1
|
|
32399
|
+
}),
|
|
32400
|
+
createVNode(_component_Button, {
|
|
32401
|
+
type: "primary",
|
|
32402
|
+
loading: _ctx.saveingUserRole,
|
|
32403
|
+
onClick: _ctx.doSaveUserRole
|
|
32404
|
+
}, {
|
|
32405
|
+
default: withCtx(() => [
|
|
32406
|
+
createTextVNode("保存")
|
|
32407
|
+
]),
|
|
32408
|
+
_: 1
|
|
32409
|
+
}, 8, ["loading", "onClick"])
|
|
32410
|
+
]),
|
|
32411
|
+
default: withCtx(() => [
|
|
32412
|
+
createElementVNode("div", _hoisted_5, [
|
|
32413
|
+
createVNode(_component_NvGrid, {
|
|
32414
|
+
ref: "userRoleGrid",
|
|
32415
|
+
option: _ctx.userRoleGridOption
|
|
32416
|
+
}, {
|
|
32417
|
+
default: withCtx(() => [
|
|
32418
|
+
_hoisted_6
|
|
32419
|
+
]),
|
|
32420
|
+
_: 1
|
|
32421
|
+
}, 8, ["option"])
|
|
32422
|
+
])
|
|
32423
|
+
]),
|
|
32424
|
+
_: 1
|
|
32425
|
+
}, 8, ["modelValue"]),
|
|
32426
|
+
createVNode(_component_Modal, {
|
|
32427
|
+
modelValue: _ctx.showLoginLog,
|
|
32428
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.showLoginLog = $event),
|
|
32429
|
+
draggable: "",
|
|
32430
|
+
mask: true,
|
|
32431
|
+
"mask-closable": false,
|
|
32432
|
+
width: 800,
|
|
32433
|
+
title: "登录日志",
|
|
32434
|
+
styles: { top: "3%" }
|
|
32435
|
+
}, {
|
|
32436
|
+
footer: withCtx(() => [
|
|
32437
|
+
createVNode(_component_Button, {
|
|
32438
|
+
type: "text",
|
|
32439
|
+
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.showLoginLog = false)
|
|
32440
|
+
}, {
|
|
32441
|
+
default: withCtx(() => [
|
|
32442
|
+
createTextVNode("关闭")
|
|
32443
|
+
]),
|
|
32444
|
+
_: 1
|
|
32445
|
+
})
|
|
32446
|
+
]),
|
|
32447
|
+
default: withCtx(() => [
|
|
32448
|
+
createElementVNode("div", _hoisted_7, [
|
|
32449
|
+
createVNode(_component_LoginLog, { ref: "loginLogRef" }, null, 512)
|
|
32450
|
+
])
|
|
32451
|
+
]),
|
|
32452
|
+
_: 1
|
|
32453
|
+
}, 8, ["modelValue"]),
|
|
32454
|
+
createVNode(_component_Spin, {
|
|
32455
|
+
size: "large",
|
|
32456
|
+
fix: "",
|
|
32457
|
+
show: _ctx.logining
|
|
32458
|
+
}, null, 8, ["show"]),
|
|
32459
|
+
createElementVNode("div", _hoisted_8, [
|
|
32460
|
+
createVNode(_component_BaseLogin, {
|
|
32461
|
+
ref: "loginRef",
|
|
32462
|
+
autoLogin: false
|
|
32463
|
+
}, null, 512)
|
|
32464
|
+
]),
|
|
32465
|
+
createVNode(_component_Modal, {
|
|
32466
|
+
modelValue: _ctx.showEditUserSign,
|
|
32467
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => _ctx.showEditUserSign = $event),
|
|
32468
|
+
draggable: "",
|
|
32469
|
+
mask: true,
|
|
32470
|
+
"mask-closable": false,
|
|
32471
|
+
width: 440,
|
|
32472
|
+
title: "编辑签字信息",
|
|
32473
|
+
styles: { top: "3%" }
|
|
32474
|
+
}, {
|
|
32475
|
+
footer: withCtx(() => [
|
|
32476
|
+
createVNode(_component_Button, {
|
|
32477
|
+
type: "text",
|
|
32478
|
+
onClick: _cache[7] || (_cache[7] = ($event) => _ctx.showEditUserSign = false)
|
|
32479
|
+
}, {
|
|
32480
|
+
default: withCtx(() => [
|
|
32481
|
+
createTextVNode("关闭")
|
|
32482
|
+
]),
|
|
32483
|
+
_: 1
|
|
32484
|
+
}),
|
|
32485
|
+
createVNode(_component_Button, {
|
|
32486
|
+
type: "primary",
|
|
32487
|
+
loading: _ctx.saveingUserSign,
|
|
32488
|
+
onClick: _ctx.doSaveUserSign
|
|
32489
|
+
}, {
|
|
32490
|
+
default: withCtx(() => [
|
|
32491
|
+
createTextVNode("保存")
|
|
32492
|
+
]),
|
|
32493
|
+
_: 1
|
|
32494
|
+
}, 8, ["loading", "onClick"])
|
|
32495
|
+
]),
|
|
32496
|
+
default: withCtx(() => [
|
|
32497
|
+
createElementVNode("div", _hoisted_9, [
|
|
32498
|
+
createVNode(_component_Form, {
|
|
32499
|
+
ref: "userSignForm",
|
|
32500
|
+
model: _ctx.userSignFormModel,
|
|
32501
|
+
"label-width": 85
|
|
32502
|
+
}, {
|
|
32503
|
+
default: withCtx(() => [
|
|
32504
|
+
createVNode(_component_NvComForm, {
|
|
32505
|
+
ref: "userSignComForm",
|
|
32506
|
+
formModel: _ctx.userSignFormModel,
|
|
32507
|
+
formItems: _ctx.userSignFormItems
|
|
32508
|
+
}, null, 8, ["formModel", "formItems"]),
|
|
32509
|
+
createVNode(_component_FormItem, { label: "印章图片" }, {
|
|
32510
|
+
default: withCtx(() => [
|
|
32511
|
+
_ctx.userSignFormModel.CAUserSealImg != "" ? (openBlock(), createElementBlock("img", {
|
|
32512
|
+
key: 0,
|
|
32513
|
+
src: _ctx.userSignFormModel.CAUserSealImg,
|
|
32514
|
+
alt: "",
|
|
32515
|
+
style: { "width": "120px", "height": "35px" }
|
|
32516
|
+
}, null, 8, _hoisted_10)) : createCommentVNode("", true),
|
|
32517
|
+
createVNode(_component_Button, {
|
|
32518
|
+
type: "primary",
|
|
32519
|
+
style: { "float": "right" },
|
|
32520
|
+
onClick: _ctx.doLoadUserSealImg
|
|
32521
|
+
}, {
|
|
32522
|
+
default: withCtx(() => [
|
|
32523
|
+
createTextVNode("加载")
|
|
32524
|
+
]),
|
|
32525
|
+
_: 1
|
|
32526
|
+
}, 8, ["onClick"])
|
|
32527
|
+
]),
|
|
32528
|
+
_: 1
|
|
32529
|
+
}),
|
|
32530
|
+
createVNode(_component_FormItem, { label: "圆章图片" }, {
|
|
32531
|
+
default: withCtx(() => [
|
|
32532
|
+
_ctx.userSignFormModel.CAUserYZImg != "" ? (openBlock(), createElementBlock("img", {
|
|
32533
|
+
key: 0,
|
|
32534
|
+
src: _ctx.userSignFormModel.CAUserYZImg,
|
|
32535
|
+
alt: "",
|
|
32536
|
+
style: { "width": "120px", "height": "120px", "margin-left": "16px" }
|
|
32537
|
+
}, null, 8, _hoisted_11)) : createCommentVNode("", true),
|
|
32538
|
+
createVNode(_component_Button, {
|
|
32539
|
+
type: "primary",
|
|
32540
|
+
style: { "float": "right" },
|
|
32541
|
+
onClick: _ctx.doLoadUserYZImg
|
|
32542
|
+
}, {
|
|
32543
|
+
default: withCtx(() => [
|
|
32544
|
+
createTextVNode("加载")
|
|
32545
|
+
]),
|
|
32546
|
+
_: 1
|
|
32547
|
+
}, 8, ["onClick"])
|
|
32548
|
+
]),
|
|
32549
|
+
_: 1
|
|
32550
|
+
})
|
|
32551
|
+
]),
|
|
32552
|
+
_: 1
|
|
32553
|
+
}, 8, ["model"])
|
|
32554
|
+
])
|
|
32555
|
+
]),
|
|
32556
|
+
_: 1
|
|
32557
|
+
}, 8, ["modelValue"]),
|
|
32558
|
+
createVNode(_component_Modal, {
|
|
32559
|
+
modelValue: _ctx.showPW,
|
|
32560
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => _ctx.showPW = $event),
|
|
32561
|
+
draggable: "",
|
|
32562
|
+
mask: true,
|
|
32563
|
+
"mask-closable": false,
|
|
32564
|
+
width: 500,
|
|
32565
|
+
title: "修改密码",
|
|
32566
|
+
styles: { top: "3%" }
|
|
32567
|
+
}, {
|
|
32568
|
+
footer: withCtx(() => [
|
|
32569
|
+
createVNode(_component_Button, {
|
|
32570
|
+
type: "text",
|
|
32571
|
+
onClick: _cache[9] || (_cache[9] = ($event) => _ctx.showPW = false)
|
|
32572
|
+
}, {
|
|
32573
|
+
default: withCtx(() => [
|
|
32574
|
+
createTextVNode("关闭")
|
|
32575
|
+
]),
|
|
32576
|
+
_: 1
|
|
32577
|
+
}),
|
|
32578
|
+
createVNode(_component_Button, {
|
|
32579
|
+
type: "primary",
|
|
32580
|
+
onClick: _ctx.savePassword
|
|
32581
|
+
}, {
|
|
32582
|
+
default: withCtx(() => [
|
|
32583
|
+
createTextVNode("保存")
|
|
32584
|
+
]),
|
|
32585
|
+
_: 1
|
|
32586
|
+
}, 8, ["onClick"])
|
|
32587
|
+
]),
|
|
32588
|
+
default: withCtx(() => [
|
|
32589
|
+
createVNode(_component_Form, {
|
|
32590
|
+
ref: "userForm",
|
|
32591
|
+
model: _ctx.pwFormModel,
|
|
32592
|
+
"label-width": 120
|
|
32593
|
+
}, {
|
|
32594
|
+
default: withCtx(() => [
|
|
32595
|
+
createVNode(_component_NvComForm, {
|
|
32596
|
+
ref: "userComForm",
|
|
32597
|
+
formModel: _ctx.pwFormModel,
|
|
32598
|
+
formItems: _ctx.pwFormItems
|
|
32599
|
+
}, null, 8, ["formModel", "formItems"])
|
|
32600
|
+
]),
|
|
32601
|
+
_: 1
|
|
32602
|
+
}, 8, ["model"])
|
|
32603
|
+
]),
|
|
32604
|
+
_: 1
|
|
32605
|
+
}, 8, ["modelValue"])
|
|
32606
|
+
]),
|
|
32607
|
+
_: 1
|
|
32608
|
+
});
|
|
32609
|
+
}
|
|
32610
|
+
const projectUser = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9a899d22"]]);
|
|
32611
|
+
const index = [
|
|
32612
|
+
{
|
|
32613
|
+
// 系统平台
|
|
32614
|
+
path: "/permission-service/platform/platform",
|
|
32615
|
+
component: Platform
|
|
32616
|
+
},
|
|
32617
|
+
{
|
|
32618
|
+
// 菜单模块
|
|
32619
|
+
path: "/permission-service/platform/module",
|
|
32620
|
+
component: Module
|
|
32621
|
+
},
|
|
32622
|
+
{
|
|
32623
|
+
// 角色管理
|
|
32624
|
+
path: "/permission-service/platform/role",
|
|
32625
|
+
component: Role
|
|
32626
|
+
},
|
|
32627
|
+
{
|
|
32628
|
+
// 机构类型
|
|
32629
|
+
path: "/permission-service/institution/institutiontype",
|
|
32630
|
+
component: InstitutionType
|
|
32631
|
+
},
|
|
32632
|
+
{
|
|
32633
|
+
// 组织机构
|
|
32634
|
+
path: "/permission-service/institution/institution",
|
|
32635
|
+
component: Institution
|
|
32636
|
+
},
|
|
32637
|
+
{
|
|
32638
|
+
// 用户管理
|
|
32639
|
+
path: "/permission-service/institution/userinfor",
|
|
32640
|
+
component: Userinfor
|
|
32641
|
+
},
|
|
32642
|
+
{
|
|
32643
|
+
// 企业管理
|
|
32644
|
+
path: "/permission-service/institution/enterprise",
|
|
32645
|
+
component: Enterprise
|
|
32646
|
+
},
|
|
32647
|
+
{
|
|
32648
|
+
// 第三方信息
|
|
32649
|
+
path: "/permission-service/thirdparty/information",
|
|
32650
|
+
component: Information
|
|
32651
|
+
},
|
|
32652
|
+
// 平台设置(二级)
|
|
32653
|
+
{
|
|
32654
|
+
// 项目管理
|
|
32655
|
+
path: "/permission-service/platform/subplatform",
|
|
32656
|
+
component: subplatform
|
|
32657
|
+
},
|
|
32658
|
+
{
|
|
32659
|
+
// 平台角色
|
|
32660
|
+
path: "/permission-service/platform/subrole",
|
|
32661
|
+
component: subrole
|
|
32662
|
+
},
|
|
32663
|
+
{
|
|
32664
|
+
// 平台企业
|
|
32665
|
+
path: "/permission-service/institution/subenterprise",
|
|
32666
|
+
component: subenterprise
|
|
32667
|
+
},
|
|
32668
|
+
{
|
|
32669
|
+
// 平台机构
|
|
32670
|
+
path: "/permission-service/institution/subinstitution",
|
|
32671
|
+
component: subinstitution
|
|
32672
|
+
},
|
|
32673
|
+
{
|
|
32674
|
+
// 平台用户
|
|
32675
|
+
path: "/permission-service/institution/subuserinfor",
|
|
32676
|
+
component: subuserinfor
|
|
32677
|
+
},
|
|
32678
|
+
{
|
|
32679
|
+
// 项目平台用户
|
|
32680
|
+
path: "/permission-service/institution/projectUserinfor",
|
|
32681
|
+
component: projectUser
|
|
30901
32682
|
},
|
|
30902
32683
|
{
|
|
30903
32684
|
// 菜单管理
|