@xdmp-open/ui-admin 0.1.8 → 0.1.9
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/CHANGELOG.md +11 -0
- package/dist/{index-BYFiRxnY.js → index-p1TBNESM.js} +776 -714
- package/dist/index.js +1 -1
- package/dist/modules/system-tenant/index.vue.d.ts +10 -0
- package/dist/modules/system-tenant/modules/tenantDrawer.vue.d.ts +6 -0
- package/dist/modules/system-tenant/tenantRules.d.ts +8 -0
- package/dist/style.css +1 -1
- package/dist/{treeSelect-DmYrMJJl.js → treeSelect-CvJM_V5R.js} +1 -1
- package/dist/{treeSelect-DNslNi4Z.js → treeSelect-D6MfUZA7.js} +1 -1
- package/package.json +4 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createAdminClient as co } from "@xdmp-open/sdk-admin";
|
|
2
2
|
import { createIotClient as ho } from "@xdmp-open/sdk-iot";
|
|
3
|
-
import { defineComponent as Y, defineAsyncComponent as Rt, resolveComponent as a, resolveDirective as M, openBlock as m, createElementBlock as V, createVNode as o, withCtx as n, withDirectives as
|
|
4
|
-
import { isRetainFieldDisabled as Pe, AvatarUpload as rt, XdmpDrawer as ee, $emit as _e, validMoblie as at, isRetainYes as
|
|
3
|
+
import { defineComponent as Y, defineAsyncComponent as Rt, resolveComponent as a, resolveDirective as M, openBlock as m, createElementBlock as V, createVNode as o, withCtx as n, withDirectives as E, Fragment as ie, renderList as de, createBlock as _, createElementVNode as T, createTextVNode as c, toDisplayString as R, normalizeStyle as Ie, normalizeClass as Ne, createCommentVNode as P, withKeys as tt, withModifiers as x, renderSlot as Re, resolveDynamicComponent as fo, vShow as go } from "vue";
|
|
4
|
+
import { isRetainFieldDisabled as Pe, AvatarUpload as rt, XdmpDrawer as ee, $emit as _e, validMoblie as at, isRetainYes as ue, PageDecs as te, validSpecialName as yo, validInputLength as Pt, IconSelect as bo, isDevRuntime as _o, SvgIcon as wo, isRegisteredSvgIcon as Co, Encrypt as ge, validPassword as ko, PageDataInfo as Nt, RETAIN_MSG_DELETE as je, binaryDownloadBlob as lt, SearchForm as vo, validLegalInput as Do, FileUpload as $o } from "@xdmp-open/ui-shared";
|
|
5
5
|
import { ListReport as oe, FlexibleColumn as It, ObjectPage as Vt } from "@xdmp-open/ui-layout";
|
|
6
6
|
import O from "dayjs";
|
|
7
7
|
import { ElMessage as q, ElMessageBox as W, ElInput as it, ElFormItem as st, ElForm as dt, ElDialog as To, ElButtonGroup as So, ElButton as qt, ElSelect as Fo, ElOption as Lo, ElCheckboxGroup as Eo, ElCheckbox as Ro, ElTableColumn as Po, ElTable as No, ElDivider as Io } from "element-plus";
|
|
8
8
|
import { UserFilled as Vo, OfficeBuilding as qo, QuestionFilled as Oo, InfoFilled as Ao, DocumentCopy as ut } from "@element-plus/icons-vue";
|
|
9
9
|
import Oe from "clipboard";
|
|
10
10
|
let Le = null;
|
|
11
|
-
function
|
|
11
|
+
function vs(e) {
|
|
12
12
|
const t = e.adminSdk ?? (e.sdkClient ? co(e.sdkClient) : null);
|
|
13
13
|
if (!t)
|
|
14
14
|
throw new Error("[ui-admin] setupAdminUi 需要 sdkClient 或 adminSdk 之一");
|
|
@@ -32,7 +32,7 @@ function we() {
|
|
|
32
32
|
throw new Error("[ui-admin] 未初始化:宿主启动时请先调用 setupAdminUi({ sdkClient, ... })");
|
|
33
33
|
return Le;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function L() {
|
|
36
36
|
return we().adminSdk;
|
|
37
37
|
}
|
|
38
38
|
function pt() {
|
|
@@ -57,7 +57,7 @@ function At() {
|
|
|
57
57
|
var e, t;
|
|
58
58
|
return ((t = (e = we().host).getMobilePhone) == null ? void 0 : t.call(e)) ?? "";
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function se(e) {
|
|
61
61
|
const t = we().host.hasPermission;
|
|
62
62
|
return t ? t(e) : !0;
|
|
63
63
|
}
|
|
@@ -91,7 +91,7 @@ const jo = Y({
|
|
|
91
91
|
components: {
|
|
92
92
|
xdmpDrawer: ee,
|
|
93
93
|
AvatarUpload: rt,
|
|
94
|
-
treeSelect: Rt(() => import("./treeSelect-
|
|
94
|
+
treeSelect: Rt(() => import("./treeSelect-D6MfUZA7.js"))
|
|
95
95
|
},
|
|
96
96
|
data() {
|
|
97
97
|
var e = (t, r, l) => {
|
|
@@ -156,7 +156,7 @@ const jo = Y({
|
|
|
156
156
|
// 获取上级部门树
|
|
157
157
|
async getDepartList() {
|
|
158
158
|
try {
|
|
159
|
-
const e = await
|
|
159
|
+
const e = await L().system.depart.tree({
|
|
160
160
|
pageNo: "1",
|
|
161
161
|
pageSize: "100"
|
|
162
162
|
});
|
|
@@ -194,7 +194,7 @@ const jo = Y({
|
|
|
194
194
|
if (e) {
|
|
195
195
|
const t = JSON.parse(JSON.stringify(this.departForm));
|
|
196
196
|
this.id && (t.id = this.id), t.avatar || delete t.avatar;
|
|
197
|
-
const r =
|
|
197
|
+
const r = L(), l = this.modeType == "edit" ? (u) => r.system.depart.update(u.id, u) : (u) => r.system.depart.add(u);
|
|
198
198
|
this.$refs.xdmpDrawer.showLoading(), l(t).then(() => {
|
|
199
199
|
this.$refs.xdmpDrawer.hideLoading(), q.success("操作成功"), this.$refs.xdmpDrawer.cancelForm(), this.$emit("reload");
|
|
200
200
|
}).catch(() => {
|
|
@@ -235,8 +235,8 @@ const jo = Y({
|
|
|
235
235
|
r[l] = u;
|
|
236
236
|
return r;
|
|
237
237
|
};
|
|
238
|
-
function Bo(e, t, r, l, u,
|
|
239
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("treeSelect"), p = a("el-option"),
|
|
238
|
+
function Bo(e, t, r, l, u, y) {
|
|
239
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("treeSelect"), p = a("el-option"), b = a("el-select"), f = a("AvatarUpload"), g = a("el-form"), C = a("xdmpDrawer"), k = M("loading");
|
|
240
240
|
return m(), V("div", null, [
|
|
241
241
|
o(C, {
|
|
242
242
|
ref: "xdmpDrawer",
|
|
@@ -247,8 +247,8 @@ function Bo(e, t, r, l, u, g) {
|
|
|
247
247
|
onCancel: e.cancel
|
|
248
248
|
}, {
|
|
249
249
|
"xdmp-drawer-body": n(() => [
|
|
250
|
-
|
|
251
|
-
o(
|
|
250
|
+
E((m(), V("div", null, [
|
|
251
|
+
o(g, {
|
|
252
252
|
ref: "departFormRef",
|
|
253
253
|
model: e.departForm,
|
|
254
254
|
"label-position": "top",
|
|
@@ -290,13 +290,13 @@ function Bo(e, t, r, l, u, g) {
|
|
|
290
290
|
prop: "type"
|
|
291
291
|
}, {
|
|
292
292
|
default: n(() => [
|
|
293
|
-
o(
|
|
293
|
+
o(b, {
|
|
294
294
|
modelValue: e.departForm.type,
|
|
295
295
|
"onUpdate:modelValue": t[2] || (t[2] = (v) => e.departForm.type = v),
|
|
296
296
|
disabled: e.isRetainFieldDisabled("Depart", "type", e.departForm.retainFlag)
|
|
297
297
|
}, {
|
|
298
298
|
default: n(() => [
|
|
299
|
-
(m(!0), V(
|
|
299
|
+
(m(!0), V(ie, null, de(e.departTypeList, (v, S) => (m(), _(p, {
|
|
300
300
|
key: S,
|
|
301
301
|
label: v.label,
|
|
302
302
|
value: v.value
|
|
@@ -349,14 +349,14 @@ const Ko = /* @__PURE__ */ z(jo, [["render", Bo]]), Ho = Y({
|
|
|
349
349
|
},
|
|
350
350
|
emits: ["reload"],
|
|
351
351
|
data() {
|
|
352
|
-
var e = (l, u,
|
|
353
|
-
u === "" ?
|
|
352
|
+
var e = (l, u, y) => {
|
|
353
|
+
u === "" ? y(new Error("请输入用户名")) : /^[\w]{1,32}$/.test(u) ? y() : y(
|
|
354
354
|
new Error("用户名最多不超过32个字符,仅支持大小写字母、数字和下划线")
|
|
355
355
|
);
|
|
356
|
-
}, t = (l, u,
|
|
357
|
-
u === "" ?
|
|
358
|
-
}, r = (l, u,
|
|
359
|
-
this.ruleForm.projectIds.length == 0 ?
|
|
356
|
+
}, t = (l, u, y) => {
|
|
357
|
+
u === "" ? y(new Error("请输入手机号码")) : at(u) ? y() : y(new Error("请输入正确的手机号码"));
|
|
358
|
+
}, r = (l, u, y) => {
|
|
359
|
+
this.ruleForm.projectIds.length == 0 ? y(new Error("请选择项目")) : y();
|
|
360
360
|
};
|
|
361
361
|
return {
|
|
362
362
|
size: "500px",
|
|
@@ -460,15 +460,15 @@ const Ko = /* @__PURE__ */ z(jo, [["render", Bo]]), Ho = Y({
|
|
|
460
460
|
},
|
|
461
461
|
// 提交 (编辑与新增一体)
|
|
462
462
|
submitForm(e = "ruleForm") {
|
|
463
|
-
const t = this, r =
|
|
463
|
+
const t = this, r = L();
|
|
464
464
|
this.$refs[e].validate((l) => {
|
|
465
465
|
if (l) {
|
|
466
|
-
const u = JSON.parse(JSON.stringify(this.ruleForm)),
|
|
466
|
+
const u = JSON.parse(JSON.stringify(this.ruleForm)), y = [];
|
|
467
467
|
u.roleIds.forEach((i) => {
|
|
468
468
|
this.roleList.forEach((d) => {
|
|
469
|
-
i == d.roleCode &&
|
|
469
|
+
i == d.roleCode && y.push(d.value);
|
|
470
470
|
});
|
|
471
|
-
}), u.roleIds =
|
|
471
|
+
}), u.roleIds = y, u.avatar || delete u.avatar;
|
|
472
472
|
const s = t.editMode ? (i) => r.system.user.update(i.username, i) : (i) => r.system.user.add(i);
|
|
473
473
|
t.$refs.xdmpDrawer.showLoading(), s(u).then(async (i) => {
|
|
474
474
|
t.editMode && (await r.system.user.assignRoles(u.username, {
|
|
@@ -504,7 +504,7 @@ const Ko = /* @__PURE__ */ z(jo, [["render", Bo]]), Ho = Y({
|
|
|
504
504
|
},
|
|
505
505
|
// 初始抽屉内容
|
|
506
506
|
async init(e, t, r = !1) {
|
|
507
|
-
t ? (this.isDetail = !t.edit, this.editMode = !0,
|
|
507
|
+
t ? (this.isDetail = !t.edit, this.editMode = !0, L().system.user.query(t.username).then((l) => {
|
|
508
508
|
this.ruleForm.username = l.user.username, this.ruleForm.fullname = l.user.fullname, this.ruleForm.phone = l.user.phone, this.ruleForm.roleIds = l.roles, this.ruleForm.departId = l.user.departId, this.ruleForm.type = l.user.type, this.ruleForm.gender = l.user.gender, this.ruleForm.avatar = l.user.avatar || "", this.ruleForm.retainFlag = l.user.retainFlag || "0", this.ruleForm.projectIds = l.dataScopes[0], this.isAdmin = !r && this.ruleForm.roleIds.includes("ADMIN"), this.isAdminCode = this.ruleForm.roleIds.includes("ADMIN"), this.$nextTick(() => {
|
|
509
509
|
this.$refs.pertree.setCheckedKeys(l.dataScopes[0] || []);
|
|
510
510
|
});
|
|
@@ -553,7 +553,7 @@ const Ko = /* @__PURE__ */ z(jo, [["render", Bo]]), Ho = Y({
|
|
|
553
553
|
getCheckedKeys(e, t) {
|
|
554
554
|
let r = this.$refs.pertree.getCheckedKeys();
|
|
555
555
|
const l = [];
|
|
556
|
-
t || (this.deleteSelectChild(r, e, l), r = r.filter((
|
|
556
|
+
t || (this.deleteSelectChild(r, e, l), r = r.filter((y) => l.indexOf(y) == -1), this.$refs.pertree.setCheckedKeys(r)), this.ruleForm.projectIds = r;
|
|
557
557
|
},
|
|
558
558
|
deleteSelectChild(e, t, r) {
|
|
559
559
|
t.children && t.children.filter((l) => {
|
|
@@ -592,8 +592,8 @@ const Ko = /* @__PURE__ */ z(jo, [["render", Bo]]), Ho = Y({
|
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
}), Qo = { class: "permissionTree" };
|
|
595
|
-
function Go(e, t, r, l, u,
|
|
596
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"),
|
|
595
|
+
function Go(e, t, r, l, u, y) {
|
|
596
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"), b = a("AvatarUpload"), f = a("el-tree"), g = a("el-form"), C = a("xdmpDrawer"), k = M("emoji"), v = M("loading");
|
|
597
597
|
return m(), V("div", null, [
|
|
598
598
|
o(C, {
|
|
599
599
|
ref: "xdmpDrawer",
|
|
@@ -604,8 +604,8 @@ function Go(e, t, r, l, u, g) {
|
|
|
604
604
|
onCancel: e.cancel
|
|
605
605
|
}, {
|
|
606
606
|
"xdmp-drawer-body": n(() => [
|
|
607
|
-
|
|
608
|
-
o(
|
|
607
|
+
E((m(), V("div", null, [
|
|
608
|
+
o(g, {
|
|
609
609
|
ref: "ruleForm",
|
|
610
610
|
model: e.ruleForm,
|
|
611
611
|
"label-position": "top",
|
|
@@ -620,7 +620,7 @@ function Go(e, t, r, l, u, g) {
|
|
|
620
620
|
prop: "phone"
|
|
621
621
|
}, {
|
|
622
622
|
default: n(() => [
|
|
623
|
-
|
|
623
|
+
E(o(s, {
|
|
624
624
|
modelValue: e.ruleForm.phone,
|
|
625
625
|
"onUpdate:modelValue": t[0] || (t[0] = (S) => e.ruleForm.phone = S),
|
|
626
626
|
placeholder: "请输入手机号码"
|
|
@@ -635,7 +635,7 @@ function Go(e, t, r, l, u, g) {
|
|
|
635
635
|
prop: "username"
|
|
636
636
|
}, {
|
|
637
637
|
default: n(() => [
|
|
638
|
-
|
|
638
|
+
E(o(s, {
|
|
639
639
|
modelValue: e.ruleForm.username,
|
|
640
640
|
"onUpdate:modelValue": t[1] || (t[1] = (S) => e.ruleForm.username = S),
|
|
641
641
|
placeholder: "用户名最多不超过32个字符,仅支持大小写字母、数字和下划线",
|
|
@@ -653,7 +653,7 @@ function Go(e, t, r, l, u, g) {
|
|
|
653
653
|
prop: "fullname"
|
|
654
654
|
}, {
|
|
655
655
|
default: n(() => [
|
|
656
|
-
|
|
656
|
+
E(o(s, {
|
|
657
657
|
modelValue: e.ruleForm.fullname,
|
|
658
658
|
"onUpdate:modelValue": t[2] || (t[2] = (S) => e.ruleForm.fullname = S),
|
|
659
659
|
placeholder: "请输入用户姓名",
|
|
@@ -681,7 +681,7 @@ function Go(e, t, r, l, u, g) {
|
|
|
681
681
|
onChange: e.handlefilterRole
|
|
682
682
|
}, {
|
|
683
683
|
default: n(() => [
|
|
684
|
-
(m(!0), V(
|
|
684
|
+
(m(!0), V(ie, null, de(e.roleList, (S) => (m(), _(d, {
|
|
685
685
|
key: S.value,
|
|
686
686
|
label: S.label,
|
|
687
687
|
value: S.roleCode,
|
|
@@ -707,7 +707,7 @@ function Go(e, t, r, l, u, g) {
|
|
|
707
707
|
disabled: e.isRetainFieldDisabled("User", "type", e.ruleForm.retainFlag)
|
|
708
708
|
}, {
|
|
709
709
|
default: n(() => [
|
|
710
|
-
(m(!0), V(
|
|
710
|
+
(m(!0), V(ie, null, de(e.roleTypeList, (S) => (m(), _(d, {
|
|
711
711
|
key: S.value,
|
|
712
712
|
label: S.label,
|
|
713
713
|
value: S.value
|
|
@@ -731,7 +731,7 @@ function Go(e, t, r, l, u, g) {
|
|
|
731
731
|
style: { width: "100%" }
|
|
732
732
|
}, {
|
|
733
733
|
default: n(() => [
|
|
734
|
-
(m(!0), V(
|
|
734
|
+
(m(!0), V(ie, null, de(e.roleGenderList, (S) => (m(), _(d, {
|
|
735
735
|
key: S.value,
|
|
736
736
|
label: S.label,
|
|
737
737
|
value: S.value
|
|
@@ -748,7 +748,7 @@ function Go(e, t, r, l, u, g) {
|
|
|
748
748
|
required: !1
|
|
749
749
|
}, {
|
|
750
750
|
default: n(() => [
|
|
751
|
-
o(
|
|
751
|
+
o(b, {
|
|
752
752
|
modelValue: e.ruleForm.avatar,
|
|
753
753
|
"onUpdate:modelValue": t[6] || (t[6] = (S) => e.ruleForm.avatar = S),
|
|
754
754
|
disabled: e.isDetail,
|
|
@@ -793,7 +793,7 @@ function Go(e, t, r, l, u, g) {
|
|
|
793
793
|
}
|
|
794
794
|
const Jo = /* @__PURE__ */ z(Ho, [["render", Go], ["__scopeId", "data-v-07e1c4d8"]]);
|
|
795
795
|
function vt(e) {
|
|
796
|
-
return
|
|
796
|
+
return L().system.binary.download(e).then((t) => new Blob([t.data], { type: t.headers["content-type"] }));
|
|
797
797
|
}
|
|
798
798
|
const Wo = Y({
|
|
799
799
|
components: {
|
|
@@ -841,13 +841,13 @@ const Wo = Y({
|
|
|
841
841
|
this.currentUser = e, e && await this.getCurrentUserRole(e);
|
|
842
842
|
},
|
|
843
843
|
methods: {
|
|
844
|
-
isRetainYes:
|
|
845
|
-
checkPermission:
|
|
844
|
+
isRetainYes: ue,
|
|
845
|
+
checkPermission: se,
|
|
846
846
|
// 获取部门树
|
|
847
847
|
async getDepartTree() {
|
|
848
848
|
this.treeLoading = !0;
|
|
849
849
|
try {
|
|
850
|
-
const e = await
|
|
850
|
+
const e = await L().system.depart.tree(this.departForm);
|
|
851
851
|
this.treeLoading = !1, this.departTree = e, this.departTree.forEach((t) => {
|
|
852
852
|
var r;
|
|
853
853
|
(r = t.extend) != null && r.avatar && vt(t.extend.avatar).then((l) => {
|
|
@@ -864,7 +864,7 @@ const Wo = Y({
|
|
|
864
864
|
// 获取角色数据
|
|
865
865
|
async getUserRole() {
|
|
866
866
|
try {
|
|
867
|
-
const t = (await
|
|
867
|
+
const t = (await L().system.role.page({ pageSize: "500" })).list, r = [];
|
|
868
868
|
t.forEach((l) => {
|
|
869
869
|
r.push({
|
|
870
870
|
value: l.id,
|
|
@@ -881,7 +881,7 @@ const Wo = Y({
|
|
|
881
881
|
const e = JSON.parse(JSON.stringify(this.listQuery));
|
|
882
882
|
e.query.departId || delete e.query.departId;
|
|
883
883
|
try {
|
|
884
|
-
const t = await
|
|
884
|
+
const t = await L().system.user.page(e);
|
|
885
885
|
this.tableLoading = !1, this.list = t.list, this.total = t.total, this.list.forEach((r) => {
|
|
886
886
|
r.avatar && vt(r.avatar).then((l) => {
|
|
887
887
|
r._avatarUrl = window.URL.createObjectURL(l);
|
|
@@ -914,7 +914,7 @@ const Wo = Y({
|
|
|
914
914
|
},
|
|
915
915
|
// 删除部门
|
|
916
916
|
deleteDepart(e) {
|
|
917
|
-
if (e.extend &&
|
|
917
|
+
if (e.extend && ue(e.extend.retainFlag)) {
|
|
918
918
|
q.warning("系统保留部门禁止删除");
|
|
919
919
|
return;
|
|
920
920
|
}
|
|
@@ -923,7 +923,7 @@ const Wo = Y({
|
|
|
923
923
|
cancelButtonText: "取消",
|
|
924
924
|
type: "warning"
|
|
925
925
|
}).then(() => {
|
|
926
|
-
|
|
926
|
+
L().system.depart.delete(e.id).then(() => {
|
|
927
927
|
q.success("删除成功"), this.getDepartTree();
|
|
928
928
|
}).catch(() => {
|
|
929
929
|
});
|
|
@@ -968,7 +968,7 @@ const Wo = Y({
|
|
|
968
968
|
cancelButtonText: "取消",
|
|
969
969
|
type: "warning"
|
|
970
970
|
}).then(() => {
|
|
971
|
-
|
|
971
|
+
L().system.user.resetPassword(e.username).then((t) => {
|
|
972
972
|
t && t.initialPassword ? W.alert(
|
|
973
973
|
`<div>用户初始密码为:${t.initialPassword}</div>
|
|
974
974
|
<div style="margin-top:8px;color:#909399;">(请记住密码,退出页面后不再显示)</div>`,
|
|
@@ -991,7 +991,7 @@ const Wo = Y({
|
|
|
991
991
|
cancelButtonText: "取消",
|
|
992
992
|
type: "warning"
|
|
993
993
|
}).then(() => {
|
|
994
|
-
|
|
994
|
+
L().system.user.changeStatus(e.username, { enabledFlag: t }).then(() => {
|
|
995
995
|
q.success(`${r}成功`), this.getUserList();
|
|
996
996
|
}).catch(() => {
|
|
997
997
|
});
|
|
@@ -1006,7 +1006,7 @@ const Wo = Y({
|
|
|
1006
1006
|
cancelButtonText: "取消",
|
|
1007
1007
|
type: "warning"
|
|
1008
1008
|
}).then(() => {
|
|
1009
|
-
|
|
1009
|
+
L().system.user.changeLock(e.username, { lockedFlag: t }).then(() => {
|
|
1010
1010
|
q.success(`${r}成功`), this.getUserList();
|
|
1011
1011
|
}).catch(() => {
|
|
1012
1012
|
});
|
|
@@ -1020,7 +1020,7 @@ const Wo = Y({
|
|
|
1020
1020
|
cancelButtonText: "取消",
|
|
1021
1021
|
type: "warning"
|
|
1022
1022
|
}).then(() => {
|
|
1023
|
-
this.tableLoading = !0,
|
|
1023
|
+
this.tableLoading = !0, L().system.user.delete(e.username).then(() => {
|
|
1024
1024
|
this.tableLoading = !1, q.success("删除成功"), this.listQuery.pageNo = 1, this.getUserList();
|
|
1025
1025
|
}).catch(() => {
|
|
1026
1026
|
this.tableLoading = !1;
|
|
@@ -1056,7 +1056,7 @@ const Wo = Y({
|
|
|
1056
1056
|
async getCurrentUserRole(e) {
|
|
1057
1057
|
if (e)
|
|
1058
1058
|
try {
|
|
1059
|
-
const t = await
|
|
1059
|
+
const t = await L().system.user.query(e);
|
|
1060
1060
|
this.isAdmin = t.roles.includes("ADMIN");
|
|
1061
1061
|
} catch {
|
|
1062
1062
|
}
|
|
@@ -1073,15 +1073,15 @@ const Wo = Y({
|
|
|
1073
1073
|
// }
|
|
1074
1074
|
}
|
|
1075
1075
|
}), Zo = { class: "account_tree" }, Xo = { style: { display: "flex", gap: "5px", "align-items": "center" } }, xo = { class: "custom-tree-node" }, en = { class: "tree-node-label" }, tn = { class: "searchInputCustomStyle" };
|
|
1076
|
-
function on(e, t, r, l, u,
|
|
1077
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-button"), p = a("el-form-item"),
|
|
1076
|
+
function on(e, t, r, l, u, y) {
|
|
1077
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-button"), p = a("el-form-item"), b = a("el-form"), f = a("el-image"), g = a("OfficeBuilding"), C = a("el-icon"), k = a("svg-icon"), v = a("el-tooltip"), S = a("el-tree"), U = a("el-option"), I = a("el-select"), w = a("UserFilled"), D = a("el-table-column"), h = a("el-divider"), H = a("el-dropdown-item"), ce = a("el-dropdown-menu"), re = a("el-dropdown"), G = a("el-table"), Q = a("el-pagination"), he = a("ListReport"), Qe = a("FlexibleColumn"), Ge = a("addUserDrawer"), Se = a("addDepartDrawer"), Ae = M("loading"), F = M("emoji");
|
|
1078
1078
|
return m(), V("div", null, [
|
|
1079
1079
|
o(s, { desc: "用户管理,支持部门和用户的维护管理。" }),
|
|
1080
1080
|
o(Qe, { class: "account_wrapper" }, {
|
|
1081
1081
|
begin: n(() => [
|
|
1082
1082
|
T("div", Zo, [
|
|
1083
1083
|
T("div", null, [
|
|
1084
|
-
o(
|
|
1084
|
+
o(b, {
|
|
1085
1085
|
ref: "departSearchForm",
|
|
1086
1086
|
model: e.departForm,
|
|
1087
1087
|
class: "searchInputCustomStyle",
|
|
@@ -1132,7 +1132,7 @@ function on(e, t, r, l, u, g) {
|
|
|
1132
1132
|
_: 1
|
|
1133
1133
|
}, 8, ["model", "onKeyup"])
|
|
1134
1134
|
]),
|
|
1135
|
-
|
|
1135
|
+
E((m(), _(S, {
|
|
1136
1136
|
id: "tree-option",
|
|
1137
1137
|
ref: "pTree",
|
|
1138
1138
|
data: e.departTree,
|
|
@@ -1154,7 +1154,7 @@ function on(e, t, r, l, u, g) {
|
|
|
1154
1154
|
style: { width: "24px", height: "24px", "vertical-align": "middle", "margin-right": "6px", "flex-shrink": "0", color: "#c0c4cc" }
|
|
1155
1155
|
}, {
|
|
1156
1156
|
default: n(() => [
|
|
1157
|
-
o(
|
|
1157
|
+
o(g)
|
|
1158
1158
|
]),
|
|
1159
1159
|
_: 1
|
|
1160
1160
|
})),
|
|
@@ -1194,9 +1194,9 @@ function on(e, t, r, l, u, g) {
|
|
|
1194
1194
|
])
|
|
1195
1195
|
]),
|
|
1196
1196
|
end: n(() => [
|
|
1197
|
-
|
|
1197
|
+
E((m(), _(he, { class: "operate_block" }, {
|
|
1198
1198
|
filter: n(() => [
|
|
1199
|
-
o(
|
|
1199
|
+
o(b, {
|
|
1200
1200
|
ref: "searchForm",
|
|
1201
1201
|
inline: !0,
|
|
1202
1202
|
model: e.listQuery,
|
|
@@ -1209,7 +1209,7 @@ function on(e, t, r, l, u, g) {
|
|
|
1209
1209
|
prop: "keyword"
|
|
1210
1210
|
}, {
|
|
1211
1211
|
default: n(() => [
|
|
1212
|
-
|
|
1212
|
+
E(o(i, {
|
|
1213
1213
|
modelValue: e.listQuery.query.keyword,
|
|
1214
1214
|
"onUpdate:modelValue": t[2] || (t[2] = ($) => e.listQuery.query.keyword = $),
|
|
1215
1215
|
placeholder: "请输入账号、姓名、手机号码",
|
|
@@ -1234,7 +1234,7 @@ function on(e, t, r, l, u, g) {
|
|
|
1234
1234
|
multiple: ""
|
|
1235
1235
|
}, {
|
|
1236
1236
|
default: n(() => [
|
|
1237
|
-
(m(!0), V(
|
|
1237
|
+
(m(!0), V(ie, null, de(e.roleSelectOpt, ($) => (m(), _(U, {
|
|
1238
1238
|
key: $.value,
|
|
1239
1239
|
label: $.label,
|
|
1240
1240
|
value: $.value
|
|
@@ -1315,7 +1315,7 @@ function on(e, t, r, l, u, g) {
|
|
|
1315
1315
|
color: "#c0c4cc"
|
|
1316
1316
|
}, {
|
|
1317
1317
|
default: n(() => [
|
|
1318
|
-
o(
|
|
1318
|
+
o(w)
|
|
1319
1319
|
]),
|
|
1320
1320
|
_: 1
|
|
1321
1321
|
})) : (m(), _(C, {
|
|
@@ -1324,7 +1324,7 @@ function on(e, t, r, l, u, g) {
|
|
|
1324
1324
|
color: "#c0c4cc"
|
|
1325
1325
|
}, {
|
|
1326
1326
|
default: n(() => [
|
|
1327
|
-
o(
|
|
1327
|
+
o(w)
|
|
1328
1328
|
]),
|
|
1329
1329
|
_: 1
|
|
1330
1330
|
}))
|
|
@@ -1561,7 +1561,7 @@ function on(e, t, r, l, u, g) {
|
|
|
1561
1561
|
}, null, 8, ["onReload"])
|
|
1562
1562
|
]);
|
|
1563
1563
|
}
|
|
1564
|
-
const
|
|
1564
|
+
const Ds = /* @__PURE__ */ z(Wo, [["render", on], ["__scopeId", "data-v-0cbae3c2"]]);
|
|
1565
1565
|
var nn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1566
1566
|
function Ut(e) {
|
|
1567
1567
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -1573,36 +1573,36 @@ var zt = { exports: {} };
|
|
|
1573
1573
|
})(nn, function() {
|
|
1574
1574
|
return function(r, l, u) {
|
|
1575
1575
|
r = r || {};
|
|
1576
|
-
var
|
|
1577
|
-
function i(p,
|
|
1578
|
-
return
|
|
1576
|
+
var y = l.prototype, s = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
1577
|
+
function i(p, b, f, g) {
|
|
1578
|
+
return y.fromToBase(p, b, f, g);
|
|
1579
1579
|
}
|
|
1580
|
-
u.en.relativeTime = s,
|
|
1581
|
-
for (var k, v, S, U = f.$locale().relativeTime || s, I = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }],
|
|
1580
|
+
u.en.relativeTime = s, y.fromToBase = function(p, b, f, g, C) {
|
|
1581
|
+
for (var k, v, S, U = f.$locale().relativeTime || s, I = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], w = I.length, D = 0; D < w; D += 1) {
|
|
1582
1582
|
var h = I[D];
|
|
1583
|
-
h.d && (k =
|
|
1583
|
+
h.d && (k = g ? u(p).diff(f, h.d, !0) : f.diff(p, h.d, !0));
|
|
1584
1584
|
var H = (r.rounding || Math.round)(Math.abs(k));
|
|
1585
1585
|
if (S = k > 0, H <= h.r || !h.r) {
|
|
1586
1586
|
H <= 1 && D > 0 && (h = I[D - 1]);
|
|
1587
1587
|
var ce = U[h.l];
|
|
1588
|
-
C && (H = C("" + H)), v = typeof ce == "string" ? ce.replace("%d", H) : ce(H,
|
|
1588
|
+
C && (H = C("" + H)), v = typeof ce == "string" ? ce.replace("%d", H) : ce(H, b, h.l, S);
|
|
1589
1589
|
break;
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
|
-
if (
|
|
1592
|
+
if (b) return v;
|
|
1593
1593
|
var re = S ? U.future : U.past;
|
|
1594
1594
|
return typeof re == "function" ? re(v) : re.replace("%s", v);
|
|
1595
|
-
},
|
|
1596
|
-
return i(p,
|
|
1597
|
-
},
|
|
1598
|
-
return i(p,
|
|
1595
|
+
}, y.to = function(p, b) {
|
|
1596
|
+
return i(p, b, this, !0);
|
|
1597
|
+
}, y.from = function(p, b) {
|
|
1598
|
+
return i(p, b, this);
|
|
1599
1599
|
};
|
|
1600
1600
|
var d = function(p) {
|
|
1601
1601
|
return p.$u ? u.utc() : u();
|
|
1602
1602
|
};
|
|
1603
|
-
|
|
1603
|
+
y.toNow = function(p) {
|
|
1604
1604
|
return this.to(d(this), p);
|
|
1605
|
-
},
|
|
1605
|
+
}, y.fromNow = function(p) {
|
|
1606
1606
|
return this.from(d(this), p);
|
|
1607
1607
|
};
|
|
1608
1608
|
};
|
|
@@ -1619,7 +1619,7 @@ function ln(e) {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
function sn(e, t, r, l) {
|
|
1621
1621
|
const u = new Set(e);
|
|
1622
|
-
return r ? (t.key && (u.add(t.key), Yt(l, t.key).forEach((
|
|
1622
|
+
return r ? (t.key && (u.add(t.key), Yt(l, t.key).forEach((y) => u.add(y))), nt(t).forEach((y) => u.add(y)), [...u]) : (t.key && u.delete(t.key), nt(t).forEach((y) => u.delete(y)), t.key && dn(l, t.key, u), [...u]);
|
|
1623
1623
|
}
|
|
1624
1624
|
function nt(e) {
|
|
1625
1625
|
const t = [];
|
|
@@ -1628,13 +1628,13 @@ function nt(e) {
|
|
|
1628
1628
|
}), t;
|
|
1629
1629
|
}
|
|
1630
1630
|
function Yt(e, t) {
|
|
1631
|
-
const r = [], l = (u,
|
|
1631
|
+
const r = [], l = (u, y) => {
|
|
1632
1632
|
if (!u)
|
|
1633
1633
|
return !1;
|
|
1634
1634
|
for (const s of u) {
|
|
1635
1635
|
if (s.key === t)
|
|
1636
|
-
return r.push(...
|
|
1637
|
-
const i = s.key ? [...
|
|
1636
|
+
return r.push(...y), !0;
|
|
1637
|
+
const i = s.key ? [...y, s.key] : y;
|
|
1638
1638
|
if (l(s.children, i))
|
|
1639
1639
|
return !0;
|
|
1640
1640
|
}
|
|
@@ -1645,10 +1645,10 @@ function Yt(e, t) {
|
|
|
1645
1645
|
function dn(e, t, r) {
|
|
1646
1646
|
const l = Yt(e, t);
|
|
1647
1647
|
for (let u = l.length - 1; u >= 0; u--) {
|
|
1648
|
-
const
|
|
1648
|
+
const y = l[u], s = jt(e, y);
|
|
1649
1649
|
if (!s)
|
|
1650
1650
|
continue;
|
|
1651
|
-
nt(s).some((d) => r.has(d)) || r.delete(
|
|
1651
|
+
nt(s).some((d) => r.has(d)) || r.delete(y);
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
1654
|
function jt(e, t) {
|
|
@@ -1734,7 +1734,7 @@ const cn = Y({
|
|
|
1734
1734
|
async getPerTree() {
|
|
1735
1735
|
this.loading = !0;
|
|
1736
1736
|
try {
|
|
1737
|
-
const e = await
|
|
1737
|
+
const e = await L().system.authority.tree({ async: !1 });
|
|
1738
1738
|
this.loading = !1, this.pertree = this.selectDataTree(e);
|
|
1739
1739
|
} catch {
|
|
1740
1740
|
this.loading = !1;
|
|
@@ -1767,7 +1767,7 @@ const cn = Y({
|
|
|
1767
1767
|
else {
|
|
1768
1768
|
this.title = e.edit ? "编辑角色" : "查看角色";
|
|
1769
1769
|
try {
|
|
1770
|
-
const l = await
|
|
1770
|
+
const l = await L().system.role.query(e.code);
|
|
1771
1771
|
r = JSON.parse(JSON.stringify(l)), this.ruleForm = {
|
|
1772
1772
|
...r
|
|
1773
1773
|
};
|
|
@@ -1792,8 +1792,8 @@ const cn = Y({
|
|
|
1792
1792
|
this.$refs.ruleForm.validate((l) => {
|
|
1793
1793
|
if (l) {
|
|
1794
1794
|
this.$refs.xdmpDrawer.showLoading();
|
|
1795
|
-
const u =
|
|
1796
|
-
(pn(this.addmode) === "add" ? u.system.role.add(
|
|
1795
|
+
const u = L(), y = mn(this.ruleForm, t);
|
|
1796
|
+
(pn(this.addmode) === "add" ? u.system.role.add(y) : u.system.role.update(y.code, y)).then(() => {
|
|
1797
1797
|
q.success(this.addmode ? "新建成功" : "修改成功"), this.$emit("reload"), this.$refs.xdmpDrawer.cancelForm();
|
|
1798
1798
|
}).catch(() => {
|
|
1799
1799
|
this.$refs.xdmpDrawer.hideLoading();
|
|
@@ -1828,8 +1828,8 @@ const cn = Y({
|
|
|
1828
1828
|
key: 0,
|
|
1829
1829
|
class: "permission-label-actions"
|
|
1830
1830
|
}, gn = { class: "permissionTree" };
|
|
1831
|
-
function yn(e, t, r, l, u,
|
|
1832
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-button"), p = a("el-tree"),
|
|
1831
|
+
function yn(e, t, r, l, u, y) {
|
|
1832
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-button"), p = a("el-tree"), b = a("el-form"), f = a("xdmpDrawer"), g = M("emoji"), C = M("loading");
|
|
1833
1833
|
return m(), _(f, {
|
|
1834
1834
|
ref: "xdmpDrawer",
|
|
1835
1835
|
title: e.title,
|
|
@@ -1839,8 +1839,8 @@ function yn(e, t, r, l, u, g) {
|
|
|
1839
1839
|
onSubmit: e.submit
|
|
1840
1840
|
}, {
|
|
1841
1841
|
"xdmp-drawer-body": n(() => [
|
|
1842
|
-
|
|
1843
|
-
o(
|
|
1842
|
+
E((m(), V("div", null, [
|
|
1843
|
+
o(b, {
|
|
1844
1844
|
ref: "ruleForm",
|
|
1845
1845
|
model: e.ruleForm,
|
|
1846
1846
|
"label-position": "top",
|
|
@@ -1854,14 +1854,14 @@ function yn(e, t, r, l, u, g) {
|
|
|
1854
1854
|
prop: "name"
|
|
1855
1855
|
}, {
|
|
1856
1856
|
default: n(() => [
|
|
1857
|
-
|
|
1857
|
+
E(o(s, {
|
|
1858
1858
|
modelValue: e.ruleForm.name,
|
|
1859
1859
|
"onUpdate:modelValue": t[0] || (t[0] = (k) => e.ruleForm.name = k),
|
|
1860
1860
|
placeholder: "请输入角色名称",
|
|
1861
1861
|
maxlength: "12",
|
|
1862
1862
|
disabled: !e.edit
|
|
1863
1863
|
}, null, 8, ["modelValue", "disabled"]), [
|
|
1864
|
-
[
|
|
1864
|
+
[g]
|
|
1865
1865
|
])
|
|
1866
1866
|
]),
|
|
1867
1867
|
_: 1
|
|
@@ -1871,14 +1871,14 @@ function yn(e, t, r, l, u, g) {
|
|
|
1871
1871
|
prop: "code"
|
|
1872
1872
|
}, {
|
|
1873
1873
|
default: n(() => [
|
|
1874
|
-
|
|
1874
|
+
E(o(s, {
|
|
1875
1875
|
modelValue: e.ruleForm.code,
|
|
1876
1876
|
"onUpdate:modelValue": t[1] || (t[1] = (k) => e.ruleForm.code = k),
|
|
1877
1877
|
placeholder: "请输入角色编码",
|
|
1878
1878
|
maxlength: "99",
|
|
1879
1879
|
disabled: !e.edit
|
|
1880
1880
|
}, null, 8, ["modelValue", "disabled"]), [
|
|
1881
|
-
[
|
|
1881
|
+
[g]
|
|
1882
1882
|
])
|
|
1883
1883
|
]),
|
|
1884
1884
|
_: 1
|
|
@@ -1888,7 +1888,7 @@ function yn(e, t, r, l, u, g) {
|
|
|
1888
1888
|
prop: "desc"
|
|
1889
1889
|
}, {
|
|
1890
1890
|
default: n(() => [
|
|
1891
|
-
|
|
1891
|
+
E(o(s, {
|
|
1892
1892
|
modelValue: e.ruleForm.remark,
|
|
1893
1893
|
"onUpdate:modelValue": t[2] || (t[2] = (k) => e.ruleForm.remark = k),
|
|
1894
1894
|
type: "textarea",
|
|
@@ -1896,7 +1896,7 @@ function yn(e, t, r, l, u, g) {
|
|
|
1896
1896
|
maxlength: "500",
|
|
1897
1897
|
disabled: !e.edit
|
|
1898
1898
|
}, null, 8, ["modelValue", "disabled"]), [
|
|
1899
|
-
[
|
|
1899
|
+
[g]
|
|
1900
1900
|
])
|
|
1901
1901
|
]),
|
|
1902
1902
|
_: 1
|
|
@@ -1988,13 +1988,13 @@ const bn = /* @__PURE__ */ z(cn, [["render", yn], ["__scopeId", "data-v-1f26dba3
|
|
|
1988
1988
|
},
|
|
1989
1989
|
methods: {
|
|
1990
1990
|
dayjs: O,
|
|
1991
|
-
checkPermission:
|
|
1992
|
-
isRetainYes:
|
|
1991
|
+
checkPermission: se,
|
|
1992
|
+
isRetainYes: ue,
|
|
1993
1993
|
// 获取角色列表
|
|
1994
1994
|
async getRoleList() {
|
|
1995
1995
|
this.loading = !0;
|
|
1996
1996
|
try {
|
|
1997
|
-
const e = await
|
|
1997
|
+
const e = await L().system.role.page(this.listQuery);
|
|
1998
1998
|
this.loading = !1, this.list = e.list, this.total = e.total;
|
|
1999
1999
|
} catch (e) {
|
|
2000
2000
|
this.loading = !1, console.error(e);
|
|
@@ -2033,7 +2033,7 @@ const bn = /* @__PURE__ */ z(cn, [["render", yn], ["__scopeId", "data-v-1f26dba3
|
|
|
2033
2033
|
cancelButtonText: "取消",
|
|
2034
2034
|
type: "warning"
|
|
2035
2035
|
}).then(() => {
|
|
2036
|
-
|
|
2036
|
+
L().system.role.delete(e.code).then(() => {
|
|
2037
2037
|
this.listQuery.pageNo = 1, this.getRoleList(), q.success("删除成功");
|
|
2038
2038
|
}).catch((t) => {
|
|
2039
2039
|
console.error(t);
|
|
@@ -2043,13 +2043,13 @@ const bn = /* @__PURE__ */ z(cn, [["render", yn], ["__scopeId", "data-v-1f26dba3
|
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
|
2045
2045
|
}), wn = { class: "role_wrapper" }, Cn = { class: "searchInputCustomStyle" };
|
|
2046
|
-
function kn(e, t, r, l, u,
|
|
2047
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"),
|
|
2046
|
+
function kn(e, t, r, l, u, y) {
|
|
2047
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"), b = a("el-form"), f = a("el-table-column"), g = a("el-divider"), C = a("el-table"), k = a("el-pagination"), v = a("ListReport"), S = a("roleDetail"), U = M("emoji"), I = M("loading");
|
|
2048
2048
|
return m(), V("div", wn, [
|
|
2049
2049
|
o(s, { desc: "角色管理,支持系统角色的增删改查。" }),
|
|
2050
|
-
|
|
2050
|
+
E((m(), _(v, { class: "role_block" }, {
|
|
2051
2051
|
filter: n(() => [
|
|
2052
|
-
o(
|
|
2052
|
+
o(b, {
|
|
2053
2053
|
ref: "searchForm",
|
|
2054
2054
|
inline: !0,
|
|
2055
2055
|
model: e.listQuery,
|
|
@@ -2062,9 +2062,9 @@ function kn(e, t, r, l, u, g) {
|
|
|
2062
2062
|
prop: "name"
|
|
2063
2063
|
}, {
|
|
2064
2064
|
default: n(() => [
|
|
2065
|
-
|
|
2065
|
+
E(o(i, {
|
|
2066
2066
|
modelValue: e.listQuery.query.keyword,
|
|
2067
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2067
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => e.listQuery.query.keyword = w),
|
|
2068
2068
|
placeholder: "请输入角色名称",
|
|
2069
2069
|
clearable: "",
|
|
2070
2070
|
maxlength: "12"
|
|
@@ -2109,7 +2109,7 @@ function kn(e, t, r, l, u, g) {
|
|
|
2109
2109
|
key: 0,
|
|
2110
2110
|
style: { width: "88px" },
|
|
2111
2111
|
type: "primary",
|
|
2112
|
-
onClick: t[1] || (t[1] = (
|
|
2112
|
+
onClick: t[1] || (t[1] = (w) => e.detail({ edit: !0 }, !0))
|
|
2113
2113
|
}, {
|
|
2114
2114
|
default: n(() => [...t[4] || (t[4] = [
|
|
2115
2115
|
c("新建 ", -1)
|
|
@@ -2137,8 +2137,8 @@ function kn(e, t, r, l, u, g) {
|
|
|
2137
2137
|
prop: "createTime",
|
|
2138
2138
|
label: "创建时间"
|
|
2139
2139
|
}, {
|
|
2140
|
-
default: n((
|
|
2141
|
-
T("span", null, R(e.dayjs(
|
|
2140
|
+
default: n((w) => [
|
|
2141
|
+
T("span", null, R(e.dayjs(w.row.createTime).format("YYYY-MM-DD HH:mm:ss")), 1)
|
|
2142
2142
|
]),
|
|
2143
2143
|
_: 1
|
|
2144
2144
|
}),
|
|
@@ -2147,31 +2147,31 @@ function kn(e, t, r, l, u, g) {
|
|
|
2147
2147
|
label: "操作",
|
|
2148
2148
|
width: "220"
|
|
2149
2149
|
}, {
|
|
2150
|
-
default: n((
|
|
2150
|
+
default: n((w) => [
|
|
2151
2151
|
e.checkPermission(["ROLE_ROLE_UPDATE"]) ? (m(), _(p, {
|
|
2152
2152
|
key: 0,
|
|
2153
2153
|
type: "primary",
|
|
2154
2154
|
text: "",
|
|
2155
|
-
disabled:
|
|
2156
|
-
onClick: (D) => e.detail({ ...
|
|
2155
|
+
disabled: w.row.code == "ADMIN",
|
|
2156
|
+
onClick: (D) => e.detail({ ...w.row, edit: !0 }, !1)
|
|
2157
2157
|
}, {
|
|
2158
2158
|
default: n(() => [...t[5] || (t[5] = [
|
|
2159
2159
|
c("编辑 ", -1)
|
|
2160
2160
|
])]),
|
|
2161
2161
|
_: 1
|
|
2162
2162
|
}, 8, ["disabled", "onClick"])) : P("", !0),
|
|
2163
|
-
o(
|
|
2163
|
+
o(g, { direction: "vertical" }),
|
|
2164
2164
|
o(p, {
|
|
2165
2165
|
type: "primary",
|
|
2166
2166
|
text: "",
|
|
2167
|
-
onClick: (D) => e.detail(
|
|
2167
|
+
onClick: (D) => e.detail(w.row, !1)
|
|
2168
2168
|
}, {
|
|
2169
2169
|
default: n(() => [...t[6] || (t[6] = [
|
|
2170
2170
|
c("查看 ", -1)
|
|
2171
2171
|
])]),
|
|
2172
2172
|
_: 1
|
|
2173
2173
|
}, 8, ["onClick"]),
|
|
2174
|
-
e.checkPermission(["ROLE_ROLE_DELETE"]) ? (m(), _(
|
|
2174
|
+
e.checkPermission(["ROLE_ROLE_DELETE"]) ? (m(), _(g, {
|
|
2175
2175
|
key: 1,
|
|
2176
2176
|
direction: "vertical"
|
|
2177
2177
|
})) : P("", !0),
|
|
@@ -2179,8 +2179,8 @@ function kn(e, t, r, l, u, g) {
|
|
|
2179
2179
|
key: 2,
|
|
2180
2180
|
type: "primary",
|
|
2181
2181
|
text: "",
|
|
2182
|
-
disabled: e.isRetainYes(
|
|
2183
|
-
onClick: (D) => e.deleteRole(
|
|
2182
|
+
disabled: e.isRetainYes(w.row.retainFlag),
|
|
2183
|
+
onClick: (D) => e.deleteRole(w.row)
|
|
2184
2184
|
}, {
|
|
2185
2185
|
default: n(() => [...t[7] || (t[7] = [
|
|
2186
2186
|
c("删除 ", -1)
|
|
@@ -2217,10 +2217,10 @@ function kn(e, t, r, l, u, g) {
|
|
|
2217
2217
|
}, null, 8, ["onReload"])
|
|
2218
2218
|
]);
|
|
2219
2219
|
}
|
|
2220
|
-
const
|
|
2220
|
+
const $s = /* @__PURE__ */ z(_n, [["render", kn], ["__scopeId", "data-v-e90001b5"]]), vn = Y({
|
|
2221
2221
|
components: {
|
|
2222
2222
|
xdmpDrawer: ee,
|
|
2223
|
-
treeSelect: Rt(() => import("./treeSelect-
|
|
2223
|
+
treeSelect: Rt(() => import("./treeSelect-CvJM_V5R.js")),
|
|
2224
2224
|
IconSelect: bo,
|
|
2225
2225
|
InfoFilled: Ao,
|
|
2226
2226
|
QuestionFilled: Oo
|
|
@@ -2267,7 +2267,7 @@ const vs = /* @__PURE__ */ z(_n, [["render", kn], ["__scopeId", "data-v-e90001b5
|
|
|
2267
2267
|
},
|
|
2268
2268
|
computed: {
|
|
2269
2269
|
isRetained() {
|
|
2270
|
-
return
|
|
2270
|
+
return ue(this.form.retainFlag);
|
|
2271
2271
|
}
|
|
2272
2272
|
},
|
|
2273
2273
|
watch: {},
|
|
@@ -2310,7 +2310,7 @@ const vs = /* @__PURE__ */ z(_n, [["render", kn], ["__scopeId", "data-v-e90001b5
|
|
|
2310
2310
|
// 获取父级树
|
|
2311
2311
|
async getGroupList() {
|
|
2312
2312
|
try {
|
|
2313
|
-
const e = await
|
|
2313
|
+
const e = await L().system.authority.tree({
|
|
2314
2314
|
orderBy: "create_time",
|
|
2315
2315
|
orderDirection: "DESC",
|
|
2316
2316
|
async: !1
|
|
@@ -2350,7 +2350,7 @@ const vs = /* @__PURE__ */ z(_n, [["render", kn], ["__scopeId", "data-v-e90001b5
|
|
|
2350
2350
|
submit() {
|
|
2351
2351
|
this.$refs.form.validate((e) => {
|
|
2352
2352
|
if (e) {
|
|
2353
|
-
const t = JSON.parse(JSON.stringify(this.form)), r =
|
|
2353
|
+
const t = JSON.parse(JSON.stringify(this.form)), r = L(), l = this.mode ? (u) => r.system.authority.update(u.id, u) : (u) => r.system.authority.add(u);
|
|
2354
2354
|
this.$refs.xdmpDrawer.showLoading(), l(t).then(() => {
|
|
2355
2355
|
this.$refs.xdmpDrawer.hideLoading(), q.success(this.mode ? "编辑成功" : "新增成功"), _e(this, "reload"), this.$refs.xdmpDrawer.cancelForm();
|
|
2356
2356
|
}).catch(() => {
|
|
@@ -2412,8 +2412,8 @@ const vs = /* @__PURE__ */ z(_n, [["render", kn], ["__scopeId", "data-v-e90001b5
|
|
|
2412
2412
|
}
|
|
2413
2413
|
}
|
|
2414
2414
|
}), Dn = { style: { "vertical-align": "middle" } }, $n = { style: { "vertical-align": "middle" } }, Tn = { style: { "vertical-align": "middle" } }, Sn = { style: { "vertical-align": "middle" } };
|
|
2415
|
-
function Fn(e, t, r, l, u,
|
|
2416
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("treeSelect"), p = a("el-radio"),
|
|
2415
|
+
function Fn(e, t, r, l, u, y) {
|
|
2416
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("treeSelect"), p = a("el-radio"), b = a("el-radio-group"), f = a("InfoFilled"), g = a("el-icon"), C = a("el-tooltip"), k = a("icon-select"), v = a("QuestionFilled"), S = a("el-switch"), U = a("el-form"), I = a("xdmpDrawer"), w = M("emoji");
|
|
2417
2417
|
return m(), V("div", null, [
|
|
2418
2418
|
o(I, {
|
|
2419
2419
|
ref: "xdmpDrawer",
|
|
@@ -2438,13 +2438,13 @@ function Fn(e, t, r, l, u, g) {
|
|
|
2438
2438
|
label: "权限名称"
|
|
2439
2439
|
}, {
|
|
2440
2440
|
default: n(() => [
|
|
2441
|
-
|
|
2441
|
+
E(o(s, {
|
|
2442
2442
|
modelValue: e.form.name,
|
|
2443
2443
|
"onUpdate:modelValue": t[0] || (t[0] = (D) => e.form.name = D),
|
|
2444
2444
|
placeholder: "1-32位,仅支持中文、大小写字母、数字",
|
|
2445
2445
|
clearable: ""
|
|
2446
2446
|
}, null, 8, ["modelValue"]), [
|
|
2447
|
-
[
|
|
2447
|
+
[w]
|
|
2448
2448
|
])
|
|
2449
2449
|
]),
|
|
2450
2450
|
_: 1
|
|
@@ -2454,14 +2454,14 @@ function Fn(e, t, r, l, u, g) {
|
|
|
2454
2454
|
label: "权限码"
|
|
2455
2455
|
}, {
|
|
2456
2456
|
default: n(() => [
|
|
2457
|
-
|
|
2457
|
+
E(o(s, {
|
|
2458
2458
|
modelValue: e.form.code,
|
|
2459
2459
|
"onUpdate:modelValue": t[1] || (t[1] = (D) => e.form.code = D),
|
|
2460
2460
|
placeholder: "4-64位,仅支持大小写字母、数字",
|
|
2461
2461
|
disabled: e.fieldDisabled("code"),
|
|
2462
2462
|
clearable: ""
|
|
2463
2463
|
}, null, 8, ["modelValue", "disabled"]), [
|
|
2464
|
-
[
|
|
2464
|
+
[w]
|
|
2465
2465
|
])
|
|
2466
2466
|
]),
|
|
2467
2467
|
_: 1
|
|
@@ -2488,7 +2488,7 @@ function Fn(e, t, r, l, u, g) {
|
|
|
2488
2488
|
prop: "authorityType"
|
|
2489
2489
|
}, {
|
|
2490
2490
|
default: n(() => [
|
|
2491
|
-
o(
|
|
2491
|
+
o(b, {
|
|
2492
2492
|
modelValue: e.form.type,
|
|
2493
2493
|
"onUpdate:modelValue": t[3] || (t[3] = (D) => e.form.type = D),
|
|
2494
2494
|
disabled: e.fieldDisabled("type"),
|
|
@@ -2539,7 +2539,7 @@ function Fn(e, t, r, l, u, g) {
|
|
|
2539
2539
|
"show-after": 300
|
|
2540
2540
|
}, {
|
|
2541
2541
|
default: n(() => [
|
|
2542
|
-
o(
|
|
2542
|
+
o(g, null, {
|
|
2543
2543
|
default: n(() => [
|
|
2544
2544
|
o(f)
|
|
2545
2545
|
]),
|
|
@@ -2608,7 +2608,7 @@ function Fn(e, t, r, l, u, g) {
|
|
|
2608
2608
|
"show-after": 300
|
|
2609
2609
|
}, {
|
|
2610
2610
|
default: n(() => [
|
|
2611
|
-
o(
|
|
2611
|
+
o(g, null, {
|
|
2612
2612
|
default: n(() => [
|
|
2613
2613
|
o(v)
|
|
2614
2614
|
]),
|
|
@@ -2638,7 +2638,7 @@ function Fn(e, t, r, l, u, g) {
|
|
|
2638
2638
|
"show-after": 300
|
|
2639
2639
|
}, {
|
|
2640
2640
|
default: n(() => [
|
|
2641
|
-
o(
|
|
2641
|
+
o(g, null, {
|
|
2642
2642
|
default: n(() => [
|
|
2643
2643
|
o(v)
|
|
2644
2644
|
]),
|
|
@@ -2668,7 +2668,7 @@ function Fn(e, t, r, l, u, g) {
|
|
|
2668
2668
|
"show-after": 300
|
|
2669
2669
|
}, {
|
|
2670
2670
|
default: n(() => [
|
|
2671
|
-
o(
|
|
2671
|
+
o(g, null, {
|
|
2672
2672
|
default: n(() => [
|
|
2673
2673
|
o(v)
|
|
2674
2674
|
]),
|
|
@@ -2692,13 +2692,13 @@ function Fn(e, t, r, l, u, g) {
|
|
|
2692
2692
|
label: "排序"
|
|
2693
2693
|
}, {
|
|
2694
2694
|
default: n(() => [
|
|
2695
|
-
|
|
2695
|
+
E(o(s, {
|
|
2696
2696
|
modelValue: e.form.sortOrder,
|
|
2697
2697
|
"onUpdate:modelValue": t[11] || (t[11] = (D) => e.form.sortOrder = D),
|
|
2698
2698
|
placeholder: "请输入排序值",
|
|
2699
2699
|
clearable: ""
|
|
2700
2700
|
}, null, 8, ["modelValue"]), [
|
|
2701
|
-
[
|
|
2701
|
+
[w]
|
|
2702
2702
|
])
|
|
2703
2703
|
]),
|
|
2704
2704
|
_: 1
|
|
@@ -2754,15 +2754,15 @@ const Ln = /* @__PURE__ */ z(vn, [["render", Fn]]), En = Y({
|
|
|
2754
2754
|
},
|
|
2755
2755
|
methods: {
|
|
2756
2756
|
dayjs: O,
|
|
2757
|
-
checkPermission:
|
|
2758
|
-
isRetainYes:
|
|
2757
|
+
checkPermission: se,
|
|
2758
|
+
isRetainYes: ue,
|
|
2759
2759
|
isSvgIcon(e) {
|
|
2760
2760
|
return Co(e);
|
|
2761
2761
|
},
|
|
2762
2762
|
// 刷新系统菜单(侧边栏)
|
|
2763
2763
|
async refreshSystemMenu() {
|
|
2764
2764
|
try {
|
|
2765
|
-
const e = await
|
|
2765
|
+
const e = await L().system.authority.tree({ async: !1 });
|
|
2766
2766
|
Yo(e);
|
|
2767
2767
|
} catch (e) {
|
|
2768
2768
|
console.error("刷新系统菜单失败", e);
|
|
@@ -2776,7 +2776,7 @@ const Ln = /* @__PURE__ */ z(vn, [["render", Fn]]), En = Y({
|
|
|
2776
2776
|
async getTreeList() {
|
|
2777
2777
|
this.loading = !0;
|
|
2778
2778
|
try {
|
|
2779
|
-
const e = await
|
|
2779
|
+
const e = await L().system.authority.tree({
|
|
2780
2780
|
...this.queryParams,
|
|
2781
2781
|
async: !1
|
|
2782
2782
|
});
|
|
@@ -2815,7 +2815,7 @@ const Ln = /* @__PURE__ */ z(vn, [["render", Fn]]), En = Y({
|
|
|
2815
2815
|
cancelButtonText: "取消",
|
|
2816
2816
|
type: "warning"
|
|
2817
2817
|
}).then(() => {
|
|
2818
|
-
|
|
2818
|
+
L().system.authority.delete(e).then(() => {
|
|
2819
2819
|
q.success("删除成功"), this.getTreeList();
|
|
2820
2820
|
}).catch((t) => {
|
|
2821
2821
|
console.error(t);
|
|
@@ -2825,13 +2825,13 @@ const Ln = /* @__PURE__ */ z(vn, [["render", Fn]]), En = Y({
|
|
|
2825
2825
|
}
|
|
2826
2826
|
}
|
|
2827
2827
|
}), Rn = { class: "authority_wrapper" }, Pn = { class: "name-cell" }, Nn = { key: 0 };
|
|
2828
|
-
function In(e, t, r, l, u,
|
|
2829
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"),
|
|
2828
|
+
function In(e, t, r, l, u, y) {
|
|
2829
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"), b = a("el-form"), f = a("svg-icon"), g = a("el-icon"), C = a("el-table-column"), k = a("el-divider"), v = a("el-table"), S = a("ListReport"), U = a("menuDrawer"), I = M("loading");
|
|
2830
2830
|
return m(), V("div", Rn, [
|
|
2831
2831
|
o(s, { desc: "系统权限管理,支持菜单权限的增删改查操作。" }),
|
|
2832
|
-
|
|
2832
|
+
E((m(), _(S, { class: "authority_block" }, {
|
|
2833
2833
|
filter: n(() => [
|
|
2834
|
-
o(
|
|
2834
|
+
o(b, {
|
|
2835
2835
|
ref: "searchForm",
|
|
2836
2836
|
model: e.queryParams,
|
|
2837
2837
|
inline: !0,
|
|
@@ -2846,7 +2846,7 @@ function In(e, t, r, l, u, g) {
|
|
|
2846
2846
|
default: n(() => [
|
|
2847
2847
|
o(i, {
|
|
2848
2848
|
modelValue: e.queryParams.keyword,
|
|
2849
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2849
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => e.queryParams.keyword = w),
|
|
2850
2850
|
placeholder: "请输入权限名称"
|
|
2851
2851
|
}, null, 8, ["modelValue"])
|
|
2852
2852
|
]),
|
|
@@ -2859,7 +2859,7 @@ function In(e, t, r, l, u, g) {
|
|
|
2859
2859
|
default: n(() => [
|
|
2860
2860
|
o(i, {
|
|
2861
2861
|
modelValue: e.queryParams.code,
|
|
2862
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2862
|
+
"onUpdate:modelValue": t[1] || (t[1] = (w) => e.queryParams.code = w),
|
|
2863
2863
|
placeholder: "请输入权限码"
|
|
2864
2864
|
}, null, 8, ["modelValue"])
|
|
2865
2865
|
]),
|
|
@@ -2924,20 +2924,20 @@ function In(e, t, r, l, u, g) {
|
|
|
2924
2924
|
label: "权限名称",
|
|
2925
2925
|
"min-width": "140"
|
|
2926
2926
|
}, {
|
|
2927
|
-
default: n((
|
|
2927
|
+
default: n((w) => [
|
|
2928
2928
|
T("div", Pn, [
|
|
2929
|
-
|
|
2930
|
-
e.isSvgIcon(
|
|
2929
|
+
w.row.extend.icon ? (m(), V("span", Nn, [
|
|
2930
|
+
e.isSvgIcon(w.row.extend.icon) ? (m(), _(f, {
|
|
2931
2931
|
key: 0,
|
|
2932
|
-
"icon-class":
|
|
2933
|
-
}, null, 8, ["icon-class"])) : (m(), _(
|
|
2932
|
+
"icon-class": w.row.extend.icon
|
|
2933
|
+
}, null, 8, ["icon-class"])) : (m(), _(g, { key: 1 }, {
|
|
2934
2934
|
default: n(() => [
|
|
2935
|
-
(m(), _(fo(
|
|
2935
|
+
(m(), _(fo(w.row.extend.icon)))
|
|
2936
2936
|
]),
|
|
2937
2937
|
_: 2
|
|
2938
2938
|
}, 1024))
|
|
2939
2939
|
])) : P("", !0),
|
|
2940
|
-
c(" " + R(
|
|
2940
|
+
c(" " + R(w.row.extend.name), 1)
|
|
2941
2941
|
])
|
|
2942
2942
|
]),
|
|
2943
2943
|
_: 1
|
|
@@ -2952,8 +2952,8 @@ function In(e, t, r, l, u, g) {
|
|
|
2952
2952
|
label: "排序值",
|
|
2953
2953
|
"min-width": "80"
|
|
2954
2954
|
}, {
|
|
2955
|
-
default: n((
|
|
2956
|
-
c(R(
|
|
2955
|
+
default: n((w) => [
|
|
2956
|
+
c(R(w.row.extend.sortOrder || "-"), 1)
|
|
2957
2957
|
]),
|
|
2958
2958
|
_: 1
|
|
2959
2959
|
}),
|
|
@@ -2967,8 +2967,8 @@ function In(e, t, r, l, u, g) {
|
|
|
2967
2967
|
label: "创建时间",
|
|
2968
2968
|
"min-width": "140px"
|
|
2969
2969
|
}, {
|
|
2970
|
-
default: n((
|
|
2971
|
-
c(R(
|
|
2970
|
+
default: n((w) => [
|
|
2971
|
+
c(R(w.row.extend.createTime ? e.dayjs(w.row.extend.createTime).format("YYYY-MM-DD HH:mm:ss") : "-"), 1)
|
|
2972
2972
|
]),
|
|
2973
2973
|
_: 1
|
|
2974
2974
|
}),
|
|
@@ -2978,12 +2978,12 @@ function In(e, t, r, l, u, g) {
|
|
|
2978
2978
|
fixed: "right",
|
|
2979
2979
|
width: "160"
|
|
2980
2980
|
}, {
|
|
2981
|
-
default: n((
|
|
2981
|
+
default: n((w) => [
|
|
2982
2982
|
e.checkPermission(["ROLE_AUTHORITY_UPDATE"]) ? (m(), _(p, {
|
|
2983
2983
|
key: 0,
|
|
2984
2984
|
type: "primary",
|
|
2985
2985
|
text: "",
|
|
2986
|
-
onClick: (D) => e.edit(
|
|
2986
|
+
onClick: (D) => e.edit(w.row)
|
|
2987
2987
|
}, {
|
|
2988
2988
|
default: n(() => [...t[5] || (t[5] = [
|
|
2989
2989
|
c("编辑 ", -1)
|
|
@@ -3002,8 +3002,8 @@ function In(e, t, r, l, u, g) {
|
|
|
3002
3002
|
key: 2,
|
|
3003
3003
|
type: "primary",
|
|
3004
3004
|
text: "",
|
|
3005
|
-
disabled: e.isRetainYes(
|
|
3006
|
-
onClick: (D) => e.handleDelete(
|
|
3005
|
+
disabled: e.isRetainYes(w.row.extend.retainFlag),
|
|
3006
|
+
onClick: (D) => e.handleDelete(w.row.id)
|
|
3007
3007
|
}, {
|
|
3008
3008
|
default: n(() => [...t[6] || (t[6] = [
|
|
3009
3009
|
c("删除 ", -1)
|
|
@@ -3027,7 +3027,7 @@ function In(e, t, r, l, u, g) {
|
|
|
3027
3027
|
}, null, 8, ["onReload"])
|
|
3028
3028
|
]);
|
|
3029
3029
|
}
|
|
3030
|
-
const
|
|
3030
|
+
const Ts = /* @__PURE__ */ z(En, [["render", In], ["__scopeId", "data-v-e84a170d"]]), Vn = Y({
|
|
3031
3031
|
name: "ApplyAddDialog",
|
|
3032
3032
|
components: { xdmpDrawer: ee, DocumentCopy: ut },
|
|
3033
3033
|
emits: ["reload"],
|
|
@@ -3075,7 +3075,7 @@ const Ds = /* @__PURE__ */ z(En, [["render", In], ["__scopeId", "data-v-e84a170d
|
|
|
3075
3075
|
this.appForm.id && (t.id = this.appForm.id);
|
|
3076
3076
|
const r = this.$refs.xdmpDrawer;
|
|
3077
3077
|
r.showLoading();
|
|
3078
|
-
const l =
|
|
3078
|
+
const l = L().system.openApp;
|
|
3079
3079
|
(this.appForm.id ? l.update(this.appForm.id, t) : l.add(t)).then(() => {
|
|
3080
3080
|
r.cancelForm(), r.hideLoading(), q.success("操作成功"), _e(this, "reload");
|
|
3081
3081
|
}).catch(() => {
|
|
@@ -3097,8 +3097,8 @@ const Ds = /* @__PURE__ */ z(En, [["render", In], ["__scopeId", "data-v-e84a170d
|
|
|
3097
3097
|
}
|
|
3098
3098
|
}
|
|
3099
3099
|
}), qn = { style: { display: "flex", "align-items": "center" } }, On = { class: "readonly-value" }, An = ["data-clipboard-text"], Mn = { style: { display: "flex", "align-items": "center" } }, Un = { class: "readonly-value" }, zn = ["data-clipboard-text"];
|
|
3100
|
-
function Yn(e, t, r, l, u,
|
|
3101
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("DocumentCopy"), p = a("el-icon"),
|
|
3100
|
+
function Yn(e, t, r, l, u, y) {
|
|
3101
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("DocumentCopy"), p = a("el-icon"), b = a("el-option"), f = a("el-select"), g = a("el-form"), C = a("xdmpDrawer"), k = M("emoji");
|
|
3102
3102
|
return m(), _(C, {
|
|
3103
3103
|
ref: "xdmpDrawer",
|
|
3104
3104
|
title: e.title,
|
|
@@ -3108,7 +3108,7 @@ function Yn(e, t, r, l, u, g) {
|
|
|
3108
3108
|
}, {
|
|
3109
3109
|
default: n(() => [
|
|
3110
3110
|
Re(e.$slots, "default", { class: "xdmp-drawer-body" }, () => [
|
|
3111
|
-
o(
|
|
3111
|
+
o(g, {
|
|
3112
3112
|
ref: "appFormRef",
|
|
3113
3113
|
model: e.appForm,
|
|
3114
3114
|
rules: e.rules,
|
|
@@ -3120,7 +3120,7 @@ function Yn(e, t, r, l, u, g) {
|
|
|
3120
3120
|
label: "应用名称"
|
|
3121
3121
|
}, {
|
|
3122
3122
|
default: n(() => [
|
|
3123
|
-
|
|
3123
|
+
E(o(s, {
|
|
3124
3124
|
modelValue: e.appForm.appName,
|
|
3125
3125
|
"onUpdate:modelValue": t[0] || (t[0] = (v) => e.appForm.appName = v),
|
|
3126
3126
|
placeholder: "请输入应用名称",
|
|
@@ -3191,7 +3191,7 @@ function Yn(e, t, r, l, u, g) {
|
|
|
3191
3191
|
style: { width: "100%" }
|
|
3192
3192
|
}, {
|
|
3193
3193
|
default: n(() => [
|
|
3194
|
-
(m(!0), V(
|
|
3194
|
+
(m(!0), V(ie, null, de(e.applyTypeList, (v) => (m(), _(b, {
|
|
3195
3195
|
key: v.value,
|
|
3196
3196
|
label: v.label,
|
|
3197
3197
|
value: v.value
|
|
@@ -3207,7 +3207,7 @@ function Yn(e, t, r, l, u, g) {
|
|
|
3207
3207
|
label: "应用备注"
|
|
3208
3208
|
}, {
|
|
3209
3209
|
default: n(() => [
|
|
3210
|
-
|
|
3210
|
+
E(o(s, {
|
|
3211
3211
|
modelValue: e.appForm.remark,
|
|
3212
3212
|
"onUpdate:modelValue": t[4] || (t[4] = (v) => e.appForm.remark = v),
|
|
3213
3213
|
placeholder: "请输入应用备注,最多不超过200字",
|
|
@@ -3258,7 +3258,7 @@ const jn = /* @__PURE__ */ z(Vn, [["render", Yn], ["__scopeId", "data-v-04c7d4b5
|
|
|
3258
3258
|
},
|
|
3259
3259
|
methods: {
|
|
3260
3260
|
init(e) {
|
|
3261
|
-
this.authForm.id = e, this.authForm.authorityCodes = [], this.getPerTree(), this.getProjectTree(),
|
|
3261
|
+
this.authForm.id = e, this.authForm.authorityCodes = [], this.getPerTree(), this.getProjectTree(), L().system.openApp.query(this.authForm.id).then((t) => {
|
|
3262
3262
|
this.authForm.authorityCodes = t.authorityCodes, this.$nextTick(() => {
|
|
3263
3263
|
this.$refs.pertree.setCheckedKeys(this.authForm.authorityCodes || [])(this.$refs.projectTree).setCheckedKeys(this.authForm.projectIds || []);
|
|
3264
3264
|
});
|
|
@@ -3299,7 +3299,7 @@ const jn = /* @__PURE__ */ z(Vn, [["render", Yn], ["__scopeId", "data-v-04c7d4b5
|
|
|
3299
3299
|
async getPerTree() {
|
|
3300
3300
|
this.loading = !0;
|
|
3301
3301
|
try {
|
|
3302
|
-
const e = await
|
|
3302
|
+
const e = await L().system.authority.tree({ pageSize: -1, pageNo: 1 });
|
|
3303
3303
|
this.loading = !1;
|
|
3304
3304
|
const t = Array.isArray(e) ? e : e.list || e.data || [];
|
|
3305
3305
|
this.checkboxList = this.selectDataTree(t);
|
|
@@ -3330,7 +3330,7 @@ const jn = /* @__PURE__ */ z(Vn, [["render", Yn], ["__scopeId", "data-v-04c7d4b5
|
|
|
3330
3330
|
const t = { id: this.authForm.id, dataScopeType: "0", targetIds: this.authForm.projectIds }, r = { id: this.authForm.id, authorityCodes: this.authForm.authorityCodes }, l = this.$refs.xdmpDrawer;
|
|
3331
3331
|
l.showLoading();
|
|
3332
3332
|
try {
|
|
3333
|
-
await
|
|
3333
|
+
await L().system.openApp.assignAuthorities(r.id, r), await L().system.openApp.assignScopes(t.id, t), l.hideLoading(), q.success("授权成功"), l.cancelForm(), _e(this, "reload");
|
|
3334
3334
|
} catch {
|
|
3335
3335
|
l.hideLoading();
|
|
3336
3336
|
}
|
|
@@ -3341,8 +3341,8 @@ const jn = /* @__PURE__ */ z(Vn, [["render", Yn], ["__scopeId", "data-v-04c7d4b5
|
|
|
3341
3341
|
}
|
|
3342
3342
|
}
|
|
3343
3343
|
});
|
|
3344
|
-
function Kn(e, t, r, l, u,
|
|
3345
|
-
const s = a("el-tree"), i = a("el-form-item"), d = a("el-form"), p = a("xdmpDrawer"),
|
|
3344
|
+
function Kn(e, t, r, l, u, y) {
|
|
3345
|
+
const s = a("el-tree"), i = a("el-form-item"), d = a("el-form"), p = a("xdmpDrawer"), b = M("loading");
|
|
3346
3346
|
return m(), _(p, {
|
|
3347
3347
|
ref: "xdmpDrawer",
|
|
3348
3348
|
title: e.title,
|
|
@@ -3365,7 +3365,7 @@ function Kn(e, t, r, l, u, g) {
|
|
|
3365
3365
|
prop: "projectIds"
|
|
3366
3366
|
}, {
|
|
3367
3367
|
default: n(() => [
|
|
3368
|
-
|
|
3368
|
+
E(o(s, {
|
|
3369
3369
|
ref: "projectTree",
|
|
3370
3370
|
data: e.treeSelectData,
|
|
3371
3371
|
"show-checkbox": !0,
|
|
@@ -3379,7 +3379,7 @@ function Kn(e, t, r, l, u, g) {
|
|
|
3379
3379
|
props: e.defaultProjectProps,
|
|
3380
3380
|
onCheckChange: e.getProjectCheckedKeys
|
|
3381
3381
|
}, null, 8, ["data", "props", "onCheckChange"]), [
|
|
3382
|
-
[
|
|
3382
|
+
[b, e.loading]
|
|
3383
3383
|
])
|
|
3384
3384
|
]),
|
|
3385
3385
|
_: 1
|
|
@@ -3438,10 +3438,10 @@ const Hn = /* @__PURE__ */ z(Bn, [["render", Kn], ["__scopeId", "data-v-7017ad01
|
|
|
3438
3438
|
this.init();
|
|
3439
3439
|
},
|
|
3440
3440
|
methods: {
|
|
3441
|
-
checkPermission:
|
|
3442
|
-
isRetainYes:
|
|
3441
|
+
checkPermission: se,
|
|
3442
|
+
isRetainYes: ue,
|
|
3443
3443
|
init() {
|
|
3444
|
-
this.loading = !0,
|
|
3444
|
+
this.loading = !0, L().system.openApp.page(this.queryParams).then((e) => {
|
|
3445
3445
|
this.loading = !1, this.appList = e.list, this.total = e.total;
|
|
3446
3446
|
}).catch(() => {
|
|
3447
3447
|
this.loading = !1;
|
|
@@ -3464,7 +3464,7 @@ const Hn = /* @__PURE__ */ z(Bn, [["render", Kn], ["__scopeId", "data-v-7017ad01
|
|
|
3464
3464
|
});
|
|
3465
3465
|
},
|
|
3466
3466
|
enable(e) {
|
|
3467
|
-
|
|
3467
|
+
L().system.openApp.update(e.id, {
|
|
3468
3468
|
id: e.id,
|
|
3469
3469
|
enabledFlag: e.enabledFlag === "0" ? "1" : "0"
|
|
3470
3470
|
}).then(() => {
|
|
@@ -3489,7 +3489,7 @@ const Hn = /* @__PURE__ */ z(Bn, [["render", Kn], ["__scopeId", "data-v-7017ad01
|
|
|
3489
3489
|
cancelButtonText: "取消",
|
|
3490
3490
|
type: "warning"
|
|
3491
3491
|
}).then(() => {
|
|
3492
|
-
|
|
3492
|
+
L().system.openApp.resetSecret(e.id).then((t) => {
|
|
3493
3493
|
e.appSecret = t.appSecret, q.success("AppSecret 已重置");
|
|
3494
3494
|
});
|
|
3495
3495
|
}).catch(() => {
|
|
@@ -3507,7 +3507,7 @@ const Hn = /* @__PURE__ */ z(Bn, [["render", Kn], ["__scopeId", "data-v-7017ad01
|
|
|
3507
3507
|
cancelButtonText: "取消",
|
|
3508
3508
|
type: "warning"
|
|
3509
3509
|
}).then(() => {
|
|
3510
|
-
this.loading = !0,
|
|
3510
|
+
this.loading = !0, L().system.openApp.delete(e.id).then(() => {
|
|
3511
3511
|
this.loading = !1, q.success("删除成功"), this.queryParams.pageNo = 1, this.init();
|
|
3512
3512
|
}).catch(() => {
|
|
3513
3513
|
this.loading = !1;
|
|
@@ -3522,13 +3522,13 @@ const Hn = /* @__PURE__ */ z(Bn, [["render", Kn], ["__scopeId", "data-v-7017ad01
|
|
|
3522
3522
|
}
|
|
3523
3523
|
}
|
|
3524
3524
|
}), Gn = { class: "userApply_wrapper" }, Jn = { style: { display: "flex", "align-items": "center" } }, Wn = { class: "app-key-text" }, Zn = ["data-clipboard-text"], Xn = { style: { display: "flex", "align-items": "center" } }, xn = ["data-clipboard-text"];
|
|
3525
|
-
function er(e, t, r, l, u,
|
|
3526
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"),
|
|
3525
|
+
function er(e, t, r, l, u, y) {
|
|
3526
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"), b = a("el-form"), f = a("el-table-column"), g = a("el-tooltip"), C = a("DocumentCopy"), k = a("el-icon"), v = a("el-divider"), S = a("el-dropdown-item"), U = a("el-dropdown-menu"), I = a("el-dropdown"), w = a("el-table"), D = a("el-pagination"), h = a("ListReport"), H = a("appDialog"), ce = a("appAuthDialog"), re = M("emoji"), G = M("loading");
|
|
3527
3527
|
return m(), V("div", Gn, [
|
|
3528
3528
|
o(s, { desc: "平台提供开放能力,可以进行新建、查看、编辑、授权等操作。" }),
|
|
3529
|
-
|
|
3529
|
+
E((m(), _(h, { class: "userApply_block" }, {
|
|
3530
3530
|
filter: n(() => [
|
|
3531
|
-
o(
|
|
3531
|
+
o(b, {
|
|
3532
3532
|
ref: "searchForm",
|
|
3533
3533
|
model: e.queryParams,
|
|
3534
3534
|
inline: !0,
|
|
@@ -3541,7 +3541,7 @@ function er(e, t, r, l, u, g) {
|
|
|
3541
3541
|
prop: "keyword"
|
|
3542
3542
|
}, {
|
|
3543
3543
|
default: n(() => [
|
|
3544
|
-
|
|
3544
|
+
E(o(i, {
|
|
3545
3545
|
modelValue: e.queryParams.query.keyword,
|
|
3546
3546
|
"onUpdate:modelValue": t[0] || (t[0] = (Q) => e.queryParams.query.keyword = Q),
|
|
3547
3547
|
maxlength: "32",
|
|
@@ -3596,7 +3596,7 @@ function er(e, t, r, l, u, g) {
|
|
|
3596
3596
|
}, 8, ["onClick"])) : P("", !0)
|
|
3597
3597
|
]),
|
|
3598
3598
|
view: n(() => [
|
|
3599
|
-
o(
|
|
3599
|
+
o(w, {
|
|
3600
3600
|
data: e.appList,
|
|
3601
3601
|
border: !1,
|
|
3602
3602
|
style: { width: "100%" },
|
|
@@ -3615,7 +3615,7 @@ function er(e, t, r, l, u, g) {
|
|
|
3615
3615
|
}, {
|
|
3616
3616
|
default: n((Q) => [
|
|
3617
3617
|
T("div", Jn, [
|
|
3618
|
-
o(
|
|
3618
|
+
o(g, {
|
|
3619
3619
|
content: Q.row.appKey,
|
|
3620
3620
|
placement: "top"
|
|
3621
3621
|
}, {
|
|
@@ -3800,54 +3800,54 @@ function er(e, t, r, l, u, g) {
|
|
|
3800
3800
|
}, null, 8, ["onReload"])
|
|
3801
3801
|
]);
|
|
3802
3802
|
}
|
|
3803
|
-
const
|
|
3804
|
-
function
|
|
3805
|
-
return
|
|
3803
|
+
const Ss = /* @__PURE__ */ z(Qn, [["render", er], ["__scopeId", "data-v-b6808fc5"]]);
|
|
3804
|
+
function pe() {
|
|
3805
|
+
return L().system.user.client;
|
|
3806
3806
|
}
|
|
3807
3807
|
function tr(e) {
|
|
3808
|
-
return
|
|
3808
|
+
return pe().get("/gw/uiap-sidecar/web/share/access/rear/send", {
|
|
3809
3809
|
...e,
|
|
3810
3810
|
platform: "console"
|
|
3811
3811
|
});
|
|
3812
3812
|
}
|
|
3813
3813
|
function or(e) {
|
|
3814
|
-
return
|
|
3814
|
+
return pe().post("/gw/uiap-dmc/web/dmc/users/current/verification", e);
|
|
3815
3815
|
}
|
|
3816
3816
|
function nr(e) {
|
|
3817
|
-
return
|
|
3817
|
+
return pe().post("/gw/uiap-dmc/web/dmc/users/current/viewAuthKey", e);
|
|
3818
3818
|
}
|
|
3819
3819
|
function rr(e) {
|
|
3820
|
-
return
|
|
3820
|
+
return pe().post("/gw/uiap-dmc/web/dmc/users/current/resetAuthKey", e);
|
|
3821
3821
|
}
|
|
3822
3822
|
function ar(e) {
|
|
3823
|
-
return
|
|
3823
|
+
return pe().post("/gw/uiap-dmc/web/dmc/users/current/updatePwd", e);
|
|
3824
3824
|
}
|
|
3825
3825
|
function lr(e) {
|
|
3826
|
-
return
|
|
3826
|
+
return pe().post("/gw/uiap-dmc/web/dmc/users/current/bindPhone", e);
|
|
3827
3827
|
}
|
|
3828
3828
|
function ir(e) {
|
|
3829
|
-
return
|
|
3829
|
+
return pe().post("/gw/uiap-dmc/web/dmc/apps/list", e);
|
|
3830
3830
|
}
|
|
3831
3831
|
function sr(e) {
|
|
3832
|
-
return
|
|
3832
|
+
return pe().post("/gw/uiap-omc/web/pd/apps", e);
|
|
3833
3833
|
}
|
|
3834
3834
|
function Bt(e) {
|
|
3835
|
-
return
|
|
3835
|
+
return pe().post("/gw/uiap-omc/web/pd/apps/put", e);
|
|
3836
3836
|
}
|
|
3837
3837
|
function dr(e) {
|
|
3838
|
-
return
|
|
3838
|
+
return pe().get(`/gw/uiap-dmc/web/dmc/apps/${e}`);
|
|
3839
3839
|
}
|
|
3840
3840
|
function ur(e) {
|
|
3841
|
-
return
|
|
3841
|
+
return pe().get(`/gw/uiap-dmc/web/dmc/apps/${e}/auth?type=PRIVATE`);
|
|
3842
3842
|
}
|
|
3843
3843
|
function pr(e) {
|
|
3844
|
-
return
|
|
3844
|
+
return pe().post("/gw/uiap-dmc/web/dmc/apps/auth", e);
|
|
3845
3845
|
}
|
|
3846
3846
|
function mr(e) {
|
|
3847
|
-
return
|
|
3847
|
+
return pe().get(`/gw/uiap-dmc/web/dmc/apps/checkAccessKey?id=${e}`);
|
|
3848
3848
|
}
|
|
3849
3849
|
function cr(e) {
|
|
3850
|
-
return
|
|
3850
|
+
return pe().post(`/gw/uiap-dmc/web/dmc/apps/resetAccessKey?id=${e}`);
|
|
3851
3851
|
}
|
|
3852
3852
|
const hr = Y({
|
|
3853
3853
|
name: "",
|
|
@@ -3924,7 +3924,7 @@ const hr = Y({
|
|
|
3924
3924
|
}
|
|
3925
3925
|
}
|
|
3926
3926
|
}), fr = { class: "password-block" }, gr = { class: "password-form" };
|
|
3927
|
-
function yr(e, t, r, l, u,
|
|
3927
|
+
function yr(e, t, r, l, u, y) {
|
|
3928
3928
|
const s = a("el-input"), i = a("el-form-item"), d = a("el-form"), p = M("emoji");
|
|
3929
3929
|
return m(), V("div", fr, [
|
|
3930
3930
|
T("div", gr, [
|
|
@@ -3936,9 +3936,9 @@ function yr(e, t, r, l, u, g) {
|
|
|
3936
3936
|
default: n(() => [
|
|
3937
3937
|
o(i, { prop: "oldPassword" }, {
|
|
3938
3938
|
default: n(() => [
|
|
3939
|
-
|
|
3939
|
+
E(o(s, {
|
|
3940
3940
|
modelValue: e.form.oldPassword,
|
|
3941
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3941
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => e.form.oldPassword = b),
|
|
3942
3942
|
placeholder: "请输入原密码",
|
|
3943
3943
|
type: "password"
|
|
3944
3944
|
}, null, 8, ["modelValue"]), [
|
|
@@ -3949,9 +3949,9 @@ function yr(e, t, r, l, u, g) {
|
|
|
3949
3949
|
}),
|
|
3950
3950
|
o(i, { prop: "password" }, {
|
|
3951
3951
|
default: n(() => [
|
|
3952
|
-
|
|
3952
|
+
E(o(s, {
|
|
3953
3953
|
modelValue: e.form.password,
|
|
3954
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3954
|
+
"onUpdate:modelValue": t[1] || (t[1] = (b) => e.form.password = b),
|
|
3955
3955
|
placeholder: "请输入新密码",
|
|
3956
3956
|
type: "password"
|
|
3957
3957
|
}, null, 8, ["modelValue"]), [
|
|
@@ -3962,9 +3962,9 @@ function yr(e, t, r, l, u, g) {
|
|
|
3962
3962
|
}),
|
|
3963
3963
|
o(i, { prop: "repassword" }, {
|
|
3964
3964
|
default: n(() => [
|
|
3965
|
-
|
|
3965
|
+
E(o(s, {
|
|
3966
3966
|
modelValue: e.form.repassword,
|
|
3967
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
3967
|
+
"onUpdate:modelValue": t[2] || (t[2] = (b) => e.form.repassword = b),
|
|
3968
3968
|
placeholder: "请再次输入新密码",
|
|
3969
3969
|
type: "password"
|
|
3970
3970
|
}, null, 8, ["modelValue"]), [
|
|
@@ -4092,8 +4092,8 @@ const br = /* @__PURE__ */ z(hr, [["render", yr], ["__scopeId", "data-v-55a4572b
|
|
|
4092
4092
|
}
|
|
4093
4093
|
}
|
|
4094
4094
|
}), wr = { class: "block" }, Cr = { class: "dialog_form_phone" }, kr = { class: "dialog_form_code" }, vr = { class: "dialog_footer" };
|
|
4095
|
-
function Dr(e, t, r, l, u,
|
|
4096
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-button"), p = a("el-form"),
|
|
4095
|
+
function Dr(e, t, r, l, u, y) {
|
|
4096
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-button"), p = a("el-form"), b = a("el-button-group"), f = a("el-dialog"), g = M("emoji");
|
|
4097
4097
|
return m(), V("div", null, [
|
|
4098
4098
|
o(f, {
|
|
4099
4099
|
modelValue: e.dialogVisible,
|
|
@@ -4124,14 +4124,14 @@ function Dr(e, t, r, l, u, g) {
|
|
|
4124
4124
|
prop: e.disabled ? "empty" : "phoneNumber"
|
|
4125
4125
|
}, {
|
|
4126
4126
|
default: n(() => [
|
|
4127
|
-
|
|
4127
|
+
E(o(s, {
|
|
4128
4128
|
modelValue: e.form.phoneNumber,
|
|
4129
4129
|
"onUpdate:modelValue": t[0] || (t[0] = (C) => e.form.phoneNumber = C),
|
|
4130
4130
|
class: "dialog_phone_input",
|
|
4131
4131
|
disabled: e.disabled,
|
|
4132
4132
|
placeholder: "请输入电话号码"
|
|
4133
4133
|
}, null, 8, ["modelValue", "disabled"]), [
|
|
4134
|
-
[
|
|
4134
|
+
[g]
|
|
4135
4135
|
])
|
|
4136
4136
|
]),
|
|
4137
4137
|
_: 1
|
|
@@ -4140,13 +4140,13 @@ function Dr(e, t, r, l, u, g) {
|
|
|
4140
4140
|
o(i, { prop: "smsCode" }, {
|
|
4141
4141
|
default: n(() => [
|
|
4142
4142
|
T("div", kr, [
|
|
4143
|
-
|
|
4143
|
+
E(o(s, {
|
|
4144
4144
|
modelValue: e.form.smsCode,
|
|
4145
4145
|
"onUpdate:modelValue": t[1] || (t[1] = (C) => e.form.smsCode = C),
|
|
4146
4146
|
class: "dialog_code_input",
|
|
4147
4147
|
placeholder: "请输入短信验证码"
|
|
4148
4148
|
}, null, 8, ["modelValue"]), [
|
|
4149
|
-
[
|
|
4149
|
+
[g]
|
|
4150
4150
|
]),
|
|
4151
4151
|
o(d, {
|
|
4152
4152
|
disabled: e.isSend,
|
|
@@ -4168,7 +4168,7 @@ function Dr(e, t, r, l, u, g) {
|
|
|
4168
4168
|
], !0)
|
|
4169
4169
|
]),
|
|
4170
4170
|
T("div", vr, [
|
|
4171
|
-
o(
|
|
4171
|
+
o(b, null, {
|
|
4172
4172
|
default: n(() => [
|
|
4173
4173
|
o(d, {
|
|
4174
4174
|
disabled: e.loading,
|
|
@@ -4277,7 +4277,7 @@ const $r = /* @__PURE__ */ z(_r, [["render", Dr], ["__scopeId", "data-v-53d9efb4
|
|
|
4277
4277
|
this.resetAccessKey(e, r);
|
|
4278
4278
|
return;
|
|
4279
4279
|
}
|
|
4280
|
-
or(u).then((
|
|
4280
|
+
or(u).then((y) => {
|
|
4281
4281
|
switch (r(), this.isSuccess = !0, this.content = this.opreation, this.opreation) {
|
|
4282
4282
|
case "view-app-key":
|
|
4283
4283
|
this.viewAppAccessKey(e, r);
|
|
@@ -4286,12 +4286,12 @@ const $r = /* @__PURE__ */ z(_r, [["render", Dr], ["__scopeId", "data-v-53d9efb4
|
|
|
4286
4286
|
this.resetAppAccessKey(e, r);
|
|
4287
4287
|
break;
|
|
4288
4288
|
case "phone-binding":
|
|
4289
|
-
this.title = "重新绑定", this.sureText = "重新绑定", this.$refs.formDialog.formInit(
|
|
4289
|
+
this.title = "重新绑定", this.sureText = "重新绑定", this.$refs.formDialog.formInit(y);
|
|
4290
4290
|
break;
|
|
4291
4291
|
case "password-binding":
|
|
4292
4292
|
this.title = "新密码设置", this.sureText = "确认", this.$nextTick(() => {
|
|
4293
4293
|
this.$refs.resetPassword.setComfirmKey(
|
|
4294
|
-
|
|
4294
|
+
y.confirmKey
|
|
4295
4295
|
);
|
|
4296
4296
|
});
|
|
4297
4297
|
break;
|
|
@@ -4398,7 +4398,7 @@ const $r = /* @__PURE__ */ z(_r, [["render", Dr], ["__scopeId", "data-v-53d9efb4
|
|
|
4398
4398
|
key: 0,
|
|
4399
4399
|
class: "auth-main-key"
|
|
4400
4400
|
}, Fr = ["data-clipboard-text"];
|
|
4401
|
-
function Lr(e, t, r, l, u,
|
|
4401
|
+
function Lr(e, t, r, l, u, y) {
|
|
4402
4402
|
const s = a("resetPassword"), i = a("formDialog");
|
|
4403
4403
|
return m(), _(i, {
|
|
4404
4404
|
ref: "formDialog",
|
|
@@ -4466,7 +4466,7 @@ const Kt = /* @__PURE__ */ z(Tr, [["render", Lr], ["__scopeId", "data-v-d603bb16
|
|
|
4466
4466
|
},
|
|
4467
4467
|
methods: {
|
|
4468
4468
|
init() {
|
|
4469
|
-
this.loading = !0,
|
|
4469
|
+
this.loading = !0, L().system.openApp.query(this.appId).then((e) => {
|
|
4470
4470
|
this.detail = e, this.detail.enableText = this.detail.enabledFlag == 0 ? "禁用" : "启用", Object.keys(this.detail).forEach((t) => {
|
|
4471
4471
|
t.includes("Time") && (this.detail[t] = O(this.detail[t]).format("YYYY-MM-DD HH:mm:ss"));
|
|
4472
4472
|
}), this.loading = !1;
|
|
@@ -4479,9 +4479,9 @@ const Kt = /* @__PURE__ */ z(Tr, [["render", Lr], ["__scopeId", "data-v-d603bb16
|
|
|
4479
4479
|
}
|
|
4480
4480
|
}
|
|
4481
4481
|
});
|
|
4482
|
-
function Rr(e, t, r, l, u,
|
|
4482
|
+
function Rr(e, t, r, l, u, y) {
|
|
4483
4483
|
const s = a("pageDataInfo"), i = a("verify"), d = a("ObjectPage"), p = M("loading");
|
|
4484
|
-
return
|
|
4484
|
+
return E((m(), _(d, { class: "userApply_detail_wrapper" }, {
|
|
4485
4485
|
header: n(() => [
|
|
4486
4486
|
o(s, {
|
|
4487
4487
|
title: e.detail.appName,
|
|
@@ -4507,7 +4507,7 @@ function Rr(e, t, r, l, u, g) {
|
|
|
4507
4507
|
[p, e.loading]
|
|
4508
4508
|
]);
|
|
4509
4509
|
}
|
|
4510
|
-
const
|
|
4510
|
+
const Fs = /* @__PURE__ */ z(Er, [["render", Rr], ["__scopeId", "data-v-91f662c8"]]), Pr = Y({
|
|
4511
4511
|
components: {
|
|
4512
4512
|
xdmpDrawer: ee
|
|
4513
4513
|
},
|
|
@@ -4546,7 +4546,7 @@ const Ts = /* @__PURE__ */ z(Er, [["render", Rr], ["__scopeId", "data-v-91f662c8
|
|
|
4546
4546
|
},
|
|
4547
4547
|
handleOpen(e) {
|
|
4548
4548
|
this.$nextTick(() => {
|
|
4549
|
-
this.$refs.xdmpDrawer.init(), e ? (this.drawerLoading = !0,
|
|
4549
|
+
this.$refs.xdmpDrawer.init(), e ? (this.drawerLoading = !0, L().system.client.query(e).then((r) => {
|
|
4550
4550
|
this.drawerLoading = !1, this.form = { ...r };
|
|
4551
4551
|
}).catch(() => {
|
|
4552
4552
|
this.drawerLoading = !1;
|
|
@@ -4558,7 +4558,7 @@ const Ts = /* @__PURE__ */ z(Er, [["render", Rr], ["__scopeId", "data-v-91f662c8
|
|
|
4558
4558
|
e.validate((r) => {
|
|
4559
4559
|
if (r) {
|
|
4560
4560
|
t.showLoading();
|
|
4561
|
-
const l =
|
|
4561
|
+
const l = L().system.client;
|
|
4562
4562
|
(this.mode === "edit" ? l.update(this.form.clientId, this.form) : l.add(this.form)).then(() => {
|
|
4563
4563
|
t.hideLoading(), q.success(this.mode === "edit" ? "编辑成功" : "新建成功"), t.cancelForm(), this.$emit("reload");
|
|
4564
4564
|
}).catch(() => {
|
|
@@ -4583,10 +4583,10 @@ const Ts = /* @__PURE__ */ z(Er, [["render", Rr], ["__scopeId", "data-v-91f662c8
|
|
|
4583
4583
|
}
|
|
4584
4584
|
}
|
|
4585
4585
|
});
|
|
4586
|
-
function Nr(e, t, r, l, u,
|
|
4587
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"),
|
|
4586
|
+
function Nr(e, t, r, l, u, y) {
|
|
4587
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"), b = a("el-input-number"), f = a("el-form"), g = a("xdmpDrawer"), C = M("loading");
|
|
4588
4588
|
return m(), V("div", null, [
|
|
4589
|
-
o(
|
|
4589
|
+
o(g, {
|
|
4590
4590
|
ref: "xdmpDrawer",
|
|
4591
4591
|
title: e.title,
|
|
4592
4592
|
size: e.size,
|
|
@@ -4595,7 +4595,7 @@ function Nr(e, t, r, l, u, g) {
|
|
|
4595
4595
|
onCancel: e.cancel
|
|
4596
4596
|
}, {
|
|
4597
4597
|
"xdmp-drawer-body": n(() => [
|
|
4598
|
-
|
|
4598
|
+
E((m(), V("div", null, [
|
|
4599
4599
|
o(f, {
|
|
4600
4600
|
ref: "formRef",
|
|
4601
4601
|
model: e.form,
|
|
@@ -4736,7 +4736,7 @@ function Nr(e, t, r, l, u, g) {
|
|
|
4736
4736
|
}),
|
|
4737
4737
|
o(i, { label: "访问令牌有效期" }, {
|
|
4738
4738
|
default: n(() => [
|
|
4739
|
-
o(
|
|
4739
|
+
o(b, {
|
|
4740
4740
|
modelValue: e.form.accessTokenValidity,
|
|
4741
4741
|
"onUpdate:modelValue": t[5] || (t[5] = (k) => e.form.accessTokenValidity = k),
|
|
4742
4742
|
disabled: e.mode === "view",
|
|
@@ -4748,7 +4748,7 @@ function Nr(e, t, r, l, u, g) {
|
|
|
4748
4748
|
}),
|
|
4749
4749
|
o(i, { label: "刷新令牌有效期" }, {
|
|
4750
4750
|
default: n(() => [
|
|
4751
|
-
o(
|
|
4751
|
+
o(b, {
|
|
4752
4752
|
modelValue: e.form.refreshTokenValidity,
|
|
4753
4753
|
"onUpdate:modelValue": t[6] || (t[6] = (k) => e.form.refreshTokenValidity = k),
|
|
4754
4754
|
disabled: e.mode === "view",
|
|
@@ -4819,8 +4819,8 @@ const Ir = /* @__PURE__ */ z(Pr, [["render", Nr]]), Vr = Y({
|
|
|
4819
4819
|
},
|
|
4820
4820
|
methods: {
|
|
4821
4821
|
dayjs: O,
|
|
4822
|
-
checkPermission:
|
|
4823
|
-
isRetainYes:
|
|
4822
|
+
checkPermission: se,
|
|
4823
|
+
isRetainYes: ue,
|
|
4824
4824
|
RETAIN_MSG_DELETE: je,
|
|
4825
4825
|
getClientTypeLabel(e) {
|
|
4826
4826
|
return !e && e !== 0 ? "-" : this.clientTypeMap[e] || this.clientTypeMap[String(e)] || "-";
|
|
@@ -4844,8 +4844,8 @@ const Ir = /* @__PURE__ */ z(Pr, [["render", Nr]]), Vr = Y({
|
|
|
4844
4844
|
const i = Math.floor(e / l), d = Math.floor(e % l / r);
|
|
4845
4845
|
return d > 0 ? i + "天" + d + "小时" : i + "天";
|
|
4846
4846
|
}
|
|
4847
|
-
const
|
|
4848
|
-
return s > 0 ?
|
|
4847
|
+
const y = Math.floor(e / u), s = Math.floor(e % u / l);
|
|
4848
|
+
return s > 0 ? y + "个月" + s + "天" : y + "个月";
|
|
4849
4849
|
},
|
|
4850
4850
|
maskSecret(e) {
|
|
4851
4851
|
if (!e) return "-";
|
|
@@ -4863,7 +4863,7 @@ const Ir = /* @__PURE__ */ z(Pr, [["render", Nr]]), Vr = Y({
|
|
|
4863
4863
|
});
|
|
4864
4864
|
},
|
|
4865
4865
|
getClientList() {
|
|
4866
|
-
this.loading = !0,
|
|
4866
|
+
this.loading = !0, L().system.client.page(this.queryParams).then((e) => {
|
|
4867
4867
|
this.loading = !1, this.list = e.list, this.total = e.total;
|
|
4868
4868
|
}).catch(() => {
|
|
4869
4869
|
this.loading = !1;
|
|
@@ -4898,7 +4898,7 @@ const Ir = /* @__PURE__ */ z(Pr, [["render", Nr]]), Vr = Y({
|
|
|
4898
4898
|
});
|
|
4899
4899
|
},
|
|
4900
4900
|
deleteClient(e) {
|
|
4901
|
-
if (
|
|
4901
|
+
if (ue(e.retainFlag)) {
|
|
4902
4902
|
q.warning(je);
|
|
4903
4903
|
return;
|
|
4904
4904
|
}
|
|
@@ -4907,7 +4907,7 @@ const Ir = /* @__PURE__ */ z(Pr, [["render", Nr]]), Vr = Y({
|
|
|
4907
4907
|
cancelButtonText: "取消",
|
|
4908
4908
|
type: "warning"
|
|
4909
4909
|
}).then(() => {
|
|
4910
|
-
|
|
4910
|
+
L().system.client.delete(e.clientId).then(() => {
|
|
4911
4911
|
q.success("删除成功"), this.getClientList();
|
|
4912
4912
|
});
|
|
4913
4913
|
});
|
|
@@ -4923,13 +4923,13 @@ const Ir = /* @__PURE__ */ z(Pr, [["render", Nr]]), Vr = Y({
|
|
|
4923
4923
|
key: 0,
|
|
4924
4924
|
class: "secret-cell"
|
|
4925
4925
|
}, Ar = { class: "secret-value" }, Mr = ["data-clipboard-text"], Ur = { key: 1 };
|
|
4926
|
-
function zr(e, t, r, l, u,
|
|
4927
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"),
|
|
4926
|
+
function zr(e, t, r, l, u, y) {
|
|
4927
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"), b = a("el-form"), f = a("el-table-column"), g = a("DocumentCopy"), C = a("el-icon"), k = a("el-divider"), v = a("el-tooltip"), S = a("el-table"), U = a("el-pagination"), I = a("ListReport"), w = a("clientDrawer"), D = M("loading");
|
|
4928
4928
|
return m(), V("div", qr, [
|
|
4929
4929
|
o(s, { desc: "平台提供多应用业务管理,提供基于应用的 OAuth2 认证、单点登录支持,可以进行新建、查看、编辑、删除等应用业务管理操作。" }),
|
|
4930
|
-
|
|
4930
|
+
E((m(), _(I, { class: "client_block" }, {
|
|
4931
4931
|
filter: n(() => [
|
|
4932
|
-
o(
|
|
4932
|
+
o(b, {
|
|
4933
4933
|
ref: "searchForm",
|
|
4934
4934
|
model: e.queryParams,
|
|
4935
4935
|
inline: !0,
|
|
@@ -5031,7 +5031,7 @@ function zr(e, t, r, l, u, g) {
|
|
|
5031
5031
|
}, [
|
|
5032
5032
|
o(C, null, {
|
|
5033
5033
|
default: n(() => [
|
|
5034
|
-
o(
|
|
5034
|
+
o(g)
|
|
5035
5035
|
]),
|
|
5036
5036
|
_: 1
|
|
5037
5037
|
})
|
|
@@ -5169,16 +5169,16 @@ function zr(e, t, r, l, u, g) {
|
|
|
5169
5169
|
})), [
|
|
5170
5170
|
[D, e.loading]
|
|
5171
5171
|
]),
|
|
5172
|
-
o(
|
|
5172
|
+
o(w, {
|
|
5173
5173
|
ref: "clientDrawer",
|
|
5174
5174
|
onReload: e.getClientList
|
|
5175
5175
|
}, null, 8, ["onReload"])
|
|
5176
5176
|
]);
|
|
5177
5177
|
}
|
|
5178
|
-
const
|
|
5178
|
+
const Ls = /* @__PURE__ */ z(Vr, [["render", zr], ["__scopeId", "data-v-5b35fed2"]]), Yr = "system-config-updated", jr = "systemConfig";
|
|
5179
5179
|
async function Br() {
|
|
5180
5180
|
try {
|
|
5181
|
-
const e = await
|
|
5181
|
+
const e = await L().passport.auth.getSystemConfig(), t = await Promise.all((e.items || []).map(Kr)), r = {
|
|
5182
5182
|
categoryKey: e.categoryKey,
|
|
5183
5183
|
categoryName: e.categoryName,
|
|
5184
5184
|
items: t
|
|
@@ -5201,8 +5201,8 @@ function Hr(e) {
|
|
|
5201
5201
|
return new Promise((t, r) => {
|
|
5202
5202
|
const l = new window.FileReader();
|
|
5203
5203
|
l.onload = (u) => {
|
|
5204
|
-
const
|
|
5205
|
-
t(window.URL.createObjectURL(
|
|
5204
|
+
const y = new Blob([u.target.result], { type: e.type });
|
|
5205
|
+
t(window.URL.createObjectURL(y));
|
|
5206
5206
|
}, l.onerror = () => r(new Error("文件读取失败")), l.readAsArrayBuffer(e);
|
|
5207
5207
|
});
|
|
5208
5208
|
}
|
|
@@ -5231,11 +5231,11 @@ const Xe = {}, Qr = Y({
|
|
|
5231
5231
|
};
|
|
5232
5232
|
},
|
|
5233
5233
|
methods: {
|
|
5234
|
-
isRetainYes:
|
|
5234
|
+
isRetainYes: ue,
|
|
5235
5235
|
handleOpen(e) {
|
|
5236
5236
|
this.mode = e ? "edit" : "add", this.$nextTick(() => {
|
|
5237
5237
|
const t = this.$refs.xdmpDrawer;
|
|
5238
|
-
t.init(), e ?
|
|
5238
|
+
t.init(), e ? L().system.config.queryByKey(e).then((r) => {
|
|
5239
5239
|
this.configId = r.id, this.form = {
|
|
5240
5240
|
categoryKey: r.categoryKey,
|
|
5241
5241
|
categoryName: r.categoryName,
|
|
@@ -5258,7 +5258,7 @@ const Xe = {}, Qr = Y({
|
|
|
5258
5258
|
lt(e).then((r) => {
|
|
5259
5259
|
const l = new window.FileReader();
|
|
5260
5260
|
l.readAsArrayBuffer(r), l.onload = (u) => {
|
|
5261
|
-
const
|
|
5261
|
+
const y = new Blob([u.target.result], { type: r.type }), s = window.URL.createObjectURL(y), i = this.formItems.find((d) => d.key === t);
|
|
5262
5262
|
i && (i._previewUrl = s);
|
|
5263
5263
|
};
|
|
5264
5264
|
});
|
|
@@ -5279,7 +5279,7 @@ const Xe = {}, Qr = Y({
|
|
|
5279
5279
|
name: e.file.name.split(".")[0],
|
|
5280
5280
|
objectName: e.file.name
|
|
5281
5281
|
}, l = Xe == null ? void 0 : Xe.VITE_UPLOAD_BUCKETNAME;
|
|
5282
|
-
l && (r.bucketName = l),
|
|
5282
|
+
l && (r.bucketName = l), L().system.binary.add(e.file, r).then((u) => {
|
|
5283
5283
|
this.formItems[t].value = u.id, this.getImgUrl(u.id, this.formItems[t].key), e.onSuccess(u);
|
|
5284
5284
|
}).catch((u) => {
|
|
5285
5285
|
e.onError(u);
|
|
@@ -5300,7 +5300,7 @@ const Xe = {}, Qr = Y({
|
|
|
5300
5300
|
key: s.key,
|
|
5301
5301
|
value: s.value
|
|
5302
5302
|
}))
|
|
5303
|
-
}, u =
|
|
5303
|
+
}, u = L().system.config;
|
|
5304
5304
|
(this.mode === "edit" ? u.update(this.configId, { ...l, id: this.configId }) : u.add(l)).then(() => {
|
|
5305
5305
|
t.hideLoading(), q.success(this.mode === "edit" ? "编辑成功" : "新建成功"), t.cancelForm(), this.$emit("reload"), l.categoryKey === "SYSTEM_CONFIG" && Br();
|
|
5306
5306
|
}).catch(() => {
|
|
@@ -5346,8 +5346,8 @@ const Xe = {}, Qr = Y({
|
|
|
5346
5346
|
key: 2,
|
|
5347
5347
|
class: "config-item-file"
|
|
5348
5348
|
}, Zr = { class: "config-add-btn-wrapper" };
|
|
5349
|
-
function Xr(e, t, r, l, u,
|
|
5350
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-form"), p = a("el-option"),
|
|
5349
|
+
function Xr(e, t, r, l, u, y) {
|
|
5350
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-form"), p = a("el-option"), b = a("el-select"), f = a("el-input-number"), g = a("el-image"), C = a("el-button"), k = a("el-upload"), v = a("el-switch"), S = a("el-tooltip"), U = a("xdmpDrawer");
|
|
5351
5351
|
return m(), V("div", null, [
|
|
5352
5352
|
o(U, {
|
|
5353
5353
|
ref: "xdmpDrawer",
|
|
@@ -5419,16 +5419,16 @@ function Xr(e, t, r, l, u, g) {
|
|
|
5419
5419
|
t[6] || (t[6] = T("div", { class: "infoTitleBox" }, [
|
|
5420
5420
|
T("div", { class: "titleBox" }, "配置项")
|
|
5421
5421
|
], -1)),
|
|
5422
|
-
(m(!0), V(
|
|
5423
|
-
key:
|
|
5422
|
+
(m(!0), V(ie, null, de(e.formItems, (I, w) => (m(), V("div", {
|
|
5423
|
+
key: w,
|
|
5424
5424
|
class: Ne(["config-item-row", { "config-item-new": !I.key }])
|
|
5425
5425
|
}, [
|
|
5426
5426
|
T("div", Gr, [
|
|
5427
5427
|
T("div", Jr, [
|
|
5428
|
-
o(
|
|
5428
|
+
o(b, {
|
|
5429
5429
|
modelValue: I.type,
|
|
5430
5430
|
"onUpdate:modelValue": (D) => I.type = D,
|
|
5431
|
-
onChange: (D) => e.changeItemType(D,
|
|
5431
|
+
onChange: (D) => e.changeItemType(D, w)
|
|
5432
5432
|
}, {
|
|
5433
5433
|
default: n(() => [
|
|
5434
5434
|
o(p, {
|
|
@@ -5475,7 +5475,7 @@ function Xr(e, t, r, l, u, g) {
|
|
|
5475
5475
|
controls: !0,
|
|
5476
5476
|
style: { width: "100%" }
|
|
5477
5477
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : I.type === "FILE" ? (m(), V("div", Wr, [
|
|
5478
|
-
I._previewUrl ? (m(), _(
|
|
5478
|
+
I._previewUrl ? (m(), _(g, {
|
|
5479
5479
|
key: 0,
|
|
5480
5480
|
src: I._previewUrl,
|
|
5481
5481
|
"preview-src-list": [I._previewUrl],
|
|
@@ -5487,7 +5487,7 @@ function Xr(e, t, r, l, u, g) {
|
|
|
5487
5487
|
accept: ".jpg,.jpeg,.png",
|
|
5488
5488
|
"show-file-list": !1,
|
|
5489
5489
|
"before-upload": e.beforeUpload,
|
|
5490
|
-
"http-request": e.makeHttpRequest(
|
|
5490
|
+
"http-request": e.makeHttpRequest(w),
|
|
5491
5491
|
"on-change": e.handleChange
|
|
5492
5492
|
}, {
|
|
5493
5493
|
default: n(() => [
|
|
@@ -5529,7 +5529,7 @@ function Xr(e, t, r, l, u, g) {
|
|
|
5529
5529
|
text: "",
|
|
5530
5530
|
class: "config-item-remove",
|
|
5531
5531
|
disabled: e.isRetainYes(e.retainFlag),
|
|
5532
|
-
onClick: (D) => e.removeItem(
|
|
5532
|
+
onClick: (D) => e.removeItem(w)
|
|
5533
5533
|
}, null, 8, ["disabled", "onClick"])
|
|
5534
5534
|
])
|
|
5535
5535
|
]),
|
|
@@ -5588,10 +5588,10 @@ const xr = /* @__PURE__ */ z(Qr, [["render", Xr], ["__scopeId", "data-v-3231d16a
|
|
|
5588
5588
|
},
|
|
5589
5589
|
methods: {
|
|
5590
5590
|
dayjs: O,
|
|
5591
|
-
checkPermission:
|
|
5592
|
-
isRetainYes:
|
|
5591
|
+
checkPermission: se,
|
|
5592
|
+
isRetainYes: ue,
|
|
5593
5593
|
getConfigList() {
|
|
5594
|
-
this.loading = !0,
|
|
5594
|
+
this.loading = !0, L().system.config.page(this.queryParams).then((e) => {
|
|
5595
5595
|
this.loading = !1, this.list = e.list, this.total = e.total;
|
|
5596
5596
|
}).catch(() => {
|
|
5597
5597
|
this.loading = !1;
|
|
@@ -5625,7 +5625,7 @@ const xr = /* @__PURE__ */ z(Qr, [["render", Xr], ["__scopeId", "data-v-3231d16a
|
|
|
5625
5625
|
cancelButtonText: "取消",
|
|
5626
5626
|
type: "warning"
|
|
5627
5627
|
}).then(() => {
|
|
5628
|
-
|
|
5628
|
+
L().system.config.delete(e.id).then(() => {
|
|
5629
5629
|
q.success("删除成功"), this.getConfigList();
|
|
5630
5630
|
});
|
|
5631
5631
|
});
|
|
@@ -5638,13 +5638,13 @@ const xr = /* @__PURE__ */ z(Qr, [["render", Xr], ["__scopeId", "data-v-3231d16a
|
|
|
5638
5638
|
}
|
|
5639
5639
|
}
|
|
5640
5640
|
}), ta = { class: "config_wrapper" }, oa = { class: "searchInputCustomStyle" };
|
|
5641
|
-
function na(e, t, r, l, u,
|
|
5642
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"),
|
|
5641
|
+
function na(e, t, r, l, u, y) {
|
|
5642
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"), b = a("el-form"), f = a("el-table-column"), g = a("el-divider"), C = a("el-tooltip"), k = a("el-table"), v = a("el-pagination"), S = a("ListReport"), U = a("configDrawer"), I = M("loading");
|
|
5643
5643
|
return m(), V("div", ta, [
|
|
5644
5644
|
o(s, { desc: "配置管理,支持系统配置信息的增删改查。" }),
|
|
5645
|
-
|
|
5645
|
+
E((m(), _(S, { class: "config_block" }, {
|
|
5646
5646
|
filter: n(() => [
|
|
5647
|
-
o(
|
|
5647
|
+
o(b, {
|
|
5648
5648
|
ref: "searchForm",
|
|
5649
5649
|
model: e.queryParams,
|
|
5650
5650
|
inline: !0,
|
|
@@ -5659,7 +5659,7 @@ function na(e, t, r, l, u, g) {
|
|
|
5659
5659
|
default: n(() => [
|
|
5660
5660
|
o(i, {
|
|
5661
5661
|
modelValue: e.queryParams.query.categoryName,
|
|
5662
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
5662
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => e.queryParams.query.categoryName = w),
|
|
5663
5663
|
placeholder: "请输入分类名称",
|
|
5664
5664
|
clearable: ""
|
|
5665
5665
|
}, null, 8, ["modelValue"])
|
|
@@ -5730,8 +5730,8 @@ function na(e, t, r, l, u, g) {
|
|
|
5730
5730
|
prop: "items",
|
|
5731
5731
|
label: "配置项数"
|
|
5732
5732
|
}, {
|
|
5733
|
-
default: n((
|
|
5734
|
-
c(R(
|
|
5733
|
+
default: n((w) => [
|
|
5734
|
+
c(R(w.row.items ? w.row.items.length : "-"), 1)
|
|
5735
5735
|
]),
|
|
5736
5736
|
_: 1
|
|
5737
5737
|
}),
|
|
@@ -5739,8 +5739,8 @@ function na(e, t, r, l, u, g) {
|
|
|
5739
5739
|
prop: "remark",
|
|
5740
5740
|
label: "备注"
|
|
5741
5741
|
}, {
|
|
5742
|
-
default: n((
|
|
5743
|
-
c(R(
|
|
5742
|
+
default: n((w) => [
|
|
5743
|
+
c(R(w.row.remark || "-"), 1)
|
|
5744
5744
|
]),
|
|
5745
5745
|
_: 1
|
|
5746
5746
|
}),
|
|
@@ -5748,8 +5748,8 @@ function na(e, t, r, l, u, g) {
|
|
|
5748
5748
|
prop: "createTime",
|
|
5749
5749
|
label: "创建时间"
|
|
5750
5750
|
}, {
|
|
5751
|
-
default: n((
|
|
5752
|
-
c(R(
|
|
5751
|
+
default: n((w) => [
|
|
5752
|
+
c(R(w.row.createTime ? e.dayjs(w.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "-"), 1)
|
|
5753
5753
|
]),
|
|
5754
5754
|
_: 1
|
|
5755
5755
|
}),
|
|
@@ -5758,21 +5758,21 @@ function na(e, t, r, l, u, g) {
|
|
|
5758
5758
|
label: "操作",
|
|
5759
5759
|
width: "160"
|
|
5760
5760
|
}, {
|
|
5761
|
-
default: n((
|
|
5761
|
+
default: n((w) => [
|
|
5762
5762
|
e.checkPermission(["ROLE_CONFIG_UPDATE"]) ? (m(), _(p, {
|
|
5763
5763
|
key: 0,
|
|
5764
5764
|
text: "",
|
|
5765
5765
|
type: "primary",
|
|
5766
|
-
onClick: (D) => e.editConfig(
|
|
5766
|
+
onClick: (D) => e.editConfig(w.row)
|
|
5767
5767
|
}, {
|
|
5768
5768
|
default: n(() => [...t[4] || (t[4] = [
|
|
5769
5769
|
c("编辑 ", -1)
|
|
5770
5770
|
])]),
|
|
5771
5771
|
_: 1
|
|
5772
5772
|
}, 8, ["onClick"])) : P("", !0),
|
|
5773
|
-
o(
|
|
5773
|
+
o(g, { direction: "vertical" }),
|
|
5774
5774
|
o(C, {
|
|
5775
|
-
disabled: !e.isRetainYes(
|
|
5775
|
+
disabled: !e.isRetainYes(w.row.retainFlag),
|
|
5776
5776
|
content: "系统保留配置禁止删除",
|
|
5777
5777
|
placement: "top"
|
|
5778
5778
|
}, {
|
|
@@ -5782,8 +5782,8 @@ function na(e, t, r, l, u, g) {
|
|
|
5782
5782
|
key: 0,
|
|
5783
5783
|
text: "",
|
|
5784
5784
|
type: "primary",
|
|
5785
|
-
disabled: e.isRetainYes(
|
|
5786
|
-
onClick: (D) => e.deleteConfig(
|
|
5785
|
+
disabled: e.isRetainYes(w.row.retainFlag),
|
|
5786
|
+
onClick: (D) => e.deleteConfig(w.row)
|
|
5787
5787
|
}, {
|
|
5788
5788
|
default: n(() => [...t[5] || (t[5] = [
|
|
5789
5789
|
c("删除", -1)
|
|
@@ -5824,7 +5824,7 @@ function na(e, t, r, l, u, g) {
|
|
|
5824
5824
|
}, null, 8, ["onReload"])
|
|
5825
5825
|
]);
|
|
5826
5826
|
}
|
|
5827
|
-
const
|
|
5827
|
+
const Es = /* @__PURE__ */ z(ea, [["render", na], ["__scopeId", "data-v-ec00582b"]]), ra = Y({
|
|
5828
5828
|
components: {
|
|
5829
5829
|
ListReport: oe,
|
|
5830
5830
|
PageDesc: te
|
|
@@ -5838,7 +5838,7 @@ const Fs = /* @__PURE__ */ z(ea, [["render", na], ["__scopeId", "data-v-ec00582b
|
|
|
5838
5838
|
};
|
|
5839
5839
|
},
|
|
5840
5840
|
methods: {
|
|
5841
|
-
checkPermission:
|
|
5841
|
+
checkPermission: se,
|
|
5842
5842
|
search() {
|
|
5843
5843
|
},
|
|
5844
5844
|
reset() {
|
|
@@ -5854,7 +5854,7 @@ const Fs = /* @__PURE__ */ z(ea, [["render", na], ["__scopeId", "data-v-ec00582b
|
|
|
5854
5854
|
cancelButtonText: "取消",
|
|
5855
5855
|
type: "warning"
|
|
5856
5856
|
}).then(() => {
|
|
5857
|
-
this.loading = !0,
|
|
5857
|
+
this.loading = !0, L().system.cache.evictUser(this.queryParams.account).then(() => {
|
|
5858
5858
|
this.loading = !1, q.success("清理用户缓存成功");
|
|
5859
5859
|
}).catch(() => {
|
|
5860
5860
|
this.loading = !1;
|
|
@@ -5867,7 +5867,7 @@ const Fs = /* @__PURE__ */ z(ea, [["render", na], ["__scopeId", "data-v-ec00582b
|
|
|
5867
5867
|
cancelButtonText: "取消",
|
|
5868
5868
|
type: "warning"
|
|
5869
5869
|
}).then(() => {
|
|
5870
|
-
this.loading = !0,
|
|
5870
|
+
this.loading = !0, L().system.cache.evictAll().then(() => {
|
|
5871
5871
|
this.loading = !1, q.success("清理全部缓存成功");
|
|
5872
5872
|
}).catch(() => {
|
|
5873
5873
|
this.loading = !1;
|
|
@@ -5876,13 +5876,13 @@ const Fs = /* @__PURE__ */ z(ea, [["render", na], ["__scopeId", "data-v-ec00582b
|
|
|
5876
5876
|
}
|
|
5877
5877
|
}
|
|
5878
5878
|
}), aa = { class: "cache_wrapper" };
|
|
5879
|
-
function la(e, t, r, l, u,
|
|
5880
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"),
|
|
5879
|
+
function la(e, t, r, l, u, y) {
|
|
5880
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"), b = a("el-form"), f = a("el-table-column"), g = a("el-table"), C = a("ListReport"), k = M("loading");
|
|
5881
5881
|
return m(), V("div", aa, [
|
|
5882
5882
|
o(s, { desc: "缓存管理,支持按用户账号或全局清理系统缓存。" }),
|
|
5883
|
-
|
|
5883
|
+
E((m(), _(C, { class: "cache_block" }, {
|
|
5884
5884
|
filter: n(() => [
|
|
5885
|
-
o(
|
|
5885
|
+
o(b, {
|
|
5886
5886
|
ref: "searchForm",
|
|
5887
5887
|
model: e.queryParams,
|
|
5888
5888
|
inline: !0,
|
|
@@ -5958,7 +5958,7 @@ function la(e, t, r, l, u, g) {
|
|
|
5958
5958
|
])
|
|
5959
5959
|
]),
|
|
5960
5960
|
view: n(() => [
|
|
5961
|
-
o(
|
|
5961
|
+
o(g, {
|
|
5962
5962
|
style: { width: "100%", "margin-top": "16px" },
|
|
5963
5963
|
"max-height": "640",
|
|
5964
5964
|
border: !1,
|
|
@@ -5987,7 +5987,7 @@ function la(e, t, r, l, u, g) {
|
|
|
5987
5987
|
])
|
|
5988
5988
|
]);
|
|
5989
5989
|
}
|
|
5990
|
-
const
|
|
5990
|
+
const Rs = /* @__PURE__ */ z(ra, [["render", la], ["__scopeId", "data-v-e0fece77"]]), ia = Y({
|
|
5991
5991
|
name: "",
|
|
5992
5992
|
components: { ElForm: dt, ElFormItem: st, ElInput: it, ElOption: Lo, ElSelect: Fo, xdmpDrawer: ee },
|
|
5993
5993
|
emits: ["reload"],
|
|
@@ -6078,8 +6078,8 @@ const Ls = /* @__PURE__ */ z(ra, [["render", la], ["__scopeId", "data-v-e0fece77
|
|
|
6078
6078
|
}
|
|
6079
6079
|
}
|
|
6080
6080
|
});
|
|
6081
|
-
function sa(e, t, r, l, u,
|
|
6082
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"),
|
|
6081
|
+
function sa(e, t, r, l, u, y) {
|
|
6082
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"), b = a("el-form"), f = a("xdmpDrawer"), g = M("emoji");
|
|
6083
6083
|
return m(), _(f, {
|
|
6084
6084
|
ref: "xdmpDrawer",
|
|
6085
6085
|
title: e.title,
|
|
@@ -6089,7 +6089,7 @@ function sa(e, t, r, l, u, g) {
|
|
|
6089
6089
|
}, {
|
|
6090
6090
|
default: n(() => [
|
|
6091
6091
|
Re(e.$slots, "default", { class: "xdmp-drawer-body" }, () => [
|
|
6092
|
-
o(
|
|
6092
|
+
o(b, {
|
|
6093
6093
|
ref: "form",
|
|
6094
6094
|
model: e.form,
|
|
6095
6095
|
rules: e.rules
|
|
@@ -6100,7 +6100,7 @@ function sa(e, t, r, l, u, g) {
|
|
|
6100
6100
|
label: "应用名称"
|
|
6101
6101
|
}, {
|
|
6102
6102
|
default: n(() => [
|
|
6103
|
-
|
|
6103
|
+
E(o(s, {
|
|
6104
6104
|
modelValue: e.form.appName,
|
|
6105
6105
|
"onUpdate:modelValue": t[0] || (t[0] = (C) => e.form.appName = C),
|
|
6106
6106
|
placeholder: "请输入应用名称",
|
|
@@ -6108,7 +6108,7 @@ function sa(e, t, r, l, u, g) {
|
|
|
6108
6108
|
maxlength: "32",
|
|
6109
6109
|
onInput: e.checkName
|
|
6110
6110
|
}, null, 8, ["modelValue", "onInput"]), [
|
|
6111
|
-
[
|
|
6111
|
+
[g]
|
|
6112
6112
|
])
|
|
6113
6113
|
]),
|
|
6114
6114
|
_: 1
|
|
@@ -6125,7 +6125,7 @@ function sa(e, t, r, l, u, g) {
|
|
|
6125
6125
|
style: { width: "100%" }
|
|
6126
6126
|
}, {
|
|
6127
6127
|
default: n(() => [
|
|
6128
|
-
(m(!0), V(
|
|
6128
|
+
(m(!0), V(ie, null, de(e.subjectList, (C) => (m(), _(d, {
|
|
6129
6129
|
key: C.id,
|
|
6130
6130
|
label: C.name,
|
|
6131
6131
|
value: C.id
|
|
@@ -6141,7 +6141,7 @@ function sa(e, t, r, l, u, g) {
|
|
|
6141
6141
|
label: "应用备注"
|
|
6142
6142
|
}, {
|
|
6143
6143
|
default: n(() => [
|
|
6144
|
-
|
|
6144
|
+
E(o(s, {
|
|
6145
6145
|
modelValue: e.form.comment,
|
|
6146
6146
|
"onUpdate:modelValue": t[2] || (t[2] = (C) => e.form.comment = C),
|
|
6147
6147
|
placeholder: "请输入应用备注,最多不超过200字",
|
|
@@ -6150,7 +6150,7 @@ function sa(e, t, r, l, u, g) {
|
|
|
6150
6150
|
type: "textarea",
|
|
6151
6151
|
"show-word-limit": ""
|
|
6152
6152
|
}, null, 8, ["modelValue"]), [
|
|
6153
|
-
[
|
|
6153
|
+
[g]
|
|
6154
6154
|
])
|
|
6155
6155
|
]),
|
|
6156
6156
|
_: 1
|
|
@@ -6202,7 +6202,7 @@ const da = /* @__PURE__ */ z(ia, [["render", sa], ["__scopeId", "data-v-babb5d0b
|
|
|
6202
6202
|
}
|
|
6203
6203
|
}
|
|
6204
6204
|
}), pa = { class: "boxTitle" };
|
|
6205
|
-
function ma(e, t, r, l, u,
|
|
6205
|
+
function ma(e, t, r, l, u, y) {
|
|
6206
6206
|
const s = a("el-checkbox"), i = a("el-checkbox-group"), d = a("xdmpDrawer");
|
|
6207
6207
|
return m(), _(d, {
|
|
6208
6208
|
ref: "xdmpDrawer",
|
|
@@ -6218,7 +6218,7 @@ function ma(e, t, r, l, u, g) {
|
|
|
6218
6218
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => e.form.apiId = p)
|
|
6219
6219
|
}, {
|
|
6220
6220
|
default: n(() => [
|
|
6221
|
-
(m(!0), V(
|
|
6221
|
+
(m(!0), V(ie, null, de(e.checkboxList, (p) => (m(), V("div", {
|
|
6222
6222
|
key: p.id,
|
|
6223
6223
|
class: "boxList"
|
|
6224
6224
|
}, [
|
|
@@ -6334,11 +6334,11 @@ const ca = /* @__PURE__ */ z(ua, [["render", ma], ["__scopeId", "data-v-79cbb79c
|
|
|
6334
6334
|
}
|
|
6335
6335
|
}
|
|
6336
6336
|
}), fa = { class: "userApply_wrapper" }, ga = ["data-clipboard-text"];
|
|
6337
|
-
function ya(e, t, r, l, u,
|
|
6338
|
-
const s = a("pageDesc"), i = a("searchForm"), d = a("el-button"), p = a("el-table-column"),
|
|
6337
|
+
function ya(e, t, r, l, u, y) {
|
|
6338
|
+
const s = a("pageDesc"), i = a("searchForm"), d = a("el-button"), p = a("el-table-column"), b = a("el-divider"), f = a("el-table"), g = a("ListReport"), C = a("appDialog"), k = a("appAuthDialog"), v = M("loading");
|
|
6339
6339
|
return m(), V("div", fa, [
|
|
6340
6340
|
o(s, { desc: "平台提供开放能力,可以进行新建、查看、编辑、授权等操作。" }),
|
|
6341
|
-
|
|
6341
|
+
E((m(), _(g, { class: "userApply_block" }, {
|
|
6342
6342
|
filter: n(() => [
|
|
6343
6343
|
o(i, {
|
|
6344
6344
|
"form-options": e.formOptions,
|
|
@@ -6411,7 +6411,7 @@ function ya(e, t, r, l, u, g) {
|
|
|
6411
6411
|
])]),
|
|
6412
6412
|
_: 1
|
|
6413
6413
|
}, 8, ["onClick"]),
|
|
6414
|
-
o(
|
|
6414
|
+
o(b, { direction: "vertical" }),
|
|
6415
6415
|
o(d, {
|
|
6416
6416
|
type: "primary",
|
|
6417
6417
|
text: "",
|
|
@@ -6422,7 +6422,7 @@ function ya(e, t, r, l, u, g) {
|
|
|
6422
6422
|
])]),
|
|
6423
6423
|
_: 1
|
|
6424
6424
|
}, 8, ["onClick"]),
|
|
6425
|
-
o(
|
|
6425
|
+
o(b, { direction: "vertical" }),
|
|
6426
6426
|
o(d, {
|
|
6427
6427
|
type: "primary",
|
|
6428
6428
|
text: "",
|
|
@@ -6433,7 +6433,7 @@ function ya(e, t, r, l, u, g) {
|
|
|
6433
6433
|
])]),
|
|
6434
6434
|
_: 1
|
|
6435
6435
|
}, 8, ["onClick"]),
|
|
6436
|
-
o(
|
|
6436
|
+
o(b, { direction: "vertical" }),
|
|
6437
6437
|
o(d, {
|
|
6438
6438
|
type: "primary",
|
|
6439
6439
|
text: "",
|
|
@@ -6444,7 +6444,7 @@ function ya(e, t, r, l, u, g) {
|
|
|
6444
6444
|
]),
|
|
6445
6445
|
_: 2
|
|
6446
6446
|
}, 1032, ["onClick"]),
|
|
6447
|
-
o(
|
|
6447
|
+
o(b, { direction: "vertical" }),
|
|
6448
6448
|
o(d, {
|
|
6449
6449
|
type: "primary",
|
|
6450
6450
|
text: "",
|
|
@@ -6476,7 +6476,7 @@ function ya(e, t, r, l, u, g) {
|
|
|
6476
6476
|
}, null, 8, ["onReload"])
|
|
6477
6477
|
]);
|
|
6478
6478
|
}
|
|
6479
|
-
const
|
|
6479
|
+
const Ps = /* @__PURE__ */ z(ha, [["render", ya], ["__scopeId", "data-v-0b2b31ff"]]), ba = Y({
|
|
6480
6480
|
components: {
|
|
6481
6481
|
ObjectPage: Vt,
|
|
6482
6482
|
pageDataInfo: Nt,
|
|
@@ -6559,9 +6559,9 @@ const Es = /* @__PURE__ */ z(ha, [["render", ya], ["__scopeId", "data-v-0b2b31ff
|
|
|
6559
6559
|
}
|
|
6560
6560
|
}
|
|
6561
6561
|
});
|
|
6562
|
-
function _a(e, t, r, l, u,
|
|
6562
|
+
function _a(e, t, r, l, u, y) {
|
|
6563
6563
|
const s = a("pageDataInfo"), i = a("verify"), d = a("ObjectPage"), p = M("loading");
|
|
6564
|
-
return
|
|
6564
|
+
return E((m(), _(d, { class: "userApply_detail_wrapper" }, {
|
|
6565
6565
|
header: n(() => [
|
|
6566
6566
|
o(s, {
|
|
6567
6567
|
title: e.detail.appName,
|
|
@@ -6587,7 +6587,7 @@ function _a(e, t, r, l, u, g) {
|
|
|
6587
6587
|
[p, e.loading]
|
|
6588
6588
|
]);
|
|
6589
6589
|
}
|
|
6590
|
-
const
|
|
6590
|
+
const Ns = /* @__PURE__ */ z(ba, [["render", _a], ["__scopeId", "data-v-9bf37e79"]]);
|
|
6591
6591
|
function Ht(e) {
|
|
6592
6592
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
6593
6593
|
throw new Error("map is read-only");
|
|
@@ -6824,14 +6824,14 @@ function ft(e, { joinWith: t }) {
|
|
|
6824
6824
|
return e.map((l) => {
|
|
6825
6825
|
r += 1;
|
|
6826
6826
|
const u = r;
|
|
6827
|
-
let
|
|
6828
|
-
for (;
|
|
6829
|
-
const i = Fa.exec(
|
|
6827
|
+
let y = Ve(l), s = "";
|
|
6828
|
+
for (; y.length > 0; ) {
|
|
6829
|
+
const i = Fa.exec(y);
|
|
6830
6830
|
if (!i) {
|
|
6831
|
-
s +=
|
|
6831
|
+
s += y;
|
|
6832
6832
|
break;
|
|
6833
6833
|
}
|
|
6834
|
-
s +=
|
|
6834
|
+
s += y.substring(0, i.index), y = y.substring(i.index + i[0].length), i[0][0] === "\\" && i[1] ? s += "\\" + String(Number(i[1]) + u) : (s += i[0], (i[0] === "(" || /^\(\?[<']/.test(i[0])) && r++);
|
|
6835
6835
|
}
|
|
6836
6836
|
return s;
|
|
6837
6837
|
}).map((l) => `(${l})`).join(t);
|
|
@@ -7066,16 +7066,16 @@ const Xa = (e, t) => {
|
|
|
7066
7066
|
], el = "keyword";
|
|
7067
7067
|
function eo(e, t, r = el) {
|
|
7068
7068
|
const l = /* @__PURE__ */ Object.create(null);
|
|
7069
|
-
return typeof e == "string" ? u(r, e.split(" ")) : Array.isArray(e) ? u(r, e) : Object.keys(e).forEach(function(
|
|
7069
|
+
return typeof e == "string" ? u(r, e.split(" ")) : Array.isArray(e) ? u(r, e) : Object.keys(e).forEach(function(y) {
|
|
7070
7070
|
Object.assign(
|
|
7071
7071
|
l,
|
|
7072
|
-
eo(e[
|
|
7072
|
+
eo(e[y], t, y)
|
|
7073
7073
|
);
|
|
7074
7074
|
}), l;
|
|
7075
|
-
function u(
|
|
7075
|
+
function u(y, s) {
|
|
7076
7076
|
t && (s = s.map((i) => i.toLowerCase())), s.forEach(function(i) {
|
|
7077
7077
|
const d = i.split("|");
|
|
7078
|
-
l[d[0]] = [
|
|
7078
|
+
l[d[0]] = [y, tl(d[0], d[1])];
|
|
7079
7079
|
});
|
|
7080
7080
|
}
|
|
7081
7081
|
}
|
|
@@ -7094,10 +7094,10 @@ const St = {}, $e = (e) => {
|
|
|
7094
7094
|
}, Be = new Error();
|
|
7095
7095
|
function to(e, t, { key: r }) {
|
|
7096
7096
|
let l = 0;
|
|
7097
|
-
const u = e[r],
|
|
7097
|
+
const u = e[r], y = {}, s = {};
|
|
7098
7098
|
for (let i = 1; i <= t.length; i++)
|
|
7099
|
-
s[i + l] = u[i],
|
|
7100
|
-
e[r] = s, e[r]._emit =
|
|
7099
|
+
s[i + l] = u[i], y[i + l] = !0, l += Jt(t[i - 1]);
|
|
7100
|
+
e[r] = s, e[r]._emit = y, e[r]._multi = !0;
|
|
7101
7101
|
}
|
|
7102
7102
|
function nl(e) {
|
|
7103
7103
|
if (Array.isArray(e.begin)) {
|
|
@@ -7149,8 +7149,8 @@ function il(e) {
|
|
|
7149
7149
|
const d = this.matcherRe.exec(i);
|
|
7150
7150
|
if (!d)
|
|
7151
7151
|
return null;
|
|
7152
|
-
const p = d.findIndex((f,
|
|
7153
|
-
return d.splice(0, p), Object.assign(d,
|
|
7152
|
+
const p = d.findIndex((f, g) => g > 0 && f !== void 0), b = this.matchIndexes[p];
|
|
7153
|
+
return d.splice(0, p), Object.assign(d, b);
|
|
7154
7154
|
}
|
|
7155
7155
|
}
|
|
7156
7156
|
class l {
|
|
@@ -7161,7 +7161,7 @@ function il(e) {
|
|
|
7161
7161
|
getMatcher(i) {
|
|
7162
7162
|
if (this.multiRegexes[i]) return this.multiRegexes[i];
|
|
7163
7163
|
const d = new r();
|
|
7164
|
-
return this.rules.slice(i).forEach(([p,
|
|
7164
|
+
return this.rules.slice(i).forEach(([p, b]) => d.addRule(p, b)), d.compile(), this.multiRegexes[i] = d, d;
|
|
7165
7165
|
}
|
|
7166
7166
|
resumingScanAtSamePosition() {
|
|
7167
7167
|
return this.regexIndex !== 0;
|
|
@@ -7179,8 +7179,8 @@ function il(e) {
|
|
|
7179
7179
|
d.lastIndex = this.lastIndex;
|
|
7180
7180
|
let p = d.exec(i);
|
|
7181
7181
|
if (this.resumingScanAtSamePosition() && !(p && p.index === this.lastIndex)) {
|
|
7182
|
-
const
|
|
7183
|
-
|
|
7182
|
+
const b = this.getMatcher(0);
|
|
7183
|
+
b.lastIndex = this.lastIndex + 1, p = b.exec(i);
|
|
7184
7184
|
}
|
|
7185
7185
|
return p && (this.regexIndex += p.position + 1, this.regexIndex === this.count && this.considerAll()), p;
|
|
7186
7186
|
}
|
|
@@ -7189,7 +7189,7 @@ function il(e) {
|
|
|
7189
7189
|
const i = new l();
|
|
7190
7190
|
return s.contains.forEach((d) => i.addRule(d.begin, { rule: d, type: "begin" })), s.terminatorEnd && i.addRule(s.terminatorEnd, { type: "end" }), s.illegal && i.addRule(s.illegal, { type: "illegal" }), i;
|
|
7191
7191
|
}
|
|
7192
|
-
function
|
|
7192
|
+
function y(s, i) {
|
|
7193
7193
|
const d = (
|
|
7194
7194
|
/** @type CompiledMode */
|
|
7195
7195
|
s
|
|
@@ -7202,31 +7202,31 @@ function il(e) {
|
|
|
7202
7202
|
Wa,
|
|
7203
7203
|
ll,
|
|
7204
7204
|
Xa
|
|
7205
|
-
].forEach((
|
|
7205
|
+
].forEach((b) => b(s, i)), e.compilerExtensions.forEach((b) => b(s, i)), s.__beforeBegin = null, [
|
|
7206
7206
|
Ga,
|
|
7207
7207
|
// do this later so compiler extensions that come earlier have access to the
|
|
7208
7208
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
7209
7209
|
Ja,
|
|
7210
7210
|
// default to 1 relevance if not specified
|
|
7211
7211
|
Za
|
|
7212
|
-
].forEach((
|
|
7212
|
+
].forEach((b) => b(s, i)), s.isCompiled = !0;
|
|
7213
7213
|
let p = null;
|
|
7214
7214
|
return typeof s.keywords == "object" && s.keywords.$pattern && (s.keywords = Object.assign({}, s.keywords), p = s.keywords.$pattern, delete s.keywords.$pattern), p = p || /\w+/, s.keywords && (s.keywords = eo(s.keywords, e.case_insensitive)), d.keywordPatternRe = t(p, !0), i && (s.begin || (s.begin = /\B|\b/), d.beginRe = t(d.begin), !s.end && !s.endsWithParent && (s.end = /\B|\b/), s.end && (d.endRe = t(d.end)), d.terminatorEnd = Ve(d.end) || "", s.endsWithParent && i.terminatorEnd && (d.terminatorEnd += (s.end ? "|" : "") + i.terminatorEnd)), s.illegal && (d.illegalRe = t(
|
|
7215
7215
|
/** @type {RegExp | string} */
|
|
7216
7216
|
s.illegal
|
|
7217
|
-
)), s.contains || (s.contains = []), s.contains = [].concat(...s.contains.map(function(
|
|
7218
|
-
return sl(
|
|
7219
|
-
})), s.contains.forEach(function(
|
|
7220
|
-
|
|
7217
|
+
)), s.contains || (s.contains = []), s.contains = [].concat(...s.contains.map(function(b) {
|
|
7218
|
+
return sl(b === "self" ? s : b);
|
|
7219
|
+
})), s.contains.forEach(function(b) {
|
|
7220
|
+
y(
|
|
7221
7221
|
/** @type Mode */
|
|
7222
|
-
|
|
7222
|
+
b,
|
|
7223
7223
|
d
|
|
7224
7224
|
);
|
|
7225
|
-
}), s.starts &&
|
|
7225
|
+
}), s.starts && y(s.starts, i), d.matcher = u(d), d;
|
|
7226
7226
|
}
|
|
7227
7227
|
if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self"))
|
|
7228
7228
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
7229
|
-
return e.classNameAliases = ve(e.classNameAliases || {}),
|
|
7229
|
+
return e.classNameAliases = ve(e.classNameAliases || {}), y(
|
|
7230
7230
|
/** @type Mode */
|
|
7231
7231
|
e
|
|
7232
7232
|
);
|
|
@@ -7248,7 +7248,7 @@ class ul extends Error {
|
|
|
7248
7248
|
const xe = Qt, Lt = ve, Et = Symbol("nomatch"), pl = 7, no = function(e) {
|
|
7249
7249
|
const t = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null), l = [];
|
|
7250
7250
|
let u = !0;
|
|
7251
|
-
const
|
|
7251
|
+
const y = "Could not find the language '{}', did you forget to load/include a language module?", s = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
7252
7252
|
let i = {
|
|
7253
7253
|
ignoreUnescapedHTML: !1,
|
|
7254
7254
|
throwUnescapedHTML: !1,
|
|
@@ -7270,11 +7270,11 @@ const xe = Qt, Lt = ve, Et = Symbol("nomatch"), pl = 7, no = function(e) {
|
|
|
7270
7270
|
const B = i.languageDetectRe.exec($);
|
|
7271
7271
|
if (B) {
|
|
7272
7272
|
const Z = re(B[1]);
|
|
7273
|
-
return Z || (Ft(
|
|
7273
|
+
return Z || (Ft(y.replace("{}", B[1])), Ft("Falling back to no-highlight mode for this block.", F)), Z ? B[1] : "no-highlight";
|
|
7274
7274
|
}
|
|
7275
7275
|
return $.split(/\s+/).find((Z) => d(Z) || re(Z));
|
|
7276
7276
|
}
|
|
7277
|
-
function
|
|
7277
|
+
function b(F, $, B) {
|
|
7278
7278
|
let Z = "", ne = "";
|
|
7279
7279
|
typeof $ == "object" ? (Z = F, B = $.ignoreIllegals, ne = $.language) : (Fe("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Fe("10.7.0", `Please use highlight(code, options) instead.
|
|
7280
7280
|
https://github.com/highlightjs/highlight.js/issues/2277`), ne = F, Z = $), B === void 0 && (B = !0);
|
|
@@ -7330,7 +7330,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = F, Z = $), B ===
|
|
|
7330
7330
|
N = C(X, j.subLanguage.length ? j.subLanguage : null);
|
|
7331
7331
|
j.relevance > 0 && (ze += N.relevance), ae.__addSublanguage(N._emitter, N.language);
|
|
7332
7332
|
}
|
|
7333
|
-
function
|
|
7333
|
+
function me() {
|
|
7334
7334
|
j.subLanguage != null ? Me() : ke(), X = "";
|
|
7335
7335
|
}
|
|
7336
7336
|
function ye(N, A) {
|
|
@@ -7375,14 +7375,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = F, Z = $), B ===
|
|
|
7375
7375
|
for (const Ce of le)
|
|
7376
7376
|
if (Ce && (Ce(N, J), J.isMatchIgnored))
|
|
7377
7377
|
return ao(A);
|
|
7378
|
-
return K.skip ? X += A : (K.excludeBegin && (X += A),
|
|
7378
|
+
return K.skip ? X += A : (K.excludeBegin && (X += A), me(), !K.returnBegin && !K.excludeBegin && (X = A)), _t(K, N), K.returnBegin ? 0 : A.length;
|
|
7379
7379
|
}
|
|
7380
7380
|
function io(N) {
|
|
7381
7381
|
const A = N[0], K = $.substring(N.index), J = wt(j, N, K);
|
|
7382
7382
|
if (!J)
|
|
7383
7383
|
return Et;
|
|
7384
7384
|
const le = j;
|
|
7385
|
-
j.endScope && j.endScope._wrap ? (
|
|
7385
|
+
j.endScope && j.endScope._wrap ? (me(), ye(A, j.endScope._wrap)) : j.endScope && j.endScope._multi ? (me(), bt(j.endScope, N)) : le.skip ? X += A : (le.returnEnd || le.excludeEnd || (X += A), me(), le.excludeEnd && (X = A));
|
|
7386
7386
|
do
|
|
7387
7387
|
j.scope && ae.closeNode(), !j.skip && !j.subLanguage && (ze += j.relevance), j = j.parent;
|
|
7388
7388
|
while (j !== J.parent);
|
|
@@ -7398,7 +7398,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = F, Z = $), B ===
|
|
|
7398
7398
|
function Ct(N, A) {
|
|
7399
7399
|
const K = A && A[0];
|
|
7400
7400
|
if (X += N, K == null)
|
|
7401
|
-
return
|
|
7401
|
+
return me(), 0;
|
|
7402
7402
|
if (Ue.type === "begin" && A.type === "end" && Ue.index === A.index && K === "") {
|
|
7403
7403
|
if (X += $.slice(A.index, A.index + 1), !u) {
|
|
7404
7404
|
const J = new Error(`0 width match regex (${F})`);
|
|
@@ -7425,7 +7425,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = F, Z = $), B ===
|
|
|
7425
7425
|
}
|
|
7426
7426
|
const be = re(F);
|
|
7427
7427
|
if (!be)
|
|
7428
|
-
throw $e(
|
|
7428
|
+
throw $e(y.replace("{}", F)), new Error('Unknown language: "' + F + '"');
|
|
7429
7429
|
const uo = il(be);
|
|
7430
7430
|
let Je = "", j = Z || uo;
|
|
7431
7431
|
const kt = {}, ae = new i.__emitter(i);
|
|
@@ -7481,7 +7481,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = F, Z = $), B ===
|
|
|
7481
7481
|
throw N;
|
|
7482
7482
|
}
|
|
7483
7483
|
}
|
|
7484
|
-
function
|
|
7484
|
+
function g(F) {
|
|
7485
7485
|
const $ = {
|
|
7486
7486
|
value: xe(F),
|
|
7487
7487
|
illegal: !1,
|
|
@@ -7493,16 +7493,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = F, Z = $), B ===
|
|
|
7493
7493
|
}
|
|
7494
7494
|
function C(F, $) {
|
|
7495
7495
|
$ = $ || i.languages || Object.keys(t);
|
|
7496
|
-
const B =
|
|
7497
|
-
(
|
|
7496
|
+
const B = g(F), Z = $.filter(re).filter(Q).map(
|
|
7497
|
+
(me) => f(me, F, !1)
|
|
7498
7498
|
);
|
|
7499
7499
|
Z.unshift(B);
|
|
7500
|
-
const ne = Z.sort((
|
|
7501
|
-
if (
|
|
7502
|
-
if (
|
|
7503
|
-
if (re(
|
|
7500
|
+
const ne = Z.sort((me, ye) => {
|
|
7501
|
+
if (me.relevance !== ye.relevance) return ye.relevance - me.relevance;
|
|
7502
|
+
if (me.language && ye.language) {
|
|
7503
|
+
if (re(me.language).supersetOf === ye.language)
|
|
7504
7504
|
return 1;
|
|
7505
|
-
if (re(ye.language).supersetOf ===
|
|
7505
|
+
if (re(ye.language).supersetOf === me.language)
|
|
7506
7506
|
return -1;
|
|
7507
7507
|
}
|
|
7508
7508
|
return 0;
|
|
@@ -7530,7 +7530,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = F, Z = $), B ===
|
|
|
7530
7530
|
F.innerHTML
|
|
7531
7531
|
);
|
|
7532
7532
|
$ = F;
|
|
7533
|
-
const Z = $.textContent, ne = B ?
|
|
7533
|
+
const Z = $.textContent, ne = B ? b(Z, { language: B, ignoreIllegals: !0 }) : C(Z);
|
|
7534
7534
|
F.innerHTML = ne.value, F.dataset.highlighted = "yes", k(F, B, ne.language), F.result = {
|
|
7535
7535
|
language: ne.language,
|
|
7536
7536
|
// TODO: remove with version 11.0
|
|
@@ -7550,13 +7550,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = F, Z = $), B ===
|
|
|
7550
7550
|
function I() {
|
|
7551
7551
|
D(), Fe("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
7552
7552
|
}
|
|
7553
|
-
let
|
|
7553
|
+
let w = !1;
|
|
7554
7554
|
function D() {
|
|
7555
7555
|
function F() {
|
|
7556
7556
|
D();
|
|
7557
7557
|
}
|
|
7558
7558
|
if (document.readyState === "loading") {
|
|
7559
|
-
|
|
7559
|
+
w || window.addEventListener("DOMContentLoaded", F, !1), w = !0;
|
|
7560
7560
|
return;
|
|
7561
7561
|
}
|
|
7562
7562
|
document.querySelectorAll(i.cssSelector).forEach(v);
|
|
@@ -7622,7 +7622,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ne = F, Z = $), B ===
|
|
|
7622
7622
|
return Fe("10.7.0", "highlightBlock will be removed entirely in v12.0"), Fe("10.7.0", "Please use highlightElement now."), v(F);
|
|
7623
7623
|
}
|
|
7624
7624
|
Object.assign(e, {
|
|
7625
|
-
highlight:
|
|
7625
|
+
highlight: b,
|
|
7626
7626
|
highlightAuto: C,
|
|
7627
7627
|
highlightAll: D,
|
|
7628
7628
|
highlightElement: v,
|
|
@@ -7747,7 +7747,7 @@ const yl = Y({
|
|
|
7747
7747
|
}
|
|
7748
7748
|
}
|
|
7749
7749
|
}), bl = { class: "json-preview" }, _l = ["innerHTML"];
|
|
7750
|
-
function wl(e, t, r, l, u,
|
|
7750
|
+
function wl(e, t, r, l, u, y) {
|
|
7751
7751
|
return m(), V("pre", bl, [
|
|
7752
7752
|
T("code", {
|
|
7753
7753
|
class: "hljs language-json",
|
|
@@ -7793,10 +7793,10 @@ const yt = /* @__PURE__ */ z(yl, [["render", wl], ["__scopeId", "data-v-29e89009
|
|
|
7793
7793
|
}
|
|
7794
7794
|
}
|
|
7795
7795
|
});
|
|
7796
|
-
function kl(e, t, r, l, u,
|
|
7797
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("JsonPreview"), p = a("el-form"),
|
|
7796
|
+
function kl(e, t, r, l, u, y) {
|
|
7797
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("JsonPreview"), p = a("el-form"), b = a("xdmpDrawer"), f = M("emoji");
|
|
7798
7798
|
return m(), V("div", null, [
|
|
7799
|
-
o(
|
|
7799
|
+
o(b, {
|
|
7800
7800
|
ref: "xdmpDrawer",
|
|
7801
7801
|
title: e.title,
|
|
7802
7802
|
size: e.size,
|
|
@@ -7819,9 +7819,9 @@ function kl(e, t, r, l, u, g) {
|
|
|
7819
7819
|
prop: "content"
|
|
7820
7820
|
}, {
|
|
7821
7821
|
default: n(() => [
|
|
7822
|
-
|
|
7822
|
+
E(o(s, {
|
|
7823
7823
|
modelValue: e.logForm.content,
|
|
7824
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
7824
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => e.logForm.content = g),
|
|
7825
7825
|
placeholder: "请输入"
|
|
7826
7826
|
}, null, 8, ["modelValue"]), [
|
|
7827
7827
|
[f]
|
|
@@ -7834,9 +7834,9 @@ function kl(e, t, r, l, u, g) {
|
|
|
7834
7834
|
prop: "fullname"
|
|
7835
7835
|
}, {
|
|
7836
7836
|
default: n(() => [
|
|
7837
|
-
|
|
7837
|
+
E(o(s, {
|
|
7838
7838
|
modelValue: e.logForm.fullname,
|
|
7839
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
7839
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.logForm.fullname = g),
|
|
7840
7840
|
placeholder: "请输入"
|
|
7841
7841
|
}, null, 8, ["modelValue"]), [
|
|
7842
7842
|
[f]
|
|
@@ -7849,9 +7849,9 @@ function kl(e, t, r, l, u, g) {
|
|
|
7849
7849
|
prop: "operateModule"
|
|
7850
7850
|
}, {
|
|
7851
7851
|
default: n(() => [
|
|
7852
|
-
|
|
7852
|
+
E(o(s, {
|
|
7853
7853
|
modelValue: e.logForm.operateModule,
|
|
7854
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
7854
|
+
"onUpdate:modelValue": t[2] || (t[2] = (g) => e.logForm.operateModule = g),
|
|
7855
7855
|
placeholder: "请输入"
|
|
7856
7856
|
}, null, 8, ["modelValue"]), [
|
|
7857
7857
|
[f]
|
|
@@ -7866,7 +7866,7 @@ function kl(e, t, r, l, u, g) {
|
|
|
7866
7866
|
default: n(() => [
|
|
7867
7867
|
o(s, {
|
|
7868
7868
|
modelValue: e.logForm.httpStatus,
|
|
7869
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
7869
|
+
"onUpdate:modelValue": t[3] || (t[3] = (g) => e.logForm.httpStatus = g),
|
|
7870
7870
|
emoji: "",
|
|
7871
7871
|
placeholder: "请输入"
|
|
7872
7872
|
}, null, 8, ["modelValue"])
|
|
@@ -7880,7 +7880,7 @@ function kl(e, t, r, l, u, g) {
|
|
|
7880
7880
|
default: n(() => [
|
|
7881
7881
|
o(s, {
|
|
7882
7882
|
modelValue: e.logForm.ip,
|
|
7883
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
7883
|
+
"onUpdate:modelValue": t[4] || (t[4] = (g) => e.logForm.ip = g),
|
|
7884
7884
|
emoji: "",
|
|
7885
7885
|
placeholder: "请输入"
|
|
7886
7886
|
}, null, 8, ["modelValue"])
|
|
@@ -7894,7 +7894,7 @@ function kl(e, t, r, l, u, g) {
|
|
|
7894
7894
|
default: n(() => [
|
|
7895
7895
|
o(s, {
|
|
7896
7896
|
modelValue: e.logForm.createTime,
|
|
7897
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
7897
|
+
"onUpdate:modelValue": t[5] || (t[5] = (g) => e.logForm.createTime = g),
|
|
7898
7898
|
emoji: "",
|
|
7899
7899
|
placeholder: "请输入"
|
|
7900
7900
|
}, null, 8, ["modelValue"])
|
|
@@ -7962,7 +7962,7 @@ const vl = /* @__PURE__ */ z(Cl, [["render", kl], ["__scopeId", "data-v-2ee28ed4
|
|
|
7962
7962
|
methods: {
|
|
7963
7963
|
dayjs: O,
|
|
7964
7964
|
getList() {
|
|
7965
|
-
this.loading = !0,
|
|
7965
|
+
this.loading = !0, L().system.operateAudit.page(this.queryParams).then((t) => {
|
|
7966
7966
|
this.loading = !1, this.auditList = t.list, this.total = t.total;
|
|
7967
7967
|
}).catch(() => {
|
|
7968
7968
|
this.loading = !1;
|
|
@@ -8006,11 +8006,11 @@ const vl = /* @__PURE__ */ z(Cl, [["render", kl], ["__scopeId", "data-v-2ee28ed4
|
|
|
8006
8006
|
}
|
|
8007
8007
|
}
|
|
8008
8008
|
}), $l = { class: "operateLog_wrapper" };
|
|
8009
|
-
function Tl(e, t, r, l, u,
|
|
8010
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-option"),
|
|
8009
|
+
function Tl(e, t, r, l, u, y) {
|
|
8010
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-option"), b = a("el-select"), f = a("el-date-picker"), g = a("el-button"), C = a("el-form"), k = a("el-table-column"), v = a("el-table"), S = a("el-pagination"), U = a("ListReport"), I = a("logDetail"), w = M("emoji"), D = M("loading");
|
|
8011
8011
|
return m(), V("div", $l, [
|
|
8012
8012
|
o(s, { desc: "记录用户在平台上的所有操作行为,包含操作时间、操作者、操作内容、业务模块、操作状态等信息,支持查询和导出。" }),
|
|
8013
|
-
|
|
8013
|
+
E((m(), _(U, { class: "operateLog_block" }, {
|
|
8014
8014
|
filter: n(() => [
|
|
8015
8015
|
o(C, {
|
|
8016
8016
|
ref: "searchForm",
|
|
@@ -8025,14 +8025,14 @@ function Tl(e, t, r, l, u, g) {
|
|
|
8025
8025
|
prop: "keyword"
|
|
8026
8026
|
}, {
|
|
8027
8027
|
default: n(() => [
|
|
8028
|
-
|
|
8028
|
+
E(o(i, {
|
|
8029
8029
|
modelValue: e.queryParams.query.keyword,
|
|
8030
8030
|
"onUpdate:modelValue": t[0] || (t[0] = (h) => e.queryParams.query.keyword = h),
|
|
8031
8031
|
maxlength: "32",
|
|
8032
8032
|
placeholder: "操作、操作者、业务类型",
|
|
8033
8033
|
clearable: ""
|
|
8034
8034
|
}, null, 8, ["modelValue"]), [
|
|
8035
|
-
[
|
|
8035
|
+
[w]
|
|
8036
8036
|
])
|
|
8037
8037
|
]),
|
|
8038
8038
|
_: 1
|
|
@@ -8042,14 +8042,14 @@ function Tl(e, t, r, l, u, g) {
|
|
|
8042
8042
|
prop: "successFlag"
|
|
8043
8043
|
}, {
|
|
8044
8044
|
default: n(() => [
|
|
8045
|
-
o(
|
|
8045
|
+
o(b, {
|
|
8046
8046
|
modelValue: e.queryParams.query.successFlag,
|
|
8047
8047
|
"onUpdate:modelValue": t[1] || (t[1] = (h) => e.queryParams.query.successFlag = h),
|
|
8048
8048
|
placeholder: "请选择",
|
|
8049
8049
|
clearable: ""
|
|
8050
8050
|
}, {
|
|
8051
8051
|
default: n(() => [
|
|
8052
|
-
(m(!0), V(
|
|
8052
|
+
(m(!0), V(ie, null, de(e.logSuccessFlagList, (h) => (m(), _(p, {
|
|
8053
8053
|
key: h.value,
|
|
8054
8054
|
label: h.label,
|
|
8055
8055
|
value: h.value
|
|
@@ -8082,7 +8082,7 @@ function Tl(e, t, r, l, u, g) {
|
|
|
8082
8082
|
}),
|
|
8083
8083
|
o(d, null, {
|
|
8084
8084
|
default: n(() => [
|
|
8085
|
-
o(
|
|
8085
|
+
o(g, {
|
|
8086
8086
|
type: "primary",
|
|
8087
8087
|
icon: "Search",
|
|
8088
8088
|
onClick: e.onSearch
|
|
@@ -8092,7 +8092,7 @@ function Tl(e, t, r, l, u, g) {
|
|
|
8092
8092
|
])]),
|
|
8093
8093
|
_: 1
|
|
8094
8094
|
}, 8, ["onClick"]),
|
|
8095
|
-
o(
|
|
8095
|
+
o(g, {
|
|
8096
8096
|
type: "default",
|
|
8097
8097
|
icon: "Refresh",
|
|
8098
8098
|
onClick: e.onReset
|
|
@@ -8195,7 +8195,7 @@ function Tl(e, t, r, l, u, g) {
|
|
|
8195
8195
|
label: "消息内容"
|
|
8196
8196
|
}, {
|
|
8197
8197
|
default: n((h) => [
|
|
8198
|
-
o(
|
|
8198
|
+
o(g, {
|
|
8199
8199
|
type: "primary",
|
|
8200
8200
|
text: "",
|
|
8201
8201
|
onClick: (H) => e.detail(h.row)
|
|
@@ -8231,7 +8231,7 @@ function Tl(e, t, r, l, u, g) {
|
|
|
8231
8231
|
o(I, { ref: "logDetailRef" }, null, 512)
|
|
8232
8232
|
]);
|
|
8233
8233
|
}
|
|
8234
|
-
const
|
|
8234
|
+
const Is = /* @__PURE__ */ z(Dl, [["render", Tl], ["__scopeId", "data-v-ca1380a7"]]), Sl = Y({
|
|
8235
8235
|
components: { xdmpDrawer: ee, JsonPreview: yt },
|
|
8236
8236
|
data() {
|
|
8237
8237
|
return {
|
|
@@ -8269,10 +8269,10 @@ const Ps = /* @__PURE__ */ z(Dl, [["render", Tl], ["__scopeId", "data-v-ca1380a7
|
|
|
8269
8269
|
}
|
|
8270
8270
|
}
|
|
8271
8271
|
});
|
|
8272
|
-
function Fl(e, t, r, l, u,
|
|
8273
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("JsonPreview"), p = a("el-form"),
|
|
8272
|
+
function Fl(e, t, r, l, u, y) {
|
|
8273
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("JsonPreview"), p = a("el-form"), b = a("xdmpDrawer"), f = M("emoji");
|
|
8274
8274
|
return m(), V("div", null, [
|
|
8275
|
-
o(
|
|
8275
|
+
o(b, {
|
|
8276
8276
|
ref: "xdmpDrawer",
|
|
8277
8277
|
title: e.title,
|
|
8278
8278
|
size: e.size,
|
|
@@ -8295,9 +8295,9 @@ function Fl(e, t, r, l, u, g) {
|
|
|
8295
8295
|
prop: "content"
|
|
8296
8296
|
}, {
|
|
8297
8297
|
default: n(() => [
|
|
8298
|
-
|
|
8298
|
+
E(o(s, {
|
|
8299
8299
|
modelValue: e.logForm.content,
|
|
8300
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
8300
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => e.logForm.content = g),
|
|
8301
8301
|
placeholder: "请输入"
|
|
8302
8302
|
}, null, 8, ["modelValue"]), [
|
|
8303
8303
|
[f]
|
|
@@ -8310,9 +8310,9 @@ function Fl(e, t, r, l, u, g) {
|
|
|
8310
8310
|
prop: "fullname"
|
|
8311
8311
|
}, {
|
|
8312
8312
|
default: n(() => [
|
|
8313
|
-
|
|
8313
|
+
E(o(s, {
|
|
8314
8314
|
modelValue: e.logForm.fullname,
|
|
8315
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
8315
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.logForm.fullname = g),
|
|
8316
8316
|
placeholder: "请输入"
|
|
8317
8317
|
}, null, 8, ["modelValue"]), [
|
|
8318
8318
|
[f]
|
|
@@ -8325,9 +8325,9 @@ function Fl(e, t, r, l, u, g) {
|
|
|
8325
8325
|
prop: "operateModule"
|
|
8326
8326
|
}, {
|
|
8327
8327
|
default: n(() => [
|
|
8328
|
-
|
|
8328
|
+
E(o(s, {
|
|
8329
8329
|
modelValue: e.logForm.operateModule,
|
|
8330
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
8330
|
+
"onUpdate:modelValue": t[2] || (t[2] = (g) => e.logForm.operateModule = g),
|
|
8331
8331
|
placeholder: "请输入"
|
|
8332
8332
|
}, null, 8, ["modelValue"]), [
|
|
8333
8333
|
[f]
|
|
@@ -8342,7 +8342,7 @@ function Fl(e, t, r, l, u, g) {
|
|
|
8342
8342
|
default: n(() => [
|
|
8343
8343
|
o(s, {
|
|
8344
8344
|
modelValue: e.logForm.httpStatus,
|
|
8345
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
8345
|
+
"onUpdate:modelValue": t[3] || (t[3] = (g) => e.logForm.httpStatus = g),
|
|
8346
8346
|
emoji: "",
|
|
8347
8347
|
placeholder: "请输入"
|
|
8348
8348
|
}, null, 8, ["modelValue"])
|
|
@@ -8356,7 +8356,7 @@ function Fl(e, t, r, l, u, g) {
|
|
|
8356
8356
|
default: n(() => [
|
|
8357
8357
|
o(s, {
|
|
8358
8358
|
modelValue: e.logForm.ip,
|
|
8359
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
8359
|
+
"onUpdate:modelValue": t[4] || (t[4] = (g) => e.logForm.ip = g),
|
|
8360
8360
|
emoji: "",
|
|
8361
8361
|
placeholder: "请输入"
|
|
8362
8362
|
}, null, 8, ["modelValue"])
|
|
@@ -8370,7 +8370,7 @@ function Fl(e, t, r, l, u, g) {
|
|
|
8370
8370
|
default: n(() => [
|
|
8371
8371
|
o(s, {
|
|
8372
8372
|
modelValue: e.logForm.createTime,
|
|
8373
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
8373
|
+
"onUpdate:modelValue": t[5] || (t[5] = (g) => e.logForm.createTime = g),
|
|
8374
8374
|
emoji: "",
|
|
8375
8375
|
placeholder: "请输入"
|
|
8376
8376
|
}, null, 8, ["modelValue"])
|
|
@@ -8438,7 +8438,7 @@ const Ll = /* @__PURE__ */ z(Sl, [["render", Fl], ["__scopeId", "data-v-f824705f
|
|
|
8438
8438
|
methods: {
|
|
8439
8439
|
dayjs: O,
|
|
8440
8440
|
getList() {
|
|
8441
|
-
this.loading = !0,
|
|
8441
|
+
this.loading = !0, L().system.loginAudit.page(this.queryParams).then((t) => {
|
|
8442
8442
|
this.loading = !1, this.auditList = t.list, this.total = t.total;
|
|
8443
8443
|
}).catch(() => {
|
|
8444
8444
|
this.loading = !1;
|
|
@@ -8482,11 +8482,11 @@ const Ll = /* @__PURE__ */ z(Sl, [["render", Fl], ["__scopeId", "data-v-f824705f
|
|
|
8482
8482
|
}
|
|
8483
8483
|
}
|
|
8484
8484
|
}), Rl = { class: "loginLog_wrapper" };
|
|
8485
|
-
function Pl(e, t, r, l, u,
|
|
8486
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-option"),
|
|
8485
|
+
function Pl(e, t, r, l, u, y) {
|
|
8486
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-option"), b = a("el-select"), f = a("el-date-picker"), g = a("el-button"), C = a("el-form"), k = a("el-table-column"), v = a("el-table"), S = a("el-pagination"), U = a("ListReport"), I = a("logDetail"), w = M("emoji"), D = M("loading");
|
|
8487
8487
|
return m(), V("div", Rl, [
|
|
8488
8488
|
o(s, { desc: "记录用户登录行为,包含登录时间、登录账号、登录状态、IP地址等信息,支持查询和导出。" }),
|
|
8489
|
-
|
|
8489
|
+
E((m(), _(U, { class: "loginLog_block" }, {
|
|
8490
8490
|
filter: n(() => [
|
|
8491
8491
|
o(C, {
|
|
8492
8492
|
ref: "searchForm",
|
|
@@ -8501,14 +8501,14 @@ function Pl(e, t, r, l, u, g) {
|
|
|
8501
8501
|
prop: "keyword"
|
|
8502
8502
|
}, {
|
|
8503
8503
|
default: n(() => [
|
|
8504
|
-
|
|
8504
|
+
E(o(i, {
|
|
8505
8505
|
modelValue: e.queryParams.query.keyword,
|
|
8506
8506
|
"onUpdate:modelValue": t[0] || (t[0] = (h) => e.queryParams.query.keyword = h),
|
|
8507
8507
|
maxlength: "32",
|
|
8508
8508
|
placeholder: "操作、操作者、业务类型",
|
|
8509
8509
|
clearable: ""
|
|
8510
8510
|
}, null, 8, ["modelValue"]), [
|
|
8511
|
-
[
|
|
8511
|
+
[w]
|
|
8512
8512
|
])
|
|
8513
8513
|
]),
|
|
8514
8514
|
_: 1
|
|
@@ -8518,14 +8518,14 @@ function Pl(e, t, r, l, u, g) {
|
|
|
8518
8518
|
prop: "successFlag"
|
|
8519
8519
|
}, {
|
|
8520
8520
|
default: n(() => [
|
|
8521
|
-
o(
|
|
8521
|
+
o(b, {
|
|
8522
8522
|
modelValue: e.queryParams.query.successFlag,
|
|
8523
8523
|
"onUpdate:modelValue": t[1] || (t[1] = (h) => e.queryParams.query.successFlag = h),
|
|
8524
8524
|
placeholder: "请选择",
|
|
8525
8525
|
clearable: ""
|
|
8526
8526
|
}, {
|
|
8527
8527
|
default: n(() => [
|
|
8528
|
-
(m(!0), V(
|
|
8528
|
+
(m(!0), V(ie, null, de(e.logSuccessFlagList, (h) => (m(), _(p, {
|
|
8529
8529
|
key: h.value,
|
|
8530
8530
|
label: h.label,
|
|
8531
8531
|
value: h.value
|
|
@@ -8558,7 +8558,7 @@ function Pl(e, t, r, l, u, g) {
|
|
|
8558
8558
|
}),
|
|
8559
8559
|
o(d, null, {
|
|
8560
8560
|
default: n(() => [
|
|
8561
|
-
o(
|
|
8561
|
+
o(g, {
|
|
8562
8562
|
type: "primary",
|
|
8563
8563
|
icon: "Search",
|
|
8564
8564
|
onClick: e.onSearch
|
|
@@ -8568,7 +8568,7 @@ function Pl(e, t, r, l, u, g) {
|
|
|
8568
8568
|
])]),
|
|
8569
8569
|
_: 1
|
|
8570
8570
|
}, 8, ["onClick"]),
|
|
8571
|
-
o(
|
|
8571
|
+
o(g, {
|
|
8572
8572
|
type: "default",
|
|
8573
8573
|
icon: "Refresh",
|
|
8574
8574
|
onClick: e.onReset
|
|
@@ -8671,7 +8671,7 @@ function Pl(e, t, r, l, u, g) {
|
|
|
8671
8671
|
label: "消息内容"
|
|
8672
8672
|
}, {
|
|
8673
8673
|
default: n((h) => [
|
|
8674
|
-
o(
|
|
8674
|
+
o(g, {
|
|
8675
8675
|
type: "primary",
|
|
8676
8676
|
text: "",
|
|
8677
8677
|
onClick: (H) => e.detail(h.row)
|
|
@@ -8707,7 +8707,7 @@ function Pl(e, t, r, l, u, g) {
|
|
|
8707
8707
|
o(I, { ref: "logDetailRef" }, null, 512)
|
|
8708
8708
|
]);
|
|
8709
8709
|
}
|
|
8710
|
-
const
|
|
8710
|
+
const Vs = /* @__PURE__ */ z(El, [["render", Pl], ["__scopeId", "data-v-1742c7b6"]]), Nl = Y({
|
|
8711
8711
|
props: {
|
|
8712
8712
|
existItems: {
|
|
8713
8713
|
type: Array,
|
|
@@ -8744,7 +8744,7 @@ const Ns = /* @__PURE__ */ z(El, [["render", Pl], ["__scopeId", "data-v-1742c7b6
|
|
|
8744
8744
|
r(new Error('1-32位,英文、数字及特殊字符"_"、"/"'));
|
|
8745
8745
|
return;
|
|
8746
8746
|
}
|
|
8747
|
-
this.existItems.some((u,
|
|
8747
|
+
this.existItems.some((u, y) => this.dialogMode === "edit" && y === this.currentIndex ? !1 : u.key === t) ? r(new Error("字典项值已存在,不能重复")) : r();
|
|
8748
8748
|
},
|
|
8749
8749
|
submit() {
|
|
8750
8750
|
this.$refs.formRef.validate((e) => {
|
|
@@ -8764,10 +8764,10 @@ const Ns = /* @__PURE__ */ z(El, [["render", Pl], ["__scopeId", "data-v-1742c7b6
|
|
|
8764
8764
|
}
|
|
8765
8765
|
}
|
|
8766
8766
|
}), Il = { class: "dialog-footer" };
|
|
8767
|
-
function Vl(e, t, r, l, u,
|
|
8768
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-form"), p = a("el-button"),
|
|
8767
|
+
function Vl(e, t, r, l, u, y) {
|
|
8768
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-form"), p = a("el-button"), b = a("el-dialog");
|
|
8769
8769
|
return m(), V("div", null, [
|
|
8770
|
-
o(
|
|
8770
|
+
o(b, {
|
|
8771
8771
|
modelValue: e.visible,
|
|
8772
8772
|
"onUpdate:modelValue": t[2] || (t[2] = (f) => e.visible = f),
|
|
8773
8773
|
title: e.title,
|
|
@@ -8870,7 +8870,7 @@ const ql = /* @__PURE__ */ z(Nl, [["render", Vl], ["__scopeId", "data-v-8d04bfe8
|
|
|
8870
8870
|
},
|
|
8871
8871
|
methods: {
|
|
8872
8872
|
isRetainFieldDisabled: Pe,
|
|
8873
|
-
isRetainYes:
|
|
8873
|
+
isRetainYes: ue,
|
|
8874
8874
|
handleOpen(e, t) {
|
|
8875
8875
|
this.$nextTick(() => {
|
|
8876
8876
|
this.$refs.xdmpDrawer.init(), this.mode = t, e ? (this.dictForm = JSON.parse(JSON.stringify(e)), this.dictForm.items || (this.dictForm.items = []), t === "edit" ? this.title = "编辑字典" : t === "details" && (this.title = "字典详情")) : (this.resetForm(), this.title = "新建字典");
|
|
@@ -8882,7 +8882,7 @@ const ql = /* @__PURE__ */ z(Nl, [["render", Vl], ["__scopeId", "data-v-8d04bfe8
|
|
|
8882
8882
|
return;
|
|
8883
8883
|
const t = this.$refs.xdmpDrawer;
|
|
8884
8884
|
t.showLoading();
|
|
8885
|
-
const r =
|
|
8885
|
+
const r = L().system.dict, l = { ...this.dictForm };
|
|
8886
8886
|
(this.mode === "edit" ? r.update(this.dictForm.id, l) : r.add(l)).then(() => {
|
|
8887
8887
|
t.hideLoading(), q.success(this.mode === "edit" ? "编辑成功" : "新建成功"), this.$emit("reload"), t.cancelForm();
|
|
8888
8888
|
}).catch(() => {
|
|
@@ -8919,8 +8919,8 @@ const ql = /* @__PURE__ */ z(Nl, [["render", Vl], ["__scopeId", "data-v-8d04bfe8
|
|
|
8919
8919
|
}
|
|
8920
8920
|
}
|
|
8921
8921
|
});
|
|
8922
|
-
function Ul(e, t, r, l, u,
|
|
8923
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-button"), p = a("el-table-column"),
|
|
8922
|
+
function Ul(e, t, r, l, u, y) {
|
|
8923
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-button"), p = a("el-table-column"), b = a("el-divider"), f = a("el-table"), g = a("el-form"), C = a("xdmp-drawer"), k = a("dict-dialog");
|
|
8924
8924
|
return m(), V("div", null, [
|
|
8925
8925
|
o(C, {
|
|
8926
8926
|
ref: "xdmpDrawer",
|
|
@@ -8931,7 +8931,7 @@ function Ul(e, t, r, l, u, g) {
|
|
|
8931
8931
|
onCancel: e.cancel
|
|
8932
8932
|
}, {
|
|
8933
8933
|
"xdmp-drawer-body": n(() => [
|
|
8934
|
-
o(
|
|
8934
|
+
o(g, {
|
|
8935
8935
|
ref: "dictFormRef",
|
|
8936
8936
|
model: e.dictForm,
|
|
8937
8937
|
rules: e.rules,
|
|
@@ -9034,7 +9034,7 @@ function Ul(e, t, r, l, u, g) {
|
|
|
9034
9034
|
])]),
|
|
9035
9035
|
_: 1
|
|
9036
9036
|
}, 8, ["disabled", "onClick"]),
|
|
9037
|
-
o(
|
|
9037
|
+
o(b, { direction: "vertical" }),
|
|
9038
9038
|
o(d, {
|
|
9039
9039
|
type: "primary",
|
|
9040
9040
|
disabled: e.isRetainYes(v.row.retainFlag),
|
|
@@ -9100,7 +9100,7 @@ const zl = /* @__PURE__ */ z(Ml, [["render", Ul]]), Yl = Y({
|
|
|
9100
9100
|
},
|
|
9101
9101
|
methods: {
|
|
9102
9102
|
dayjs: O,
|
|
9103
|
-
isRetainYes:
|
|
9103
|
+
isRetainYes: ue,
|
|
9104
9104
|
async getDictList() {
|
|
9105
9105
|
this.loading = !0;
|
|
9106
9106
|
const e = { ...this.queryParams.query };
|
|
@@ -9109,7 +9109,7 @@ const zl = /* @__PURE__ */ z(Ml, [["render", Ul]]), Yl = Y({
|
|
|
9109
9109
|
(r == null || r === "") && delete e[t];
|
|
9110
9110
|
});
|
|
9111
9111
|
try {
|
|
9112
|
-
const t = await
|
|
9112
|
+
const t = await L().system.dict.page({
|
|
9113
9113
|
...this.queryParams,
|
|
9114
9114
|
query: e
|
|
9115
9115
|
});
|
|
@@ -9153,7 +9153,7 @@ const zl = /* @__PURE__ */ z(Ml, [["render", Ul]]), Yl = Y({
|
|
|
9153
9153
|
cancelButtonText: "取消",
|
|
9154
9154
|
type: "warning"
|
|
9155
9155
|
}).then(() => {
|
|
9156
|
-
|
|
9156
|
+
L().system.dict.delete(e.id).then(() => {
|
|
9157
9157
|
q.success("删除成功"), this.getDictList();
|
|
9158
9158
|
});
|
|
9159
9159
|
});
|
|
@@ -9168,13 +9168,13 @@ const zl = /* @__PURE__ */ z(Ml, [["render", Ul]]), Yl = Y({
|
|
|
9168
9168
|
}
|
|
9169
9169
|
}
|
|
9170
9170
|
}), jl = { class: "dict_wrapper" };
|
|
9171
|
-
function Bl(e, t, r, l, u,
|
|
9172
|
-
const s = a("page-desc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"),
|
|
9171
|
+
function Bl(e, t, r, l, u, y) {
|
|
9172
|
+
const s = a("page-desc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"), b = a("el-form"), f = a("el-table-column"), g = a("el-divider"), C = a("el-tooltip"), k = a("el-table"), v = a("el-pagination"), S = a("ListReport"), U = a("dict-drawer"), I = M("loading");
|
|
9173
9173
|
return m(), V("div", jl, [
|
|
9174
9174
|
o(s, { desc: "用于维护平台基础数据分类、枚举及编码规则,实现数据统一定义与规范管理。" }),
|
|
9175
|
-
|
|
9175
|
+
E((m(), _(S, { class: "dict_block" }, {
|
|
9176
9176
|
filter: n(() => [
|
|
9177
|
-
o(
|
|
9177
|
+
o(b, {
|
|
9178
9178
|
ref: "searchForm",
|
|
9179
9179
|
model: e.queryParams,
|
|
9180
9180
|
inline: !0,
|
|
@@ -9189,7 +9189,7 @@ function Bl(e, t, r, l, u, g) {
|
|
|
9189
9189
|
default: n(() => [
|
|
9190
9190
|
o(i, {
|
|
9191
9191
|
modelValue: e.queryParams.query.name,
|
|
9192
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
9192
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => e.queryParams.query.name = w),
|
|
9193
9193
|
placeholder: "请输入字典名称"
|
|
9194
9194
|
}, null, 8, ["modelValue"])
|
|
9195
9195
|
]),
|
|
@@ -9202,7 +9202,7 @@ function Bl(e, t, r, l, u, g) {
|
|
|
9202
9202
|
default: n(() => [
|
|
9203
9203
|
o(i, {
|
|
9204
9204
|
modelValue: e.queryParams.query.code,
|
|
9205
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
9205
|
+
"onUpdate:modelValue": t[1] || (t[1] = (w) => e.queryParams.query.code = w),
|
|
9206
9206
|
placeholder: "请输入字典编码"
|
|
9207
9207
|
}, null, 8, ["modelValue"])
|
|
9208
9208
|
]),
|
|
@@ -9270,8 +9270,8 @@ function Bl(e, t, r, l, u, g) {
|
|
|
9270
9270
|
prop: "remark",
|
|
9271
9271
|
label: "备注"
|
|
9272
9272
|
}, {
|
|
9273
|
-
default: n((
|
|
9274
|
-
c(R(
|
|
9273
|
+
default: n((w) => [
|
|
9274
|
+
c(R(w.row.remark || "-"), 1)
|
|
9275
9275
|
]),
|
|
9276
9276
|
_: 1
|
|
9277
9277
|
}),
|
|
@@ -9279,8 +9279,8 @@ function Bl(e, t, r, l, u, g) {
|
|
|
9279
9279
|
prop: "createTime",
|
|
9280
9280
|
label: "创建时间"
|
|
9281
9281
|
}, {
|
|
9282
|
-
default: n((
|
|
9283
|
-
c(R(
|
|
9282
|
+
default: n((w) => [
|
|
9283
|
+
c(R(w.row.createTime ? e.dayjs(w.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "-"), 1)
|
|
9284
9284
|
]),
|
|
9285
9285
|
_: 1
|
|
9286
9286
|
}),
|
|
@@ -9290,31 +9290,31 @@ function Bl(e, t, r, l, u, g) {
|
|
|
9290
9290
|
fixed: "right",
|
|
9291
9291
|
width: "220"
|
|
9292
9292
|
}, {
|
|
9293
|
-
default: n((
|
|
9293
|
+
default: n((w) => [
|
|
9294
9294
|
o(p, {
|
|
9295
9295
|
type: "primary",
|
|
9296
9296
|
text: "",
|
|
9297
|
-
onClick: (D) => e.viewDict(
|
|
9297
|
+
onClick: (D) => e.viewDict(w.row)
|
|
9298
9298
|
}, {
|
|
9299
9299
|
default: n(() => [...t[5] || (t[5] = [
|
|
9300
9300
|
c("查看 ", -1)
|
|
9301
9301
|
])]),
|
|
9302
9302
|
_: 1
|
|
9303
9303
|
}, 8, ["onClick"]),
|
|
9304
|
-
o(
|
|
9304
|
+
o(g, { direction: "vertical" }),
|
|
9305
9305
|
o(p, {
|
|
9306
9306
|
type: "primary",
|
|
9307
9307
|
text: "",
|
|
9308
|
-
onClick: (D) => e.editDict(
|
|
9308
|
+
onClick: (D) => e.editDict(w.row)
|
|
9309
9309
|
}, {
|
|
9310
9310
|
default: n(() => [...t[6] || (t[6] = [
|
|
9311
9311
|
c("编辑 ", -1)
|
|
9312
9312
|
])]),
|
|
9313
9313
|
_: 1
|
|
9314
9314
|
}, 8, ["onClick"]),
|
|
9315
|
-
o(
|
|
9315
|
+
o(g, { direction: "vertical" }),
|
|
9316
9316
|
o(C, {
|
|
9317
|
-
disabled: !e.isRetainYes(
|
|
9317
|
+
disabled: !e.isRetainYes(w.row.retainFlag),
|
|
9318
9318
|
content: "系统保留数据字典禁止删除",
|
|
9319
9319
|
placement: "top"
|
|
9320
9320
|
}, {
|
|
@@ -9323,8 +9323,8 @@ function Bl(e, t, r, l, u, g) {
|
|
|
9323
9323
|
o(p, {
|
|
9324
9324
|
type: "primary",
|
|
9325
9325
|
text: "",
|
|
9326
|
-
disabled: e.isRetainYes(
|
|
9327
|
-
onClick: (D) => e.deleteDict(
|
|
9326
|
+
disabled: e.isRetainYes(w.row.retainFlag),
|
|
9327
|
+
onClick: (D) => e.deleteDict(w.row)
|
|
9328
9328
|
}, {
|
|
9329
9329
|
default: n(() => [...t[7] || (t[7] = [
|
|
9330
9330
|
c("删除", -1)
|
|
@@ -9365,7 +9365,7 @@ function Bl(e, t, r, l, u, g) {
|
|
|
9365
9365
|
}, null, 8, ["onReload"])
|
|
9366
9366
|
]);
|
|
9367
9367
|
}
|
|
9368
|
-
const
|
|
9368
|
+
const qs = /* @__PURE__ */ z(Yl, [["render", Bl], ["__scopeId", "data-v-cccc5ca6"]]), Kl = Y({
|
|
9369
9369
|
name: "TreeSelect",
|
|
9370
9370
|
props: {
|
|
9371
9371
|
modelValue: {
|
|
@@ -9384,7 +9384,7 @@ const Is = /* @__PURE__ */ z(Yl, [["render", Bl], ["__scopeId", "data-v-cccc5ca6
|
|
|
9384
9384
|
}
|
|
9385
9385
|
}
|
|
9386
9386
|
});
|
|
9387
|
-
function Hl(e, t, r, l, u,
|
|
9387
|
+
function Hl(e, t, r, l, u, y) {
|
|
9388
9388
|
const s = a("el-option"), i = a("el-select");
|
|
9389
9389
|
return m(), _(i, {
|
|
9390
9390
|
"model-value": e.modelValue,
|
|
@@ -9393,7 +9393,7 @@ function Hl(e, t, r, l, u, g) {
|
|
|
9393
9393
|
onChange: e.handleChange
|
|
9394
9394
|
}, {
|
|
9395
9395
|
default: n(() => [
|
|
9396
|
-
(m(!0), V(
|
|
9396
|
+
(m(!0), V(ie, null, de(e.data, (d) => (m(), _(s, {
|
|
9397
9397
|
key: d.id,
|
|
9398
9398
|
label: d.title,
|
|
9399
9399
|
value: d.id,
|
|
@@ -9447,7 +9447,7 @@ const Ql = /* @__PURE__ */ z(Kl, [["render", Hl]]), Gl = Y({
|
|
|
9447
9447
|
});
|
|
9448
9448
|
},
|
|
9449
9449
|
getTreeList() {
|
|
9450
|
-
|
|
9450
|
+
L().system.category.tree({}).then((e) => {
|
|
9451
9451
|
this.treeList = e, (!this.treeList || this.treeList.length === 0) && (this.treeList = [{ id: "0", title: "一级分类", children: [] }]), this.id && this.setDisabledSelect(this.treeList);
|
|
9452
9452
|
});
|
|
9453
9453
|
},
|
|
@@ -9473,7 +9473,7 @@ const Ql = /* @__PURE__ */ z(Kl, [["render", Hl]]), Gl = Y({
|
|
|
9473
9473
|
if (e) {
|
|
9474
9474
|
const t = this.$refs.xdmpDrawer;
|
|
9475
9475
|
t.showLoading();
|
|
9476
|
-
const r =
|
|
9476
|
+
const r = L().system.category;
|
|
9477
9477
|
(this.mode ? r.update(this.id, this.form) : r.add(this.form)).then(() => {
|
|
9478
9478
|
t.hideLoading(), q.success(this.mode ? "编辑成功" : "新建成功"), t.cancelForm(), this.$emit("reload");
|
|
9479
9479
|
}).catch(() => {
|
|
@@ -9490,10 +9490,10 @@ const Ql = /* @__PURE__ */ z(Kl, [["render", Hl]]), Gl = Y({
|
|
|
9490
9490
|
}
|
|
9491
9491
|
}
|
|
9492
9492
|
});
|
|
9493
|
-
function Jl(e, t, r, l, u,
|
|
9494
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("treeSelect"), p = a("el-form"),
|
|
9493
|
+
function Jl(e, t, r, l, u, y) {
|
|
9494
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("treeSelect"), p = a("el-form"), b = a("xdmpDrawer"), f = M("emoji");
|
|
9495
9495
|
return m(), V("div", null, [
|
|
9496
|
-
o(
|
|
9496
|
+
o(b, {
|
|
9497
9497
|
ref: "xdmpDrawer",
|
|
9498
9498
|
title: e.title,
|
|
9499
9499
|
size: e.size,
|
|
@@ -9515,9 +9515,9 @@ function Jl(e, t, r, l, u, g) {
|
|
|
9515
9515
|
label: "分类名称"
|
|
9516
9516
|
}, {
|
|
9517
9517
|
default: n(() => [
|
|
9518
|
-
|
|
9518
|
+
E(o(s, {
|
|
9519
9519
|
modelValue: e.form.name,
|
|
9520
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
9520
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => e.form.name = g),
|
|
9521
9521
|
placeholder: "请输入分类名称",
|
|
9522
9522
|
clearable: ""
|
|
9523
9523
|
}, null, 8, ["modelValue"]), [
|
|
@@ -9531,9 +9531,9 @@ function Jl(e, t, r, l, u, g) {
|
|
|
9531
9531
|
label: "分类编码"
|
|
9532
9532
|
}, {
|
|
9533
9533
|
default: n(() => [
|
|
9534
|
-
|
|
9534
|
+
E(o(s, {
|
|
9535
9535
|
modelValue: e.form.code,
|
|
9536
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
9536
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.form.code = g),
|
|
9537
9537
|
placeholder: "请输入分类编码",
|
|
9538
9538
|
clearable: ""
|
|
9539
9539
|
}, null, 8, ["modelValue"]), [
|
|
@@ -9549,7 +9549,7 @@ function Jl(e, t, r, l, u, g) {
|
|
|
9549
9549
|
default: n(() => [
|
|
9550
9550
|
o(d, {
|
|
9551
9551
|
modelValue: e.form.parentId,
|
|
9552
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
9552
|
+
"onUpdate:modelValue": t[2] || (t[2] = (g) => e.form.parentId = g),
|
|
9553
9553
|
data: e.treeList,
|
|
9554
9554
|
onChangeTree: e.updateParentId
|
|
9555
9555
|
}, null, 8, ["modelValue", "data", "onChangeTree"])
|
|
@@ -9561,9 +9561,9 @@ function Jl(e, t, r, l, u, g) {
|
|
|
9561
9561
|
label: "排序"
|
|
9562
9562
|
}, {
|
|
9563
9563
|
default: n(() => [
|
|
9564
|
-
|
|
9564
|
+
E(o(s, {
|
|
9565
9565
|
modelValue: e.form.sortOrder,
|
|
9566
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
9566
|
+
"onUpdate:modelValue": t[3] || (t[3] = (g) => e.form.sortOrder = g),
|
|
9567
9567
|
placeholder: "请输入排序值",
|
|
9568
9568
|
clearable: ""
|
|
9569
9569
|
}, null, 8, ["modelValue"]), [
|
|
@@ -9611,9 +9611,9 @@ const Wl = /* @__PURE__ */ z(Gl, [["render", Jl]]), Zl = Y({
|
|
|
9611
9611
|
},
|
|
9612
9612
|
methods: {
|
|
9613
9613
|
dayjs: O,
|
|
9614
|
-
checkPermission:
|
|
9614
|
+
checkPermission: se,
|
|
9615
9615
|
getCategoryTree() {
|
|
9616
|
-
this.treeLoading = !0,
|
|
9616
|
+
this.treeLoading = !0, L().system.category.tree(this.treeQuery).then((e) => {
|
|
9617
9617
|
this.treeLoading = !1, this.categoryTree = e;
|
|
9618
9618
|
}).catch(() => {
|
|
9619
9619
|
this.treeLoading = !1;
|
|
@@ -9626,7 +9626,7 @@ const Wl = /* @__PURE__ */ z(Gl, [["render", Jl]]), Zl = Y({
|
|
|
9626
9626
|
this.selectedNode = e, this.listQuery.query.keyword = "", this.getCategoryList();
|
|
9627
9627
|
},
|
|
9628
9628
|
getCategoryList() {
|
|
9629
|
-
this.tableLoading = !0,
|
|
9629
|
+
this.tableLoading = !0, L().system.category.page(this.listQuery).then((e) => {
|
|
9630
9630
|
this.tableLoading = !1, this.list = e.list, this.total = e.total;
|
|
9631
9631
|
}).catch(() => {
|
|
9632
9632
|
this.tableLoading = !1;
|
|
@@ -9658,7 +9658,7 @@ const Wl = /* @__PURE__ */ z(Gl, [["render", Jl]]), Zl = Y({
|
|
|
9658
9658
|
cancelButtonText: "取消",
|
|
9659
9659
|
type: "warning"
|
|
9660
9660
|
}).then(() => {
|
|
9661
|
-
|
|
9661
|
+
L().system.category.delete(e.id).then(() => {
|
|
9662
9662
|
q.success("删除成功"), this.getCategoryTree();
|
|
9663
9663
|
});
|
|
9664
9664
|
});
|
|
@@ -9671,9 +9671,9 @@ const Wl = /* @__PURE__ */ z(Gl, [["render", Jl]]), Zl = Y({
|
|
|
9671
9671
|
}
|
|
9672
9672
|
}
|
|
9673
9673
|
}), Xl = { class: "category_tree" }, xl = { class: "tree-search" }, ei = { class: "tree-operate" }, ti = { class: "custom-tree-node" }, oi = { class: "tree-node-label" }, ni = { class: "searchInputCustomStyle" };
|
|
9674
|
-
function ri(e, t, r, l, u,
|
|
9675
|
-
const s = a("pageDesc"), i = a("el-button"), d = a("el-input"), p = a("svg-icon"),
|
|
9676
|
-
return m(), V(
|
|
9674
|
+
function ri(e, t, r, l, u, y) {
|
|
9675
|
+
const s = a("pageDesc"), i = a("el-button"), d = a("el-input"), p = a("svg-icon"), b = a("el-tree"), f = a("el-form-item"), g = a("el-form"), C = a("el-table-column"), k = a("el-divider"), v = a("el-table"), S = a("el-pagination"), U = a("ListReport"), I = a("FlexibleColumn"), w = a("categoryDrawer"), D = M("loading");
|
|
9676
|
+
return m(), V(ie, null, [
|
|
9677
9677
|
o(s, { desc: "分类管理,支持系统分类信息的维护管理。" }),
|
|
9678
9678
|
o(I, { class: "category_wrapper" }, {
|
|
9679
9679
|
begin: n(() => [
|
|
@@ -9712,7 +9712,7 @@ function ri(e, t, r, l, u, g) {
|
|
|
9712
9712
|
_: 1
|
|
9713
9713
|
})) : P("", !0)
|
|
9714
9714
|
]),
|
|
9715
|
-
|
|
9715
|
+
E((m(), _(b, {
|
|
9716
9716
|
ref: "categoryTreeRef",
|
|
9717
9717
|
data: e.categoryTree,
|
|
9718
9718
|
"node-key": "id",
|
|
@@ -9745,9 +9745,9 @@ function ri(e, t, r, l, u, g) {
|
|
|
9745
9745
|
])
|
|
9746
9746
|
]),
|
|
9747
9747
|
end: n(() => [
|
|
9748
|
-
|
|
9748
|
+
E((m(), _(U, { class: "operate_block" }, {
|
|
9749
9749
|
filter: n(() => [
|
|
9750
|
-
o(
|
|
9750
|
+
o(g, {
|
|
9751
9751
|
ref: "searchForm",
|
|
9752
9752
|
inline: !0,
|
|
9753
9753
|
model: e.listQuery,
|
|
@@ -9903,13 +9903,13 @@ function ri(e, t, r, l, u, g) {
|
|
|
9903
9903
|
]),
|
|
9904
9904
|
_: 1
|
|
9905
9905
|
}),
|
|
9906
|
-
o(
|
|
9906
|
+
o(w, {
|
|
9907
9907
|
ref: "categoryDrawer",
|
|
9908
9908
|
onReload: e.getCategoryTree
|
|
9909
9909
|
}, null, 8, ["onReload"])
|
|
9910
9910
|
], 64);
|
|
9911
9911
|
}
|
|
9912
|
-
const
|
|
9912
|
+
const Os = /* @__PURE__ */ z(Zl, [["render", ri], ["__scopeId", "data-v-f799784a"]]), ai = Y({
|
|
9913
9913
|
components: {
|
|
9914
9914
|
xdmpDrawer: ee
|
|
9915
9915
|
},
|
|
@@ -9951,7 +9951,7 @@ const Vs = /* @__PURE__ */ z(Zl, [["render", ri], ["__scopeId", "data-v-f799784a
|
|
|
9951
9951
|
if (e) {
|
|
9952
9952
|
const t = this.$refs.xdmpDrawer;
|
|
9953
9953
|
t.showLoading();
|
|
9954
|
-
const r =
|
|
9954
|
+
const r = L().system.label;
|
|
9955
9955
|
(this.isEdit ? r.update(this.form.id, this.form) : r.add(this.form)).then(() => {
|
|
9956
9956
|
q.success("操作成功!"), this.$emit("reload"), this.$nextTick(() => {
|
|
9957
9957
|
this.handleCancel(), t.cancelForm();
|
|
@@ -9975,8 +9975,8 @@ const Vs = /* @__PURE__ */ z(Zl, [["render", ri], ["__scopeId", "data-v-f799784a
|
|
|
9975
9975
|
}
|
|
9976
9976
|
}
|
|
9977
9977
|
});
|
|
9978
|
-
function li(e, t, r, l, u,
|
|
9979
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"),
|
|
9978
|
+
function li(e, t, r, l, u, y) {
|
|
9979
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"), b = a("el-form"), f = a("xdmpDrawer"), g = M("emoji");
|
|
9980
9980
|
return m(), _(f, {
|
|
9981
9981
|
ref: "xdmpDrawer",
|
|
9982
9982
|
title: e.title,
|
|
@@ -9985,7 +9985,7 @@ function li(e, t, r, l, u, g) {
|
|
|
9985
9985
|
onCancel: e.handleCancel
|
|
9986
9986
|
}, {
|
|
9987
9987
|
default: n(() => [
|
|
9988
|
-
o(
|
|
9988
|
+
o(b, {
|
|
9989
9989
|
ref: "addForm",
|
|
9990
9990
|
"label-position": "left",
|
|
9991
9991
|
"label-width": "100px",
|
|
@@ -9998,13 +9998,13 @@ function li(e, t, r, l, u, g) {
|
|
|
9998
9998
|
prop: "name"
|
|
9999
9999
|
}, {
|
|
10000
10000
|
default: n(() => [
|
|
10001
|
-
|
|
10001
|
+
E(o(s, {
|
|
10002
10002
|
modelValue: e.form.name,
|
|
10003
10003
|
"onUpdate:modelValue": t[0] || (t[0] = (C) => e.form.name = C),
|
|
10004
10004
|
disabled: e.isDetial,
|
|
10005
10005
|
placeholder: "请输入标签名称"
|
|
10006
10006
|
}, null, 8, ["modelValue", "disabled"]), [
|
|
10007
|
-
[
|
|
10007
|
+
[g]
|
|
10008
10008
|
])
|
|
10009
10009
|
]),
|
|
10010
10010
|
_: 1
|
|
@@ -10014,13 +10014,13 @@ function li(e, t, r, l, u, g) {
|
|
|
10014
10014
|
prop: "value"
|
|
10015
10015
|
}, {
|
|
10016
10016
|
default: n(() => [
|
|
10017
|
-
|
|
10017
|
+
E(o(s, {
|
|
10018
10018
|
modelValue: e.form.value,
|
|
10019
10019
|
"onUpdate:modelValue": t[1] || (t[1] = (C) => e.form.value = C),
|
|
10020
10020
|
disabled: e.isDetial || e.isEdit,
|
|
10021
10021
|
placeholder: "请输入标签key"
|
|
10022
10022
|
}, null, 8, ["modelValue", "disabled"]), [
|
|
10023
|
-
[
|
|
10023
|
+
[g]
|
|
10024
10024
|
])
|
|
10025
10025
|
]),
|
|
10026
10026
|
_: 1
|
|
@@ -10063,7 +10063,7 @@ function li(e, t, r, l, u, g) {
|
|
|
10063
10063
|
prop: "comment"
|
|
10064
10064
|
}, {
|
|
10065
10065
|
default: n(() => [
|
|
10066
|
-
|
|
10066
|
+
E(o(s, {
|
|
10067
10067
|
modelValue: e.form.comment,
|
|
10068
10068
|
"onUpdate:modelValue": t[3] || (t[3] = (C) => e.form.comment = C),
|
|
10069
10069
|
disabled: e.isDetial,
|
|
@@ -10072,7 +10072,7 @@ function li(e, t, r, l, u, g) {
|
|
|
10072
10072
|
maxlength: "50",
|
|
10073
10073
|
"show-word-limit": ""
|
|
10074
10074
|
}, null, 8, ["modelValue", "disabled"]), [
|
|
10075
|
-
[
|
|
10075
|
+
[g]
|
|
10076
10076
|
])
|
|
10077
10077
|
]),
|
|
10078
10078
|
_: 1
|
|
@@ -10116,7 +10116,7 @@ const ii = /* @__PURE__ */ z(ai, [["render", li]]), si = Y({
|
|
|
10116
10116
|
},
|
|
10117
10117
|
methods: {
|
|
10118
10118
|
dayjs: O,
|
|
10119
|
-
checkPermission:
|
|
10119
|
+
checkPermission: se,
|
|
10120
10120
|
init() {
|
|
10121
10121
|
var t;
|
|
10122
10122
|
const e = ((t = this.$route) == null ? void 0 : t.query) || {};
|
|
@@ -10126,7 +10126,7 @@ const ii = /* @__PURE__ */ z(ai, [["render", li]]), si = Y({
|
|
|
10126
10126
|
this.loading = !0, Object.keys(this.queryParams.query).forEach((e) => {
|
|
10127
10127
|
const t = this.queryParams.query[e];
|
|
10128
10128
|
(t == null || t === "") && delete this.queryParams.query[e];
|
|
10129
|
-
}),
|
|
10129
|
+
}), L().system.label.page(this.queryParams).then((e) => {
|
|
10130
10130
|
this.loading = !1, this.dataList = e.list, this.queryParams.pageNo = e.pageNo, this.queryParams.total = e.total;
|
|
10131
10131
|
}).catch((e) => {
|
|
10132
10132
|
this.loading = !1, q.error(e);
|
|
@@ -10165,7 +10165,7 @@ const ii = /* @__PURE__ */ z(ai, [["render", li]]), si = Y({
|
|
|
10165
10165
|
cancelButtonText: "取消",
|
|
10166
10166
|
type: "warning"
|
|
10167
10167
|
}).then(() => {
|
|
10168
|
-
|
|
10168
|
+
L().system.label.delete(e).then(() => {
|
|
10169
10169
|
q.success("删除成功"), this.getList();
|
|
10170
10170
|
});
|
|
10171
10171
|
});
|
|
@@ -10184,46 +10184,46 @@ const ii = /* @__PURE__ */ z(ai, [["render", li]]), si = Y({
|
|
|
10184
10184
|
key: 1,
|
|
10185
10185
|
class: "obj-btn-items"
|
|
10186
10186
|
};
|
|
10187
|
-
function hi(e, t, r, l, u,
|
|
10188
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-option"),
|
|
10187
|
+
function hi(e, t, r, l, u, y) {
|
|
10188
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-option"), b = a("el-select"), f = a("el-button"), g = a("el-form"), C = a("el-table-column"), k = a("el-divider"), v = a("el-table"), S = a("el-pagination"), U = a("ListReport"), I = a("addTag"), w = M("emoji"), D = M("loading");
|
|
10189
10189
|
return m(), V("div", di, [
|
|
10190
10190
|
o(s, { desc: "统一管理平台全部标签,支持为分组、产品、设备打标,实现资源快速分类检索。" }),
|
|
10191
10191
|
o(U, { class: "device_block" }, {
|
|
10192
10192
|
filter: n(() => [
|
|
10193
|
-
o(
|
|
10193
|
+
o(g, {
|
|
10194
10194
|
inline: !0,
|
|
10195
10195
|
class: "searchInputCustomStyle"
|
|
10196
10196
|
}, {
|
|
10197
10197
|
default: n(() => [
|
|
10198
10198
|
o(d, { label: "标签名称" }, {
|
|
10199
10199
|
default: n(() => [
|
|
10200
|
-
|
|
10200
|
+
E(o(i, {
|
|
10201
10201
|
modelValue: e.queryParams.query.name,
|
|
10202
10202
|
"onUpdate:modelValue": t[0] || (t[0] = (h) => e.queryParams.query.name = h),
|
|
10203
10203
|
placeholder: "请输入标签名称",
|
|
10204
10204
|
maxlength: "32"
|
|
10205
10205
|
}, null, 8, ["modelValue"]), [
|
|
10206
|
-
[
|
|
10206
|
+
[w]
|
|
10207
10207
|
])
|
|
10208
10208
|
]),
|
|
10209
10209
|
_: 1
|
|
10210
10210
|
}),
|
|
10211
10211
|
o(d, { label: "标签key" }, {
|
|
10212
10212
|
default: n(() => [
|
|
10213
|
-
|
|
10213
|
+
E(o(i, {
|
|
10214
10214
|
modelValue: e.queryParams.query.value,
|
|
10215
10215
|
"onUpdate:modelValue": t[1] || (t[1] = (h) => e.queryParams.query.value = h),
|
|
10216
10216
|
placeholder: "请输入标签key",
|
|
10217
10217
|
maxlength: "32"
|
|
10218
10218
|
}, null, 8, ["modelValue"]), [
|
|
10219
|
-
[
|
|
10219
|
+
[w]
|
|
10220
10220
|
])
|
|
10221
10221
|
]),
|
|
10222
10222
|
_: 1
|
|
10223
10223
|
}),
|
|
10224
10224
|
o(d, { label: "标签类型" }, {
|
|
10225
10225
|
default: n(() => [
|
|
10226
|
-
o(
|
|
10226
|
+
o(b, {
|
|
10227
10227
|
modelValue: e.queryParams.query.type,
|
|
10228
10228
|
"onUpdate:modelValue": t[2] || (t[2] = (h) => e.queryParams.query.type = h),
|
|
10229
10229
|
placeholder: "请选择标签类型"
|
|
@@ -10295,7 +10295,7 @@ function hi(e, t, r, l, u, g) {
|
|
|
10295
10295
|
])
|
|
10296
10296
|
]),
|
|
10297
10297
|
view: n(() => [
|
|
10298
|
-
|
|
10298
|
+
E((m(), _(v, { data: e.dataList }, {
|
|
10299
10299
|
default: n(() => [
|
|
10300
10300
|
o(C, {
|
|
10301
10301
|
prop: "name",
|
|
@@ -10397,7 +10397,7 @@ function hi(e, t, r, l, u, g) {
|
|
|
10397
10397
|
}, null, 8, ["onReload"])
|
|
10398
10398
|
]);
|
|
10399
10399
|
}
|
|
10400
|
-
const
|
|
10400
|
+
const As = /* @__PURE__ */ z(si, [["render", hi], ["__scopeId", "data-v-fccf10df"]]), et = {}, fi = Y({
|
|
10401
10401
|
components: {
|
|
10402
10402
|
xdmpDrawer: ee,
|
|
10403
10403
|
FileUpload: $o
|
|
@@ -10433,7 +10433,7 @@ const qs = /* @__PURE__ */ z(si, [["render", hi], ["__scopeId", "data-v-fccf10df
|
|
|
10433
10433
|
async init(e, t) {
|
|
10434
10434
|
if (this.modeType = t, this.title = t == "edit" ? "编辑文件" : "新建文件", this.pendingFile = null, t == "edit") {
|
|
10435
10435
|
this.fileId = e.id, this.binaryForm.fileId = e.id;
|
|
10436
|
-
const r = await
|
|
10436
|
+
const r = await L().system.binary.query(e.id);
|
|
10437
10437
|
this.binaryForm.name = r.name, this.binaryForm.contentType = r.contentType, this.binaryForm.fileName = r.name, this.binaryForm.accessFlag = r.accessFlag || "0", this.originalObjectName = r.objectName || "", this.originalPath = r.path || "", this.binaryForm.objectName = this.originalObjectName, this.binaryForm.path = this.originalPath, this.syncObjectName();
|
|
10438
10438
|
} else
|
|
10439
10439
|
this.originalObjectName = "", this.originalPath = "", this.binaryForm = this.emptyForm();
|
|
@@ -10452,7 +10452,7 @@ const qs = /* @__PURE__ */ z(si, [["render", hi], ["__scopeId", "data-v-fccf10df
|
|
|
10452
10452
|
if (e) {
|
|
10453
10453
|
const t = this.$refs.xdmpDrawer;
|
|
10454
10454
|
t.showLoading();
|
|
10455
|
-
const r =
|
|
10455
|
+
const r = L().system.binary, l = {
|
|
10456
10456
|
name: this.binaryForm.name.split(".")[0],
|
|
10457
10457
|
objectName: this.binaryForm.objectName || this.binaryForm.name,
|
|
10458
10458
|
accessFlag: this.binaryForm.accessFlag
|
|
@@ -10499,8 +10499,8 @@ const qs = /* @__PURE__ */ z(si, [["render", hi], ["__scopeId", "data-v-fccf10df
|
|
|
10499
10499
|
}
|
|
10500
10500
|
}
|
|
10501
10501
|
});
|
|
10502
|
-
function gi(e, t, r, l, u,
|
|
10503
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-radio"), p = a("el-radio-group"),
|
|
10502
|
+
function gi(e, t, r, l, u, y) {
|
|
10503
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-radio"), p = a("el-radio-group"), b = a("el-button"), f = a("FileUpload"), g = a("el-form"), C = a("xdmpDrawer"), k = M("loading");
|
|
10504
10504
|
return m(), _(C, {
|
|
10505
10505
|
ref: "xdmpDrawer",
|
|
10506
10506
|
title: e.title,
|
|
@@ -10510,8 +10510,8 @@ function gi(e, t, r, l, u, g) {
|
|
|
10510
10510
|
onSubmit: e.submit
|
|
10511
10511
|
}, {
|
|
10512
10512
|
"xdmp-drawer-body": n(() => [
|
|
10513
|
-
|
|
10514
|
-
o(
|
|
10513
|
+
E((m(), V("div", null, [
|
|
10514
|
+
o(g, {
|
|
10515
10515
|
ref: "binaryFormRef",
|
|
10516
10516
|
model: e.binaryForm,
|
|
10517
10517
|
rules: e.rules,
|
|
@@ -10612,7 +10612,7 @@ function gi(e, t, r, l, u, g) {
|
|
|
10612
10612
|
onClear: e.onFileClear
|
|
10613
10613
|
}, {
|
|
10614
10614
|
default: n(() => [
|
|
10615
|
-
o(
|
|
10615
|
+
o(b, {
|
|
10616
10616
|
type: "primary",
|
|
10617
10617
|
icon: "Upload"
|
|
10618
10618
|
}, {
|
|
@@ -10661,9 +10661,9 @@ const yi = /* @__PURE__ */ z(fi, [["render", gi]]), bi = Y({
|
|
|
10661
10661
|
},
|
|
10662
10662
|
methods: {
|
|
10663
10663
|
dayjs: O,
|
|
10664
|
-
checkPermission:
|
|
10664
|
+
checkPermission: se,
|
|
10665
10665
|
getBinaryList() {
|
|
10666
|
-
this.loading = !0, this.imgLoading = !0,
|
|
10666
|
+
this.loading = !0, this.imgLoading = !0, L().system.binary.page(this.listQuery).then((e) => {
|
|
10667
10667
|
this.loading = !1, this.list = e.list, this.total = e.total, this.list.forEach((t) => {
|
|
10668
10668
|
t.contentType && t.contentType.includes("image") && lt(t.id).then((r) => {
|
|
10669
10669
|
t.path = window.URL.createObjectURL(r), this.imgLoading = !1;
|
|
@@ -10700,7 +10700,7 @@ const yi = /* @__PURE__ */ z(fi, [["render", gi]]), bi = Y({
|
|
|
10700
10700
|
cancelButtonText: "取消",
|
|
10701
10701
|
type: "warning"
|
|
10702
10702
|
}).then(() => {
|
|
10703
|
-
|
|
10703
|
+
L().system.binary.delete(e).then(() => {
|
|
10704
10704
|
this.listQuery.pageNo = 1, this.getBinaryList(), q.success("删除成功");
|
|
10705
10705
|
}).catch((t) => {
|
|
10706
10706
|
console.error(t);
|
|
@@ -10715,13 +10715,13 @@ const yi = /* @__PURE__ */ z(fi, [["render", gi]]), bi = Y({
|
|
|
10715
10715
|
key: 1,
|
|
10716
10716
|
class: "btn-item"
|
|
10717
10717
|
};
|
|
10718
|
-
function ki(e, t, r, l, u,
|
|
10719
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"),
|
|
10718
|
+
function ki(e, t, r, l, u, y) {
|
|
10719
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"), b = a("el-form"), f = a("el-table-column"), g = a("el-image"), C = a("el-text"), k = a("el-divider"), v = a("el-table"), S = a("el-pagination"), U = a("ListReport"), I = a("binaryDrawer"), w = M("emoji"), D = M("loading");
|
|
10720
10720
|
return m(), V("div", _i, [
|
|
10721
10721
|
o(s, { desc: "文件管理,支持文件的上传、预览和删除操作。" }),
|
|
10722
|
-
|
|
10722
|
+
E((m(), _(U, { class: "binary_block" }, {
|
|
10723
10723
|
filter: n(() => [
|
|
10724
|
-
o(
|
|
10724
|
+
o(b, {
|
|
10725
10725
|
ref: "searchForm",
|
|
10726
10726
|
inline: !0,
|
|
10727
10727
|
model: e.listQuery,
|
|
@@ -10734,14 +10734,14 @@ function ki(e, t, r, l, u, g) {
|
|
|
10734
10734
|
prop: "name"
|
|
10735
10735
|
}, {
|
|
10736
10736
|
default: n(() => [
|
|
10737
|
-
|
|
10737
|
+
E(o(i, {
|
|
10738
10738
|
modelValue: e.listQuery.query.name,
|
|
10739
10739
|
"onUpdate:modelValue": t[0] || (t[0] = (h) => e.listQuery.query.name = h),
|
|
10740
10740
|
placeholder: "请输入文件名称",
|
|
10741
10741
|
clearable: "",
|
|
10742
10742
|
maxlength: "12"
|
|
10743
10743
|
}, null, 8, ["modelValue"]), [
|
|
10744
|
-
[
|
|
10744
|
+
[w]
|
|
10745
10745
|
])
|
|
10746
10746
|
]),
|
|
10747
10747
|
_: 1
|
|
@@ -10833,7 +10833,7 @@ function ki(e, t, r, l, u, g) {
|
|
|
10833
10833
|
"min-width": "120"
|
|
10834
10834
|
}, {
|
|
10835
10835
|
default: n((h) => [
|
|
10836
|
-
|
|
10836
|
+
E(o(g, {
|
|
10837
10837
|
fit: "cover",
|
|
10838
10838
|
src: h.row.path,
|
|
10839
10839
|
"preview-src-list": [h.row.path],
|
|
@@ -10914,7 +10914,7 @@ function ki(e, t, r, l, u, g) {
|
|
|
10914
10914
|
}, null, 8, ["onReload"])
|
|
10915
10915
|
]);
|
|
10916
10916
|
}
|
|
10917
|
-
const
|
|
10917
|
+
const Ms = /* @__PURE__ */ z(bi, [["render", ki], ["__scopeId", "data-v-bc160baf"]]), vi = Y({
|
|
10918
10918
|
components: {
|
|
10919
10919
|
xdmpDrawer: ee
|
|
10920
10920
|
},
|
|
@@ -10949,7 +10949,7 @@ const Os = /* @__PURE__ */ z(bi, [["render", ki], ["__scopeId", "data-v-bc160baf
|
|
|
10949
10949
|
},
|
|
10950
10950
|
methods: {
|
|
10951
10951
|
async init(e, t) {
|
|
10952
|
-
this.title = t == "edit" ? "编辑公告" : "新建公告", this.modeType = t, this.modeType == "edit" ?
|
|
10952
|
+
this.title = t == "edit" ? "编辑公告" : "新建公告", this.modeType = t, this.modeType == "edit" ? L().system.notice.query(e.id).then((r) => {
|
|
10953
10953
|
this.noticeForm = r, this.time = [
|
|
10954
10954
|
O(r.startTime).format("YYYY-MM-DD HH:mm:ss"),
|
|
10955
10955
|
O(r.endTime).format("YYYY-MM-DD HH:mm:ss")
|
|
@@ -10969,7 +10969,7 @@ const Os = /* @__PURE__ */ z(bi, [["render", ki], ["__scopeId", "data-v-bc160baf
|
|
|
10969
10969
|
if (e) {
|
|
10970
10970
|
const t = this.$refs.xdmpDrawer;
|
|
10971
10971
|
t.showLoading();
|
|
10972
|
-
const r =
|
|
10972
|
+
const r = L().system.notice;
|
|
10973
10973
|
(this.modeType == "edit" ? r.update(this.noticeForm.id, this.noticeForm) : r.add(this.noticeForm)).then(() => {
|
|
10974
10974
|
t.hideLoading(), q.success(this.modeType == "edit" ? "修改成功" : "新建成功"), this.$emit("reload"), t.cancelForm();
|
|
10975
10975
|
}).catch(() => {
|
|
@@ -10983,9 +10983,9 @@ const Os = /* @__PURE__ */ z(bi, [["render", ki], ["__scopeId", "data-v-bc160baf
|
|
|
10983
10983
|
}
|
|
10984
10984
|
}
|
|
10985
10985
|
});
|
|
10986
|
-
function Di(e, t, r, l, u,
|
|
10987
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-date-picker"), p = a("el-form"),
|
|
10988
|
-
return m(), _(
|
|
10986
|
+
function Di(e, t, r, l, u, y) {
|
|
10987
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-date-picker"), p = a("el-form"), b = a("xdmpDrawer"), f = M("emoji"), g = M("loading");
|
|
10988
|
+
return m(), _(b, {
|
|
10989
10989
|
ref: "xdmpDrawer",
|
|
10990
10990
|
title: e.title,
|
|
10991
10991
|
"show-footer": !0,
|
|
@@ -10994,7 +10994,7 @@ function Di(e, t, r, l, u, g) {
|
|
|
10994
10994
|
onSubmit: e.submit
|
|
10995
10995
|
}, {
|
|
10996
10996
|
"xdmp-drawer-body": n(() => [
|
|
10997
|
-
|
|
10997
|
+
E((m(), V("div", null, [
|
|
10998
10998
|
o(p, {
|
|
10999
10999
|
ref: "noticeFormRef",
|
|
11000
11000
|
model: e.noticeForm,
|
|
@@ -11009,7 +11009,7 @@ function Di(e, t, r, l, u, g) {
|
|
|
11009
11009
|
prop: "title"
|
|
11010
11010
|
}, {
|
|
11011
11011
|
default: n(() => [
|
|
11012
|
-
|
|
11012
|
+
E(o(s, {
|
|
11013
11013
|
modelValue: e.noticeForm.title,
|
|
11014
11014
|
"onUpdate:modelValue": t[0] || (t[0] = (C) => e.noticeForm.title = C),
|
|
11015
11015
|
placeholder: "请输入公告名称",
|
|
@@ -11025,7 +11025,7 @@ function Di(e, t, r, l, u, g) {
|
|
|
11025
11025
|
prop: "content"
|
|
11026
11026
|
}, {
|
|
11027
11027
|
default: n(() => [
|
|
11028
|
-
|
|
11028
|
+
E(o(s, {
|
|
11029
11029
|
modelValue: e.noticeForm.content,
|
|
11030
11030
|
"onUpdate:modelValue": t[1] || (t[1] = (C) => e.noticeForm.content = C),
|
|
11031
11031
|
type: "textarea",
|
|
@@ -11061,7 +11061,7 @@ function Di(e, t, r, l, u, g) {
|
|
|
11061
11061
|
_: 1
|
|
11062
11062
|
}, 8, ["model", "rules"])
|
|
11063
11063
|
])), [
|
|
11064
|
-
[
|
|
11064
|
+
[g, e.loading]
|
|
11065
11065
|
])
|
|
11066
11066
|
]),
|
|
11067
11067
|
_: 1
|
|
@@ -11093,11 +11093,11 @@ const $i = /* @__PURE__ */ z(vi, [["render", Di]]), Ti = Y({
|
|
|
11093
11093
|
},
|
|
11094
11094
|
methods: {
|
|
11095
11095
|
dayjs: O,
|
|
11096
|
-
checkPermission:
|
|
11096
|
+
checkPermission: se,
|
|
11097
11097
|
async getNoticeList() {
|
|
11098
11098
|
this.loading = !0;
|
|
11099
11099
|
try {
|
|
11100
|
-
const e = await
|
|
11100
|
+
const e = await L().system.notice.page(this.listQuery);
|
|
11101
11101
|
this.loading = !1, this.list = e.list, this.total = e.total;
|
|
11102
11102
|
} catch (e) {
|
|
11103
11103
|
this.loading = !1, console.error(e);
|
|
@@ -11130,7 +11130,7 @@ const $i = /* @__PURE__ */ z(vi, [["render", Di]]), Ti = Y({
|
|
|
11130
11130
|
cancelButtonText: "取消",
|
|
11131
11131
|
type: "warning"
|
|
11132
11132
|
}).then(() => {
|
|
11133
|
-
|
|
11133
|
+
L().system.notice.delete(e.id).then(() => {
|
|
11134
11134
|
this.listQuery.pageNo = 1, this.getNoticeList(), q.success("删除成功");
|
|
11135
11135
|
}).catch((t) => {
|
|
11136
11136
|
console.error(t);
|
|
@@ -11139,13 +11139,13 @@ const $i = /* @__PURE__ */ z(vi, [["render", Di]]), Ti = Y({
|
|
|
11139
11139
|
}
|
|
11140
11140
|
}
|
|
11141
11141
|
}), Si = { class: "notice_wrapper" };
|
|
11142
|
-
function Fi(e, t, r, l, u,
|
|
11143
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"),
|
|
11142
|
+
function Fi(e, t, r, l, u, y) {
|
|
11143
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"), b = a("el-form"), f = a("el-table-column"), g = a("el-divider"), C = a("el-table"), k = a("el-pagination"), v = a("ListReport"), S = a("noticeDrawer"), U = M("emoji"), I = M("loading");
|
|
11144
11144
|
return m(), V("div", Si, [
|
|
11145
11145
|
o(s, { desc: "公告管理,支持系统公告的增删改查。" }),
|
|
11146
|
-
|
|
11146
|
+
E((m(), _(v, { class: "notice_block" }, {
|
|
11147
11147
|
filter: n(() => [
|
|
11148
|
-
o(
|
|
11148
|
+
o(b, {
|
|
11149
11149
|
ref: "searchForm",
|
|
11150
11150
|
inline: !0,
|
|
11151
11151
|
model: e.listQuery,
|
|
@@ -11158,9 +11158,9 @@ function Fi(e, t, r, l, u, g) {
|
|
|
11158
11158
|
prop: "title"
|
|
11159
11159
|
}, {
|
|
11160
11160
|
default: n(() => [
|
|
11161
|
-
|
|
11161
|
+
E(o(i, {
|
|
11162
11162
|
modelValue: e.listQuery.query.title,
|
|
11163
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
11163
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => e.listQuery.query.title = w),
|
|
11164
11164
|
placeholder: "请输入公告标题",
|
|
11165
11165
|
clearable: "",
|
|
11166
11166
|
maxlength: "12"
|
|
@@ -11175,9 +11175,9 @@ function Fi(e, t, r, l, u, g) {
|
|
|
11175
11175
|
prop: "content"
|
|
11176
11176
|
}, {
|
|
11177
11177
|
default: n(() => [
|
|
11178
|
-
|
|
11178
|
+
E(o(i, {
|
|
11179
11179
|
modelValue: e.listQuery.query.content,
|
|
11180
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
11180
|
+
"onUpdate:modelValue": t[1] || (t[1] = (w) => e.listQuery.query.content = w),
|
|
11181
11181
|
placeholder: "请输入公告内容",
|
|
11182
11182
|
clearable: "",
|
|
11183
11183
|
maxlength: "12"
|
|
@@ -11222,7 +11222,7 @@ function Fi(e, t, r, l, u, g) {
|
|
|
11222
11222
|
key: 0,
|
|
11223
11223
|
style: { width: "88px" },
|
|
11224
11224
|
type: "primary",
|
|
11225
|
-
onClick: t[2] || (t[2] = (
|
|
11225
|
+
onClick: t[2] || (t[2] = (w) => e.detail(null, "add"))
|
|
11226
11226
|
}, {
|
|
11227
11227
|
default: n(() => [...t[5] || (t[5] = [
|
|
11228
11228
|
c("新建 ", -1)
|
|
@@ -11250,8 +11250,8 @@ function Fi(e, t, r, l, u, g) {
|
|
|
11250
11250
|
prop: "createTime",
|
|
11251
11251
|
label: "创建时间"
|
|
11252
11252
|
}, {
|
|
11253
|
-
default: n((
|
|
11254
|
-
T("span", null, R(e.dayjs(
|
|
11253
|
+
default: n((w) => [
|
|
11254
|
+
T("span", null, R(e.dayjs(w.row.createTime).format("YYYY-MM-DD HH:mm:ss")), 1)
|
|
11255
11255
|
]),
|
|
11256
11256
|
_: 1
|
|
11257
11257
|
}),
|
|
@@ -11260,19 +11260,19 @@ function Fi(e, t, r, l, u, g) {
|
|
|
11260
11260
|
label: "操作",
|
|
11261
11261
|
width: "160"
|
|
11262
11262
|
}, {
|
|
11263
|
-
default: n((
|
|
11263
|
+
default: n((w) => [
|
|
11264
11264
|
e.checkPermission(["ROLE_NOTICE_UPDATE"]) ? (m(), _(p, {
|
|
11265
11265
|
key: 0,
|
|
11266
11266
|
type: "primary",
|
|
11267
11267
|
text: "",
|
|
11268
|
-
onClick: (D) => e.detail(
|
|
11268
|
+
onClick: (D) => e.detail(w.row, "edit")
|
|
11269
11269
|
}, {
|
|
11270
11270
|
default: n(() => [...t[6] || (t[6] = [
|
|
11271
11271
|
c("编辑 ", -1)
|
|
11272
11272
|
])]),
|
|
11273
11273
|
_: 1
|
|
11274
11274
|
}, 8, ["onClick"])) : P("", !0),
|
|
11275
|
-
e.checkPermission(["ROLE_NOTICE_DELETE"]) ? (m(), _(
|
|
11275
|
+
e.checkPermission(["ROLE_NOTICE_DELETE"]) ? (m(), _(g, {
|
|
11276
11276
|
key: 1,
|
|
11277
11277
|
direction: "vertical"
|
|
11278
11278
|
})) : P("", !0),
|
|
@@ -11280,7 +11280,7 @@ function Fi(e, t, r, l, u, g) {
|
|
|
11280
11280
|
key: 2,
|
|
11281
11281
|
type: "primary",
|
|
11282
11282
|
text: "",
|
|
11283
|
-
onClick: (D) => e.deleteNotice(
|
|
11283
|
+
onClick: (D) => e.deleteNotice(w.row)
|
|
11284
11284
|
}, {
|
|
11285
11285
|
default: n(() => [...t[7] || (t[7] = [
|
|
11286
11286
|
c("删除 ", -1)
|
|
@@ -11317,7 +11317,7 @@ function Fi(e, t, r, l, u, g) {
|
|
|
11317
11317
|
}, null, 8, ["onReload"])
|
|
11318
11318
|
]);
|
|
11319
11319
|
}
|
|
11320
|
-
const
|
|
11320
|
+
const Us = /* @__PURE__ */ z(Ti, [["render", Fi], ["__scopeId", "data-v-9b0fa8db"]]), Li = Y({
|
|
11321
11321
|
components: {
|
|
11322
11322
|
xdmpDrawer: ee
|
|
11323
11323
|
},
|
|
@@ -11345,7 +11345,7 @@ const As = /* @__PURE__ */ z(Ti, [["render", Fi], ["__scopeId", "data-v-9b0fa8db
|
|
|
11345
11345
|
methods: {
|
|
11346
11346
|
// 初始化
|
|
11347
11347
|
async init(e, t) {
|
|
11348
|
-
this.title = t == "edit" ? "编辑通知" : "新建通知", this.modeType = t, this.modeType == "edit" ?
|
|
11348
|
+
this.title = t == "edit" ? "编辑通知" : "新建通知", this.modeType = t, this.modeType == "edit" ? L().system.notify.query(e.id).then((r) => {
|
|
11349
11349
|
this.notifyForm = r;
|
|
11350
11350
|
}) : this.notifyForm = {
|
|
11351
11351
|
title: "",
|
|
@@ -11360,7 +11360,7 @@ const As = /* @__PURE__ */ z(Ti, [["render", Fi], ["__scopeId", "data-v-9b0fa8db
|
|
|
11360
11360
|
if (e) {
|
|
11361
11361
|
const t = this.$refs.xdmpDrawer;
|
|
11362
11362
|
t.showLoading();
|
|
11363
|
-
const r =
|
|
11363
|
+
const r = L().system.notify;
|
|
11364
11364
|
(this.modeType == "edit" ? r.update(this.notifyForm.id, this.notifyForm) : r.add(this.notifyForm)).then(() => {
|
|
11365
11365
|
t.hideLoading();
|
|
11366
11366
|
const u = this.modeType == "edit" ? "修改成功" : "新建成功";
|
|
@@ -11382,8 +11382,8 @@ const As = /* @__PURE__ */ z(Ti, [["render", Fi], ["__scopeId", "data-v-9b0fa8db
|
|
|
11382
11382
|
}
|
|
11383
11383
|
}
|
|
11384
11384
|
});
|
|
11385
|
-
function Ei(e, t, r, l, u,
|
|
11386
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-form"), p = a("xdmpDrawer"),
|
|
11385
|
+
function Ei(e, t, r, l, u, y) {
|
|
11386
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-form"), p = a("xdmpDrawer"), b = M("emoji"), f = M("loading");
|
|
11387
11387
|
return m(), _(p, {
|
|
11388
11388
|
ref: "xdmpDrawer",
|
|
11389
11389
|
title: e.title,
|
|
@@ -11393,7 +11393,7 @@ function Ei(e, t, r, l, u, g) {
|
|
|
11393
11393
|
onSubmit: e.submit
|
|
11394
11394
|
}, {
|
|
11395
11395
|
"xdmp-drawer-body": n(() => [
|
|
11396
|
-
|
|
11396
|
+
E((m(), V("div", null, [
|
|
11397
11397
|
o(d, {
|
|
11398
11398
|
ref: "notifyFormRef",
|
|
11399
11399
|
model: e.notifyForm,
|
|
@@ -11408,13 +11408,13 @@ function Ei(e, t, r, l, u, g) {
|
|
|
11408
11408
|
prop: "title"
|
|
11409
11409
|
}, {
|
|
11410
11410
|
default: n(() => [
|
|
11411
|
-
|
|
11411
|
+
E(o(s, {
|
|
11412
11412
|
modelValue: e.notifyForm.title,
|
|
11413
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
11413
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => e.notifyForm.title = g),
|
|
11414
11414
|
placeholder: "请输入通知名称",
|
|
11415
11415
|
maxlength: "12"
|
|
11416
11416
|
}, null, 8, ["modelValue"]), [
|
|
11417
|
-
[
|
|
11417
|
+
[b]
|
|
11418
11418
|
])
|
|
11419
11419
|
]),
|
|
11420
11420
|
_: 1
|
|
@@ -11424,14 +11424,14 @@ function Ei(e, t, r, l, u, g) {
|
|
|
11424
11424
|
prop: "content"
|
|
11425
11425
|
}, {
|
|
11426
11426
|
default: n(() => [
|
|
11427
|
-
|
|
11427
|
+
E(o(s, {
|
|
11428
11428
|
modelValue: e.notifyForm.content,
|
|
11429
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
11429
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.notifyForm.content = g),
|
|
11430
11430
|
type: "textarea",
|
|
11431
11431
|
placeholder: "请输入通知内容",
|
|
11432
11432
|
maxlength: "500"
|
|
11433
11433
|
}, null, 8, ["modelValue"]), [
|
|
11434
|
-
[
|
|
11434
|
+
[b]
|
|
11435
11435
|
])
|
|
11436
11436
|
]),
|
|
11437
11437
|
_: 1
|
|
@@ -11472,12 +11472,12 @@ const Ri = /* @__PURE__ */ z(Li, [["render", Ei], ["__scopeId", "data-v-e0147848
|
|
|
11472
11472
|
},
|
|
11473
11473
|
methods: {
|
|
11474
11474
|
dayjs: O,
|
|
11475
|
-
checkPermission:
|
|
11475
|
+
checkPermission: se,
|
|
11476
11476
|
// 获取通知列表
|
|
11477
11477
|
async getNotifyList() {
|
|
11478
11478
|
this.loading = !0;
|
|
11479
11479
|
try {
|
|
11480
|
-
const e = await
|
|
11480
|
+
const e = await L().system.notify.page(this.listQuery);
|
|
11481
11481
|
this.loading = !1, this.list = e.list, this.total = e.total;
|
|
11482
11482
|
} catch (e) {
|
|
11483
11483
|
this.loading = !1, console.error(e);
|
|
@@ -11517,7 +11517,7 @@ const Ri = /* @__PURE__ */ z(Li, [["render", Ei], ["__scopeId", "data-v-e0147848
|
|
|
11517
11517
|
cancelButtonText: "取消",
|
|
11518
11518
|
type: "warning"
|
|
11519
11519
|
}).then(() => {
|
|
11520
|
-
|
|
11520
|
+
L().system.notify.delete(e.id).then(() => {
|
|
11521
11521
|
this.listQuery.pageNo = 1, this.getNotifyList(), q.success("删除成功");
|
|
11522
11522
|
}).catch((t) => {
|
|
11523
11523
|
console.error(t);
|
|
@@ -11526,13 +11526,13 @@ const Ri = /* @__PURE__ */ z(Li, [["render", Ei], ["__scopeId", "data-v-e0147848
|
|
|
11526
11526
|
}
|
|
11527
11527
|
}
|
|
11528
11528
|
}), Ni = { class: "notify_wrapper" }, Ii = { class: "searchInputCustomStyle" };
|
|
11529
|
-
function Vi(e, t, r, l, u,
|
|
11530
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"),
|
|
11529
|
+
function Vi(e, t, r, l, u, y) {
|
|
11530
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"), b = a("el-form"), f = a("el-table-column"), g = a("el-divider"), C = a("el-table"), k = a("el-pagination"), v = a("ListReport"), S = a("notifyDrawer"), U = M("emoji"), I = M("loading");
|
|
11531
11531
|
return m(), V("div", Ni, [
|
|
11532
11532
|
o(s, { desc: "通知管理,支持系统通知消息的增删改查。" }),
|
|
11533
|
-
|
|
11533
|
+
E((m(), _(v, { class: "notify_block" }, {
|
|
11534
11534
|
filter: n(() => [
|
|
11535
|
-
o(
|
|
11535
|
+
o(b, {
|
|
11536
11536
|
ref: "searchForm",
|
|
11537
11537
|
inline: !0,
|
|
11538
11538
|
model: e.listQuery,
|
|
@@ -11545,9 +11545,9 @@ function Vi(e, t, r, l, u, g) {
|
|
|
11545
11545
|
prop: "title"
|
|
11546
11546
|
}, {
|
|
11547
11547
|
default: n(() => [
|
|
11548
|
-
|
|
11548
|
+
E(o(i, {
|
|
11549
11549
|
modelValue: e.listQuery.query.title,
|
|
11550
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
11550
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => e.listQuery.query.title = w),
|
|
11551
11551
|
placeholder: "请输入通知标题",
|
|
11552
11552
|
clearable: "",
|
|
11553
11553
|
maxlength: "12"
|
|
@@ -11562,9 +11562,9 @@ function Vi(e, t, r, l, u, g) {
|
|
|
11562
11562
|
prop: "content"
|
|
11563
11563
|
}, {
|
|
11564
11564
|
default: n(() => [
|
|
11565
|
-
|
|
11565
|
+
E(o(i, {
|
|
11566
11566
|
modelValue: e.listQuery.query.content,
|
|
11567
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
11567
|
+
"onUpdate:modelValue": t[1] || (t[1] = (w) => e.listQuery.query.content = w),
|
|
11568
11568
|
placeholder: "请输入通知内容",
|
|
11569
11569
|
clearable: "",
|
|
11570
11570
|
maxlength: "12"
|
|
@@ -11609,7 +11609,7 @@ function Vi(e, t, r, l, u, g) {
|
|
|
11609
11609
|
key: 0,
|
|
11610
11610
|
style: { width: "88px" },
|
|
11611
11611
|
type: "primary",
|
|
11612
|
-
onClick: t[2] || (t[2] = (
|
|
11612
|
+
onClick: t[2] || (t[2] = (w) => e.detail(null, "add"))
|
|
11613
11613
|
}, {
|
|
11614
11614
|
default: n(() => [...t[5] || (t[5] = [
|
|
11615
11615
|
c("新建 ", -1)
|
|
@@ -11637,8 +11637,8 @@ function Vi(e, t, r, l, u, g) {
|
|
|
11637
11637
|
prop: "createTime",
|
|
11638
11638
|
label: "创建时间"
|
|
11639
11639
|
}, {
|
|
11640
|
-
default: n((
|
|
11641
|
-
T("span", null, R(e.dayjs(
|
|
11640
|
+
default: n((w) => [
|
|
11641
|
+
T("span", null, R(e.dayjs(w.row.createTime).format("YYYY-MM-DD HH:mm:ss")), 1)
|
|
11642
11642
|
]),
|
|
11643
11643
|
_: 1
|
|
11644
11644
|
}),
|
|
@@ -11647,19 +11647,19 @@ function Vi(e, t, r, l, u, g) {
|
|
|
11647
11647
|
label: "操作",
|
|
11648
11648
|
width: "160"
|
|
11649
11649
|
}, {
|
|
11650
|
-
default: n((
|
|
11650
|
+
default: n((w) => [
|
|
11651
11651
|
e.checkPermission(["ROLE_NOTIFY_UPDATE"]) ? (m(), _(p, {
|
|
11652
11652
|
key: 0,
|
|
11653
11653
|
type: "primary",
|
|
11654
11654
|
text: "",
|
|
11655
|
-
onClick: (D) => e.detail(
|
|
11655
|
+
onClick: (D) => e.detail(w.row, "edit")
|
|
11656
11656
|
}, {
|
|
11657
11657
|
default: n(() => [...t[6] || (t[6] = [
|
|
11658
11658
|
c("编辑 ", -1)
|
|
11659
11659
|
])]),
|
|
11660
11660
|
_: 1
|
|
11661
11661
|
}, 8, ["onClick"])) : P("", !0),
|
|
11662
|
-
e.checkPermission(["ROLE_NOTIFY_DELETE"]) ? (m(), _(
|
|
11662
|
+
e.checkPermission(["ROLE_NOTIFY_DELETE"]) ? (m(), _(g, {
|
|
11663
11663
|
key: 1,
|
|
11664
11664
|
direction: "vertical"
|
|
11665
11665
|
})) : P("", !0),
|
|
@@ -11667,7 +11667,7 @@ function Vi(e, t, r, l, u, g) {
|
|
|
11667
11667
|
key: 2,
|
|
11668
11668
|
type: "primary",
|
|
11669
11669
|
text: "",
|
|
11670
|
-
onClick: (D) => e.deleteNotify(
|
|
11670
|
+
onClick: (D) => e.deleteNotify(w.row)
|
|
11671
11671
|
}, {
|
|
11672
11672
|
default: n(() => [...t[7] || (t[7] = [
|
|
11673
11673
|
c("删除 ", -1)
|
|
@@ -11704,7 +11704,7 @@ function Vi(e, t, r, l, u, g) {
|
|
|
11704
11704
|
}, null, 8, ["onReload"])
|
|
11705
11705
|
]);
|
|
11706
11706
|
}
|
|
11707
|
-
const
|
|
11707
|
+
const zs = /* @__PURE__ */ z(Pi, [["render", Vi], ["__scopeId", "data-v-ba9f608a"]]), qi = Y({
|
|
11708
11708
|
components: {
|
|
11709
11709
|
xdmpDrawer: ee
|
|
11710
11710
|
},
|
|
@@ -11729,7 +11729,7 @@ const Ms = /* @__PURE__ */ z(Pi, [["render", Vi], ["__scopeId", "data-v-ba9f608a
|
|
|
11729
11729
|
isRetainFieldDisabled: Pe,
|
|
11730
11730
|
handleOpen(e) {
|
|
11731
11731
|
this.$nextTick(() => {
|
|
11732
|
-
this.$refs.xdmpDrawer.init(), e ?
|
|
11732
|
+
this.$refs.xdmpDrawer.init(), e ? L().system.position.query(e).then((t) => {
|
|
11733
11733
|
this.form = { ...t };
|
|
11734
11734
|
}) : this.resetForm();
|
|
11735
11735
|
});
|
|
@@ -11739,7 +11739,7 @@ const Ms = /* @__PURE__ */ z(Pi, [["render", Vi], ["__scopeId", "data-v-ba9f608a
|
|
|
11739
11739
|
if (e) {
|
|
11740
11740
|
const t = this.$refs.xdmpDrawer;
|
|
11741
11741
|
t.showLoading();
|
|
11742
|
-
const r =
|
|
11742
|
+
const r = L().system.position;
|
|
11743
11743
|
(this.mode === "edit" ? r.update(this.form.id, this.form) : r.add(this.form)).then(() => {
|
|
11744
11744
|
t.hideLoading(), q.success(this.mode === "edit" ? "编辑成功" : "新建成功"), t.cancelForm(), this.$emit("reload");
|
|
11745
11745
|
}).catch(() => {
|
|
@@ -11760,7 +11760,7 @@ const Ms = /* @__PURE__ */ z(Pi, [["render", Vi], ["__scopeId", "data-v-ba9f608a
|
|
|
11760
11760
|
}
|
|
11761
11761
|
}
|
|
11762
11762
|
});
|
|
11763
|
-
function Oi(e, t, r, l, u,
|
|
11763
|
+
function Oi(e, t, r, l, u, y) {
|
|
11764
11764
|
const s = a("el-input"), i = a("el-form-item"), d = a("el-form"), p = a("xdmpDrawer");
|
|
11765
11765
|
return m(), V("div", null, [
|
|
11766
11766
|
o(p, {
|
|
@@ -11788,7 +11788,7 @@ function Oi(e, t, r, l, u, g) {
|
|
|
11788
11788
|
default: n(() => [
|
|
11789
11789
|
o(s, {
|
|
11790
11790
|
modelValue: e.form.name,
|
|
11791
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
11791
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => e.form.name = b),
|
|
11792
11792
|
disabled: e.mode === "view" || e.isRetainFieldDisabled("Position", "name", e.form.retainFlag),
|
|
11793
11793
|
placeholder: "请输入职位名称",
|
|
11794
11794
|
clearable: ""
|
|
@@ -11803,7 +11803,7 @@ function Oi(e, t, r, l, u, g) {
|
|
|
11803
11803
|
default: n(() => [
|
|
11804
11804
|
o(s, {
|
|
11805
11805
|
modelValue: e.form.code,
|
|
11806
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
11806
|
+
"onUpdate:modelValue": t[1] || (t[1] = (b) => e.form.code = b),
|
|
11807
11807
|
disabled: e.mode === "view",
|
|
11808
11808
|
placeholder: "请输入职位编码",
|
|
11809
11809
|
clearable: ""
|
|
@@ -11818,7 +11818,7 @@ function Oi(e, t, r, l, u, g) {
|
|
|
11818
11818
|
default: n(() => [
|
|
11819
11819
|
o(s, {
|
|
11820
11820
|
modelValue: e.form.sortOrder,
|
|
11821
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
11821
|
+
"onUpdate:modelValue": t[2] || (t[2] = (b) => e.form.sortOrder = b),
|
|
11822
11822
|
disabled: e.mode === "view",
|
|
11823
11823
|
placeholder: "请输入排序值",
|
|
11824
11824
|
clearable: ""
|
|
@@ -11859,13 +11859,13 @@ const Ai = /* @__PURE__ */ z(qi, [["render", Oi]]), Mi = Y({
|
|
|
11859
11859
|
},
|
|
11860
11860
|
methods: {
|
|
11861
11861
|
dayjs: O,
|
|
11862
|
-
checkPermission:
|
|
11863
|
-
isRetainYes:
|
|
11862
|
+
checkPermission: se,
|
|
11863
|
+
isRetainYes: ue,
|
|
11864
11864
|
RETAIN_MSG_DELETE: je,
|
|
11865
11865
|
async getPositionList() {
|
|
11866
11866
|
this.loading = !0;
|
|
11867
11867
|
try {
|
|
11868
|
-
const e = await
|
|
11868
|
+
const e = await L().system.position.page(this.queryParams);
|
|
11869
11869
|
this.loading = !1, this.list = e.list, this.total = e.total;
|
|
11870
11870
|
} catch {
|
|
11871
11871
|
this.loading = !1;
|
|
@@ -11894,7 +11894,7 @@ const Ai = /* @__PURE__ */ z(qi, [["render", Oi]]), Mi = Y({
|
|
|
11894
11894
|
});
|
|
11895
11895
|
},
|
|
11896
11896
|
deletePosition(e) {
|
|
11897
|
-
if (
|
|
11897
|
+
if (ue(e.retainFlag)) {
|
|
11898
11898
|
q.warning(je);
|
|
11899
11899
|
return;
|
|
11900
11900
|
}
|
|
@@ -11903,7 +11903,7 @@ const Ai = /* @__PURE__ */ z(qi, [["render", Oi]]), Mi = Y({
|
|
|
11903
11903
|
cancelButtonText: "取消",
|
|
11904
11904
|
type: "warning"
|
|
11905
11905
|
}).then(() => {
|
|
11906
|
-
|
|
11906
|
+
L().system.position.delete(e.id).then(() => {
|
|
11907
11907
|
q.success("删除成功"), this.getPositionList();
|
|
11908
11908
|
});
|
|
11909
11909
|
});
|
|
@@ -11916,13 +11916,13 @@ const Ai = /* @__PURE__ */ z(qi, [["render", Oi]]), Mi = Y({
|
|
|
11916
11916
|
}
|
|
11917
11917
|
}
|
|
11918
11918
|
}), Ui = { class: "position_wrapper" };
|
|
11919
|
-
function zi(e, t, r, l, u,
|
|
11920
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"),
|
|
11919
|
+
function zi(e, t, r, l, u, y) {
|
|
11920
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-button"), b = a("el-form"), f = a("el-table-column"), g = a("el-divider"), C = a("el-tooltip"), k = a("el-table"), v = a("el-pagination"), S = a("ListReport"), U = a("positionDrawer"), I = M("loading");
|
|
11921
11921
|
return m(), V("div", Ui, [
|
|
11922
11922
|
o(s, { desc: "职位管理,支持职位信息的增删改查。" }),
|
|
11923
|
-
|
|
11923
|
+
E((m(), _(S, { class: "position_block" }, {
|
|
11924
11924
|
filter: n(() => [
|
|
11925
|
-
o(
|
|
11925
|
+
o(b, {
|
|
11926
11926
|
ref: "searchForm",
|
|
11927
11927
|
model: e.queryParams,
|
|
11928
11928
|
inline: !0,
|
|
@@ -11937,7 +11937,7 @@ function zi(e, t, r, l, u, g) {
|
|
|
11937
11937
|
default: n(() => [
|
|
11938
11938
|
o(i, {
|
|
11939
11939
|
modelValue: e.queryParams.query.name,
|
|
11940
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
11940
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => e.queryParams.query.name = w),
|
|
11941
11941
|
placeholder: "请输入职位名称",
|
|
11942
11942
|
clearable: ""
|
|
11943
11943
|
}, null, 8, ["modelValue"])
|
|
@@ -12008,8 +12008,8 @@ function zi(e, t, r, l, u, g) {
|
|
|
12008
12008
|
prop: "sortOrder",
|
|
12009
12009
|
label: "排序值"
|
|
12010
12010
|
}, {
|
|
12011
|
-
default: n((
|
|
12012
|
-
c(R(
|
|
12011
|
+
default: n((w) => [
|
|
12012
|
+
c(R(w.row.sortOrder || "-"), 1)
|
|
12013
12013
|
]),
|
|
12014
12014
|
_: 1
|
|
12015
12015
|
}),
|
|
@@ -12017,8 +12017,8 @@ function zi(e, t, r, l, u, g) {
|
|
|
12017
12017
|
prop: "createTime",
|
|
12018
12018
|
label: "创建时间"
|
|
12019
12019
|
}, {
|
|
12020
|
-
default: n((
|
|
12021
|
-
c(R(
|
|
12020
|
+
default: n((w) => [
|
|
12021
|
+
c(R(w.row.createTime ? e.dayjs(w.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "-"), 1)
|
|
12022
12022
|
]),
|
|
12023
12023
|
_: 1
|
|
12024
12024
|
}),
|
|
@@ -12027,21 +12027,21 @@ function zi(e, t, r, l, u, g) {
|
|
|
12027
12027
|
label: "操作",
|
|
12028
12028
|
width: "160"
|
|
12029
12029
|
}, {
|
|
12030
|
-
default: n((
|
|
12030
|
+
default: n((w) => [
|
|
12031
12031
|
e.checkPermission(["ROLE_POSITION_UPDATE"]) ? (m(), _(p, {
|
|
12032
12032
|
key: 0,
|
|
12033
12033
|
text: "",
|
|
12034
12034
|
type: "primary",
|
|
12035
|
-
onClick: (D) => e.editPosition(
|
|
12035
|
+
onClick: (D) => e.editPosition(w.row)
|
|
12036
12036
|
}, {
|
|
12037
12037
|
default: n(() => [...t[4] || (t[4] = [
|
|
12038
12038
|
c("编辑 ", -1)
|
|
12039
12039
|
])]),
|
|
12040
12040
|
_: 1
|
|
12041
12041
|
}, 8, ["onClick"])) : P("", !0),
|
|
12042
|
-
o(
|
|
12042
|
+
o(g, { direction: "vertical" }),
|
|
12043
12043
|
o(C, {
|
|
12044
|
-
disabled: !e.isRetainYes(
|
|
12044
|
+
disabled: !e.isRetainYes(w.row.retainFlag),
|
|
12045
12045
|
content: e.RETAIN_MSG_DELETE,
|
|
12046
12046
|
placement: "top"
|
|
12047
12047
|
}, {
|
|
@@ -12051,8 +12051,8 @@ function zi(e, t, r, l, u, g) {
|
|
|
12051
12051
|
key: 0,
|
|
12052
12052
|
text: "",
|
|
12053
12053
|
type: "primary",
|
|
12054
|
-
disabled: e.isRetainYes(
|
|
12055
|
-
onClick: (D) => e.deletePosition(
|
|
12054
|
+
disabled: e.isRetainYes(w.row.retainFlag),
|
|
12055
|
+
onClick: (D) => e.deletePosition(w.row)
|
|
12056
12056
|
}, {
|
|
12057
12057
|
default: n(() => [...t[5] || (t[5] = [
|
|
12058
12058
|
c("删除", -1)
|
|
@@ -12093,16 +12093,16 @@ function zi(e, t, r, l, u, g) {
|
|
|
12093
12093
|
}, null, 8, ["onReload"])
|
|
12094
12094
|
]);
|
|
12095
12095
|
}
|
|
12096
|
-
const
|
|
12096
|
+
const Ys = /* @__PURE__ */ z(Mi, [["render", zi], ["__scopeId", "data-v-5c01c15a"]]), Yi = Y({
|
|
12097
12097
|
name: "SystemDepart"
|
|
12098
12098
|
}), ji = { class: "app-container" };
|
|
12099
|
-
function Bi(e, t, r, l, u,
|
|
12099
|
+
function Bi(e, t, r, l, u, y) {
|
|
12100
12100
|
return m(), V("div", ji, [...t[0] || (t[0] = [
|
|
12101
12101
|
T("h2", null, "组织管理", -1),
|
|
12102
12102
|
T("p", null, "组织管理页面", -1)
|
|
12103
12103
|
])]);
|
|
12104
12104
|
}
|
|
12105
|
-
const
|
|
12105
|
+
const js = /* @__PURE__ */ z(Yi, [["render", Bi]]), Ki = {
|
|
12106
12106
|
components: {
|
|
12107
12107
|
xdmpDrawer: ee,
|
|
12108
12108
|
JsonPreview: yt
|
|
@@ -12142,15 +12142,15 @@ const zs = /* @__PURE__ */ z(Yi, [["render", Bi]]), Ki = {
|
|
|
12142
12142
|
}
|
|
12143
12143
|
}
|
|
12144
12144
|
};
|
|
12145
|
-
function Hi(e, t, r, l, u,
|
|
12146
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("JsonPreview"), p = a("el-form"),
|
|
12145
|
+
function Hi(e, t, r, l, u, y) {
|
|
12146
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("JsonPreview"), p = a("el-form"), b = a("xdmpDrawer"), f = M("emoji");
|
|
12147
12147
|
return m(), V("div", null, [
|
|
12148
|
-
o(
|
|
12148
|
+
o(b, {
|
|
12149
12149
|
ref: "xdmpDrawer",
|
|
12150
12150
|
title: u.title,
|
|
12151
12151
|
size: u.size,
|
|
12152
12152
|
"show-footer": !1,
|
|
12153
|
-
onCancel:
|
|
12153
|
+
onCancel: y.cancel
|
|
12154
12154
|
}, {
|
|
12155
12155
|
"xdmp-drawer-body": n(() => [
|
|
12156
12156
|
T("div", null, [
|
|
@@ -12168,9 +12168,9 @@ function Hi(e, t, r, l, u, g) {
|
|
|
12168
12168
|
prop: "createTime"
|
|
12169
12169
|
}, {
|
|
12170
12170
|
default: n(() => [
|
|
12171
|
-
|
|
12171
|
+
E(o(s, {
|
|
12172
12172
|
modelValue: u.logForm.createTime,
|
|
12173
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
12173
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => u.logForm.createTime = g),
|
|
12174
12174
|
placeholder: "请输入"
|
|
12175
12175
|
}, null, 8, ["modelValue"]), [
|
|
12176
12176
|
[f]
|
|
@@ -12287,17 +12287,17 @@ const Qi = /* @__PURE__ */ z(Ki, [["render", Hi], ["__scopeId", "data-v-82f42eef
|
|
|
12287
12287
|
}
|
|
12288
12288
|
}
|
|
12289
12289
|
};
|
|
12290
|
-
function Ji(e, t, r, l, u,
|
|
12291
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"),
|
|
12290
|
+
function Ji(e, t, r, l, u, y) {
|
|
12291
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"), b = a("el-date-picker"), f = a("el-button"), g = a("el-form"), C = a("el-table-column"), k = a("el-table"), v = a("el-pagination"), S = a("ListReport"), U = a("ApplyLogDrawer"), I = M("emoji"), w = M("loading");
|
|
12292
12292
|
return m(), V("div", null, [
|
|
12293
|
-
|
|
12293
|
+
E((m(), _(S, { class: "data_block" }, {
|
|
12294
12294
|
filter: n(() => [
|
|
12295
|
-
o(
|
|
12295
|
+
o(g, {
|
|
12296
12296
|
ref: "searchForm",
|
|
12297
12297
|
model: u.queryParams,
|
|
12298
12298
|
inline: !0,
|
|
12299
12299
|
class: "searchInputCustomStyle",
|
|
12300
|
-
onSubmit: x(
|
|
12300
|
+
onSubmit: x(y.onSearch, ["prevent"])
|
|
12301
12301
|
}, {
|
|
12302
12302
|
default: n(() => [
|
|
12303
12303
|
o(i, {
|
|
@@ -12305,7 +12305,7 @@ function Ji(e, t, r, l, u, g) {
|
|
|
12305
12305
|
prop: "uri"
|
|
12306
12306
|
}, {
|
|
12307
12307
|
default: n(() => [
|
|
12308
|
-
|
|
12308
|
+
E(o(s, {
|
|
12309
12309
|
modelValue: u.queryParams.query.uri,
|
|
12310
12310
|
"onUpdate:modelValue": t[0] || (t[0] = (D) => u.queryParams.query.uri = D),
|
|
12311
12311
|
maxlength: "32",
|
|
@@ -12321,7 +12321,7 @@ function Ji(e, t, r, l, u, g) {
|
|
|
12321
12321
|
prop: "successFlag"
|
|
12322
12322
|
}, {
|
|
12323
12323
|
default: n(() => [
|
|
12324
|
-
|
|
12324
|
+
E((m(), _(p, {
|
|
12325
12325
|
modelValue: u.queryParams.query.successFlag,
|
|
12326
12326
|
"onUpdate:modelValue": t[1] || (t[1] = (D) => u.queryParams.query.successFlag = D),
|
|
12327
12327
|
maxlength: "32",
|
|
@@ -12353,7 +12353,7 @@ function Ji(e, t, r, l, u, g) {
|
|
|
12353
12353
|
prop: "time"
|
|
12354
12354
|
}, {
|
|
12355
12355
|
default: n(() => [
|
|
12356
|
-
o(
|
|
12356
|
+
o(b, {
|
|
12357
12357
|
modelValue: u.time,
|
|
12358
12358
|
"onUpdate:modelValue": t[2] || (t[2] = (D) => u.time = D),
|
|
12359
12359
|
type: "datetimerange",
|
|
@@ -12361,8 +12361,8 @@ function Ji(e, t, r, l, u, g) {
|
|
|
12361
12361
|
"start-placeholder": "开始日期",
|
|
12362
12362
|
"end-placeholder": "结束日期",
|
|
12363
12363
|
"default-time": u.defaultTime,
|
|
12364
|
-
onChange:
|
|
12365
|
-
onClear:
|
|
12364
|
+
onChange: y.handleTimeChange,
|
|
12365
|
+
onClear: y.handleTimeClear
|
|
12366
12366
|
}, null, 8, ["modelValue", "default-time", "onChange", "onClear"])
|
|
12367
12367
|
]),
|
|
12368
12368
|
_: 1
|
|
@@ -12372,7 +12372,7 @@ function Ji(e, t, r, l, u, g) {
|
|
|
12372
12372
|
o(f, {
|
|
12373
12373
|
type: "primary",
|
|
12374
12374
|
icon: "Search",
|
|
12375
|
-
onClick: x(
|
|
12375
|
+
onClick: x(y.onSearch, ["prevent"])
|
|
12376
12376
|
}, {
|
|
12377
12377
|
default: n(() => [...t[3] || (t[3] = [
|
|
12378
12378
|
c("搜索 ", -1)
|
|
@@ -12382,7 +12382,7 @@ function Ji(e, t, r, l, u, g) {
|
|
|
12382
12382
|
o(f, {
|
|
12383
12383
|
type: "default",
|
|
12384
12384
|
icon: "Refresh",
|
|
12385
|
-
onClick:
|
|
12385
|
+
onClick: y.onReset
|
|
12386
12386
|
}, {
|
|
12387
12387
|
default: n(() => [...t[4] || (t[4] = [
|
|
12388
12388
|
c("重置 ", -1)
|
|
@@ -12412,7 +12412,7 @@ function Ji(e, t, r, l, u, g) {
|
|
|
12412
12412
|
"min-width": "140px"
|
|
12413
12413
|
}, {
|
|
12414
12414
|
default: n((D) => [
|
|
12415
|
-
c(R(
|
|
12415
|
+
c(R(y.dayjs(D.row.createTime).format("YYYY-MM-DD HH:mm:ss")), 1)
|
|
12416
12416
|
]),
|
|
12417
12417
|
_: 1
|
|
12418
12418
|
}),
|
|
@@ -12466,7 +12466,7 @@ function Ji(e, t, r, l, u, g) {
|
|
|
12466
12466
|
o(f, {
|
|
12467
12467
|
text: "",
|
|
12468
12468
|
type: "primary",
|
|
12469
|
-
onClick: (h) =>
|
|
12469
|
+
onClick: (h) => y.handleDetail(D.row)
|
|
12470
12470
|
}, {
|
|
12471
12471
|
default: n(() => [...t[5] || (t[5] = [
|
|
12472
12472
|
c("查看 ", -1)
|
|
@@ -12481,22 +12481,22 @@ function Ji(e, t, r, l, u, g) {
|
|
|
12481
12481
|
}, 8, ["data"])
|
|
12482
12482
|
]),
|
|
12483
12483
|
pagination: n(() => [
|
|
12484
|
-
|
|
12484
|
+
E(o(v, {
|
|
12485
12485
|
background: "",
|
|
12486
12486
|
class: "pagination",
|
|
12487
12487
|
total: u.total,
|
|
12488
12488
|
"page-sizes": [10, 20, 50, 100],
|
|
12489
12489
|
"current-page": u.queryParams.pageNo,
|
|
12490
12490
|
layout: "total, prev, pager, next, sizes",
|
|
12491
|
-
onSizeChange:
|
|
12492
|
-
onCurrentChange:
|
|
12491
|
+
onSizeChange: y.handleSizeChange,
|
|
12492
|
+
onCurrentChange: y.handleCurrentChange
|
|
12493
12493
|
}, null, 8, ["total", "current-page", "onSizeChange", "onCurrentChange"]), [
|
|
12494
12494
|
[go, u.total > 1 && !u.loading]
|
|
12495
12495
|
])
|
|
12496
12496
|
]),
|
|
12497
12497
|
_: 1
|
|
12498
12498
|
})), [
|
|
12499
|
-
[
|
|
12499
|
+
[w, u.loading]
|
|
12500
12500
|
]),
|
|
12501
12501
|
o(U, { ref: "applyLogDrawerRef" }, null, 512)
|
|
12502
12502
|
]);
|
|
@@ -12508,7 +12508,7 @@ const Wi = /* @__PURE__ */ z(Gi, [["render", Ji], ["__scopeId", "data-v-b0e87ae5
|
|
|
12508
12508
|
applyLog: Wi
|
|
12509
12509
|
}
|
|
12510
12510
|
};
|
|
12511
|
-
function Xi(e, t, r, l, u,
|
|
12511
|
+
function Xi(e, t, r, l, u, y) {
|
|
12512
12512
|
const s = a("pageDecs"), i = a("applyLog");
|
|
12513
12513
|
return m(), V("div", null, [
|
|
12514
12514
|
o(s, {
|
|
@@ -12518,7 +12518,7 @@ function Xi(e, t, r, l, u, g) {
|
|
|
12518
12518
|
o(i)
|
|
12519
12519
|
]);
|
|
12520
12520
|
}
|
|
12521
|
-
const
|
|
12521
|
+
const Bs = /* @__PURE__ */ z(Zi, [["render", Xi]]), xi = /^[a-z]([a-z0-9-]{0,48}[a-z0-9])$/, es = "以小写字母开头,2-50 位,仅小写字母、数字与中划线,且不以中划线结尾", ts = Y({
|
|
12522
12522
|
components: {
|
|
12523
12523
|
xdmpDrawer: ee
|
|
12524
12524
|
},
|
|
@@ -12531,15 +12531,17 @@ const Ys = /* @__PURE__ */ z(Zi, [["render", Xi]]), xi = Y({
|
|
|
12531
12531
|
form: {
|
|
12532
12532
|
tenantCode: "",
|
|
12533
12533
|
tenantName: "",
|
|
12534
|
+
parentId: "",
|
|
12534
12535
|
domain: "",
|
|
12535
12536
|
remark: ""
|
|
12536
12537
|
},
|
|
12538
|
+
parentOptions: [],
|
|
12537
12539
|
rules: {
|
|
12538
12540
|
tenantCode: [
|
|
12539
12541
|
{ required: !0, message: "请输入租户编码", trigger: "blur" },
|
|
12540
12542
|
{
|
|
12541
|
-
pattern:
|
|
12542
|
-
message:
|
|
12543
|
+
pattern: xi,
|
|
12544
|
+
message: es,
|
|
12543
12545
|
trigger: "blur"
|
|
12544
12546
|
}
|
|
12545
12547
|
],
|
|
@@ -12550,9 +12552,19 @@ const Ys = /* @__PURE__ */ z(Zi, [["render", Xi]]), xi = Y({
|
|
|
12550
12552
|
methods: {
|
|
12551
12553
|
handleOpen(e) {
|
|
12552
12554
|
this.$nextTick(() => {
|
|
12553
|
-
this.$refs.xdmpDrawer.init(), e ?
|
|
12555
|
+
this.$refs.xdmpDrawer.init(), e ? L().system.tenant.query(e).then((t) => {
|
|
12554
12556
|
this.form = { ...t, domain: t.domain || "" };
|
|
12555
|
-
}) : this.resetForm();
|
|
12557
|
+
}) : (this.resetForm(), this.loadParentOptions());
|
|
12558
|
+
});
|
|
12559
|
+
},
|
|
12560
|
+
/** 上级租户选项:租户量级小,一次取全量(ADR-0022 D1 归属链) */
|
|
12561
|
+
loadParentOptions() {
|
|
12562
|
+
L().system.tenant.page({ pageNo: 1, pageSize: 500, query: {} }).then((e) => {
|
|
12563
|
+
this.parentOptions = ((e == null ? void 0 : e.list) || []).map((t) => ({
|
|
12564
|
+
id: t.id,
|
|
12565
|
+
label: `${t.tenantName}(${t.tenantCode})`
|
|
12566
|
+
}));
|
|
12567
|
+
}).catch(() => {
|
|
12556
12568
|
});
|
|
12557
12569
|
},
|
|
12558
12570
|
submit() {
|
|
@@ -12560,13 +12572,14 @@ const Ys = /* @__PURE__ */ z(Zi, [["render", Xi]]), xi = Y({
|
|
|
12560
12572
|
if (e) {
|
|
12561
12573
|
const t = this.$refs.xdmpDrawer;
|
|
12562
12574
|
t.showLoading();
|
|
12563
|
-
const r =
|
|
12575
|
+
const r = L().system.tenant;
|
|
12564
12576
|
(this.mode === "edit" ? r.update(this.form.id, {
|
|
12565
12577
|
tenantName: this.form.tenantName,
|
|
12566
12578
|
remark: this.form.remark
|
|
12567
12579
|
}) : r.add({
|
|
12568
12580
|
tenantCode: this.form.tenantCode,
|
|
12569
12581
|
tenantName: this.form.tenantName,
|
|
12582
|
+
parentId: this.form.parentId || void 0,
|
|
12570
12583
|
domain: this.form.domain || void 0,
|
|
12571
12584
|
remark: this.form.remark
|
|
12572
12585
|
})).then(() => {
|
|
@@ -12584,16 +12597,17 @@ const Ys = /* @__PURE__ */ z(Zi, [["render", Xi]]), xi = Y({
|
|
|
12584
12597
|
this.form = {
|
|
12585
12598
|
tenantCode: "",
|
|
12586
12599
|
tenantName: "",
|
|
12600
|
+
parentId: "",
|
|
12587
12601
|
domain: "",
|
|
12588
12602
|
remark: ""
|
|
12589
12603
|
};
|
|
12590
12604
|
}
|
|
12591
12605
|
}
|
|
12592
12606
|
});
|
|
12593
|
-
function
|
|
12594
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-
|
|
12607
|
+
function os(e, t, r, l, u, y) {
|
|
12608
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"), b = a("el-form"), f = a("xdmpDrawer");
|
|
12595
12609
|
return m(), V("div", null, [
|
|
12596
|
-
o(
|
|
12610
|
+
o(f, {
|
|
12597
12611
|
ref: "xdmpDrawer",
|
|
12598
12612
|
title: e.title,
|
|
12599
12613
|
size: e.size,
|
|
@@ -12602,7 +12616,7 @@ function es(e, t, r, l, u, g) {
|
|
|
12602
12616
|
onCancel: e.cancel
|
|
12603
12617
|
}, {
|
|
12604
12618
|
"xdmp-drawer-body": n(() => [
|
|
12605
|
-
o(
|
|
12619
|
+
o(b, {
|
|
12606
12620
|
ref: "formRef",
|
|
12607
12621
|
model: e.form,
|
|
12608
12622
|
rules: e.rules,
|
|
@@ -12618,7 +12632,7 @@ function es(e, t, r, l, u, g) {
|
|
|
12618
12632
|
default: n(() => [
|
|
12619
12633
|
o(s, {
|
|
12620
12634
|
modelValue: e.form.tenantCode,
|
|
12621
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
12635
|
+
"onUpdate:modelValue": t[0] || (t[0] = (g) => e.form.tenantCode = g),
|
|
12622
12636
|
disabled: e.mode === "edit",
|
|
12623
12637
|
placeholder: "小写字母/数字/下划线/中划线,2-50 位",
|
|
12624
12638
|
clearable: ""
|
|
@@ -12633,7 +12647,7 @@ function es(e, t, r, l, u, g) {
|
|
|
12633
12647
|
default: n(() => [
|
|
12634
12648
|
o(s, {
|
|
12635
12649
|
modelValue: e.form.tenantName,
|
|
12636
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
12650
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.form.tenantName = g),
|
|
12637
12651
|
placeholder: "请输入租户名称",
|
|
12638
12652
|
clearable: ""
|
|
12639
12653
|
}, null, 8, ["modelValue"])
|
|
@@ -12642,13 +12656,38 @@ function es(e, t, r, l, u, g) {
|
|
|
12642
12656
|
}),
|
|
12643
12657
|
e.mode === "add" ? (m(), _(i, {
|
|
12644
12658
|
key: 0,
|
|
12659
|
+
prop: "parentId",
|
|
12660
|
+
label: "上级租户"
|
|
12661
|
+
}, {
|
|
12662
|
+
default: n(() => [
|
|
12663
|
+
o(p, {
|
|
12664
|
+
modelValue: e.form.parentId,
|
|
12665
|
+
"onUpdate:modelValue": t[2] || (t[2] = (g) => e.form.parentId = g),
|
|
12666
|
+
placeholder: "不选则挂根租户(management)",
|
|
12667
|
+
clearable: "",
|
|
12668
|
+
filterable: ""
|
|
12669
|
+
}, {
|
|
12670
|
+
default: n(() => [
|
|
12671
|
+
(m(!0), V(ie, null, de(e.parentOptions, (g) => (m(), _(d, {
|
|
12672
|
+
key: g.id,
|
|
12673
|
+
label: g.label,
|
|
12674
|
+
value: g.id
|
|
12675
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
12676
|
+
]),
|
|
12677
|
+
_: 1
|
|
12678
|
+
}, 8, ["modelValue"])
|
|
12679
|
+
]),
|
|
12680
|
+
_: 1
|
|
12681
|
+
})) : P("", !0),
|
|
12682
|
+
e.mode === "add" ? (m(), _(i, {
|
|
12683
|
+
key: 1,
|
|
12645
12684
|
prop: "domain",
|
|
12646
12685
|
label: "独立域名"
|
|
12647
12686
|
}, {
|
|
12648
12687
|
default: n(() => [
|
|
12649
12688
|
o(s, {
|
|
12650
12689
|
modelValue: e.form.domain,
|
|
12651
|
-
"onUpdate:modelValue": t[
|
|
12690
|
+
"onUpdate:modelValue": t[3] || (t[3] = (g) => e.form.domain = g),
|
|
12652
12691
|
placeholder: "可空,如 acme.example.com(开通后也可单独绑定)",
|
|
12653
12692
|
clearable: ""
|
|
12654
12693
|
}, null, 8, ["modelValue"])
|
|
@@ -12662,7 +12701,7 @@ function es(e, t, r, l, u, g) {
|
|
|
12662
12701
|
default: n(() => [
|
|
12663
12702
|
o(s, {
|
|
12664
12703
|
modelValue: e.form.remark,
|
|
12665
|
-
"onUpdate:modelValue": t[
|
|
12704
|
+
"onUpdate:modelValue": t[4] || (t[4] = (g) => e.form.remark = g),
|
|
12666
12705
|
type: "textarea",
|
|
12667
12706
|
rows: 3,
|
|
12668
12707
|
placeholder: "请输入备注"
|
|
@@ -12678,10 +12717,10 @@ function es(e, t, r, l, u, g) {
|
|
|
12678
12717
|
}, 8, ["title", "size", "onSubmit", "onCancel"])
|
|
12679
12718
|
]);
|
|
12680
12719
|
}
|
|
12681
|
-
const
|
|
12720
|
+
const ns = /* @__PURE__ */ z(ts, [["render", os]]), rs = Y({
|
|
12682
12721
|
components: {
|
|
12683
12722
|
ListReport: oe,
|
|
12684
|
-
tenantDrawer:
|
|
12723
|
+
tenantDrawer: ns,
|
|
12685
12724
|
PageDesc: te
|
|
12686
12725
|
},
|
|
12687
12726
|
data() {
|
|
@@ -12689,6 +12728,7 @@ const ts = /* @__PURE__ */ z(xi, [["render", es]]), os = Y({
|
|
|
12689
12728
|
loading: !1,
|
|
12690
12729
|
total: 0,
|
|
12691
12730
|
list: [],
|
|
12731
|
+
parentLabels: {},
|
|
12692
12732
|
impersonateTenantId: Uo(),
|
|
12693
12733
|
queryParams: {
|
|
12694
12734
|
query: {
|
|
@@ -12701,15 +12741,31 @@ const ts = /* @__PURE__ */ z(xi, [["render", es]]), os = Y({
|
|
|
12701
12741
|
};
|
|
12702
12742
|
},
|
|
12703
12743
|
created() {
|
|
12704
|
-
this.
|
|
12744
|
+
this.reloadAll();
|
|
12705
12745
|
},
|
|
12706
12746
|
methods: {
|
|
12707
12747
|
dayjs: O,
|
|
12708
|
-
checkPermission:
|
|
12748
|
+
checkPermission: se,
|
|
12749
|
+
reloadAll() {
|
|
12750
|
+
this.getTenantList(), this.loadTenantLabels();
|
|
12751
|
+
},
|
|
12752
|
+
/** 上级租户列:一次取全量租户做 id→名称映射(租户量级小;取不到时回退展示 ID) */
|
|
12753
|
+
async loadTenantLabels() {
|
|
12754
|
+
try {
|
|
12755
|
+
const e = await L().system.tenant.page({ pageNo: 1, pageSize: 500, query: {} }), t = {};
|
|
12756
|
+
for (const r of (e == null ? void 0 : e.list) || [])
|
|
12757
|
+
t[r.id] = r.tenantName ? `${r.tenantName}(${r.tenantCode})` : r.tenantCode;
|
|
12758
|
+
this.parentLabels = t;
|
|
12759
|
+
} catch {
|
|
12760
|
+
}
|
|
12761
|
+
},
|
|
12762
|
+
parentLabel(e) {
|
|
12763
|
+
return e.parentId ? this.parentLabels[e.parentId] || e.parentId : "根租户";
|
|
12764
|
+
},
|
|
12709
12765
|
async getTenantList() {
|
|
12710
12766
|
this.loading = !0;
|
|
12711
12767
|
try {
|
|
12712
|
-
const e = await
|
|
12768
|
+
const e = await L().system.tenant.page(this.queryParams);
|
|
12713
12769
|
this.loading = !1, this.list = e.list, this.total = e.total;
|
|
12714
12770
|
} catch {
|
|
12715
12771
|
this.loading = !1;
|
|
@@ -12744,7 +12800,7 @@ const ts = /* @__PURE__ */ z(xi, [["render", es]]), os = Y({
|
|
|
12744
12800
|
inputValue: e.domain || "",
|
|
12745
12801
|
inputPlaceholder: "如 acme.example.com"
|
|
12746
12802
|
}).then(({ value: t }) => {
|
|
12747
|
-
|
|
12803
|
+
L().system.tenant.bindDomain(e.id, { domain: (t || "").trim() }).then(() => {
|
|
12748
12804
|
q.success("域名已更新"), this.getTenantList();
|
|
12749
12805
|
});
|
|
12750
12806
|
}).catch(() => {
|
|
@@ -12757,7 +12813,7 @@ const ts = /* @__PURE__ */ z(xi, [["render", es]]), os = Y({
|
|
|
12757
12813
|
"提示",
|
|
12758
12814
|
{ confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }
|
|
12759
12815
|
).then(() => {
|
|
12760
|
-
const l =
|
|
12816
|
+
const l = L().system.tenant;
|
|
12761
12817
|
(t ? l.enable(e.id) : l.disable(e.id)).then(() => {
|
|
12762
12818
|
q.success(`${r}成功`), this.getTenantList();
|
|
12763
12819
|
});
|
|
@@ -12770,7 +12826,7 @@ const ts = /* @__PURE__ */ z(xi, [["render", es]]), os = Y({
|
|
|
12770
12826
|
"提示",
|
|
12771
12827
|
{ confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }
|
|
12772
12828
|
).then(() => {
|
|
12773
|
-
|
|
12829
|
+
L().system.tenant.impersonate(e.id).then(() => {
|
|
12774
12830
|
ot(e.id), q.success("已代入租户,页面即将刷新"), setTimeout(() => window.location.reload(), 600);
|
|
12775
12831
|
});
|
|
12776
12832
|
}).catch(() => {
|
|
@@ -12786,10 +12842,10 @@ const ts = /* @__PURE__ */ z(xi, [["render", es]]), os = Y({
|
|
|
12786
12842
|
this.queryParams.pageNo = e, this.getTenantList();
|
|
12787
12843
|
}
|
|
12788
12844
|
}
|
|
12789
|
-
}),
|
|
12790
|
-
function
|
|
12791
|
-
const s = a("pageDesc"), i = a("el-button"), d = a("el-alert"), p = a("el-input"),
|
|
12792
|
-
return m(), V("div",
|
|
12845
|
+
}), as = { class: "tenant_wrapper" };
|
|
12846
|
+
function ls(e, t, r, l, u, y) {
|
|
12847
|
+
const s = a("pageDesc"), i = a("el-button"), d = a("el-alert"), p = a("el-input"), b = a("el-form-item"), f = a("el-option"), g = a("el-select"), C = a("el-form"), k = a("el-table-column"), v = a("el-divider"), S = a("el-table"), U = a("el-pagination"), I = a("ListReport"), w = a("tenantDrawer"), D = M("loading");
|
|
12848
|
+
return m(), V("div", as, [
|
|
12793
12849
|
o(s, { desc: "租户管理(SaaS 运营台):开通/停用租户、绑定独立域名,代入后仅可见目标租户数据。" }),
|
|
12794
12850
|
e.impersonateTenantId ? (m(), _(d, {
|
|
12795
12851
|
key: 0,
|
|
@@ -12813,7 +12869,7 @@ function rs(e, t, r, l, u, g) {
|
|
|
12813
12869
|
]),
|
|
12814
12870
|
_: 1
|
|
12815
12871
|
})) : P("", !0),
|
|
12816
|
-
|
|
12872
|
+
E((m(), _(I, { class: "tenant_block" }, {
|
|
12817
12873
|
filter: n(() => [
|
|
12818
12874
|
o(C, {
|
|
12819
12875
|
ref: "searchForm",
|
|
@@ -12823,7 +12879,7 @@ function rs(e, t, r, l, u, g) {
|
|
|
12823
12879
|
onSubmit: x(e.search, ["prevent"])
|
|
12824
12880
|
}, {
|
|
12825
12881
|
default: n(() => [
|
|
12826
|
-
o(
|
|
12882
|
+
o(b, {
|
|
12827
12883
|
label: "关键字",
|
|
12828
12884
|
prop: "keyword"
|
|
12829
12885
|
}, {
|
|
@@ -12837,12 +12893,12 @@ function rs(e, t, r, l, u, g) {
|
|
|
12837
12893
|
]),
|
|
12838
12894
|
_: 1
|
|
12839
12895
|
}),
|
|
12840
|
-
o(
|
|
12896
|
+
o(b, {
|
|
12841
12897
|
label: "状态",
|
|
12842
12898
|
prop: "enabledFlag"
|
|
12843
12899
|
}, {
|
|
12844
12900
|
default: n(() => [
|
|
12845
|
-
o(
|
|
12901
|
+
o(g, {
|
|
12846
12902
|
modelValue: e.queryParams.query.enabledFlag,
|
|
12847
12903
|
"onUpdate:modelValue": t[1] || (t[1] = (h) => e.queryParams.query.enabledFlag = h),
|
|
12848
12904
|
placeholder: "全部",
|
|
@@ -12863,7 +12919,7 @@ function rs(e, t, r, l, u, g) {
|
|
|
12863
12919
|
]),
|
|
12864
12920
|
_: 1
|
|
12865
12921
|
}),
|
|
12866
|
-
o(
|
|
12922
|
+
o(b, null, {
|
|
12867
12923
|
default: n(() => [
|
|
12868
12924
|
o(i, {
|
|
12869
12925
|
type: "primary",
|
|
@@ -12923,6 +12979,12 @@ function rs(e, t, r, l, u, g) {
|
|
|
12923
12979
|
prop: "tenantName",
|
|
12924
12980
|
label: "租户名称"
|
|
12925
12981
|
}),
|
|
12982
|
+
o(k, { label: "上级租户" }, {
|
|
12983
|
+
default: n((h) => [
|
|
12984
|
+
c(R(e.parentLabel(h.row)), 1)
|
|
12985
|
+
]),
|
|
12986
|
+
_: 1
|
|
12987
|
+
}),
|
|
12926
12988
|
o(k, {
|
|
12927
12989
|
prop: "domain",
|
|
12928
12990
|
label: "独立域名"
|
|
@@ -13044,13 +13106,13 @@ function rs(e, t, r, l, u, g) {
|
|
|
13044
13106
|
})), [
|
|
13045
13107
|
[D, e.loading]
|
|
13046
13108
|
]),
|
|
13047
|
-
o(
|
|
13109
|
+
o(w, {
|
|
13048
13110
|
ref: "tenantDrawer",
|
|
13049
|
-
onReload: e.
|
|
13111
|
+
onReload: e.reloadAll
|
|
13050
13112
|
}, null, 8, ["onReload"])
|
|
13051
13113
|
]);
|
|
13052
13114
|
}
|
|
13053
|
-
const
|
|
13115
|
+
const Ks = /* @__PURE__ */ z(rs, [["render", ls], ["__scopeId", "data-v-92963ddf"]]), is = Y({
|
|
13054
13116
|
components: {
|
|
13055
13117
|
xdmpDrawer: ee,
|
|
13056
13118
|
AvatarUpload: rt
|
|
@@ -13098,7 +13160,7 @@ const js = /* @__PURE__ */ z(os, [["render", rs], ["__scopeId", "data-v-07da0882
|
|
|
13098
13160
|
methods: {
|
|
13099
13161
|
// 初始抽屉内容
|
|
13100
13162
|
async init(e) {
|
|
13101
|
-
e ?
|
|
13163
|
+
e ? L().member.user.query(e.id).then((t) => {
|
|
13102
13164
|
this.memberForm.nickname = t.data.nickname, this.memberForm.phone = t.data.phone, this.memberForm.gender = t.data.gender, this.memberForm.avatar = t.data.avatar || "";
|
|
13103
13165
|
}).catch(() => {
|
|
13104
13166
|
}) : this.memberForm = {
|
|
@@ -13128,10 +13190,10 @@ const js = /* @__PURE__ */ z(os, [["render", rs], ["__scopeId", "data-v-07da0882
|
|
|
13128
13190
|
}
|
|
13129
13191
|
}
|
|
13130
13192
|
});
|
|
13131
|
-
function
|
|
13132
|
-
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"),
|
|
13193
|
+
function ss(e, t, r, l, u, y) {
|
|
13194
|
+
const s = a("el-input"), i = a("el-form-item"), d = a("el-option"), p = a("el-select"), b = a("AvatarUpload"), f = a("el-form"), g = a("xdmpDrawer"), C = M("emoji");
|
|
13133
13195
|
return m(), V("div", null, [
|
|
13134
|
-
o(
|
|
13196
|
+
o(g, {
|
|
13135
13197
|
ref: "xdmpDrawer",
|
|
13136
13198
|
title: e.title,
|
|
13137
13199
|
size: e.size,
|
|
@@ -13155,7 +13217,7 @@ function ls(e, t, r, l, u, g) {
|
|
|
13155
13217
|
prop: "phone"
|
|
13156
13218
|
}, {
|
|
13157
13219
|
default: n(() => [
|
|
13158
|
-
|
|
13220
|
+
E(o(s, {
|
|
13159
13221
|
modelValue: e.memberForm.phone,
|
|
13160
13222
|
"onUpdate:modelValue": t[0] || (t[0] = (k) => e.memberForm.phone = k),
|
|
13161
13223
|
placeholder: "请输入手机号码"
|
|
@@ -13170,7 +13232,7 @@ function ls(e, t, r, l, u, g) {
|
|
|
13170
13232
|
prop: "nickname"
|
|
13171
13233
|
}, {
|
|
13172
13234
|
default: n(() => [
|
|
13173
|
-
|
|
13235
|
+
E(o(s, {
|
|
13174
13236
|
modelValue: e.memberForm.nickname,
|
|
13175
13237
|
"onUpdate:modelValue": t[1] || (t[1] = (k) => e.memberForm.nickname = k),
|
|
13176
13238
|
placeholder: "成员昵称最多不超过32个字符,仅支持大小写字母、数字和下划线",
|
|
@@ -13195,7 +13257,7 @@ function ls(e, t, r, l, u, g) {
|
|
|
13195
13257
|
style: { width: "100%" }
|
|
13196
13258
|
}, {
|
|
13197
13259
|
default: n(() => [
|
|
13198
|
-
(m(!0), V(
|
|
13260
|
+
(m(!0), V(ie, null, de(e.genderList, (k) => (m(), _(d, {
|
|
13199
13261
|
key: k.value,
|
|
13200
13262
|
label: k.label,
|
|
13201
13263
|
value: k.value
|
|
@@ -13211,7 +13273,7 @@ function ls(e, t, r, l, u, g) {
|
|
|
13211
13273
|
prop: "avatar"
|
|
13212
13274
|
}, {
|
|
13213
13275
|
default: n(() => [
|
|
13214
|
-
o(
|
|
13276
|
+
o(b, {
|
|
13215
13277
|
modelValue: e.memberForm.avatar,
|
|
13216
13278
|
"onUpdate:modelValue": t[3] || (t[3] = (k) => e.memberForm.avatar = k),
|
|
13217
13279
|
"bucket-name": e.bucketName
|
|
@@ -13228,15 +13290,15 @@ function ls(e, t, r, l, u, g) {
|
|
|
13228
13290
|
}, 8, ["title", "size", "onCancel"])
|
|
13229
13291
|
]);
|
|
13230
13292
|
}
|
|
13231
|
-
const
|
|
13232
|
-
function
|
|
13233
|
-
return
|
|
13293
|
+
const ds = /* @__PURE__ */ z(is, [["render", ss]]);
|
|
13294
|
+
function us(e) {
|
|
13295
|
+
return L().system.binary.download(e).then((t) => new Blob([t.data], { type: t.headers["content-type"] }));
|
|
13234
13296
|
}
|
|
13235
|
-
const
|
|
13297
|
+
const ps = Y({
|
|
13236
13298
|
components: {
|
|
13237
13299
|
ListReport: oe,
|
|
13238
13300
|
pageDesc: te,
|
|
13239
|
-
addMemberDrawer:
|
|
13301
|
+
addMemberDrawer: ds
|
|
13240
13302
|
},
|
|
13241
13303
|
data() {
|
|
13242
13304
|
return {
|
|
@@ -13259,13 +13321,13 @@ const ds = Y({
|
|
|
13259
13321
|
},
|
|
13260
13322
|
methods: {
|
|
13261
13323
|
dayjs: O,
|
|
13262
|
-
checkPermission:
|
|
13324
|
+
checkPermission: se,
|
|
13263
13325
|
// 获取成员列表
|
|
13264
13326
|
async getMemberList() {
|
|
13265
13327
|
this.tableLoading = !0;
|
|
13266
13328
|
const e = JSON.parse(JSON.stringify(this.queryParams));
|
|
13267
13329
|
try {
|
|
13268
|
-
const t = await
|
|
13330
|
+
const t = await L().member.user.page({
|
|
13269
13331
|
pageNo: e.pageNo,
|
|
13270
13332
|
pageSize: e.pageSize,
|
|
13271
13333
|
query: {
|
|
@@ -13274,7 +13336,7 @@ const ds = Y({
|
|
|
13274
13336
|
}
|
|
13275
13337
|
});
|
|
13276
13338
|
this.tableLoading = !1, this.list = t.list, this.total = t.total, this.list.forEach((r) => {
|
|
13277
|
-
r.avatar &&
|
|
13339
|
+
r.avatar && us(r.avatar).then((l) => {
|
|
13278
13340
|
r._avatarUrl = window.URL.createObjectURL(l);
|
|
13279
13341
|
}).catch(() => {
|
|
13280
13342
|
});
|
|
@@ -13318,7 +13380,7 @@ const ds = Y({
|
|
|
13318
13380
|
cancelButtonText: "取消",
|
|
13319
13381
|
type: "warning"
|
|
13320
13382
|
}).then(() => {
|
|
13321
|
-
|
|
13383
|
+
L().member.user.changeStatus(e.id, { enabledFlag: r }).then(() => {
|
|
13322
13384
|
q.success(`${l}成功`), this.getMemberList();
|
|
13323
13385
|
}).catch(() => {
|
|
13324
13386
|
});
|
|
@@ -13326,14 +13388,14 @@ const ds = Y({
|
|
|
13326
13388
|
});
|
|
13327
13389
|
}
|
|
13328
13390
|
}
|
|
13329
|
-
}),
|
|
13330
|
-
function
|
|
13331
|
-
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-option"),
|
|
13332
|
-
return m(), V("div",
|
|
13391
|
+
}), ms = { class: "member_wrapper" };
|
|
13392
|
+
function cs(e, t, r, l, u, y) {
|
|
13393
|
+
const s = a("pageDesc"), i = a("el-input"), d = a("el-form-item"), p = a("el-option"), b = a("el-select"), f = a("el-button"), g = a("el-form"), C = a("el-image"), k = a("UserFilled"), v = a("el-icon"), S = a("el-table-column"), U = a("el-divider"), I = a("el-table"), w = a("el-pagination"), D = a("ListReport"), h = a("addMemberDrawer"), H = M("emoji"), ce = M("permission"), re = M("loading");
|
|
13394
|
+
return m(), V("div", ms, [
|
|
13333
13395
|
o(s, { desc: "成员管理,支持系统成员的增删改查。" }),
|
|
13334
|
-
|
|
13396
|
+
E((m(), _(D, { class: "member_block" }, {
|
|
13335
13397
|
filter: n(() => [
|
|
13336
|
-
o(
|
|
13398
|
+
o(g, {
|
|
13337
13399
|
ref: "searchForm",
|
|
13338
13400
|
inline: !0,
|
|
13339
13401
|
model: e.queryParams,
|
|
@@ -13346,7 +13408,7 @@ function ps(e, t, r, l, u, g) {
|
|
|
13346
13408
|
prop: "keyword"
|
|
13347
13409
|
}, {
|
|
13348
13410
|
default: n(() => [
|
|
13349
|
-
|
|
13411
|
+
E(o(i, {
|
|
13350
13412
|
modelValue: e.queryParams.query.keyword,
|
|
13351
13413
|
"onUpdate:modelValue": t[0] || (t[0] = (G) => e.queryParams.query.keyword = G),
|
|
13352
13414
|
placeholder: "请输入成员昵称、手机号",
|
|
@@ -13363,7 +13425,7 @@ function ps(e, t, r, l, u, g) {
|
|
|
13363
13425
|
prop: "enabledFlag"
|
|
13364
13426
|
}, {
|
|
13365
13427
|
default: n(() => [
|
|
13366
|
-
o(
|
|
13428
|
+
o(b, {
|
|
13367
13429
|
modelValue: e.queryParams.query.enabledFlag,
|
|
13368
13430
|
"onUpdate:modelValue": t[1] || (t[1] = (G) => e.queryParams.query.enabledFlag = G),
|
|
13369
13431
|
placeholder: "请选择状态"
|
|
@@ -13505,7 +13567,7 @@ function ps(e, t, r, l, u, g) {
|
|
|
13505
13567
|
width: "220"
|
|
13506
13568
|
}, {
|
|
13507
13569
|
default: n((G) => [
|
|
13508
|
-
|
|
13570
|
+
E((m(), _(f, {
|
|
13509
13571
|
type: "primary",
|
|
13510
13572
|
text: "",
|
|
13511
13573
|
onClick: (Q) => e.handleChangeStatus(G.row, G.row.enabledFlag)
|
|
@@ -13536,7 +13598,7 @@ function ps(e, t, r, l, u, g) {
|
|
|
13536
13598
|
}, 8, ["data", "loading"])
|
|
13537
13599
|
]),
|
|
13538
13600
|
pagination: n(() => [
|
|
13539
|
-
o(
|
|
13601
|
+
o(w, {
|
|
13540
13602
|
class: "pagination",
|
|
13541
13603
|
background: "",
|
|
13542
13604
|
"current-page": e.queryParams.pageNo,
|
|
@@ -13555,7 +13617,7 @@ function ps(e, t, r, l, u, g) {
|
|
|
13555
13617
|
o(h, { ref: "addMemberDrawer" }, null, 512)
|
|
13556
13618
|
]);
|
|
13557
13619
|
}
|
|
13558
|
-
const
|
|
13620
|
+
const Hs = /* @__PURE__ */ z(ps, [["render", cs], ["__scopeId", "data-v-b5e7e198"]]);
|
|
13559
13621
|
export {
|
|
13560
13622
|
mt as A,
|
|
13561
13623
|
Mo as B,
|
|
@@ -13564,34 +13626,34 @@ export {
|
|
|
13564
13626
|
zo as E,
|
|
13565
13627
|
Yo as F,
|
|
13566
13628
|
ot as G,
|
|
13567
|
-
|
|
13568
|
-
|
|
13629
|
+
vs as H,
|
|
13630
|
+
L as I,
|
|
13569
13631
|
pt as J,
|
|
13570
13632
|
z as _,
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
|
|
13633
|
+
Is as a,
|
|
13634
|
+
Hs as b,
|
|
13635
|
+
Ts as c,
|
|
13636
|
+
Ms as d,
|
|
13637
|
+
Rs as e,
|
|
13638
|
+
Os as f,
|
|
13639
|
+
Ls as g,
|
|
13640
|
+
Es as h,
|
|
13641
|
+
Vs as i,
|
|
13642
|
+
js as j,
|
|
13643
|
+
qs as k,
|
|
13644
|
+
As as l,
|
|
13645
|
+
Bs as m,
|
|
13646
|
+
Us as n,
|
|
13647
|
+
zs as o,
|
|
13648
|
+
Fs as p,
|
|
13649
|
+
Ss as q,
|
|
13650
|
+
Ys as r,
|
|
13651
|
+
$s as s,
|
|
13652
|
+
Ks as t,
|
|
13653
|
+
Ds as u,
|
|
13654
|
+
Ns as v,
|
|
13655
|
+
Ps as w,
|
|
13656
|
+
se as x,
|
|
13595
13657
|
At as y,
|
|
13596
13658
|
Ot as z
|
|
13597
13659
|
};
|