@ibiz-template/vue3-components 0.7.41-alpha.34 → 0.7.41-alpha.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-CCKb6xlM.js +11 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-B4ClR4_m.js → wang-editor-BIllIvre.js} +1 -1
- package/dist/{xlsx-util-DIeV3Kl6.js → xlsx-util-CxXULY47.js} +1 -1
- package/es/common/rawitem/rawitem.mjs +3 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/tree/tree.mjs +3 -2
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.mjs +6 -1
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.provider.mjs +54 -0
- package/es/util/ai-util/ai-util.mjs +6 -2
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/modal-util/modal-util.mjs +10 -0
- package/lib/common/rawitem/rawitem.cjs +3 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/tree/tree.cjs +3 -2
- package/lib/panel-component/user-message/internal-message/internal-message-json/internal-message-json.cjs +6 -1
- package/lib/panel-component/user-message/internal-message/internal-message-json/internal-message-json.provider.cjs +54 -0
- package/lib/util/ai-util/ai-util.cjs +6 -2
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/modal-util/modal-util.cjs +10 -0
- package/package.json +6 -6
- package/dist/index-Cvz1NuFN.js +0 -11
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.33_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.35_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.33_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.35_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -167,6 +167,7 @@ const IBizRawItem = /* @__PURE__ */ defineComponent({
|
|
|
167
167
|
};
|
|
168
168
|
},
|
|
169
169
|
render() {
|
|
170
|
+
var _a, _b;
|
|
170
171
|
const renderContent = () => {
|
|
171
172
|
if (this.rawItemType === "IMAGE") {
|
|
172
173
|
return createVNode(resolveComponent("i-biz-icon"), {
|
|
@@ -270,7 +271,8 @@ const IBizRawItem = /* @__PURE__ */ defineComponent({
|
|
|
270
271
|
return null;
|
|
271
272
|
};
|
|
272
273
|
return createVNode("div", {
|
|
273
|
-
"class": this.ns.b()
|
|
274
|
+
"class": this.ns.b(),
|
|
275
|
+
"title": (_b = (_a = this.rawItem) == null ? void 0 : _a.rawItem) == null ? void 0 : _b.tooltip
|
|
274
276
|
}, [renderContent()]);
|
|
275
277
|
}
|
|
276
278
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watch, watchEffect, onUnmounted } from 'vue';
|
|
2
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
2
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.35_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
function useAppDRTab(c, controlRef, counterData) {
|
package/es/control/tree/tree.mjs
CHANGED
|
@@ -897,10 +897,11 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
897
897
|
}, [nodeData._text])];
|
|
898
898
|
}
|
|
899
899
|
return createVNode("div", {
|
|
900
|
+
"class": [this.ns.b("node"), nodeData._disableSelect ? this.ns.bm("node", "disabled") : "", (_b = nodeModel.sysCss) == null ? void 0 : _b.cssName],
|
|
901
|
+
"title": nodeData._text,
|
|
900
902
|
"onDblclick": (evt) => this.onNodeDbClick(nodeData, evt),
|
|
901
903
|
"onClick": (evt) => this.onNodeClick(nodeData, data, evt),
|
|
902
|
-
"onContextmenu": (evt) => this.onNodeContextmenu(nodeData, evt)
|
|
903
|
-
"class": [this.ns.b("node"), nodeData._disableSelect ? this.ns.bm("node", "disabled") : "", (_b = nodeModel.sysCss) == null ? void 0 : _b.cssName]
|
|
904
|
+
"onContextmenu": (evt) => this.onNodeContextmenu(nodeData, evt)
|
|
904
905
|
}, [content, this.renderCounter(nodeModel), this.renderContextMenu(nodeModel, nodeData)]);
|
|
905
906
|
}
|
|
906
907
|
}), !this.newNodeData && this.renderNewNode(), this.c.state.enableNavView && this.c.state.showNavIcon ? !this.c.state.showNavView ? createVNode("ion-icon", {
|
|
@@ -36,6 +36,10 @@ const InternalMessageJSON = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
const url = ibiz.env.isMob ? props.message.mobile_url : props.message.url;
|
|
37
37
|
return url || ((_a = jsonContent.value) == null ? void 0 : _a.redirecturl);
|
|
38
38
|
});
|
|
39
|
+
const isWFMessage = computed(() => {
|
|
40
|
+
var _a;
|
|
41
|
+
return (_a = jsonContent.value) == null ? void 0 : _a.todoid;
|
|
42
|
+
});
|
|
39
43
|
const toolbarItems = computed(() => {
|
|
40
44
|
if (!redirectUrl.value) {
|
|
41
45
|
return void 0;
|
|
@@ -57,6 +61,7 @@ const InternalMessageJSON = /* @__PURE__ */ defineComponent({
|
|
|
57
61
|
jsonContent,
|
|
58
62
|
toolbarItems,
|
|
59
63
|
redirectUrl,
|
|
64
|
+
isWFMessage,
|
|
60
65
|
onToolbarClick
|
|
61
66
|
};
|
|
62
67
|
},
|
|
@@ -96,7 +101,7 @@ const InternalMessageJSON = /* @__PURE__ */ defineComponent({
|
|
|
96
101
|
"class": [this.ns.b()],
|
|
97
102
|
"message": this.message,
|
|
98
103
|
"provider": this.provider,
|
|
99
|
-
"clickable": !!this.redirectUrl,
|
|
104
|
+
"clickable": !!this.redirectUrl || !!this.isWFMessage,
|
|
100
105
|
"toolbarItems": this.toolbarItems,
|
|
101
106
|
"onToolbarClick": this.onToolbarClick,
|
|
102
107
|
"onClose": () => this.$emit("close")
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IBizContext } from '@ibiz-template/core';
|
|
2
|
+
import { toLocalOpenWFRedirectView } from '@ibiz-template/runtime';
|
|
1
3
|
import { InternalMessageJSON } from './internal-message-json.mjs';
|
|
2
4
|
import '../common/index.mjs';
|
|
3
5
|
import { InternalMessageDefaultProvider } from '../common/internal-message-default/internal-message-default.provider.mjs';
|
|
@@ -13,8 +15,39 @@ class InternalMessageJSONtProvider extends InternalMessageDefaultProvider {
|
|
|
13
15
|
constructor() {
|
|
14
16
|
super(...arguments);
|
|
15
17
|
__publicField(this, "component", InternalMessageJSON);
|
|
18
|
+
// 待办
|
|
19
|
+
__publicField(this, "PREKEY_WFINST", "WFINST__");
|
|
20
|
+
// 已完成
|
|
21
|
+
__publicField(this, "PREKEY_TODOHIS", "TODOHIS__");
|
|
22
|
+
// 抄送
|
|
23
|
+
__publicField(this, "PREKEY_CARBONCOPY", "CARBONCOPY__");
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 计算工作流参数
|
|
27
|
+
* @param json
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
computeWFParams(json) {
|
|
31
|
+
switch (json.todostate) {
|
|
32
|
+
case "ACTIVE":
|
|
33
|
+
return {
|
|
34
|
+
preKey: "",
|
|
35
|
+
subType: "Todo"
|
|
36
|
+
};
|
|
37
|
+
case "COMPLETED":
|
|
38
|
+
return {
|
|
39
|
+
preKey: this.PREKEY_TODOHIS,
|
|
40
|
+
subType: "Done"
|
|
41
|
+
};
|
|
42
|
+
default:
|
|
43
|
+
return {
|
|
44
|
+
preKey: "",
|
|
45
|
+
subType: ""
|
|
46
|
+
};
|
|
47
|
+
}
|
|
16
48
|
}
|
|
17
49
|
async onClick(message, event) {
|
|
50
|
+
var _a;
|
|
18
51
|
const result = await super.onClick(message, event);
|
|
19
52
|
if (!result && message.content_type === "JSON" && message.content) {
|
|
20
53
|
const json = JSON.parse(message.content);
|
|
@@ -22,6 +55,27 @@ class InternalMessageJSONtProvider extends InternalMessageDefaultProvider {
|
|
|
22
55
|
this.openRedirectView(message, json.redirecturl);
|
|
23
56
|
return true;
|
|
24
57
|
}
|
|
58
|
+
if (json.todoid && json.biztype) {
|
|
59
|
+
if (ibiz.env.isPortalApp) {
|
|
60
|
+
ibiz.log.error("\u95E8\u6237\u5E94\u7528\u6682\u4E0D\u652F\u6301\u8DF3\u8F6C\u5DE5\u4F5C\u6D41");
|
|
61
|
+
} else {
|
|
62
|
+
const mainApp = ibiz.hub.getApp();
|
|
63
|
+
const { preKey, subType } = this.computeWFParams(json);
|
|
64
|
+
const res = await ibiz.net.post(
|
|
65
|
+
"/systodos/".concat(preKey).concat(json.todoid, "/getlinkurl"),
|
|
66
|
+
{
|
|
67
|
+
srfapptype: "pc",
|
|
68
|
+
srfapp: mainApp.model.codeName,
|
|
69
|
+
todosubtype: subType
|
|
70
|
+
// todourltype: 'RouterUrl',
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
if (res.data && res.data.linkurl) {
|
|
74
|
+
const context = IBizContext.create(((_a = ibiz.appData) == null ? void 0 : _a.context) || {});
|
|
75
|
+
await toLocalOpenWFRedirectView(context, res.data.linkurl);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
25
79
|
}
|
|
26
80
|
return true;
|
|
27
81
|
}
|
|
@@ -4,10 +4,11 @@ function calcAiToolbarItemsByAc(deACMode) {
|
|
|
4
4
|
const contentToolbarItems = [];
|
|
5
5
|
const footerToolbarItems = [];
|
|
6
6
|
const questionToolbarItems = [];
|
|
7
|
+
const functionToolbarItems = [];
|
|
7
8
|
const otherToolbarItems = [];
|
|
8
9
|
(_b = (_a = deACMode.deuiactionGroup) == null ? void 0 : _a.uiactionGroupDetails) == null ? void 0 : _b.forEach(
|
|
9
10
|
(item) => {
|
|
10
|
-
var _a2, _b2, _c, _d, _e;
|
|
11
|
+
var _a2, _b2, _c, _d, _e, _f;
|
|
11
12
|
const toolbarItem = {
|
|
12
13
|
appId: item.appId,
|
|
13
14
|
id: item.uiactionId,
|
|
@@ -28,6 +29,8 @@ function calcAiToolbarItemsByAc(deACMode) {
|
|
|
28
29
|
footerToolbarItems.push(toolbarItem);
|
|
29
30
|
} else if ((_e = item.uiactionId) == null ? void 0 : _e.startsWith("question_")) {
|
|
30
31
|
questionToolbarItems.push(toolbarItem);
|
|
32
|
+
} else if ((_f = item.uiactionId) == null ? void 0 : _f.startsWith("function_")) {
|
|
33
|
+
functionToolbarItems.push(toolbarItem);
|
|
31
34
|
} else {
|
|
32
35
|
otherToolbarItems.push(toolbarItem);
|
|
33
36
|
}
|
|
@@ -37,7 +40,8 @@ function calcAiToolbarItemsByAc(deACMode) {
|
|
|
37
40
|
contentToolbarItems,
|
|
38
41
|
footerToolbarItems,
|
|
39
42
|
questionToolbarItems,
|
|
40
|
-
otherToolbarItems
|
|
43
|
+
otherToolbarItems,
|
|
44
|
+
functionToolbarItems
|
|
41
45
|
};
|
|
42
46
|
}
|
|
43
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
3
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.35_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -31,6 +31,16 @@ class ModalUtil {
|
|
|
31
31
|
ElMessageBox.confirm(params.desc, params.title, params).then(() => resolve(true)).catch(() => resolve(false));
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
+
async extendConfirm(params) {
|
|
35
|
+
return new Promise((resolve) => {
|
|
36
|
+
ElMessageBox.confirm(params.desc, params.title, {
|
|
37
|
+
...params,
|
|
38
|
+
...params.options
|
|
39
|
+
}).then(() => resolve("yes")).catch(
|
|
40
|
+
(action) => resolve(action === "cancel" ? "no" : "cancel")
|
|
41
|
+
);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
34
44
|
}
|
|
35
45
|
|
|
36
46
|
export { ModalUtil };
|
|
@@ -169,6 +169,7 @@ const IBizRawItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
169
169
|
};
|
|
170
170
|
},
|
|
171
171
|
render() {
|
|
172
|
+
var _a, _b;
|
|
172
173
|
const renderContent = () => {
|
|
173
174
|
if (this.rawItemType === "IMAGE") {
|
|
174
175
|
return vue.createVNode(vue.resolveComponent("i-biz-icon"), {
|
|
@@ -272,7 +273,8 @@ const IBizRawItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
272
273
|
return null;
|
|
273
274
|
};
|
|
274
275
|
return vue.createVNode("div", {
|
|
275
|
-
"class": this.ns.b()
|
|
276
|
+
"class": this.ns.b(),
|
|
277
|
+
"title": (_b = (_a = this.rawItem) == null ? void 0 : _a.rawItem) == null ? void 0 : _b.tooltip
|
|
276
278
|
}, [renderContent()]);
|
|
277
279
|
}
|
|
278
280
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.35_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -899,10 +899,11 @@ const TreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
899
899
|
}, [nodeData._text])];
|
|
900
900
|
}
|
|
901
901
|
return vue.createVNode("div", {
|
|
902
|
+
"class": [this.ns.b("node"), nodeData._disableSelect ? this.ns.bm("node", "disabled") : "", (_b = nodeModel.sysCss) == null ? void 0 : _b.cssName],
|
|
903
|
+
"title": nodeData._text,
|
|
902
904
|
"onDblclick": (evt) => this.onNodeDbClick(nodeData, evt),
|
|
903
905
|
"onClick": (evt) => this.onNodeClick(nodeData, data, evt),
|
|
904
|
-
"onContextmenu": (evt) => this.onNodeContextmenu(nodeData, evt)
|
|
905
|
-
"class": [this.ns.b("node"), nodeData._disableSelect ? this.ns.bm("node", "disabled") : "", (_b = nodeModel.sysCss) == null ? void 0 : _b.cssName]
|
|
906
|
+
"onContextmenu": (evt) => this.onNodeContextmenu(nodeData, evt)
|
|
906
907
|
}, [content, this.renderCounter(nodeModel), this.renderContextMenu(nodeModel, nodeData)]);
|
|
907
908
|
}
|
|
908
909
|
}), !this.newNodeData && this.renderNewNode(), this.c.state.enableNavView && this.c.state.showNavIcon ? !this.c.state.showNavView ? vue.createVNode("ion-icon", {
|
|
@@ -38,6 +38,10 @@ const InternalMessageJSON = /* @__PURE__ */ vue.defineComponent({
|
|
|
38
38
|
const url = ibiz.env.isMob ? props.message.mobile_url : props.message.url;
|
|
39
39
|
return url || ((_a = jsonContent.value) == null ? void 0 : _a.redirecturl);
|
|
40
40
|
});
|
|
41
|
+
const isWFMessage = vue.computed(() => {
|
|
42
|
+
var _a;
|
|
43
|
+
return (_a = jsonContent.value) == null ? void 0 : _a.todoid;
|
|
44
|
+
});
|
|
41
45
|
const toolbarItems = vue.computed(() => {
|
|
42
46
|
if (!redirectUrl.value) {
|
|
43
47
|
return void 0;
|
|
@@ -59,6 +63,7 @@ const InternalMessageJSON = /* @__PURE__ */ vue.defineComponent({
|
|
|
59
63
|
jsonContent,
|
|
60
64
|
toolbarItems,
|
|
61
65
|
redirectUrl,
|
|
66
|
+
isWFMessage,
|
|
62
67
|
onToolbarClick
|
|
63
68
|
};
|
|
64
69
|
},
|
|
@@ -98,7 +103,7 @@ const InternalMessageJSON = /* @__PURE__ */ vue.defineComponent({
|
|
|
98
103
|
"class": [this.ns.b()],
|
|
99
104
|
"message": this.message,
|
|
100
105
|
"provider": this.provider,
|
|
101
|
-
"clickable": !!this.redirectUrl,
|
|
106
|
+
"clickable": !!this.redirectUrl || !!this.isWFMessage,
|
|
102
107
|
"toolbarItems": this.toolbarItems,
|
|
103
108
|
"onToolbarClick": this.onToolbarClick,
|
|
104
109
|
"onClose": () => this.$emit("close")
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var core = require('@ibiz-template/core');
|
|
4
|
+
var runtime = require('@ibiz-template/runtime');
|
|
3
5
|
var internalMessageJson = require('./internal-message-json.cjs');
|
|
4
6
|
require('../common/index.cjs');
|
|
5
7
|
var internalMessageDefault_provider = require('../common/internal-message-default/internal-message-default.provider.cjs');
|
|
@@ -15,8 +17,39 @@ class InternalMessageJSONtProvider extends internalMessageDefault_provider.Inter
|
|
|
15
17
|
constructor() {
|
|
16
18
|
super(...arguments);
|
|
17
19
|
__publicField(this, "component", internalMessageJson.InternalMessageJSON);
|
|
20
|
+
// 待办
|
|
21
|
+
__publicField(this, "PREKEY_WFINST", "WFINST__");
|
|
22
|
+
// 已完成
|
|
23
|
+
__publicField(this, "PREKEY_TODOHIS", "TODOHIS__");
|
|
24
|
+
// 抄送
|
|
25
|
+
__publicField(this, "PREKEY_CARBONCOPY", "CARBONCOPY__");
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 计算工作流参数
|
|
29
|
+
* @param json
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
computeWFParams(json) {
|
|
33
|
+
switch (json.todostate) {
|
|
34
|
+
case "ACTIVE":
|
|
35
|
+
return {
|
|
36
|
+
preKey: "",
|
|
37
|
+
subType: "Todo"
|
|
38
|
+
};
|
|
39
|
+
case "COMPLETED":
|
|
40
|
+
return {
|
|
41
|
+
preKey: this.PREKEY_TODOHIS,
|
|
42
|
+
subType: "Done"
|
|
43
|
+
};
|
|
44
|
+
default:
|
|
45
|
+
return {
|
|
46
|
+
preKey: "",
|
|
47
|
+
subType: ""
|
|
48
|
+
};
|
|
49
|
+
}
|
|
18
50
|
}
|
|
19
51
|
async onClick(message, event) {
|
|
52
|
+
var _a;
|
|
20
53
|
const result = await super.onClick(message, event);
|
|
21
54
|
if (!result && message.content_type === "JSON" && message.content) {
|
|
22
55
|
const json = JSON.parse(message.content);
|
|
@@ -24,6 +57,27 @@ class InternalMessageJSONtProvider extends internalMessageDefault_provider.Inter
|
|
|
24
57
|
this.openRedirectView(message, json.redirecturl);
|
|
25
58
|
return true;
|
|
26
59
|
}
|
|
60
|
+
if (json.todoid && json.biztype) {
|
|
61
|
+
if (ibiz.env.isPortalApp) {
|
|
62
|
+
ibiz.log.error("\u95E8\u6237\u5E94\u7528\u6682\u4E0D\u652F\u6301\u8DF3\u8F6C\u5DE5\u4F5C\u6D41");
|
|
63
|
+
} else {
|
|
64
|
+
const mainApp = ibiz.hub.getApp();
|
|
65
|
+
const { preKey, subType } = this.computeWFParams(json);
|
|
66
|
+
const res = await ibiz.net.post(
|
|
67
|
+
"/systodos/".concat(preKey).concat(json.todoid, "/getlinkurl"),
|
|
68
|
+
{
|
|
69
|
+
srfapptype: "pc",
|
|
70
|
+
srfapp: mainApp.model.codeName,
|
|
71
|
+
todosubtype: subType
|
|
72
|
+
// todourltype: 'RouterUrl',
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
if (res.data && res.data.linkurl) {
|
|
76
|
+
const context = core.IBizContext.create(((_a = ibiz.appData) == null ? void 0 : _a.context) || {});
|
|
77
|
+
await runtime.toLocalOpenWFRedirectView(context, res.data.linkurl);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
27
81
|
}
|
|
28
82
|
return true;
|
|
29
83
|
}
|
|
@@ -6,10 +6,11 @@ function calcAiToolbarItemsByAc(deACMode) {
|
|
|
6
6
|
const contentToolbarItems = [];
|
|
7
7
|
const footerToolbarItems = [];
|
|
8
8
|
const questionToolbarItems = [];
|
|
9
|
+
const functionToolbarItems = [];
|
|
9
10
|
const otherToolbarItems = [];
|
|
10
11
|
(_b = (_a = deACMode.deuiactionGroup) == null ? void 0 : _a.uiactionGroupDetails) == null ? void 0 : _b.forEach(
|
|
11
12
|
(item) => {
|
|
12
|
-
var _a2, _b2, _c, _d, _e;
|
|
13
|
+
var _a2, _b2, _c, _d, _e, _f;
|
|
13
14
|
const toolbarItem = {
|
|
14
15
|
appId: item.appId,
|
|
15
16
|
id: item.uiactionId,
|
|
@@ -30,6 +31,8 @@ function calcAiToolbarItemsByAc(deACMode) {
|
|
|
30
31
|
footerToolbarItems.push(toolbarItem);
|
|
31
32
|
} else if ((_e = item.uiactionId) == null ? void 0 : _e.startsWith("question_")) {
|
|
32
33
|
questionToolbarItems.push(toolbarItem);
|
|
34
|
+
} else if ((_f = item.uiactionId) == null ? void 0 : _f.startsWith("function_")) {
|
|
35
|
+
functionToolbarItems.push(toolbarItem);
|
|
33
36
|
} else {
|
|
34
37
|
otherToolbarItems.push(toolbarItem);
|
|
35
38
|
}
|
|
@@ -39,7 +42,8 @@ function calcAiToolbarItemsByAc(deACMode) {
|
|
|
39
42
|
contentToolbarItems,
|
|
40
43
|
footerToolbarItems,
|
|
41
44
|
questionToolbarItems,
|
|
42
|
-
otherToolbarItems
|
|
45
|
+
otherToolbarItems,
|
|
46
|
+
functionToolbarItems
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
49
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var ElementPlus = require('element-plus');
|
|
5
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
5
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.35_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
6
6
|
var fullscreenToolbar = require('../../common/fullscreen-toolbar/fullscreen-toolbar.cjs');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
@@ -33,6 +33,16 @@ class ModalUtil {
|
|
|
33
33
|
ElementPlus.ElMessageBox.confirm(params.desc, params.title, params).then(() => resolve(true)).catch(() => resolve(false));
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
+
async extendConfirm(params) {
|
|
37
|
+
return new Promise((resolve) => {
|
|
38
|
+
ElementPlus.ElMessageBox.confirm(params.desc, params.title, {
|
|
39
|
+
...params,
|
|
40
|
+
...params.options
|
|
41
|
+
}).then(() => resolve("yes")).catch(
|
|
42
|
+
(action) => resolve(action === "cancel" ? "no" : "cancel")
|
|
43
|
+
);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
36
46
|
}
|
|
37
47
|
|
|
38
48
|
exports.ModalUtil = ModalUtil;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.36",
|
|
4
4
|
"description": "web端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"@floating-ui/dom": "^1.5.3",
|
|
33
33
|
"@ibiz-template-plugin/ai-chat": "^0.0.32",
|
|
34
34
|
"@ibiz-template-plugin/gantt": "0.1.8-alpha.316",
|
|
35
|
-
"@ibiz-template-plugin/bi-report": "0.0.
|
|
35
|
+
"@ibiz-template-plugin/bi-report": "0.0.30",
|
|
36
36
|
"@ibiz-template-plugin/data-view": "0.0.6",
|
|
37
|
-
"@ibiz-template/core": "0.7.41-alpha.
|
|
37
|
+
"@ibiz-template/core": "0.7.41-alpha.35",
|
|
38
38
|
"@ibiz-template/devtool": "0.0.13",
|
|
39
|
-
"@ibiz-template/model-helper": "0.7.41-alpha.
|
|
40
|
-
"@ibiz-template/runtime": "0.7.41-alpha.
|
|
39
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.35",
|
|
40
|
+
"@ibiz-template/runtime": "0.7.41-alpha.35",
|
|
41
41
|
"@ibiz-template/theme": "0.7.39",
|
|
42
|
-
"@ibiz-template/vue3-util": "0.7.41-alpha.
|
|
42
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.35",
|
|
43
43
|
"@ibiz-template/web-theme": "3.9.0",
|
|
44
44
|
"@ibiz/model-core": "^0.1.83",
|
|
45
45
|
"@imengyu/vue3-context-menu": "^1.3.5",
|