@epxing/business 5.3.0-beta.2 → 5.3.0-beta.3
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/API.md +8 -4
- package/README.md +44 -44
- package/dist/src/base/AiSkillEditor.js +1 -1
- package/dist/src/base/AiSkillEditor.vue.js +2 -0
- package/dist/src/base/AppConfigFormItem.js +1 -3
- package/dist/src/base/AppConfigFormItem.vue.js +210 -85
- package/dist/src/base/CommonFieldList.js +1 -1
- package/dist/src/base/CommonFieldList.vue.js +2 -1
- package/dist/src/base/ConfigModuleIndex.js +38 -1
- package/dist/src/base/ManageAppNav.js +1 -1
- package/dist/src/base/ManageMenu.js +1 -1
- package/dist/src/base/RoleBindTrace.js +253 -0
- package/dist/src/base/RoleGroupManage.js +1037 -0
- package/dist/src/base/ServiceMenu.js +7 -6
- package/dist/src/components/AiList.js +1278 -3
- package/dist/src/components/EntityCheckboxFind.vue.js +14 -10
- package/dist/src/components/EntityRightFormItem.js +1 -5
- package/dist/src/components/EntityRightFormItem.vue.js +3 -1
- package/dist/src/components/EntitySystemEr.js +492 -0
- package/dist/src/components/HallNav.vue.js +7 -36
- package/dist/src/components/IconFontLibrary.js +22 -1
- package/dist/src/components/IconFontList.js +21 -1
- package/dist/src/components/PrintFormList.js +2 -1
- package/dist/src/components/PrintFormList.vue.js +3 -1
- package/dist/src/components/WikiWorkbench.js +153 -129
- package/dist/src/components/authorization/AuthorizationInterface.js +3 -1
- package/dist/src/components/custom-bpmn/PropertiesView.js +1991 -1942
- package/dist/src/components/icon-gallery/IconGallery.js +193 -0
- package/dist/src/components/icon-gallery/mixin.js +150 -0
- package/dist/src/components/wiki-workbench/WikiIntake.js +86 -93
- package/dist/src/components/wiki-workbench/WikiIntake.vue.js +153 -73
- package/dist/src/index.js +26 -20
- package/dist/src/public-components.js +16 -14
- package/dist/src/route-components.js +5 -5
- package/dist/src/system.component.index.js +1 -1
- package/dist/src/system.component.js +8 -3
- package/dist/src/system.component.lazy.js +1 -1
- package/dist/src/views/Add.js +1 -1
- package/dist/src/views/Add.vue.js +8 -3
- package/dist/src/views/AiToolManager.js +792 -317
- package/dist/src/views/App.js +3 -45
- package/dist/src/views/AppRoleSelect.js +3 -230
- package/dist/src/views/Error.js +3 -207
- package/dist/src/views/ExcelDesign.js +326 -316
- package/dist/src/views/JvmMemoryMonitor.js +463 -0
- package/dist/src/views/Module.js +3 -170
- package/dist/src/views/WikiBinding.js +88 -25
- package/dist/style.css +2867 -1487
- package/package.json +12 -6
- package/src/base/AiSkillEditor.vue +2 -0
- package/src/base/AppConfigFormItem.vue +211 -145
- package/src/base/CommonFieldList.vue +9 -6
- package/src/base/ConfigModuleIndex.vue +37 -1
- package/src/base/ManageAppNav.vue +1188 -1188
- package/src/base/ManageMenu.vue +933 -933
- package/src/base/RoleBindTrace.vue +364 -0
- package/src/base/RoleGroupManage.vue +1160 -0
- package/src/base/ServiceMenu.vue +6 -5
- package/src/components/AiList.vue +439 -113
- package/src/components/EntityCheckboxFind.vue +12 -8
- package/src/components/EntityRightFormItem.vue +9 -10
- package/src/components/EntitySystemEr.vue +517 -0
- package/src/components/HallNav.vue +6 -33
- package/src/components/IconFontLibrary.vue +27 -60
- package/src/components/IconFontList.vue +13 -64
- package/src/components/PrintFormList.vue +33 -27
- package/src/components/WikiWorkbench.vue +90 -60
- package/src/components/authorization/AuthorizationInterface.vue +2 -0
- package/src/components/custom-bpmn/CustomPalette.js +1 -1
- package/src/components/custom-bpmn/CustomRenderer.js +1 -1
- package/src/components/custom-bpmn/PropertiesView.vue +35 -4
- package/src/components/custom-bpmn/index.js +1 -1
- package/src/components/icon-gallery/IconGallery.vue +130 -0
- package/src/components/icon-gallery/mixin.jsx +109 -0
- package/src/components/wiki-workbench/WikiIntake.vue +178 -104
- package/src/index.js +24 -20
- package/src/public-components.js +1 -0
- package/src/route-components.js +4 -4
- package/src/system.component.index.js +1 -1
- package/src/views/Add.vue +8 -5
- package/src/views/AiToolManager.vue +326 -4
- package/src/views/App.vue +4 -53
- package/src/views/AppRoleSelect.vue +4 -334
- package/src/views/Error.vue +4 -63
- package/src/views/ExcelDesign.vue +24 -7
- package/src/views/JvmMemoryMonitor.vue +284 -0
- package/src/views/Module.vue +4 -210
- package/src/views/WikiBinding.vue +42 -0
- package/types/app.d.ts +1 -0
- package/types/dept-find.d.ts +1 -1
- package/types/index.d.ts +15 -14
- package/types/popup.d.ts +2 -2
- package/types/route-components.d.ts +1 -1
- package/types/user-find.d.ts +1 -1
- package/dist/assets/role_select-DTqRlFNz.webp +0 -0
- package/dist/src/components/AiList.vue.js +0 -93
- package/dist/src/components/IconFontLibrary.vue.js +0 -67
- package/dist/src/components/IconFontList.vue.js +0 -79
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../style.css';
|
|
2
2
|
import component from "@epxing/core/src/mixins/component";
|
|
3
|
-
import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, withCtx, Fragment, toDisplayString, createCommentVNode, normalizeStyle, vShow, renderList,
|
|
3
|
+
import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, withCtx, Fragment, toDisplayString, createCommentVNode, normalizeStyle, createBlock, vShow, renderList, normalizeClass } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
/* empty css */
|
|
@@ -31,6 +31,8 @@ const _sfc_main = {
|
|
|
31
31
|
// 「这个空间里到底有什么」。配置收进右上角按钮
|
|
32
32
|
view: "content",
|
|
33
33
|
contentHeight: 0,
|
|
34
|
+
syncing: false,
|
|
35
|
+
inspecting: false,
|
|
34
36
|
form: { scope: "", retrieval: "exact" }
|
|
35
37
|
};
|
|
36
38
|
},
|
|
@@ -207,6 +209,26 @@ const _sfc_main = {
|
|
|
207
209
|
else site.openFirst();
|
|
208
210
|
});
|
|
209
211
|
},
|
|
212
|
+
shareWiki() {
|
|
213
|
+
const site = this.$refs.wikiSite;
|
|
214
|
+
if (site) site.share();
|
|
215
|
+
},
|
|
216
|
+
doSync() {
|
|
217
|
+
this.syncing = true;
|
|
218
|
+
this.$http.update({ action: "sync", entityId: WIKI_META, wikiId: this.space.ID }).then((d) => {
|
|
219
|
+
this.$message.success(d && d.message || "同步完成");
|
|
220
|
+
this.refreshWiki();
|
|
221
|
+
this.load();
|
|
222
|
+
}).catch((e) => this.$message.error(e && e.message || "同步失败")).finally(() => {
|
|
223
|
+
this.syncing = false;
|
|
224
|
+
});
|
|
225
|
+
},
|
|
226
|
+
doInspect() {
|
|
227
|
+
this.inspecting = true;
|
|
228
|
+
this.$http.update({ action: "inspect", entityId: WIKI_META, wikiId: this.space.ID, maintain: "true" }).then((d) => this.$message.success(d && d.message || "体检与索引维护完成")).catch((e) => this.$message.error(e && e.message || "体检与索引维护失败")).finally(() => {
|
|
229
|
+
this.inspecting = false;
|
|
230
|
+
});
|
|
231
|
+
},
|
|
210
232
|
/** 从入库记录点击生成页时,回到内容视图并打开同一页。 */
|
|
211
233
|
openGeneratedPage(path) {
|
|
212
234
|
this.view = "content";
|
|
@@ -341,27 +363,68 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
341
363
|
_: 1
|
|
342
364
|
})
|
|
343
365
|
]),
|
|
366
|
+
"doc-ops": withCtx(() => [
|
|
367
|
+
_cache[19] || (_cache[19] = createElementVNode("span", { class: "wiki-binding__doc-sep" }, null, -1)),
|
|
368
|
+
$data.space.SOURCE_TYPE && $data.space.SOURCE_TYPE !== "db" ? (openBlock(), createBlock(_component_el_button, {
|
|
369
|
+
key: 0,
|
|
370
|
+
type: "success",
|
|
371
|
+
plain: "",
|
|
372
|
+
size: "small",
|
|
373
|
+
icon: "el-icon-refresh",
|
|
374
|
+
loading: $data.syncing,
|
|
375
|
+
onClick: $options.doSync
|
|
376
|
+
}, {
|
|
377
|
+
default: withCtx(() => [..._cache[17] || (_cache[17] = [
|
|
378
|
+
createTextVNode("同步远端", -1)
|
|
379
|
+
])]),
|
|
380
|
+
_: 1
|
|
381
|
+
}, 8, ["loading", "onClick"])) : createCommentVNode("", true),
|
|
382
|
+
createVNode(_component_el_button, {
|
|
383
|
+
type: "primary",
|
|
384
|
+
size: "small",
|
|
385
|
+
icon: "el-icon-s-tools",
|
|
386
|
+
loading: $data.inspecting,
|
|
387
|
+
onClick: $options.doInspect
|
|
388
|
+
}, {
|
|
389
|
+
default: withCtx(() => [
|
|
390
|
+
createTextVNode(toDisplayString($data.inspecting ? "检查中…" : "体检与索引维护"), 1)
|
|
391
|
+
]),
|
|
392
|
+
_: 1
|
|
393
|
+
}, 8, ["loading", "onClick"]),
|
|
394
|
+
createVNode(_component_el_button, {
|
|
395
|
+
type: "primary",
|
|
396
|
+
plain: "",
|
|
397
|
+
size: "small",
|
|
398
|
+
icon: "el-icon-share",
|
|
399
|
+
onClick: $options.shareWiki
|
|
400
|
+
}, {
|
|
401
|
+
default: withCtx(() => [..._cache[18] || (_cache[18] = [
|
|
402
|
+
createTextVNode("分享", -1)
|
|
403
|
+
])]),
|
|
404
|
+
_: 1
|
|
405
|
+
}, 8, ["onClick"])
|
|
406
|
+
]),
|
|
344
407
|
_: 1
|
|
345
408
|
}, 8, ["space-id"])
|
|
346
409
|
], 4), [
|
|
347
410
|
[vShow, $data.view === "content"]
|
|
348
411
|
]),
|
|
349
412
|
$data.view === "content" && !$data.space.PAGES ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
350
|
-
_cache[
|
|
413
|
+
_cache[20] || (_cache[20] = createElementVNode("b", null, "这个空间还没有页", -1)),
|
|
351
414
|
createTextVNode(",现在问答检索不到任何内容,答案也不会有引用。下一步:" + toDisplayString($options.nextStep) + "。 ", 1)
|
|
352
415
|
])) : createCommentVNode("", true),
|
|
353
416
|
$data.view === "config" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
354
417
|
createElementVNode("div", _hoisted_6, [
|
|
355
418
|
createElementVNode("div", _hoisted_7, [
|
|
356
|
-
_cache[
|
|
357
|
-
_cache[
|
|
419
|
+
_cache[23] || (_cache[23] = createTextVNode(" 绑定的空间 ", -1)),
|
|
420
|
+
_cache[24] || (_cache[24] = createElementVNode("span", { class: "wiki-binding__sub" }, "一个智能体只能绑一个空间", -1)),
|
|
358
421
|
createElementVNode("span", _hoisted_8, [
|
|
359
422
|
createVNode(_component_el_button, {
|
|
360
423
|
type: "primary",
|
|
361
424
|
link: "",
|
|
362
425
|
onClick: _cache[2] || (_cache[2] = ($event) => $data.view = "content")
|
|
363
426
|
}, {
|
|
364
|
-
default: withCtx(() => [..._cache[
|
|
427
|
+
default: withCtx(() => [..._cache[21] || (_cache[21] = [
|
|
365
428
|
createTextVNode("← 返回内容", -1)
|
|
366
429
|
])]),
|
|
367
430
|
_: 1
|
|
@@ -371,7 +434,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
371
434
|
link: "",
|
|
372
435
|
onClick: $options.goAdvanced
|
|
373
436
|
}, {
|
|
374
|
-
default: withCtx(() => [..._cache[
|
|
437
|
+
default: withCtx(() => [..._cache[22] || (_cache[22] = [
|
|
375
438
|
createTextVNode("⚙ 高级设置", -1)
|
|
376
439
|
])]),
|
|
377
440
|
_: 1
|
|
@@ -379,24 +442,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
379
442
|
])
|
|
380
443
|
]),
|
|
381
444
|
createElementVNode("div", _hoisted_9, [
|
|
382
|
-
_cache[
|
|
445
|
+
_cache[31] || (_cache[31] = createElementVNode("span", { class: "wiki-binding__boundcard-avt" }, "📚", -1)),
|
|
383
446
|
createElementVNode("div", _hoisted_10, [
|
|
384
447
|
createElementVNode("div", _hoisted_11, toDisplayString($data.space.NAME), 1),
|
|
385
448
|
createElementVNode("div", _hoisted_12, [
|
|
386
449
|
createElementVNode("span", null, [
|
|
387
|
-
_cache[
|
|
450
|
+
_cache[25] || (_cache[25] = createTextVNode("空间编码 ", -1)),
|
|
388
451
|
createElementVNode("b", null, toDisplayString($data.space.CODE), 1)
|
|
389
452
|
]),
|
|
390
453
|
createElementVNode("span", null, [
|
|
391
|
-
_cache[
|
|
454
|
+
_cache[26] || (_cache[26] = createTextVNode("源类型 ", -1)),
|
|
392
455
|
createElementVNode("b", null, toDisplayString($options.sourceName), 1)
|
|
393
456
|
]),
|
|
394
457
|
createElementVNode("span", null, [
|
|
395
|
-
_cache[
|
|
458
|
+
_cache[27] || (_cache[27] = createTextVNode("页数 ", -1)),
|
|
396
459
|
createElementVNode("b", null, toDisplayString($data.space.PAGES || 0), 1)
|
|
397
460
|
]),
|
|
398
461
|
$data.space.LAST_SYNC_TIME ? (openBlock(), createElementBlock("span", _hoisted_13, [
|
|
399
|
-
_cache[
|
|
462
|
+
_cache[28] || (_cache[28] = createTextVNode("最后同步 ", -1)),
|
|
400
463
|
createElementVNode("b", null, toDisplayString($data.space.LAST_SYNC_TIME), 1)
|
|
401
464
|
])) : createCommentVNode("", true)
|
|
402
465
|
])
|
|
@@ -406,7 +469,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
406
469
|
size: "small",
|
|
407
470
|
onClick: $options.openPicker
|
|
408
471
|
}, {
|
|
409
|
-
default: withCtx(() => [..._cache[
|
|
472
|
+
default: withCtx(() => [..._cache[29] || (_cache[29] = [
|
|
410
473
|
createTextVNode("换绑", -1)
|
|
411
474
|
])]),
|
|
412
475
|
_: 1
|
|
@@ -416,7 +479,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
416
479
|
class: "wiki-binding__danger",
|
|
417
480
|
onClick: $options.unbind
|
|
418
481
|
}, {
|
|
419
|
-
default: withCtx(() => [..._cache[
|
|
482
|
+
default: withCtx(() => [..._cache[30] || (_cache[30] = [
|
|
420
483
|
createTextVNode("解绑", -1)
|
|
421
484
|
])]),
|
|
422
485
|
_: 1
|
|
@@ -425,7 +488,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
425
488
|
])
|
|
426
489
|
]),
|
|
427
490
|
createElementVNode("div", _hoisted_15, [
|
|
428
|
-
_cache[
|
|
491
|
+
_cache[34] || (_cache[34] = createElementVNode("div", { class: "wiki-binding__card-head" }, [
|
|
429
492
|
createTextVNode(" 检索与引用 "),
|
|
430
493
|
createElementVNode("span", { class: "wiki-binding__sub" }, "决定这个智能体怎么用这个空间")
|
|
431
494
|
], -1)),
|
|
@@ -460,7 +523,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
460
523
|
]),
|
|
461
524
|
_: 1
|
|
462
525
|
}, 8, ["modelValue"]),
|
|
463
|
-
_cache[
|
|
526
|
+
_cache[32] || (_cache[32] = createElementVNode("div", { class: "wiki-binding__hint" }, " 收窄到某个目录,是「同一空间的子集」,不违反一个智能体只绑一个空间 ", -1))
|
|
464
527
|
]),
|
|
465
528
|
_: 1
|
|
466
529
|
})
|
|
@@ -494,7 +557,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
494
557
|
]),
|
|
495
558
|
_: 1
|
|
496
559
|
}, 8, ["modelValue"]),
|
|
497
|
-
_cache[
|
|
560
|
+
_cache[33] || (_cache[33] = createElementVNode("div", { class: "wiki-binding__hint" }, " 一期只有关键词一条路,命中不了就是「没有页覆盖」,会落成待办。置灰的两项二期开放 ", -1))
|
|
498
561
|
]),
|
|
499
562
|
_: 1
|
|
500
563
|
})
|
|
@@ -512,14 +575,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
512
575
|
], 64)) : createCommentVNode("", true),
|
|
513
576
|
$data.view === "intake" ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
514
577
|
createElementVNode("div", _hoisted_18, [
|
|
515
|
-
_cache[
|
|
516
|
-
_cache[
|
|
578
|
+
_cache[36] || (_cache[36] = createTextVNode(" 上传原始文件 ", -1)),
|
|
579
|
+
_cache[37] || (_cache[37] = createElementVNode("span", { class: "wiki-binding__sub" }, "上传、处理及生成进度", -1)),
|
|
517
580
|
createElementVNode("span", _hoisted_19, [
|
|
518
581
|
createVNode(_component_el_button, {
|
|
519
582
|
type: "text",
|
|
520
583
|
onClick: _cache[7] || (_cache[7] = ($event) => $data.view = "content")
|
|
521
584
|
}, {
|
|
522
|
-
default: withCtx(() => [..._cache[
|
|
585
|
+
default: withCtx(() => [..._cache[35] || (_cache[35] = [
|
|
523
586
|
createTextVNode("← 返回内容", -1)
|
|
524
587
|
])]),
|
|
525
588
|
_: 1
|
|
@@ -546,7 +609,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
546
609
|
size: "small",
|
|
547
610
|
onClick: _cache[8] || (_cache[8] = ($event) => $data.pickerVisible = false)
|
|
548
611
|
}, {
|
|
549
|
-
default: withCtx(() => [..._cache[
|
|
612
|
+
default: withCtx(() => [..._cache[41] || (_cache[41] = [
|
|
550
613
|
createTextVNode("取消", -1)
|
|
551
614
|
])]),
|
|
552
615
|
_: 1
|
|
@@ -565,7 +628,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
565
628
|
])
|
|
566
629
|
]),
|
|
567
630
|
default: withCtx(() => [
|
|
568
|
-
_cache[
|
|
631
|
+
_cache[42] || (_cache[42] = createElementVNode("div", { class: "wiki-binding__pick-tip" }, " 列出所有空间,包括当前不可选的——并说明原因。 ", -1)),
|
|
569
632
|
createElementVNode("div", _hoisted_20, [
|
|
570
633
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.spaces, (s) => {
|
|
571
634
|
return openBlock(), createElementBlock("button", {
|
|
@@ -573,7 +636,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
573
636
|
class: normalizeClass(["wiki-binding__pick-row", { "is-on": $data.pick === s.ID, "is-off": !$options.usable(s).ok }]),
|
|
574
637
|
onClick: ($event) => $options.usable(s).ok && ($data.pick = s.ID)
|
|
575
638
|
}, [
|
|
576
|
-
_cache[
|
|
639
|
+
_cache[39] || (_cache[39] = createElementVNode("span", { class: "wiki-binding__pick-rd" }, null, -1)),
|
|
577
640
|
createElementVNode("span", _hoisted_22, [
|
|
578
641
|
createElementVNode("span", _hoisted_23, [
|
|
579
642
|
createTextVNode(toDisplayString(s.NAME) + " ", 1),
|
|
@@ -581,7 +644,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
581
644
|
key: 0,
|
|
582
645
|
size: "small"
|
|
583
646
|
}, {
|
|
584
|
-
default: withCtx(() => [..._cache[
|
|
647
|
+
default: withCtx(() => [..._cache[38] || (_cache[38] = [
|
|
585
648
|
createTextVNode("当前", -1)
|
|
586
649
|
])]),
|
|
587
650
|
_: 1
|
|
@@ -596,7 +659,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
596
659
|
], 10, _hoisted_21);
|
|
597
660
|
}), 128))
|
|
598
661
|
]),
|
|
599
|
-
$options.bound ? (openBlock(), createElementBlock("div", _hoisted_26, [..._cache[
|
|
662
|
+
$options.bound ? (openBlock(), createElementBlock("div", _hoisted_26, [..._cache[40] || (_cache[40] = [
|
|
600
663
|
createTextVNode(" 换绑", -1),
|
|
601
664
|
createElementVNode("b", null, "不会删任何东西", -1),
|
|
602
665
|
createTextVNode(":新空间的内容立即生效;历史回答里的引用仍指向旧空间的那一版,照样打得开。 ", -1)
|
|
@@ -608,7 +671,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
608
671
|
[_directive_loading, $data.loading]
|
|
609
672
|
]);
|
|
610
673
|
}
|
|
611
|
-
const WikiBinding = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
674
|
+
const WikiBinding = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1cc76e7a"]]);
|
|
612
675
|
export {
|
|
613
676
|
WikiBinding as default
|
|
614
677
|
};
|