@fecp/designer 5.6.27 → 5.6.28
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/es/_virtual/index2.mjs +5 -3
- package/es/_virtual/index3.mjs +3 -5
- package/es/_virtual/index4.mjs +2 -2
- package/es/_virtual/index5.mjs +2 -2
- package/es/designer/package.json.mjs +1 -1
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer.css +81 -83
- package/es/node_modules/@braintree/sanitize-url/dist/index.mjs +1 -1
- package/es/node_modules/diagram-js/lib/model/index.mjs +1 -1
- package/es/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-LMCZKHZV.mjs +1 -1
- package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-32BRIVSS.mjs +1 -1
- package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICXQ74PX.mjs +1 -1
- package/es/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-OUVF2IWQ.mjs +1 -1
- package/es/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-EOCWNBFH.mjs +1 -1
- package/es/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-23GEKE2U.mjs +1 -1
- package/es/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-NO4QXBWP.mjs +1 -1
- package/es/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-DBY2YBRQ.mjs +1 -1
- package/es/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-2N3HPSRC.mjs +1 -1
- package/es/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-6OUMAXLB.mjs +1 -1
- package/es/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-G3AALYLV.mjs +1 -1
- package/es/node_modules/object-refs/index.mjs +1 -1
- package/es/packages/mobile/index.mjs +2 -0
- package/es/packages/mobile/src/components/all.mjs +2 -0
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/mobile/src/components/custom/aiAssistant/AiAssistant.vue.mjs +91 -0
- package/es/packages/mobile/src/components/custom/aiAssistant/index.mjs +10 -0
- package/es/packages/mobile/src/components/custom/appDetail/AppDetail.vue.mjs +25 -16
- package/es/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.mjs +7 -3
- package/es/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.mjs +2 -2
- package/es/packages/mobile/src/index.vue.mjs +14 -68
- package/es/packages/vue/src/components/bus/flowChart/bpmnjs/component/NodeItem.vue.mjs +1 -1
- package/es/packages/vue/src/components/bus/flowChart/bpmnjs/component/timeline.vue.mjs +1 -1
- package/lib/_virtual/index2.js +6 -4
- package/lib/_virtual/index3.js +4 -6
- package/lib/_virtual/index4.js +2 -2
- package/lib/_virtual/index5.js +2 -2
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer.css +81 -83
- package/lib/node_modules/@braintree/sanitize-url/dist/index.js +1 -1
- package/lib/node_modules/diagram-js/lib/model/index.js +1 -1
- package/lib/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-LMCZKHZV.js +1 -1
- package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-32BRIVSS.js +1 -1
- package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICXQ74PX.js +1 -1
- package/lib/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-OUVF2IWQ.js +1 -1
- package/lib/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-EOCWNBFH.js +1 -1
- package/lib/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-23GEKE2U.js +1 -1
- package/lib/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-NO4QXBWP.js +1 -1
- package/lib/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-DBY2YBRQ.js +1 -1
- package/lib/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-2N3HPSRC.js +1 -1
- package/lib/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-6OUMAXLB.js +1 -1
- package/lib/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-G3AALYLV.js +1 -1
- package/lib/node_modules/object-refs/index.js +1 -1
- package/lib/packages/mobile/index.js +4 -2
- package/lib/packages/mobile/src/components/all.js +2 -0
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/mobile/src/components/custom/aiAssistant/AiAssistant.vue.js +91 -0
- package/lib/packages/mobile/src/components/custom/aiAssistant/index.js +10 -0
- package/lib/packages/mobile/src/components/custom/appDetail/AppDetail.vue.js +25 -16
- package/lib/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.js +7 -3
- package/lib/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.js +2 -2
- package/lib/packages/mobile/src/index.vue.js +17 -71
- package/lib/packages/vue/src/components/bus/flowChart/bpmnjs/component/NodeItem.vue.js +1 -1
- package/lib/packages/vue/src/components/bus/flowChart/bpmnjs/component/timeline.vue.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { assign } from "../../../min-dash/dist/index.esm.mjs";
|
|
2
2
|
import e from "../../../inherits-browser/dist/index.es.mjs";
|
|
3
|
-
import Refs from "../../../../_virtual/
|
|
3
|
+
import Refs from "../../../../_virtual/index2.mjs";
|
|
4
4
|
var parentRefs = new Refs({ name: "children", enumerable: true, collection: true }, { name: "parent" }), labelRefs = new Refs({ name: "labels", enumerable: true, collection: true }, { name: "labelTarget" }), attacherRefs = new Refs({ name: "attachers", collection: true }, { name: "host" }), outgoingRefs = new Refs({ name: "outgoing", collection: true }, { name: "source" }), incomingRefs = new Refs({ name: "incoming", collection: true }, { name: "target" });
|
|
5
5
|
function Base() {
|
|
6
6
|
Object.defineProperty(this, "businessObject", {
|
|
@@ -6,7 +6,7 @@ import { log } from "./chunk-X3CZISLH.mjs";
|
|
|
6
6
|
import { __name } from "./chunk-Y2CYZVJY.mjs";
|
|
7
7
|
import "../../../../d3-transition/src/selection/index.mjs";
|
|
8
8
|
import "../../../../d3-zoom/src/transform.mjs";
|
|
9
|
-
import { d as distExports } from "../../../../../_virtual/
|
|
9
|
+
import { d as distExports } from "../../../../../_virtual/index3.mjs";
|
|
10
10
|
import select from "../../../../d3-selection/src/select.mjs";
|
|
11
11
|
var parser = function() {
|
|
12
12
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { lineBreakRegex } from "./chunk-WYO6CB5R.mjs";
|
|
2
2
|
import { __name } from "./chunk-Y2CYZVJY.mjs";
|
|
3
|
-
import { d as distExports } from "../../../../../_virtual/
|
|
3
|
+
import { d as distExports } from "../../../../../_virtual/index3.mjs";
|
|
4
4
|
import "../../../../d3-transition/src/selection/index.mjs";
|
|
5
5
|
import "../../../../d3-zoom/src/transform.mjs";
|
|
6
6
|
import select from "../../../../d3-selection/src/select.mjs";
|
|
@@ -2,7 +2,7 @@ var _a;
|
|
|
2
2
|
import { assignWithDepth_default, directiveRegex, sanitizeDirective, detectType, common_default } from "./chunk-WYO6CB5R.mjs";
|
|
3
3
|
import { log } from "./chunk-X3CZISLH.mjs";
|
|
4
4
|
import { __name } from "./chunk-Y2CYZVJY.mjs";
|
|
5
|
-
import { d as distExports } from "../../../../../_virtual/
|
|
5
|
+
import { d as distExports } from "../../../../../_virtual/index3.mjs";
|
|
6
6
|
import "../../../../d3-transition/src/selection/index.mjs";
|
|
7
7
|
import "../../../../d3-zoom/src/transform.mjs";
|
|
8
8
|
import { memoize } from "../../../../es-toolkit/dist/compat/function/memoize.mjs";
|
|
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.mjs";
|
|
|
5
5
|
import "./chunk-WYO6CB5R.mjs";
|
|
6
6
|
import "../../../../../_virtual/dayjs.min.mjs";
|
|
7
7
|
import "./chunk-FWX5IMBZ.mjs";
|
|
8
|
-
import "../../../../../_virtual/
|
|
8
|
+
import "../../../../../_virtual/index3.mjs";
|
|
9
9
|
import "./chunk-52WLFC77.mjs";
|
|
10
10
|
import "./chunk-ZGVPDNZ5.mjs";
|
|
11
11
|
import "./chunk-7BUUIJ7U.mjs";
|
|
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.mjs";
|
|
|
5
5
|
import "./chunk-WYO6CB5R.mjs";
|
|
6
6
|
import "../../../../../_virtual/dayjs.min.mjs";
|
|
7
7
|
import "./chunk-FWX5IMBZ.mjs";
|
|
8
|
-
import "../../../../../_virtual/
|
|
8
|
+
import "../../../../../_virtual/index3.mjs";
|
|
9
9
|
import "./chunk-52WLFC77.mjs";
|
|
10
10
|
import "./chunk-ZGVPDNZ5.mjs";
|
|
11
11
|
import "./chunk-7BUUIJ7U.mjs";
|
|
@@ -5,7 +5,7 @@ import "./chunk-WYO6CB5R.mjs";
|
|
|
5
5
|
import "../../../../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import "./chunk-ZIRB5QZD.mjs";
|
|
7
7
|
import "./chunk-FWX5IMBZ.mjs";
|
|
8
|
-
import "../../../../../_virtual/
|
|
8
|
+
import "../../../../../_virtual/index3.mjs";
|
|
9
9
|
import "./chunk-52WLFC77.mjs";
|
|
10
10
|
import "./chunk-ZGVPDNZ5.mjs";
|
|
11
11
|
import "./chunk-7BUUIJ7U.mjs";
|
|
@@ -2,7 +2,7 @@ import { utils_default } from "./chunk-ICXQ74PX.mjs";
|
|
|
2
2
|
import { getAccDescription, setAccDescription, getDiagramTitle, setDiagramTitle, getAccTitle, setAccTitle, getConfig2, configureSvgSize, common_default, clear } from "./chunk-WYO6CB5R.mjs";
|
|
3
3
|
import { log } from "./chunk-X3CZISLH.mjs";
|
|
4
4
|
import { __name } from "./chunk-Y2CYZVJY.mjs";
|
|
5
|
-
import { d as distExports } from "../../../../../_virtual/
|
|
5
|
+
import { d as distExports } from "../../../../../_virtual/index3.mjs";
|
|
6
6
|
import dayjs2 from "../../../../../_virtual/dayjs.min.mjs";
|
|
7
7
|
import dayjsIsoWeek from "../../../../../_virtual/isoWeek.mjs";
|
|
8
8
|
import dayjsCustomParseFormat from "../../../../../_virtual/customParseFormat.mjs";
|
|
@@ -8,7 +8,7 @@ import { log } from "./chunk-X3CZISLH.mjs";
|
|
|
8
8
|
import { __name } from "./chunk-Y2CYZVJY.mjs";
|
|
9
9
|
import "../../../../d3-transition/src/selection/index.mjs";
|
|
10
10
|
import "../../../../d3-zoom/src/transform.mjs";
|
|
11
|
-
import { d as distExports } from "../../../../../_virtual/
|
|
11
|
+
import { d as distExports } from "../../../../../_virtual/index3.mjs";
|
|
12
12
|
import select from "../../../../d3-selection/src/select.mjs";
|
|
13
13
|
var parser = function() {
|
|
14
14
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.mjs";
|
|
|
5
5
|
import { getConfig2, configureSvgSize, common_default, getUrl } from "./chunk-WYO6CB5R.mjs";
|
|
6
6
|
import { log } from "./chunk-X3CZISLH.mjs";
|
|
7
7
|
import "./chunk-FWX5IMBZ.mjs";
|
|
8
|
-
import "../../../../../_virtual/
|
|
8
|
+
import "../../../../../_virtual/index3.mjs";
|
|
9
9
|
import "./chunk-52WLFC77.mjs";
|
|
10
10
|
import "./chunk-ZGVPDNZ5.mjs";
|
|
11
11
|
import "./chunk-7BUUIJ7U.mjs";
|
|
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.mjs";
|
|
|
5
5
|
import "./chunk-WYO6CB5R.mjs";
|
|
6
6
|
import "../../../../../_virtual/dayjs.min.mjs";
|
|
7
7
|
import "./chunk-FWX5IMBZ.mjs";
|
|
8
|
-
import "../../../../../_virtual/
|
|
8
|
+
import "../../../../../_virtual/index3.mjs";
|
|
9
9
|
import "./chunk-52WLFC77.mjs";
|
|
10
10
|
import "./chunk-ZGVPDNZ5.mjs";
|
|
11
11
|
import "./chunk-7BUUIJ7U.mjs";
|
|
@@ -6,7 +6,7 @@ import "./chunk-WYO6CB5R.mjs";
|
|
|
6
6
|
import "../../../../../_virtual/dayjs.min.mjs";
|
|
7
7
|
import "./chunk-ZIRB5QZD.mjs";
|
|
8
8
|
import "./chunk-FWX5IMBZ.mjs";
|
|
9
|
-
import "../../../../../_virtual/
|
|
9
|
+
import "../../../../../_virtual/index3.mjs";
|
|
10
10
|
import "./chunk-52WLFC77.mjs";
|
|
11
11
|
import "./chunk-ZGVPDNZ5.mjs";
|
|
12
12
|
import "./chunk-7BUUIJ7U.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as objectRefs } from "../../_virtual/
|
|
1
|
+
import { __module as objectRefs } from "../../_virtual/index4.mjs";
|
|
2
2
|
import { __require as requireRefs } from "./lib/refs.mjs";
|
|
3
3
|
import { __require as requireCollection } from "./lib/collection.mjs";
|
|
4
4
|
var hasRequiredObjectRefs;
|
|
@@ -80,6 +80,7 @@ import { MobileApprovalList } from "./src/components/custom/approvalList/index.m
|
|
|
80
80
|
import { MobileDocument } from "./src/components/custom/document/index.mjs";
|
|
81
81
|
import { MobileUserSelect } from "./src/components/custom/userSelect/index.mjs";
|
|
82
82
|
import { MobileCustomCode } from "./src/components/custom/customCode/index.mjs";
|
|
83
|
+
import { MobileAiAssistant } from "./src/components/custom/aiAssistant/index.mjs";
|
|
83
84
|
import { closeDialog, showConfirmDialog, showDialog } from "../../node_modules/vant/es/dialog/function-call.mjs";
|
|
84
85
|
import { showImagePreview } from "../../node_modules/vant/es/image-preview/function-call.mjs";
|
|
85
86
|
import { closeNotify, showNotify } from "../../node_modules/vant/es/notify/function-call.mjs";
|
|
@@ -95,6 +96,7 @@ const index = {
|
|
|
95
96
|
export {
|
|
96
97
|
MobileActionBar,
|
|
97
98
|
MobileActionSheet,
|
|
99
|
+
MobileAiAssistant,
|
|
98
100
|
MobileAiChat,
|
|
99
101
|
MobileAppDetail,
|
|
100
102
|
MobileApprovalBar,
|
|
@@ -78,9 +78,11 @@ import "./custom/appTimeLine/index.mjs";
|
|
|
78
78
|
import { MobileDocument } from "./custom/document/index.mjs";
|
|
79
79
|
import { MobileUserSelect } from "./custom/userSelect/index.mjs";
|
|
80
80
|
import { MobileCustomCode } from "./custom/customCode/index.mjs";
|
|
81
|
+
import { MobileAiAssistant } from "./custom/aiAssistant/index.mjs";
|
|
81
82
|
export {
|
|
82
83
|
MobileActionBar,
|
|
83
84
|
MobileActionSheet,
|
|
85
|
+
MobileAiAssistant,
|
|
84
86
|
MobileAiChat,
|
|
85
87
|
MobileAppDetail,
|
|
86
88
|
MobileApprovalBar,
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { createBlock, openBlock, withCtx, createVNode, renderSlot } from "vue";
|
|
9
|
+
/* empty css */
|
|
10
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
9
11
|
/* empty css */
|
|
10
12
|
/* empty css */
|
|
11
13
|
/* empty css */
|
|
12
14
|
/* empty css */
|
|
13
15
|
/* empty css */
|
|
14
|
-
/* empty css */
|
|
15
|
-
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
16
16
|
import { SwipeCell } from "../../../../../../node_modules/vant/es/swipe-cell/index.mjs";
|
|
17
17
|
import { showConfirmDialog } from "../../../../../../node_modules/vant/es/dialog/function-call.mjs";
|
|
18
18
|
import "../../../../../../node_modules/vant/es/dialog/index.mjs";
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { ref, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, createVNode, withCtx, createElementVNode, unref } from "vue";
|
|
8
|
+
import { MobileAiChat } from "../../ai/AiChat/index.mjs";
|
|
9
|
+
import ai2Icon from "../../../assets/images/ai2.png.mjs";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
12
|
+
import { FloatingBubble } from "../../../../../../node_modules/vant/es/floating-bubble/index.mjs";
|
|
13
|
+
import { Popup } from "../../../../../../node_modules/vant/es/popup/index.mjs";
|
|
14
|
+
const _hoisted_1 = ["src"];
|
|
15
|
+
const _sfc_main = {
|
|
16
|
+
__name: "AiAssistant",
|
|
17
|
+
props: {
|
|
18
|
+
visible: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
emits: ["navigate"],
|
|
24
|
+
setup(__props, { emit: __emit }) {
|
|
25
|
+
const emit = __emit;
|
|
26
|
+
const showChatPopup = ref(false);
|
|
27
|
+
const offset = ref({ x: -12, y: 500 });
|
|
28
|
+
function openChatPopup() {
|
|
29
|
+
if (window.__fecPlatform == "miniprogram") {
|
|
30
|
+
wx.miniProgram.navigateTo({
|
|
31
|
+
url: "/pages/chat/chat"
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
showChatPopup.value = true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function handleNavigate(href) {
|
|
38
|
+
showChatPopup.value = false;
|
|
39
|
+
emit("navigate", href);
|
|
40
|
+
}
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
const _component_van_floating_bubble = FloatingBubble;
|
|
43
|
+
const _component_van_popup = Popup;
|
|
44
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
45
|
+
__props.visible ? (openBlock(), createBlock(_component_van_floating_bubble, {
|
|
46
|
+
key: 0,
|
|
47
|
+
style: { "z-index": "100", "background": "linear-gradient(135deg, #667eea 0%, #764ba2 100%)" },
|
|
48
|
+
axis: "xy",
|
|
49
|
+
magnetic: "x",
|
|
50
|
+
gap: 12,
|
|
51
|
+
offset: offset.value,
|
|
52
|
+
"onUpdate:offset": _cache[0] || (_cache[0] = ($event) => offset.value = $event),
|
|
53
|
+
teleport: null,
|
|
54
|
+
onClick: openChatPopup
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [
|
|
57
|
+
createElementVNode("img", {
|
|
58
|
+
src: unref(ai2Icon),
|
|
59
|
+
class: "ai-bubble-icon"
|
|
60
|
+
}, null, 8, _hoisted_1)
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}, 8, ["offset"])) : createCommentVNode("", true),
|
|
64
|
+
createVNode(_component_van_popup, {
|
|
65
|
+
teleport: "body",
|
|
66
|
+
show: showChatPopup.value,
|
|
67
|
+
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => showChatPopup.value = $event),
|
|
68
|
+
position: "right",
|
|
69
|
+
style: {
|
|
70
|
+
width: "100%",
|
|
71
|
+
height: "100%"
|
|
72
|
+
},
|
|
73
|
+
"lock-scroll": true
|
|
74
|
+
}, {
|
|
75
|
+
default: withCtx(() => [
|
|
76
|
+
createVNode(unref(MobileAiChat), {
|
|
77
|
+
popup: "",
|
|
78
|
+
onClose: _cache[1] || (_cache[1] = ($event) => showChatPopup.value = false),
|
|
79
|
+
onNavigate: handleNavigate
|
|
80
|
+
})
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["show"])
|
|
84
|
+
], 64);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const AiAssistant = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-334c9087"]]);
|
|
89
|
+
export {
|
|
90
|
+
AiAssistant as default
|
|
91
|
+
};
|
|
@@ -63,11 +63,13 @@ const _sfc_main = {
|
|
|
63
63
|
const pageList = inject("pageList");
|
|
64
64
|
const currentInstance = getCurrentInstance();
|
|
65
65
|
const ctx = currentInstance.proxy;
|
|
66
|
-
ctx
|
|
66
|
+
const route = ctx.$route;
|
|
67
67
|
const opinionTypeOptions = ref([]);
|
|
68
|
-
const taskData = { ...props.params.taskData };
|
|
69
|
-
const taskParams = { ...props.params };
|
|
70
|
-
delete taskParams.taskData;
|
|
68
|
+
const taskData = ref({ ...props.params.taskData });
|
|
69
|
+
const taskParams = ref({ ...props.params });
|
|
70
|
+
delete taskParams.value.taskData;
|
|
71
|
+
const taskId = ((_a = props.params) == null ? void 0 : _a.taskId) || route.query.taskId;
|
|
72
|
+
const type = ((_b = props.params) == null ? void 0 : _b.type) || route.query.type;
|
|
71
73
|
const appDetailPage = ref();
|
|
72
74
|
const canMobileApproval = ref(true);
|
|
73
75
|
const baseInfoPageId = ref("");
|
|
@@ -84,7 +86,7 @@ const _sfc_main = {
|
|
|
84
86
|
const showEmpty = ref(false);
|
|
85
87
|
const taskNotFound = ref(false);
|
|
86
88
|
function handleData(data) {
|
|
87
|
-
taskParams.processInstanceId = data.processInstanceId;
|
|
89
|
+
taskParams.value.processInstanceId = data.processInstanceId;
|
|
88
90
|
if (props.baseInfoPageSource == "dynamic") {
|
|
89
91
|
baseInfoPageId.value = data.mobileDetailPage;
|
|
90
92
|
appDetailPage.value = findPageById(pageList.value, data.mobileDetailPage);
|
|
@@ -105,12 +107,20 @@ const _sfc_main = {
|
|
|
105
107
|
);
|
|
106
108
|
show.value = true;
|
|
107
109
|
}
|
|
108
|
-
const taskId = (_a = props.params) == null ? void 0 : _a.taskId;
|
|
109
|
-
const type = (_b = props.params) == null ? void 0 : _b.type;
|
|
110
110
|
if (!props.isDev) {
|
|
111
111
|
if (!taskId) {
|
|
112
112
|
showEmpty.value = true;
|
|
113
113
|
} else {
|
|
114
|
+
if (route.query.pageKey == "approveDetail") {
|
|
115
|
+
ctx.$http.postMobile(
|
|
116
|
+
"/" + window.$servers.base + "/flow/workbench/findTaskById",
|
|
117
|
+
{ taskId, taskStatus: type },
|
|
118
|
+
false
|
|
119
|
+
).then((data) => {
|
|
120
|
+
taskData.value = data;
|
|
121
|
+
taskParams.value.traceNo = data.traceNo;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
114
124
|
ctx.$http.postFormMobile(
|
|
115
125
|
"/" + window.$servers.base + "/flow/flowApproveDetail/findById",
|
|
116
126
|
{
|
|
@@ -153,7 +163,6 @@ const _sfc_main = {
|
|
|
153
163
|
return tabsOptions.value.find((item) => item.id == activeName.value);
|
|
154
164
|
});
|
|
155
165
|
return (_ctx, _cache) => {
|
|
156
|
-
var _a2;
|
|
157
166
|
const _component_van_empty = Empty;
|
|
158
167
|
const _component_FecMobileApprovalBar = resolveComponent("FecMobileApprovalBar");
|
|
159
168
|
return unref(showEmpty) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -168,24 +177,24 @@ const _sfc_main = {
|
|
|
168
177
|
})
|
|
169
178
|
])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
170
179
|
__props.isDev ? (openBlock(), createElementBlock("div", _hoisted_3, "审批详情页面显示区")) : (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
171
|
-
unref(appDetailPage) ? (openBlock(), createBlock(MobilePage, {
|
|
180
|
+
unref(appDetailPage) && unref(taskParams).traceNo ? (openBlock(), createBlock(MobilePage, {
|
|
172
181
|
key: 0,
|
|
173
182
|
parentPage: unref(page),
|
|
174
|
-
params: taskParams
|
|
175
|
-
}, null, 8, ["parentPage"])) : createCommentVNode("", true)
|
|
183
|
+
params: unref(taskParams)
|
|
184
|
+
}, null, 8, ["parentPage", "params"])) : createCommentVNode("", true)
|
|
176
185
|
])),
|
|
177
|
-
unref(show) && (
|
|
178
|
-
params: taskParams,
|
|
179
|
-
taskData,
|
|
186
|
+
unref(show) && unref(type) == "0" ? (openBlock(), createBlock(_component_FecMobileApprovalBar, mergeProps({ key: 2 }, __props.actionBar, {
|
|
187
|
+
params: unref(taskParams),
|
|
188
|
+
taskData: unref(taskData),
|
|
180
189
|
opinionTypeOptions: unref(opinionTypeOptions),
|
|
181
190
|
operationPageId: unref(operationPageId),
|
|
182
191
|
canMobileApproval: unref(canMobileApproval)
|
|
183
|
-
}), null, 16, ["opinionTypeOptions", "operationPageId", "canMobileApproval"])) : createCommentVNode("", true)
|
|
192
|
+
}), null, 16, ["params", "taskData", "opinionTypeOptions", "operationPageId", "canMobileApproval"])) : createCommentVNode("", true)
|
|
184
193
|
], 64));
|
|
185
194
|
};
|
|
186
195
|
}
|
|
187
196
|
};
|
|
188
|
-
const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
197
|
+
const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca457eef"]]);
|
|
189
198
|
export {
|
|
190
199
|
_AppDetail as default
|
|
191
200
|
};
|
|
@@ -75,6 +75,7 @@ const _sfc_main = {
|
|
|
75
75
|
const props = __props;
|
|
76
76
|
const currentInstance = getCurrentInstance();
|
|
77
77
|
const ctx = currentInstance.proxy;
|
|
78
|
+
const route = ctx.$route;
|
|
78
79
|
const pageList = inject("pageList");
|
|
79
80
|
const operPage = findPageById(pageList.value, props.operationPageId);
|
|
80
81
|
const showAgreePop = ref(false);
|
|
@@ -253,14 +254,17 @@ const _sfc_main = {
|
|
|
253
254
|
showOtherPop.value = false;
|
|
254
255
|
showAgreePop.value = false;
|
|
255
256
|
emitter.emit("refreshFlowCutNum");
|
|
256
|
-
goBack();
|
|
257
|
+
setTimeout(() => goBack(), 800);
|
|
257
258
|
}
|
|
258
259
|
}).finally(() => {
|
|
259
260
|
closeToast();
|
|
260
261
|
});
|
|
261
262
|
}
|
|
262
263
|
const goBack = () => {
|
|
263
|
-
|
|
264
|
+
emitter.emit("approvalCallback");
|
|
265
|
+
if (!route.query.pageKey == "approveDetail") {
|
|
266
|
+
pageHistory.back();
|
|
267
|
+
}
|
|
264
268
|
};
|
|
265
269
|
return (_ctx, _cache) => {
|
|
266
270
|
const _component_van_action_bar_button = ActionBarButton;
|
|
@@ -452,7 +456,7 @@ const _sfc_main = {
|
|
|
452
456
|
};
|
|
453
457
|
}
|
|
454
458
|
};
|
|
455
|
-
const _ApprovalBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
459
|
+
const _ApprovalBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-942e7e66"]]);
|
|
456
460
|
export {
|
|
457
461
|
_ApprovalBar as default
|
|
458
462
|
};
|
|
@@ -57,7 +57,7 @@ const _sfc_main = {
|
|
|
57
57
|
null,
|
|
58
58
|
false
|
|
59
59
|
).then((data) => {
|
|
60
|
-
flowMsgNum.value = data;
|
|
60
|
+
flowMsgNum.value = data.totalCut;
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
getFlowCutNum();
|
|
@@ -121,7 +121,7 @@ const _sfc_main = {
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
|
-
const _Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
124
|
+
const _Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f91db03f"]]);
|
|
125
125
|
export {
|
|
126
126
|
_Tabbar as default
|
|
127
127
|
};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
/* empty css */
|
|
7
1
|
import "../../../node_modules/element-plus/es/index.mjs";
|
|
8
2
|
/* empty css */
|
|
9
3
|
/* empty css */
|
|
@@ -11,11 +5,11 @@ import "../../../node_modules/element-plus/es/index.mjs";
|
|
|
11
5
|
/* empty css */
|
|
12
6
|
/* empty css */
|
|
13
7
|
/* empty css */
|
|
8
|
+
/* empty css */
|
|
14
9
|
/* empty css */
|
|
15
|
-
import { getCurrentInstance, ref, provide, onMounted, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, createVNode, unref, withCtx,
|
|
10
|
+
import { getCurrentInstance, ref, provide, onMounted, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, createVNode, unref, withCtx, nextTick } from "vue";
|
|
16
11
|
import MobilePage from "./page.vue.mjs";
|
|
17
|
-
import
|
|
18
|
-
import ai2Icon from "./assets/images/ai2.png.mjs";
|
|
12
|
+
import AiAssistant from "./components/custom/aiAssistant/AiAssistant.vue.mjs";
|
|
19
13
|
import api from "./api/index.mjs";
|
|
20
14
|
import emitter from "./utils/eventBus.mjs";
|
|
21
15
|
import { pageHistory } from "./utils/pageHistory.mjs";
|
|
@@ -27,11 +21,8 @@ import { useStore } from "../../../node_modules/vuex/dist/vuex.esm-bundler.mjs";
|
|
|
27
21
|
/* empty css */
|
|
28
22
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
29
23
|
import { ElContainer } from "../../../node_modules/element-plus/es/components/container/index.mjs";
|
|
30
|
-
import { FloatingBubble } from "../../../node_modules/vant/es/floating-bubble/index.mjs";
|
|
31
24
|
import { ElMessage } from "../../../node_modules/element-plus/es/components/message/index.mjs";
|
|
32
25
|
import { Empty } from "../../../node_modules/vant/es/empty/index.mjs";
|
|
33
|
-
import { Popup } from "../../../node_modules/vant/es/popup/index.mjs";
|
|
34
|
-
const _hoisted_1 = ["src"];
|
|
35
26
|
const _sfc_main = {
|
|
36
27
|
__name: "index",
|
|
37
28
|
props: {
|
|
@@ -48,27 +39,17 @@ const _sfc_main = {
|
|
|
48
39
|
default: {}
|
|
49
40
|
}
|
|
50
41
|
},
|
|
51
|
-
|
|
42
|
+
emits: ["approvalCallback"],
|
|
43
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
52
44
|
const store = useStore();
|
|
53
45
|
window.$user = store.getters.user;
|
|
54
46
|
const props = __props;
|
|
55
47
|
const currentInstance = getCurrentInstance();
|
|
56
48
|
const ctx = currentInstance.proxy;
|
|
57
|
-
const
|
|
49
|
+
const emit = __emit;
|
|
58
50
|
const pageList = ref({});
|
|
59
51
|
const configLoading = ref(true);
|
|
60
52
|
const noTargetPage = ref(false);
|
|
61
|
-
const showChatPopup = ref(false);
|
|
62
|
-
function openChatPopup() {
|
|
63
|
-
if (isWmp.value) {
|
|
64
|
-
wx.miniProgram.navigateTo({
|
|
65
|
-
url: "/pages/chat/chat"
|
|
66
|
-
});
|
|
67
|
-
} else {
|
|
68
|
-
showChatPopup.value = true;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
const offset = ref({ x: -12, y: 500 });
|
|
72
53
|
const initPageKey = ref(props.pageKey || ctx.$route.query.pageKey || "");
|
|
73
54
|
const loadConfig = async () => {
|
|
74
55
|
var _a, _b;
|
|
@@ -156,6 +137,9 @@ const _sfc_main = {
|
|
|
156
137
|
emitter.on("refreshPage", () => {
|
|
157
138
|
refreshCurrentPage();
|
|
158
139
|
});
|
|
140
|
+
emitter.on("approvalCallback", () => {
|
|
141
|
+
emit("approvalCallback");
|
|
142
|
+
});
|
|
159
143
|
function onNavigate(href) {
|
|
160
144
|
const parsed = href.replace("navigateToPage:", "");
|
|
161
145
|
const [page, ...rest] = parsed.split(":");
|
|
@@ -170,7 +154,6 @@ const _sfc_main = {
|
|
|
170
154
|
});
|
|
171
155
|
}
|
|
172
156
|
const targetPage = findPageByKey(pageList.value, page);
|
|
173
|
-
showChatPopup.value = false;
|
|
174
157
|
pageParams.value = params;
|
|
175
158
|
loadPage(targetPage.id);
|
|
176
159
|
}
|
|
@@ -193,7 +176,6 @@ const _sfc_main = {
|
|
|
193
176
|
window.__fecPlatform = await detectPlatformAsync();
|
|
194
177
|
console.log("[FEC Mobile] 环境检测完成:", window.__fecPlatform);
|
|
195
178
|
}
|
|
196
|
-
isWmp.value = window.__fecPlatform == "miniprogram";
|
|
197
179
|
loadConfig();
|
|
198
180
|
});
|
|
199
181
|
__expose({
|
|
@@ -202,8 +184,6 @@ const _sfc_main = {
|
|
|
202
184
|
return (_ctx, _cache) => {
|
|
203
185
|
const _component_van_empty = Empty;
|
|
204
186
|
const _component_el_container = ElContainer;
|
|
205
|
-
const _component_van_floating_bubble = FloatingBubble;
|
|
206
|
-
const _component_van_popup = Popup;
|
|
207
187
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
208
188
|
!unref(configLoading) ? (openBlock(), createBlock(_component_el_container, {
|
|
209
189
|
key: 0,
|
|
@@ -225,49 +205,15 @@ const _sfc_main = {
|
|
|
225
205
|
]),
|
|
226
206
|
_: 1
|
|
227
207
|
}, 512)) : createCommentVNode("", true),
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
magnetic: "x",
|
|
233
|
-
gap: 12,
|
|
234
|
-
offset: unref(offset),
|
|
235
|
-
"onUpdate:offset": _cache[0] || (_cache[0] = ($event) => isRef(offset) ? offset.value = $event : null),
|
|
236
|
-
onClick: openChatPopup
|
|
237
|
-
}, {
|
|
238
|
-
default: withCtx(() => [
|
|
239
|
-
createElementVNode("img", {
|
|
240
|
-
src: unref(ai2Icon),
|
|
241
|
-
class: "ai-bubble-icon"
|
|
242
|
-
}, null, 8, _hoisted_1)
|
|
243
|
-
]),
|
|
244
|
-
_: 1
|
|
245
|
-
}, 8, ["offset"])) : createCommentVNode("", true),
|
|
246
|
-
createVNode(_component_van_popup, {
|
|
247
|
-
teleport: "body",
|
|
248
|
-
show: unref(showChatPopup),
|
|
249
|
-
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => isRef(showChatPopup) ? showChatPopup.value = $event : null),
|
|
250
|
-
position: "right",
|
|
251
|
-
style: {
|
|
252
|
-
width: "100%",
|
|
253
|
-
height: "100%"
|
|
254
|
-
},
|
|
255
|
-
"lock-scroll": true
|
|
256
|
-
}, {
|
|
257
|
-
default: withCtx(() => [
|
|
258
|
-
createVNode(unref(MobileAiChat), {
|
|
259
|
-
popup: "",
|
|
260
|
-
onClose: _cache[1] || (_cache[1] = ($event) => showChatPopup.value = false),
|
|
261
|
-
onNavigate
|
|
262
|
-
})
|
|
263
|
-
]),
|
|
264
|
-
_: 1
|
|
265
|
-
}, 8, ["show"])
|
|
208
|
+
createVNode(AiAssistant, {
|
|
209
|
+
visible: !!unref(currentPage),
|
|
210
|
+
onNavigate
|
|
211
|
+
}, null, 8, ["visible"])
|
|
266
212
|
], 64);
|
|
267
213
|
};
|
|
268
214
|
}
|
|
269
215
|
};
|
|
270
|
-
const MobileApp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
216
|
+
const MobileApp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-15f248b7"]]);
|
|
271
217
|
export {
|
|
272
218
|
MobileApp as default
|
|
273
219
|
};
|
|
@@ -85,7 +85,7 @@ const _sfc_main = {
|
|
|
85
85
|
key: 0,
|
|
86
86
|
placement: "right",
|
|
87
87
|
width: 500,
|
|
88
|
-
"popper-style": "z-index:9999;",
|
|
88
|
+
"popper-style": "z-index:9999;max-height: 90%;\r\n display: flex;",
|
|
89
89
|
disabled: __props.taskList.length == 0 && __props.hisTaskList.length == 0
|
|
90
90
|
}, {
|
|
91
91
|
reference: withCtx(() => [
|
|
@@ -251,7 +251,7 @@ const _sfc_main = {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
|
-
const timeline = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
254
|
+
const timeline = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a5f3d9c6"]]);
|
|
255
255
|
export {
|
|
256
256
|
timeline as default
|
|
257
257
|
};
|
package/lib/_virtual/index2.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const _commonjsHelpers = require("./_commonjsHelpers.js");
|
|
4
|
+
const index = require("../node_modules/object-refs/index.js");
|
|
5
|
+
var objectRefsExports = index.__require();
|
|
6
|
+
const Refs = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(objectRefsExports);
|
|
7
|
+
exports.default = Refs;
|
package/lib/_virtual/index3.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const Refs = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(objectRefsExports);
|
|
7
|
-
exports.default = Refs;
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const index = require("../node_modules/@braintree/sanitize-url/dist/index.js");
|
|
4
|
+
var distExports = index.__require();
|
|
5
|
+
exports.distExports = distExports;
|