china-mobile-international-custom-components 0.0.37 → 0.0.39
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/ApplicationTypeTag.mjs +1 -1
- package/es/PageContainer.mjs +315 -318
- package/es/SourcePublish.mjs +508 -467
- package/es/assets/PageContainer.css +1 -1
- package/es/assets/SourcePublish.css +1 -1
- package/es/chunks/{i18n.D5TCTMH9.js → i18n.BNeBD4gR.js} +14 -10
- package/es/chunks/{index.CEulrjCM.js → index.BcLVH95_.js} +262 -266
- package/es/chunks/index.Dh5IGfxO.js +290 -0
- package/es/index.mjs +140 -96
- package/lib/ApplicationTypeTag.js +1 -1
- package/lib/PageContainer.js +1 -1
- package/lib/SourcePublish.js +1 -1
- package/lib/assets/PageContainer.css +1 -1
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/chunks/{i18n.DOz2kyiP.js → i18n.Giy85Rng.js} +6 -6
- package/lib/chunks/index.Bk55us0s.js +1 -0
- package/lib/chunks/{index.mVFuSNRS.js → index.CV29Us4A.js} +6 -6
- package/lib/index.js +1 -1
- package/package.json +3 -3
- package/es/chunks/index.CyqKJ7zE.js +0 -4062
- package/lib/chunks/index.C-BOSJfQ.js +0 -6
package/es/SourcePublish.mjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { w as ve } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
-
import { createElementBlock as
|
|
3
|
-
import { u as Z } from "./chunks/i18n.
|
|
4
|
-
import { useRouter as
|
|
2
|
+
import { createElementBlock as V, openBlock as S, renderSlot as Ee, shallowRef as Ce, ref as g, onMounted as ie, resolveComponent as m, normalizeStyle as me, createVNode as i, withCtx as s, createBlock as B, resolveDynamicComponent as fe, createCommentVNode as H, unref as t, normalizeClass as Re, createElementVNode as c, createTextVNode as D, toDisplayString as U, getCurrentInstance as ge, computed as ue, watch as Ue, Fragment as te, renderList as le, nextTick as de, withModifiers as Pe } from "vue";
|
|
3
|
+
import { f as a, u as Z } from "./chunks/i18n.BNeBD4gR.js";
|
|
4
|
+
import { useRouter as Te, useRoute as Se } from "vue-router";
|
|
5
5
|
import { _ as K } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import { g as Ne, A as he } from "./chunks/index.Doax01RQ.js";
|
|
7
|
-
import { S as
|
|
7
|
+
import { S as F } from "./chunks/config.DE5PZU2F.js";
|
|
8
8
|
import { P as Le } from "./chunks/index.CSPp4g5C.js";
|
|
9
9
|
import { IconTip as _e } from "color-message-aibox-vue";
|
|
10
10
|
import './assets/SourcePublish.css';const be = "data:image/png;base64,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", ye = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAW2SURBVHic7ZxdaxxVGMd/zySbJk0bt0EsrQ1srKlpCbLaUvSqGxDxLi2iSOlFil+g/QJu/AASXxDvTC8sfYmSBkSstmR7I6WiBqutaG0XBKnSl8W+7KZJ9ngx2XSz85KZnbOTfZkfHE7OZGbO2f8+z3nOOTN7ICIiIiIiImJtkGovTOxX8ViMhJonTjuwAGHnEiM3P08ue0ay1X6OoPgScMfrar8yGAFSKBK1aVLV5DA4popMX/tcMmFV6knAgTdU0hCmVP2JZotApghH/5iU2RDqcmfwTZVGGKt1Q2qBwNGrp+T9GtfhzK63VBoaU7wyxq6clHdrdXNHAYcOLomnls5q4FzgwOUTciaATo7YCjh0SKVEMVMnn19HnjUWGZ49qT9atzscTFc/wKlLEsRIA4d139giU/KgSko7Py0fUBVnNXBZGWyaPSY5NGKxQKODkeYyvhWkAK19oWFzIGks/cPA/PKapSywL5hcViwW2GaQVGXlSmts5LKhSKIZi4AiJJrVhcUgrvue1j7Q4tRNRQgCNqv5YQZk3di5cL2MOmpS1o1dEGlaQrPAZqUWHy3qAwPSWlG4BsZRtQs//yxs7tXdHO88yMPP1+B+3vs162LET3yjRt3OUYqcFJktdJI7PLz6vNm3BT6zFd55e23FK+ezr+H4WW/nrusgbhhMrHpiG6xfhNPnVKaomM63c8xJTOtcWJzTxvX1JR7Aodfg1b3u7V5OhunFXhOQMoTxDUVunD5vb7m+BFxrt3XiFa8CytI412cC4gITk+fVeGXdFgHFcE71HKHd2r2clgSpFNRH+cgXM2qqvF6LgG3inLI3zc673vj1unu7S8nOCv2WBfZPXVDpUt1WC3Qx5Vt34dMv60vEX67D6XPeXLFaF7a4tGJsakaloIoofOFH+P4qDL8I3V21kMQ72b/h0hXvY9eSG2tBmAD6qxoH5gvw1XeaGhIQP4KULFATiakZlWqpmYihORBKjJGWmgtrtkAEku4Cmh1m05S19oGACAlrH1jmwgIoaZ6ybgsEGwErXbiyvkYuLw9j0PfqSEv1gaWxIDwWNmjeclFY94q740OlOnmrSmtegz7Q2QLdTHdDF2zaCL09ehtTyZ178M9teLSgx+VCscDV+sC+zbB70BQxDO7n4dtLeubflY9sdQyT7NcDDfu8swNeHgpPPDDrWl4wdWiX57z0t1HxvwBl5yBi4wObe6EjFopuK+jugt4nIHfPvl1eczGsw5yg+AoiC4uaa/fBwqL5jWsNIhpc2FcQyc/BgwJ0d3r6zNrI3TfrLregqoKIXRQOWPb1TCQ/Bz/8BvMLlVfVjocFuHjZ+zMPL89EdOa+o/DtHJy9CE/GIWb7iro+HhbgVs5bu7wQykyk5CZufcliEW7eCWcA7KU95dq6lUMdB+r6hsLK8VAOdSbSjOheD4QWW42ptMBSFxCk3HIC6l7vdF2RbjYiFw5IOEEkEtAXLRWFdT8XhhZ7yTw/F1lgYApz0KVvMSRn1wdmgYS2KuqM3/+C5A60zDVF7AQ0yNIg25tUw53/KqwwwBxSFLPWPhCmMUhpbHNdUXgEV27Anp3BFzsw7ARsIyO1+EVKHfHvXbj8J+zqh1ibeawaQyzCtG1Meu+4mgBGQ1mvWsO8ZwPsGYSudbY6r0ZmMCHDtgKOn1AJ4EZVt20wujph93PQ0+3vumKR4Z39knEcFX1wSqWVavhdizwRa4edCdj2lLfzRRgb6DN3Q3IdVn44qcZRHAncwgZhoA8GtrmfIzC2ve/xVlKrjss/nlRp1fj7Z3kmscW0RluEse1Pr9yHy9PE5qNJlWoT0kjzDm/K2ffCysAiQna+yIEd26zb6fmaGX4yqVLSzgiKUWX+/KkegqnWfFMP7N0FQBYhg2K6f6vzxmVVT63Hp1S8E+IsNM+sJR6Hl4bI9m9Zuy1FIyIiIiIiIrzyPx3JLklkX69sAAAAAElFTkSuQmCC", Be = {}, Me = { class: "style-title" };
|
|
11
|
-
function He(
|
|
12
|
-
return
|
|
13
|
-
Ee(
|
|
11
|
+
function He(o, _) {
|
|
12
|
+
return S(), V("div", Me, [
|
|
13
|
+
Ee(o.$slots, "default", {}, void 0, !0)
|
|
14
14
|
]);
|
|
15
15
|
}
|
|
16
16
|
const ne = /* @__PURE__ */ K(Be, [["render", He], ["__scopeId", "data-v-58195e4c"]]), Ve = {}, De = { class: "card-container" };
|
|
17
|
-
function Fe(
|
|
18
|
-
return
|
|
19
|
-
Ee(
|
|
17
|
+
function Fe(o, _) {
|
|
18
|
+
return S(), V("div", De, [
|
|
19
|
+
Ee(o.$slots, "default", {}, void 0, !0)
|
|
20
20
|
]);
|
|
21
21
|
}
|
|
22
22
|
const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28"]]), pe = () => {
|
|
23
|
-
const { $request:
|
|
23
|
+
const { $request: o, $env: _ } = Ne();
|
|
24
24
|
return {
|
|
25
|
-
sourcePublish: (
|
|
26
|
-
url: `${
|
|
25
|
+
sourcePublish: (p) => o({
|
|
26
|
+
url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/publish`,
|
|
27
27
|
method: "post",
|
|
28
|
-
data:
|
|
28
|
+
data: p
|
|
29
29
|
}),
|
|
30
|
-
getPublishVersionDetail: (
|
|
31
|
-
url: `${
|
|
30
|
+
getPublishVersionDetail: (p, P) => o({
|
|
31
|
+
url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/${p}/${P}`,
|
|
32
32
|
method: "get"
|
|
33
33
|
}),
|
|
34
|
-
checkVersion: (
|
|
35
|
-
url: `${
|
|
34
|
+
checkVersion: (p) => o({
|
|
35
|
+
url: `${_.VITE_APP_AIBOX_BASE_URL}/api/v1/skillets/versions/exists`,
|
|
36
36
|
method: "get",
|
|
37
|
-
params:
|
|
37
|
+
params: p
|
|
38
38
|
}),
|
|
39
|
-
checkToken: () =>
|
|
40
|
-
url: `${
|
|
39
|
+
checkToken: () => o({
|
|
40
|
+
url: `${_.VITE_APP_AUTH_BASE_URL}/api/v1/api/check-token`,
|
|
41
41
|
method: "post"
|
|
42
42
|
})
|
|
43
43
|
};
|
|
@@ -61,76 +61,102 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
61
61
|
// MCP
|
|
62
62
|
MCP_STORE: "10"
|
|
63
63
|
// 组件广场
|
|
64
|
-
}, xe =
|
|
64
|
+
}, xe = {
|
|
65
65
|
// 智能体渠道
|
|
66
66
|
[e.H5]: {
|
|
67
67
|
id: e.H5,
|
|
68
68
|
name: () => "H5",
|
|
69
|
-
description
|
|
69
|
+
get description() {
|
|
70
|
+
return a("COMMON_DICT.ENUMS.DESCRIPTION_H5") || "可通过PC或移动设备立即开始对话";
|
|
71
|
+
},
|
|
70
72
|
visible: !0
|
|
71
73
|
// 默认显示
|
|
72
74
|
},
|
|
73
75
|
[e.API]: {
|
|
74
76
|
id: e.API,
|
|
75
77
|
name: () => "API",
|
|
76
|
-
description
|
|
78
|
+
get description() {
|
|
79
|
+
return a("COMMON_DICT.ENUMS.DESCRIPTION_API") || "可通过API方式快速集成到你的软件";
|
|
80
|
+
},
|
|
77
81
|
visible: !0
|
|
78
82
|
},
|
|
79
83
|
[e.AIBox]: {
|
|
80
84
|
id: e.AIBox,
|
|
81
|
-
name: (
|
|
85
|
+
name: (o) => o === F.AGENT ? a("COMMON_DICT.ENUMS.NAME_MY_AI") : a("COMMON_DICT.ENUMS.NAME_MY_ZJ"),
|
|
82
86
|
description: "可应用于你的智能体",
|
|
83
87
|
visible: !0
|
|
84
88
|
},
|
|
85
89
|
[e.AGENT_STORE]: {
|
|
86
90
|
id: e.AGENT_STORE,
|
|
87
|
-
name
|
|
88
|
-
|
|
89
|
-
|
|
91
|
+
get name() {
|
|
92
|
+
return () => a("COMMON_DICT.ENUMS.NAME_ZNTGC") || "智能体广场";
|
|
93
|
+
},
|
|
94
|
+
get description() {
|
|
95
|
+
return a("COMMON_DICT.ENUMS.DESCRIPTION_ZNTGC") || "分享到智能体广场,获得更多曝光";
|
|
96
|
+
},
|
|
97
|
+
visible: !0
|
|
90
98
|
// 根据配置决定是否显示
|
|
91
99
|
},
|
|
92
100
|
[e.FEISHU_WEB]: {
|
|
93
101
|
id: e.FEISHU_WEB,
|
|
94
|
-
name
|
|
95
|
-
|
|
102
|
+
get name() {
|
|
103
|
+
return () => a("COMMON_DICT.ENUMS.NAME_WEB") || "飞书网页应用";
|
|
104
|
+
},
|
|
105
|
+
get description() {
|
|
106
|
+
return a("COMMON_DICT.ENUMS.DESCRIPTION_WEB") || "在飞书客户端内访问智能体对话页面";
|
|
107
|
+
},
|
|
96
108
|
visible: !0
|
|
97
109
|
},
|
|
98
110
|
// 工作流渠道
|
|
99
111
|
[e.WORKFLOW_API]: {
|
|
100
112
|
id: e.WORKFLOW_API,
|
|
101
113
|
name: () => "API",
|
|
102
|
-
description
|
|
114
|
+
get description() {
|
|
115
|
+
return a("COMMON_DICT.ENUMS.DESCRIPTION_API") || "可通过API方式快速集成到你的软件";
|
|
116
|
+
},
|
|
103
117
|
visible: !0
|
|
104
118
|
},
|
|
105
119
|
[e.WORKFLOW_STORE]: {
|
|
106
120
|
id: e.WORKFLOW_STORE,
|
|
107
|
-
name
|
|
108
|
-
|
|
109
|
-
|
|
121
|
+
get name() {
|
|
122
|
+
return () => a("COMMON_DICT.ENUMS.NAME_ZJGC") || "组件广场";
|
|
123
|
+
},
|
|
124
|
+
get description() {
|
|
125
|
+
return a("COMMON_DICT.ENUMS.DESCRIPTION_ZJGC") || "分享到组件广场,获得更多曝光";
|
|
126
|
+
},
|
|
127
|
+
visible: !0
|
|
110
128
|
},
|
|
111
129
|
// 插件渠道
|
|
112
130
|
[e.PLUGIN_API]: {
|
|
113
131
|
id: e.PLUGIN_API,
|
|
114
132
|
name: () => "API",
|
|
115
|
-
description
|
|
133
|
+
get description() {
|
|
134
|
+
return a("COMMON_DICT.ENUMS.DESCRIPTION_API") || "可通过API方式快速集成到你的软件";
|
|
135
|
+
},
|
|
116
136
|
visible: !1
|
|
117
137
|
// 暂时不上
|
|
118
138
|
},
|
|
119
139
|
[e.PLUGIN_STORE]: {
|
|
120
140
|
id: e.PLUGIN_STORE,
|
|
121
141
|
name: () => "AIBox Store",
|
|
122
|
-
description
|
|
142
|
+
get description() {
|
|
143
|
+
return a("COMMON_DICT.ENUMS.DESCRIPTION_PLUGIN") || "分享到广场,获得更多曝光";
|
|
144
|
+
},
|
|
123
145
|
visible: !1
|
|
124
146
|
// 暂时不上
|
|
125
147
|
},
|
|
126
148
|
// MCP渠道
|
|
127
149
|
[e.MCP_STORE]: {
|
|
128
150
|
id: e.MCP_STORE,
|
|
129
|
-
name
|
|
130
|
-
|
|
131
|
-
|
|
151
|
+
get name() {
|
|
152
|
+
return () => a("COMMON_DICT.ENUMS.NAME_ZJGC") || "组件广场";
|
|
153
|
+
},
|
|
154
|
+
get description() {
|
|
155
|
+
return a("COMMON_DICT.ENUMS.DESCRIPTION_ZJGC") || "分享到组件广场,获得更多曝光";
|
|
156
|
+
},
|
|
157
|
+
visible: !0
|
|
132
158
|
}
|
|
133
|
-
}
|
|
159
|
+
}, j = [
|
|
134
160
|
e.API,
|
|
135
161
|
e.WORKFLOW_API,
|
|
136
162
|
e.PLUGIN_API
|
|
@@ -145,12 +171,11 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
145
171
|
e.AGENT_STORE,
|
|
146
172
|
e.WORKFLOW_STORE,
|
|
147
173
|
e.MCP_STORE
|
|
148
|
-
],
|
|
174
|
+
], ce = {
|
|
149
175
|
h5: {
|
|
150
176
|
icon: "IconH5",
|
|
151
177
|
iconColor: "var(--el-color-primary)",
|
|
152
|
-
backgroundColor: "#EAF0FE"
|
|
153
|
-
description: t("SOURCE_PUBLISH.PUBLISH_CHANNEL_DESCRIPTION_MSG") || "可通过PC或移动设备立即开始对话"
|
|
178
|
+
backgroundColor: "#EAF0FE"
|
|
154
179
|
},
|
|
155
180
|
apikey: {
|
|
156
181
|
icon: "IconApikey",
|
|
@@ -182,9 +207,9 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
182
207
|
[e.PLUGIN_STORE]: "store",
|
|
183
208
|
[e.MCP_STORE]: "store",
|
|
184
209
|
[e.FEISHU_WEB]: "feishu"
|
|
185
|
-
}, we = (
|
|
210
|
+
}, we = (o, _) => ({
|
|
186
211
|
// 智能体
|
|
187
|
-
[
|
|
212
|
+
[F.AGENT]: [
|
|
188
213
|
e.AIBox,
|
|
189
214
|
e.H5,
|
|
190
215
|
e.API,
|
|
@@ -192,38 +217,40 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
192
217
|
e.AGENT_STORE
|
|
193
218
|
],
|
|
194
219
|
// 工作流
|
|
195
|
-
[
|
|
220
|
+
[F.WORKFLOW]: [
|
|
196
221
|
e.AIBox,
|
|
197
222
|
e.WORKFLOW_API,
|
|
198
223
|
e.WORKFLOW_STORE
|
|
199
224
|
],
|
|
200
225
|
// 插件
|
|
201
|
-
[
|
|
226
|
+
[F.PLUGIN]: [
|
|
202
227
|
e.AIBox
|
|
203
228
|
// 暂时不上API和Store
|
|
204
229
|
// RELEASE_CHANNEL_TYPE.PLUGIN_API,
|
|
205
230
|
// RELEASE_CHANNEL_TYPE.PLUGIN_STORE
|
|
206
231
|
],
|
|
207
232
|
// MCP
|
|
208
|
-
[
|
|
233
|
+
[F.MCP]: [
|
|
209
234
|
e.AIBox,
|
|
210
235
|
e.MCP_STORE
|
|
211
236
|
]
|
|
212
|
-
}[
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
237
|
+
}[o] || []).map((E) => {
|
|
238
|
+
const f = xe[E];
|
|
239
|
+
console.log("defaultChannel", f);
|
|
240
|
+
const p = _.find((P) => P.channelType == E);
|
|
241
|
+
return p ? {
|
|
242
|
+
...f,
|
|
243
|
+
...p,
|
|
217
244
|
channelType: String(E)
|
|
218
245
|
} : {
|
|
219
|
-
...
|
|
246
|
+
...f,
|
|
220
247
|
channelType: String(E),
|
|
221
248
|
channelStatus: Le.UNPUBLISHED
|
|
222
249
|
};
|
|
223
|
-
}).filter((E) => typeof E.visible == "function"
|
|
250
|
+
}).filter((E) => (typeof E.visible == "function", E.visible)), ae = {
|
|
224
251
|
TRUE: 1,
|
|
225
252
|
FALSE: 0
|
|
226
|
-
},
|
|
253
|
+
}, oe = {
|
|
227
254
|
// CURRENCY: 'CURRENCY',
|
|
228
255
|
PRIVATE: "PRIVATE",
|
|
229
256
|
DEVELOPER: "DEVELOPER"
|
|
@@ -233,12 +260,16 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
233
260
|
// value: serviceTypeMap.CURRENCY
|
|
234
261
|
// },
|
|
235
262
|
{
|
|
236
|
-
label
|
|
237
|
-
|
|
263
|
+
get label() {
|
|
264
|
+
return a("COMMON_DICT.SERVICE_TYPE.PRIVATE");
|
|
265
|
+
},
|
|
266
|
+
value: oe.PRIVATE
|
|
238
267
|
},
|
|
239
268
|
{
|
|
240
|
-
label
|
|
241
|
-
|
|
269
|
+
get label() {
|
|
270
|
+
return a("COMMON_DICT.SERVICE_TYPE.DEVELOPER");
|
|
271
|
+
},
|
|
272
|
+
value: oe.DEVELOPER
|
|
242
273
|
}
|
|
243
274
|
], bt = [
|
|
244
275
|
// {
|
|
@@ -250,117 +281,131 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
250
281
|
// value: 'CURRENCY_NO_ENOUGH'
|
|
251
282
|
// },
|
|
252
283
|
{
|
|
253
|
-
label
|
|
254
|
-
|
|
284
|
+
get label() {
|
|
285
|
+
return a("COMMON_DICT.SERVICE_STATUS.IN_CALL");
|
|
286
|
+
},
|
|
255
287
|
value: "IN_CALL"
|
|
256
288
|
},
|
|
257
289
|
{
|
|
258
|
-
label
|
|
259
|
-
|
|
290
|
+
get label() {
|
|
291
|
+
return a("COMMON_DICT.SERVICE_STATUS.NO_CONFIG");
|
|
292
|
+
},
|
|
260
293
|
value: "NO_CONFIG"
|
|
261
294
|
}
|
|
262
295
|
// {
|
|
263
296
|
// label: '开发者结算',
|
|
264
297
|
// value: 'DEVELOPER'
|
|
265
298
|
// }
|
|
266
|
-
],
|
|
299
|
+
], k = {
|
|
267
300
|
UP_BUTTOM: {
|
|
268
301
|
get label() {
|
|
269
|
-
return
|
|
302
|
+
return a("UP_DATA.UP_TEXT");
|
|
270
303
|
},
|
|
271
304
|
get sceneWorkFlow() {
|
|
272
|
-
return
|
|
305
|
+
return a("SCENEBUTTOM.SCENE_WORKFLOW");
|
|
273
306
|
},
|
|
274
307
|
get scenePlugin() {
|
|
275
|
-
return
|
|
308
|
+
return a("SCENEBUTTOM.SCENE_PLUGIN");
|
|
276
309
|
},
|
|
277
310
|
get sceneModmcp() {
|
|
278
|
-
return
|
|
311
|
+
return a("SCENEBUTTOM.SCENE_MODMCP");
|
|
279
312
|
},
|
|
280
313
|
get sceneArbitrarily() {
|
|
281
|
-
return
|
|
314
|
+
return a("SCENEBUTTOM.ARBITRARILY");
|
|
282
315
|
},
|
|
283
316
|
get searchText() {
|
|
284
|
-
return
|
|
317
|
+
return a("SCENEBUTTOM.SEARCHTEXT");
|
|
285
318
|
},
|
|
286
319
|
get intellectuAlagent() {
|
|
287
|
-
return
|
|
320
|
+
return a("SCENEBUTTOM.INTELLECTUALAGENT");
|
|
288
321
|
},
|
|
289
322
|
get searchWorkflow() {
|
|
290
|
-
return
|
|
323
|
+
return a("SCENEBUTTOM.WORKFLOW");
|
|
291
324
|
},
|
|
292
325
|
get searchPlugin() {
|
|
293
|
-
return
|
|
326
|
+
return a("SCENEBUTTOM.PLUGIN");
|
|
294
327
|
},
|
|
295
328
|
get searchModmcp() {
|
|
296
|
-
return
|
|
329
|
+
return a("SCENEBUTTOM.MODMCP");
|
|
297
330
|
}
|
|
298
331
|
},
|
|
299
332
|
STOREDETAILTYPE_STORECONTENTLAYOUT: {
|
|
300
333
|
get labelAll() {
|
|
301
|
-
return
|
|
334
|
+
return a("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL");
|
|
302
335
|
},
|
|
303
336
|
get labelTextCreation() {
|
|
304
|
-
return
|
|
337
|
+
return a(
|
|
338
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_TEXT_CREATION"
|
|
339
|
+
);
|
|
305
340
|
},
|
|
306
341
|
get labelEfficiencyTools() {
|
|
307
|
-
return
|
|
342
|
+
return a(
|
|
343
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_EFFICIENCY_TOOLS"
|
|
344
|
+
);
|
|
308
345
|
},
|
|
309
346
|
get labelMediaEntertainment() {
|
|
310
|
-
return
|
|
347
|
+
return a(
|
|
348
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_MEDIA_ENTERTAINMENT"
|
|
349
|
+
);
|
|
311
350
|
},
|
|
312
351
|
get labelOfficeHr() {
|
|
313
|
-
return
|
|
352
|
+
return a("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_OFFICE_HR");
|
|
314
353
|
},
|
|
315
354
|
get labelGovernmentServices() {
|
|
316
|
-
return
|
|
355
|
+
return a(
|
|
356
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_GOVERNMENT_SERVICES"
|
|
357
|
+
);
|
|
317
358
|
},
|
|
318
359
|
get labelTravelSightseeing() {
|
|
319
|
-
return
|
|
360
|
+
return a(
|
|
361
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_TRAVEL_SIGHTSEEING"
|
|
362
|
+
);
|
|
320
363
|
},
|
|
321
364
|
get labelFinancialServices() {
|
|
322
|
-
return
|
|
365
|
+
return a(
|
|
366
|
+
"STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_FINANCIAL_SERVICES"
|
|
367
|
+
);
|
|
323
368
|
}
|
|
324
369
|
}
|
|
325
370
|
}, We = () => [
|
|
326
371
|
// { label: '所有标签', value: '0', icon: 'IconType22' },
|
|
327
372
|
{
|
|
328
|
-
label:
|
|
373
|
+
label: k.STOREDETAILTYPE_STORECONTENTLAYOUT.labelAll,
|
|
329
374
|
value: "0",
|
|
330
375
|
icon: "IconType22"
|
|
331
376
|
},
|
|
332
377
|
{
|
|
333
|
-
label:
|
|
378
|
+
label: k.STOREDETAILTYPE_STORECONTENTLAYOUT.labelTextCreation,
|
|
334
379
|
value: "1",
|
|
335
380
|
icon: "IconWrite"
|
|
336
381
|
},
|
|
337
382
|
{
|
|
338
|
-
label:
|
|
383
|
+
label: k.STOREDETAILTYPE_STORECONTENTLAYOUT.labelEfficiencyTools,
|
|
339
384
|
value: "3",
|
|
340
385
|
icon: "IconEfficiency2"
|
|
341
386
|
},
|
|
342
387
|
{
|
|
343
|
-
label:
|
|
388
|
+
label: k.STOREDETAILTYPE_STORECONTENTLAYOUT.labelMediaEntertainment,
|
|
344
389
|
value: "4",
|
|
345
390
|
icon: "IconVideo"
|
|
346
391
|
},
|
|
347
392
|
{
|
|
348
|
-
label:
|
|
393
|
+
label: k.STOREDETAILTYPE_STORECONTENTLAYOUT.labelOfficeHr,
|
|
349
394
|
value: "5",
|
|
350
395
|
icon: "IconOffice"
|
|
351
396
|
},
|
|
352
397
|
{
|
|
353
|
-
label:
|
|
398
|
+
label: k.STOREDETAILTYPE_STORECONTENTLAYOUT.labelGovernmentServices,
|
|
354
399
|
value: "6",
|
|
355
400
|
icon: "IconGovernment"
|
|
356
401
|
},
|
|
357
402
|
{
|
|
358
|
-
label:
|
|
403
|
+
label: k.STOREDETAILTYPE_STORECONTENTLAYOUT.labelTravelSightseeing,
|
|
359
404
|
value: "7",
|
|
360
405
|
icon: "IconTravel"
|
|
361
406
|
},
|
|
362
407
|
{
|
|
363
|
-
label:
|
|
408
|
+
label: k.STOREDETAILTYPE_STORECONTENTLAYOUT.labelFinancialServices,
|
|
364
409
|
value: "8",
|
|
365
410
|
icon: "IconFinance"
|
|
366
411
|
}
|
|
@@ -376,29 +421,29 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
376
421
|
default: 30
|
|
377
422
|
}
|
|
378
423
|
},
|
|
379
|
-
setup(
|
|
380
|
-
const
|
|
381
|
-
const
|
|
382
|
-
return f
|
|
383
|
-
...
|
|
384
|
-
icon: Ce(
|
|
385
|
-
},
|
|
386
|
-
}, {}),
|
|
424
|
+
setup(o) {
|
|
425
|
+
const _ = o, y = Object.keys(ce).reduce((E, f) => {
|
|
426
|
+
const p = ce[f];
|
|
427
|
+
return E[f] = {
|
|
428
|
+
...p,
|
|
429
|
+
icon: Ce(p.icon)
|
|
430
|
+
}, E;
|
|
431
|
+
}, {}), h = g({});
|
|
387
432
|
return ie(() => {
|
|
388
|
-
const
|
|
389
|
-
|
|
390
|
-
}), (
|
|
391
|
-
const
|
|
392
|
-
return
|
|
433
|
+
const E = ke[_.publishType] || "h5";
|
|
434
|
+
h.value = y[E];
|
|
435
|
+
}), (E, f) => {
|
|
436
|
+
const p = m("el-icon");
|
|
437
|
+
return S(), V("div", {
|
|
393
438
|
class: "channel-icon flex items-center justify-center radius-8",
|
|
394
|
-
style:
|
|
439
|
+
style: me({ background: h.value?.backgroundColor })
|
|
395
440
|
}, [
|
|
396
|
-
|
|
397
|
-
size:
|
|
398
|
-
color:
|
|
441
|
+
i(p, {
|
|
442
|
+
size: o.size,
|
|
443
|
+
color: h.value?.iconColor
|
|
399
444
|
}, {
|
|
400
|
-
default:
|
|
401
|
-
(
|
|
445
|
+
default: s(() => [
|
|
446
|
+
(S(), B(fe(h.value?.icon)))
|
|
402
447
|
]),
|
|
403
448
|
_: 1
|
|
404
449
|
}, 8, ["size", "color"])
|
|
@@ -437,63 +482,63 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
437
482
|
}
|
|
438
483
|
},
|
|
439
484
|
emits: ["update:detail"],
|
|
440
|
-
setup(
|
|
441
|
-
const { t:
|
|
442
|
-
const
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
const
|
|
446
|
-
|
|
447
|
-
},
|
|
448
|
-
const
|
|
449
|
-
|
|
485
|
+
setup(o, { expose: _, emit: y }) {
|
|
486
|
+
const { t: h } = Z(), E = o, f = y, p = g(null), P = (A) => {
|
|
487
|
+
const R = { ...E.detail, openStatus: A };
|
|
488
|
+
f("update:detail", R);
|
|
489
|
+
}, x = (A) => {
|
|
490
|
+
const R = { ...E.detail, allVisible: A };
|
|
491
|
+
f("update:detail", R);
|
|
492
|
+
}, w = (A) => {
|
|
493
|
+
const R = { ...E.detail, visibleScope: A };
|
|
494
|
+
f("update:detail", R);
|
|
450
495
|
};
|
|
451
|
-
return
|
|
496
|
+
return _({
|
|
452
497
|
getSelectedItems: () => {
|
|
453
|
-
let
|
|
454
|
-
openStatus:
|
|
498
|
+
let A = {
|
|
499
|
+
openStatus: E.detail.openStatus || ae.FALSE
|
|
455
500
|
};
|
|
456
|
-
if (
|
|
457
|
-
const
|
|
458
|
-
|
|
501
|
+
if (p.value) {
|
|
502
|
+
const R = p.value.getSelectedItems();
|
|
503
|
+
A.allVisible = R.allVisible, A.visibleScope = R.visibleScope;
|
|
459
504
|
}
|
|
460
|
-
return
|
|
505
|
+
return A;
|
|
461
506
|
}
|
|
462
|
-
}), (
|
|
463
|
-
const Y =
|
|
464
|
-
return
|
|
465
|
-
|
|
507
|
+
}), (A, R) => {
|
|
508
|
+
const Y = m("IconTip"), L = m("el-icon"), d = m("el-tooltip"), W = m("el-checkbox");
|
|
509
|
+
return S(), V("div", Xe, [
|
|
510
|
+
o.showAvailableRange ? (S(), B(t(he), {
|
|
466
511
|
key: 0,
|
|
467
|
-
"all-visible":
|
|
468
|
-
"model-value":
|
|
512
|
+
"all-visible": o.detail.allVisible,
|
|
513
|
+
"model-value": o.detail.visibleScope,
|
|
469
514
|
class: Re(["pd-t-16", {
|
|
470
|
-
"pd-b-16": !
|
|
515
|
+
"pd-b-16": !o.showPermissionSetting
|
|
471
516
|
}]),
|
|
472
517
|
ref_key: "availableRangeSettingRef",
|
|
473
|
-
ref:
|
|
474
|
-
"onUpdate:allVisible":
|
|
475
|
-
"onUpdate:modelValue":
|
|
518
|
+
ref: p,
|
|
519
|
+
"onUpdate:allVisible": x,
|
|
520
|
+
"onUpdate:modelValue": w
|
|
476
521
|
}, null, 8, ["all-visible", "model-value", "class"])) : H("", !0),
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
522
|
+
o.showPermissionSetting ? (S(), V("div", ze, [
|
|
523
|
+
c("div", qe, [
|
|
524
|
+
R[0] || (R[0] = c("span", {
|
|
480
525
|
class: "mg-r-2",
|
|
481
526
|
style: { color: "var(--el-color-danger)" }
|
|
482
527
|
}, "*", -1)),
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
content:
|
|
528
|
+
D(" " + U(t(h)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING")) + " ", 1),
|
|
529
|
+
i(d, {
|
|
530
|
+
content: t(h)(
|
|
486
531
|
"PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING_TOOLTIP"
|
|
487
532
|
),
|
|
488
533
|
placement: "top"
|
|
489
534
|
}, {
|
|
490
|
-
default:
|
|
491
|
-
|
|
535
|
+
default: s(() => [
|
|
536
|
+
i(L, {
|
|
492
537
|
class: "mg-l-4",
|
|
493
538
|
size: "14px"
|
|
494
539
|
}, {
|
|
495
|
-
default:
|
|
496
|
-
|
|
540
|
+
default: s(() => [
|
|
541
|
+
i(Y)
|
|
497
542
|
]),
|
|
498
543
|
_: 1
|
|
499
544
|
})
|
|
@@ -501,20 +546,20 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
501
546
|
_: 1
|
|
502
547
|
}, 8, ["content"])
|
|
503
548
|
]),
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
"model-value":
|
|
507
|
-
"onUpdate:modelValue":
|
|
508
|
-
"true-value":
|
|
509
|
-
"false-value":
|
|
549
|
+
c("div", je, [
|
|
550
|
+
i(W, {
|
|
551
|
+
"model-value": o.detail.openStatus,
|
|
552
|
+
"onUpdate:modelValue": P,
|
|
553
|
+
"true-value": t(ae).TRUE,
|
|
554
|
+
"false-value": t(ae).FALSE,
|
|
510
555
|
class: "mg-r-0"
|
|
511
556
|
}, {
|
|
512
|
-
default:
|
|
513
|
-
|
|
557
|
+
default: s(() => [
|
|
558
|
+
c("div", Ze, U(t(h)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE")), 1)
|
|
514
559
|
]),
|
|
515
560
|
_: 1
|
|
516
561
|
}, 8, ["model-value", "true-value", "false-value"]),
|
|
517
|
-
|
|
562
|
+
c("span", Je, U(t(h)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE_MCPKEY")), 1)
|
|
518
563
|
])
|
|
519
564
|
])) : H("", !0)
|
|
520
565
|
]);
|
|
@@ -528,24 +573,24 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
528
573
|
required: !0
|
|
529
574
|
}
|
|
530
575
|
},
|
|
531
|
-
setup(
|
|
532
|
-
return (
|
|
533
|
-
const
|
|
534
|
-
return
|
|
576
|
+
setup(o) {
|
|
577
|
+
return (_, y) => {
|
|
578
|
+
const h = m("el-icon"), E = m("el-tooltip");
|
|
579
|
+
return o.channelType === t(e).FEISHU_WEB ? (S(), B(E, {
|
|
535
580
|
key: 0,
|
|
536
581
|
placement: "top"
|
|
537
582
|
}, {
|
|
538
|
-
content:
|
|
539
|
-
|
|
583
|
+
content: s(() => [...y[0] || (y[0] = [
|
|
584
|
+
D(" 发布成功后可在飞书工作台找到与智能体同名应用 ", -1)
|
|
540
585
|
])]),
|
|
541
|
-
default:
|
|
542
|
-
|
|
586
|
+
default: s(() => [
|
|
587
|
+
i(h, {
|
|
543
588
|
size: "14px",
|
|
544
589
|
color: "#999",
|
|
545
590
|
style: { "margin-left": "5px" }
|
|
546
591
|
}, {
|
|
547
|
-
default:
|
|
548
|
-
|
|
592
|
+
default: s(() => [
|
|
593
|
+
i(t(_e))
|
|
549
594
|
]),
|
|
550
595
|
_: 1
|
|
551
596
|
})
|
|
@@ -566,25 +611,25 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
566
611
|
required: !0
|
|
567
612
|
}
|
|
568
613
|
},
|
|
569
|
-
setup(
|
|
570
|
-
const { t:
|
|
571
|
-
return (y,
|
|
572
|
-
const
|
|
573
|
-
return
|
|
614
|
+
setup(o) {
|
|
615
|
+
const { t: _ } = Z();
|
|
616
|
+
return (y, h) => {
|
|
617
|
+
const E = m("el-icon"), f = m("el-tooltip");
|
|
618
|
+
return t(j).includes(o.channelType) ? (S(), B(f, {
|
|
574
619
|
key: 0,
|
|
575
620
|
placement: "top"
|
|
576
621
|
}, {
|
|
577
|
-
content:
|
|
578
|
-
|
|
622
|
+
content: s(() => [
|
|
623
|
+
D(U(o.isAuth ? t(_)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_MSG") || "请先完成授权" : t(_)("SOURCE_PUBLISH.PUBLISH_ACCESS_TOKEN_MSG") || "调用需要创建访问凭证"), 1)
|
|
579
624
|
]),
|
|
580
|
-
default:
|
|
581
|
-
|
|
625
|
+
default: s(() => [
|
|
626
|
+
i(E, {
|
|
582
627
|
size: "14px",
|
|
583
628
|
color: "#999",
|
|
584
629
|
style: { "margin-left": "5px" }
|
|
585
630
|
}, {
|
|
586
|
-
default:
|
|
587
|
-
|
|
631
|
+
default: s(() => [
|
|
632
|
+
i(t(_e))
|
|
588
633
|
]),
|
|
589
634
|
_: 1
|
|
590
635
|
})
|
|
@@ -593,10 +638,10 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
593
638
|
})) : H("", !0);
|
|
594
639
|
};
|
|
595
640
|
}
|
|
596
|
-
}, lt = { class: "publish-settings" }, nt = { class: "channel-name" }, st = { class: "channel-title" },
|
|
641
|
+
}, lt = { class: "publish-settings" }, nt = { class: "channel-name" }, st = { class: "channel-title" }, at = { class: "channel-title__name" }, ot = { class: "channel-title__desc" }, it = {
|
|
597
642
|
key: 0,
|
|
598
643
|
class: "expand-content"
|
|
599
|
-
}, rt = { class: "select-label" },
|
|
644
|
+
}, rt = { class: "select-label" }, ut = { class: "select-label" }, ct = { class: "select-label" }, Et = { class: "action-container" }, dt = { class: "select-label" }, Tt = {
|
|
600
645
|
__name: "PublishSettings",
|
|
601
646
|
props: {
|
|
602
647
|
modelValue: {
|
|
@@ -606,34 +651,25 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
606
651
|
// 3 智能体 4 工作流 5 插件 8 MCP
|
|
607
652
|
sourceType: {
|
|
608
653
|
type: String,
|
|
609
|
-
default:
|
|
654
|
+
default: F.AGENT
|
|
610
655
|
},
|
|
611
656
|
channelManagement: {
|
|
612
657
|
type: Array,
|
|
613
658
|
default: () => []
|
|
614
|
-
},
|
|
615
|
-
configStore: {
|
|
616
|
-
type: Object,
|
|
617
|
-
default: () => ({})
|
|
618
659
|
}
|
|
619
660
|
},
|
|
620
661
|
emits: ["validateField", "update:modelValue"],
|
|
621
|
-
setup(
|
|
622
|
-
const
|
|
662
|
+
setup(o, { expose: _, emit: y }) {
|
|
663
|
+
const h = ge(), E = Te(), f = Se(), p = y, P = o, { checkToken: x } = pe(), w = g(null), O = g(!1), A = g(""), R = g(""), Y = g(""), { t: L } = Z(), d = (() => {
|
|
623
664
|
let u = We();
|
|
624
665
|
return u.shift(), u;
|
|
625
|
-
})(), W =
|
|
626
|
-
v.sourceType,
|
|
627
|
-
v.configStore,
|
|
628
|
-
v.channelManagement,
|
|
629
|
-
xe(N)
|
|
630
|
-
)), J = ce(() => [
|
|
666
|
+
})(), W = ue(() => we(P.sourceType, P.channelManagement)), J = ue(() => [
|
|
631
667
|
{
|
|
632
668
|
type: "selection",
|
|
633
|
-
selectable: (
|
|
669
|
+
selectable: (n) => n.id == e.AIBox ? !1 : j.includes(n.id) ? O.value : !0
|
|
634
670
|
},
|
|
635
671
|
{
|
|
636
|
-
label:
|
|
672
|
+
label: L("SOURCE_PUBLISH.PUBLISH_CHANNEL") || "发布渠道",
|
|
637
673
|
prop: "name",
|
|
638
674
|
slot: "name"
|
|
639
675
|
},
|
|
@@ -654,214 +690,215 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
654
690
|
}
|
|
655
691
|
]), Q = [
|
|
656
692
|
{
|
|
657
|
-
label:
|
|
693
|
+
label: L("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_1") || "专享服务",
|
|
658
694
|
value: "PRIVATE"
|
|
659
695
|
},
|
|
660
696
|
{
|
|
661
|
-
label:
|
|
697
|
+
label: L("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_2") || "开发者计算",
|
|
662
698
|
value: "DEVELOPER"
|
|
663
699
|
}
|
|
664
700
|
], X = (u) => {
|
|
665
|
-
|
|
666
|
-
}, $ = (u,
|
|
667
|
-
u.allVisible =
|
|
701
|
+
p("update:modelValue", u), p("validateField");
|
|
702
|
+
}, $ = (u, n) => {
|
|
703
|
+
u.allVisible = n.allVisible, u.visibleScope = n.visibleScope, u.openStatus = n.openStatus;
|
|
668
704
|
}, z = async () => {
|
|
669
|
-
const u = await
|
|
670
|
-
console.log(u, "res"),
|
|
671
|
-
}, ee = (u,
|
|
672
|
-
|
|
673
|
-
const T = W.value.filter((
|
|
674
|
-
T.forEach((
|
|
675
|
-
|
|
705
|
+
const u = await x();
|
|
706
|
+
console.log(u, "res"), O.value = u.data || !1;
|
|
707
|
+
}, ee = (u, n) => {
|
|
708
|
+
n && (R.value = n.bakInt, A.value = n.serviceType, r.value = n.currency);
|
|
709
|
+
const T = W.value.filter((G) => u.includes(G.id));
|
|
710
|
+
T.forEach((G) => {
|
|
711
|
+
w.value?.handleToggleRowSelection(G, !0);
|
|
676
712
|
}), de(() => {
|
|
677
713
|
X(T);
|
|
678
714
|
});
|
|
679
|
-
},
|
|
680
|
-
|
|
681
|
-
},
|
|
682
|
-
|
|
683
|
-
() =>
|
|
715
|
+
}, N = () => "no-expand", l = () => {
|
|
716
|
+
E.push({ name: "ApiManage" });
|
|
717
|
+
}, r = g(""), I = g([]), M = g(!1);
|
|
718
|
+
Ue(
|
|
719
|
+
() => P.modelValue,
|
|
684
720
|
(u) => {
|
|
685
|
-
const
|
|
721
|
+
const n = [];
|
|
686
722
|
if (u && u.find((T) => q.includes(T.id))) {
|
|
687
723
|
const T = u.find(
|
|
688
|
-
(
|
|
724
|
+
(G) => q.includes(G.id)
|
|
689
725
|
);
|
|
690
|
-
T &&
|
|
726
|
+
T && n.push(T.id), M.value = !0;
|
|
691
727
|
} else
|
|
692
728
|
M.value = !1;
|
|
693
|
-
u && u.find((T) => T.id === e.FEISHU_WEB) &&
|
|
729
|
+
u && u.find((T) => T.id === e.FEISHU_WEB) && n.push(e.FEISHU_WEB), I.value = n;
|
|
694
730
|
},
|
|
695
731
|
{ immediate: !0, deep: !0 }
|
|
696
732
|
);
|
|
697
|
-
const
|
|
698
|
-
const
|
|
733
|
+
const b = (u) => {
|
|
734
|
+
const n = `permissionSettingRef_${u}`, T = h?.refs?.[n];
|
|
699
735
|
return T ? T.getSelectedItems() : null;
|
|
700
736
|
};
|
|
701
737
|
return ie(() => {
|
|
702
|
-
z(), Y.value =
|
|
703
|
-
}),
|
|
704
|
-
bakInt:
|
|
705
|
-
serviceType:
|
|
706
|
-
currency:
|
|
738
|
+
z(), Y.value = f.params.authType;
|
|
739
|
+
}), _({
|
|
740
|
+
bakInt: R,
|
|
741
|
+
serviceType: A,
|
|
742
|
+
currency: r,
|
|
707
743
|
// visibleWorkspace,
|
|
708
744
|
// visibleUser,
|
|
709
745
|
// openStatus,
|
|
710
746
|
handleToggleRowSelection: ee,
|
|
711
|
-
getVisibleRangeData:
|
|
712
|
-
}), (u,
|
|
713
|
-
const T =
|
|
714
|
-
return
|
|
715
|
-
|
|
747
|
+
getVisibleRangeData: b
|
|
748
|
+
}), (u, n) => {
|
|
749
|
+
const T = m("el-option"), G = m("el-select"), Oe = m("el-input-number"), re = m("el-tag"), Ie = m("el-button"), Ae = m("AiboxTable");
|
|
750
|
+
return S(), V("div", lt, [
|
|
751
|
+
i(Ae, {
|
|
716
752
|
columns: J.value,
|
|
717
753
|
data: W.value,
|
|
718
|
-
"on-row-key": (
|
|
754
|
+
"on-row-key": (C) => C.id,
|
|
719
755
|
total: W.value.length,
|
|
720
756
|
style: { width: "100%" },
|
|
721
757
|
hasPage: !1,
|
|
722
758
|
"show-handle-nums": 1,
|
|
723
|
-
onRowClassName:
|
|
724
|
-
"expand-row-keys":
|
|
759
|
+
onRowClassName: N,
|
|
760
|
+
"expand-row-keys": I.value,
|
|
725
761
|
"default-expand-all": !1,
|
|
726
762
|
onOnMultiSelection: X,
|
|
727
763
|
ref_key: "aiboxTableRef",
|
|
728
|
-
ref:
|
|
764
|
+
ref: w
|
|
729
765
|
}, {
|
|
730
|
-
name:
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
"publish-type":
|
|
766
|
+
name: s(({ row: C }) => [
|
|
767
|
+
c("div", nt, [
|
|
768
|
+
i(Ke, {
|
|
769
|
+
"publish-type": C.id,
|
|
734
770
|
size: 24
|
|
735
771
|
}, null, 8, ["publish-type"]),
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
"channel-type":
|
|
741
|
-
"is-auth":
|
|
772
|
+
c("div", st, [
|
|
773
|
+
c("p", at, [
|
|
774
|
+
D(U(C.name(o.sourceType)) + " ", 1),
|
|
775
|
+
i(tt, {
|
|
776
|
+
"channel-type": C.id,
|
|
777
|
+
"is-auth": O.value
|
|
742
778
|
}, null, 8, ["channel-type", "is-auth"]),
|
|
743
|
-
|
|
744
|
-
"channel-type":
|
|
779
|
+
i(et, {
|
|
780
|
+
"channel-type": C.id
|
|
745
781
|
}, null, 8, ["channel-type"])
|
|
746
782
|
]),
|
|
747
|
-
|
|
783
|
+
c("p", ot, U(C.description), 1)
|
|
748
784
|
])
|
|
749
785
|
])
|
|
750
786
|
]),
|
|
751
|
-
expand:
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
modelValue:
|
|
755
|
-
"onUpdate:modelValue":
|
|
756
|
-
placeholder:
|
|
787
|
+
expand: s(({ row: C }) => [
|
|
788
|
+
C.id === t(e).PLUGIN_STORE ? (S(), V("div", it, [
|
|
789
|
+
i(G, {
|
|
790
|
+
modelValue: R.value,
|
|
791
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => R.value = v),
|
|
792
|
+
placeholder: t(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
|
|
757
793
|
style: { width: "200px" }
|
|
758
794
|
}, {
|
|
759
|
-
prefix:
|
|
760
|
-
|
|
761
|
-
|
|
795
|
+
prefix: s(() => [
|
|
796
|
+
c("div", rt, U(t(L)("SOURCE_PUBLISH.CATEGORY") || "分类"), 1),
|
|
797
|
+
n[4] || (n[4] = c("div", { class: "divider" }, null, -1))
|
|
762
798
|
]),
|
|
763
|
-
default:
|
|
764
|
-
(
|
|
765
|
-
key:
|
|
766
|
-
label:
|
|
767
|
-
value:
|
|
799
|
+
default: s(() => [
|
|
800
|
+
(S(!0), V(te, null, le(t(d), (v) => (S(), B(T, {
|
|
801
|
+
key: v.value,
|
|
802
|
+
label: v.label,
|
|
803
|
+
value: v.value
|
|
768
804
|
}, null, 8, ["label", "value"]))), 128))
|
|
769
805
|
]),
|
|
770
806
|
_: 1
|
|
771
807
|
}, 8, ["modelValue", "placeholder"]),
|
|
772
|
-
Y.value == "1" ? (
|
|
808
|
+
Y.value == "1" ? (S(), B(G, {
|
|
773
809
|
key: 0,
|
|
774
|
-
modelValue:
|
|
775
|
-
"onUpdate:modelValue":
|
|
776
|
-
placeholder:
|
|
810
|
+
modelValue: A.value,
|
|
811
|
+
"onUpdate:modelValue": n[1] || (n[1] = (v) => A.value = v),
|
|
812
|
+
placeholder: t(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
|
|
777
813
|
style: { width: "200px" }
|
|
778
814
|
}, {
|
|
779
|
-
prefix:
|
|
780
|
-
|
|
781
|
-
|
|
815
|
+
prefix: s(() => [
|
|
816
|
+
c("div", ut, U(t(L)("SOURCE_PUBLISH.SERVICE_TYPE") || "服务类型"), 1),
|
|
817
|
+
n[5] || (n[5] = c("div", { class: "divider" }, null, -1))
|
|
782
818
|
]),
|
|
783
|
-
default:
|
|
784
|
-
(
|
|
785
|
-
key:
|
|
786
|
-
label:
|
|
787
|
-
value:
|
|
819
|
+
default: s(() => [
|
|
820
|
+
(S(), V(te, null, le(Q, (v) => i(T, {
|
|
821
|
+
key: v.value,
|
|
822
|
+
label: v.label,
|
|
823
|
+
value: v.value
|
|
788
824
|
}, null, 8, ["label", "value"])), 64))
|
|
789
825
|
]),
|
|
790
826
|
_: 1
|
|
791
827
|
}, 8, ["modelValue", "placeholder"])) : H("", !0),
|
|
792
|
-
|
|
828
|
+
A.value === t(oe).CURRENCY ? (S(), B(Oe, {
|
|
793
829
|
key: 1,
|
|
794
|
-
modelValue:
|
|
795
|
-
"onUpdate:modelValue":
|
|
830
|
+
modelValue: r.value,
|
|
831
|
+
"onUpdate:modelValue": n[2] || (n[2] = (v) => r.value = v),
|
|
796
832
|
precision: 2,
|
|
797
833
|
style: { width: "200px" },
|
|
798
834
|
"controls-position": "right"
|
|
799
835
|
}, {
|
|
800
|
-
prefix:
|
|
801
|
-
|
|
802
|
-
|
|
836
|
+
prefix: s(() => [
|
|
837
|
+
c("div", ct, U(t(L)("SOURCE_PUBLISH.CONSUME_VALUE") || "消费值"), 1),
|
|
838
|
+
n[6] || (n[6] = c("div", { class: "divider" }, null, -1))
|
|
803
839
|
]),
|
|
804
840
|
_: 1
|
|
805
841
|
}, 8, ["modelValue"])) : H("", !0)
|
|
806
842
|
])) : H("", !0),
|
|
807
|
-
[
|
|
808
|
-
|
|
809
|
-
) ? (
|
|
843
|
+
[t(e).FEISHU_WEB, ...t(q)].includes(
|
|
844
|
+
C.id
|
|
845
|
+
) ? (S(), B($e, {
|
|
810
846
|
key: 1,
|
|
811
|
-
"show-permission-setting":
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
847
|
+
"show-permission-setting": C.id === t(e).MCP_STORE,
|
|
848
|
+
showAvailableRange: C.id === t(e).AGENT_STORE,
|
|
849
|
+
detail: C,
|
|
850
|
+
ref: `permissionSettingRef_${C.id}`,
|
|
851
|
+
"onUpdate:detail": (v) => $(C, v)
|
|
852
|
+
}, null, 8, ["show-permission-setting", "showAvailableRange", "detail", "onUpdate:detail"])) : H("", !0)
|
|
816
853
|
]),
|
|
817
|
-
status:
|
|
818
|
-
|
|
854
|
+
status: s(({ row: C }) => [
|
|
855
|
+
t(Ge).includes(C.id) ? (S(), B(re, {
|
|
819
856
|
key: 0,
|
|
820
857
|
type: "success"
|
|
821
858
|
}, {
|
|
822
|
-
default:
|
|
823
|
-
|
|
859
|
+
default: s(() => [
|
|
860
|
+
D(U(t(L)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS") || "已授权"), 1)
|
|
824
861
|
]),
|
|
825
862
|
_: 1
|
|
826
|
-
})) :
|
|
863
|
+
})) : t(j).includes(C.id) ? (S(), B(re, {
|
|
827
864
|
key: 1,
|
|
828
|
-
type:
|
|
865
|
+
type: O.value ? "success" : "info"
|
|
829
866
|
}, {
|
|
830
|
-
default:
|
|
831
|
-
|
|
867
|
+
default: s(() => [
|
|
868
|
+
D(U(O.value ? t(L)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS") || "已授权" : t(L)("SOURCE_PUBLISH.PUBLISH_UNAUTHORIZE_STATUS") || "未授权"), 1)
|
|
832
869
|
]),
|
|
833
870
|
_: 1
|
|
834
871
|
}, 8, ["type"])) : H("", !0)
|
|
835
872
|
]),
|
|
836
|
-
action:
|
|
837
|
-
|
|
838
|
-
|
|
873
|
+
action: s(({ row: C }) => [
|
|
874
|
+
c("div", Et, [
|
|
875
|
+
t(j).includes(C.id) ? (S(), B(Ie, {
|
|
839
876
|
key: 0,
|
|
840
877
|
type: "primary",
|
|
841
878
|
link: "",
|
|
842
|
-
onClick: (
|
|
879
|
+
onClick: (v) => l()
|
|
843
880
|
}, {
|
|
844
|
-
default:
|
|
845
|
-
|
|
881
|
+
default: s(() => [
|
|
882
|
+
D(U(t(L)("SOURCE_PUBLISH.CONFIG") || "配置"), 1)
|
|
846
883
|
]),
|
|
847
884
|
_: 1
|
|
848
885
|
}, 8, ["onClick"])) : H("", !0),
|
|
849
|
-
|
|
886
|
+
t(q).slice(0, 3).includes(C.id) && o.sourceType != t(F).PLUGIN && M.value ? (S(), B(G, {
|
|
850
887
|
key: 1,
|
|
851
|
-
modelValue:
|
|
852
|
-
"onUpdate:modelValue":
|
|
853
|
-
placeholder:
|
|
888
|
+
modelValue: R.value,
|
|
889
|
+
"onUpdate:modelValue": n[3] || (n[3] = (v) => R.value = v),
|
|
890
|
+
placeholder: t(L)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG") || "请选择",
|
|
854
891
|
style: { width: "150px" }
|
|
855
892
|
}, {
|
|
856
|
-
prefix:
|
|
857
|
-
|
|
858
|
-
|
|
893
|
+
prefix: s(() => [
|
|
894
|
+
c("div", dt, U(t(L)("SOURCE_PUBLISH.CATEGORY") || "分类"), 1),
|
|
895
|
+
n[7] || (n[7] = c("div", { class: "divider" }, null, -1))
|
|
859
896
|
]),
|
|
860
|
-
default:
|
|
861
|
-
(
|
|
862
|
-
key:
|
|
863
|
-
label:
|
|
864
|
-
value:
|
|
897
|
+
default: s(() => [
|
|
898
|
+
(S(!0), V(te, null, le(t(d), (v) => (S(), B(T, {
|
|
899
|
+
key: v.value,
|
|
900
|
+
label: v.label,
|
|
901
|
+
value: v.value
|
|
865
902
|
}, null, 8, ["label", "value"]))), 128))
|
|
866
903
|
]),
|
|
867
904
|
_: 1
|
|
@@ -873,7 +910,7 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
873
910
|
]);
|
|
874
911
|
};
|
|
875
912
|
}
|
|
876
|
-
},
|
|
913
|
+
}, St = /* @__PURE__ */ K(Tt, [["__scopeId", "data-v-d36a9ab0"]]), _t = {
|
|
877
914
|
class: "publish-container",
|
|
878
915
|
id: "source-publish-container"
|
|
879
916
|
}, pt = { class: "publish-container__back" }, Ot = { class: "publish-container__config" }, It = { class: "publish-container__config" }, At = {
|
|
@@ -898,18 +935,22 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
898
935
|
businessSpace: {
|
|
899
936
|
type: String,
|
|
900
937
|
default: ""
|
|
938
|
+
},
|
|
939
|
+
isBackendSystem: {
|
|
940
|
+
type: Boolean,
|
|
941
|
+
default: !1
|
|
901
942
|
}
|
|
902
943
|
},
|
|
903
|
-
setup(
|
|
904
|
-
const
|
|
944
|
+
setup(o) {
|
|
945
|
+
const _ = g(null), y = g(null), h = Se(), E = Te(), f = g(!1), p = g(!1), P = g(""), x = g(""), w = g(""), { t: O } = Z(), A = o, { sourcePublish: R, checkVersion: Y, getPublishVersionDetail: L } = pe(), d = g({
|
|
905
946
|
versionNumber: "0.0.1",
|
|
906
947
|
selectedData: [],
|
|
907
948
|
showExec: 1
|
|
908
|
-
}), W =
|
|
949
|
+
}), W = g({
|
|
909
950
|
versionNumber: [
|
|
910
951
|
{
|
|
911
952
|
required: !0,
|
|
912
|
-
message:
|
|
953
|
+
message: O("SOURCE_PUBLISH.VERSION_NUMBER_MSG") || "请输入版本号",
|
|
913
954
|
trigger: "blur"
|
|
914
955
|
},
|
|
915
956
|
{
|
|
@@ -918,21 +959,21 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
918
959
|
trigger: "blur"
|
|
919
960
|
},
|
|
920
961
|
{
|
|
921
|
-
validator: async (
|
|
922
|
-
if (
|
|
923
|
-
|
|
924
|
-
const { data:
|
|
925
|
-
sourceType:
|
|
926
|
-
sourceId:
|
|
927
|
-
versionNumber:
|
|
962
|
+
validator: async (N, l, r) => {
|
|
963
|
+
if (p.value) return;
|
|
964
|
+
p.value = !0;
|
|
965
|
+
const { data: I } = await Y({
|
|
966
|
+
sourceType: P.value,
|
|
967
|
+
sourceId: x.value,
|
|
968
|
+
versionNumber: d.value.versionNumber
|
|
928
969
|
}).finally(() => {
|
|
929
|
-
|
|
970
|
+
p.value = !1;
|
|
930
971
|
});
|
|
931
|
-
if (
|
|
932
|
-
const M =
|
|
933
|
-
|
|
972
|
+
if (I) {
|
|
973
|
+
const M = O("SOURCE_PUBLISH.VERSION_NUMBER_EXIST_MSG") || "版本号已存在";
|
|
974
|
+
r(new Error(M));
|
|
934
975
|
} else
|
|
935
|
-
|
|
976
|
+
r();
|
|
936
977
|
},
|
|
937
978
|
trigger: "blur"
|
|
938
979
|
}
|
|
@@ -940,121 +981,121 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
940
981
|
selectedData: [
|
|
941
982
|
{
|
|
942
983
|
required: !0,
|
|
943
|
-
message:
|
|
984
|
+
message: O("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG") || "请至少选择一个发布渠道",
|
|
944
985
|
trigger: "change"
|
|
945
986
|
},
|
|
946
987
|
{
|
|
947
|
-
validator: (
|
|
948
|
-
if (
|
|
949
|
-
const
|
|
950
|
-
|
|
988
|
+
validator: (N, l, r) => {
|
|
989
|
+
if (d.value.selectedData.length === 0) {
|
|
990
|
+
const I = O("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG") || "请至少选择一个发布渠道";
|
|
991
|
+
r(new Error(I));
|
|
951
992
|
} else
|
|
952
|
-
|
|
993
|
+
r();
|
|
953
994
|
},
|
|
954
995
|
trigger: "change"
|
|
955
996
|
}
|
|
956
997
|
]
|
|
957
998
|
}), J = () => {
|
|
958
999
|
y.value?.validateField("selectedData");
|
|
959
|
-
}, Q = (
|
|
960
|
-
const
|
|
961
|
-
|
|
1000
|
+
}, Q = (N) => {
|
|
1001
|
+
const l = N.replace(/[^0-9.]/g, ""), r = l.split(".");
|
|
1002
|
+
r.length > 3 ? d.value.versionNumber = r.slice(0, 3).join(".") : d.value.versionNumber = l;
|
|
962
1003
|
}, X = async () => {
|
|
963
|
-
const
|
|
964
|
-
if (!
|
|
965
|
-
|
|
966
|
-
const { code:
|
|
967
|
-
|
|
1004
|
+
const N = await $();
|
|
1005
|
+
if (!N) return;
|
|
1006
|
+
f.value = !0;
|
|
1007
|
+
const { code: l } = await R(N).finally(() => {
|
|
1008
|
+
f.value = !1;
|
|
968
1009
|
});
|
|
969
|
-
if (
|
|
970
|
-
const
|
|
971
|
-
|
|
972
|
-
path:
|
|
973
|
-
query: { active: "publish", from:
|
|
1010
|
+
if (l == 0) {
|
|
1011
|
+
const r = window.history.state;
|
|
1012
|
+
r && E.replace({
|
|
1013
|
+
path: r.back,
|
|
1014
|
+
query: { active: "publish", from: h.query.from }
|
|
974
1015
|
});
|
|
975
1016
|
}
|
|
976
1017
|
}, $ = async () => {
|
|
977
1018
|
if (await y.value.validate()) {
|
|
978
|
-
const
|
|
1019
|
+
const l = d.value.selectedData.map((b) => {
|
|
979
1020
|
const u = {
|
|
980
|
-
channelType: Number(
|
|
981
|
-
},
|
|
982
|
-
return
|
|
983
|
-
}),
|
|
984
|
-
...
|
|
985
|
-
channels:
|
|
986
|
-
sourceType:
|
|
987
|
-
sourceId:
|
|
988
|
-
workspaceBnid:
|
|
1021
|
+
channelType: Number(b.id)
|
|
1022
|
+
}, n = _.value.getVisibleRangeData(b.id);
|
|
1023
|
+
return n && (u.visibleScope = n.visibleScope, u.allVisible = n.allVisible, u.openStatus = n.openStatus), u;
|
|
1024
|
+
}), r = {
|
|
1025
|
+
...d.value,
|
|
1026
|
+
channels: l,
|
|
1027
|
+
sourceType: P.value,
|
|
1028
|
+
sourceId: x.value,
|
|
1029
|
+
workspaceBnid: A.businessSpace || ""
|
|
989
1030
|
};
|
|
990
|
-
|
|
991
|
-
let
|
|
992
|
-
const M =
|
|
993
|
-
if (
|
|
994
|
-
(
|
|
1031
|
+
P.value == F.WORKFLOW && (r.forcePublish = !0);
|
|
1032
|
+
let I = !1;
|
|
1033
|
+
const M = d.value.selectedData.map((b) => b.id);
|
|
1034
|
+
if (I = M.find(
|
|
1035
|
+
(b) => [
|
|
995
1036
|
e.AGENT_STORE,
|
|
996
1037
|
e.WORKFLOW_STORE,
|
|
997
1038
|
e.PLUGIN_STORE,
|
|
998
1039
|
e.MCP_STORE
|
|
999
|
-
].includes(
|
|
1000
|
-
),
|
|
1001
|
-
if (
|
|
1002
|
-
const
|
|
1003
|
-
return ElMessage.warning(
|
|
1040
|
+
].includes(b)
|
|
1041
|
+
), I) {
|
|
1042
|
+
if (r.bakInt = _.value.bakInt, !r.bakInt) {
|
|
1043
|
+
const b = O("SOURCE_PUBLISH.PUBLISH_CATEGORY_MSG") || "请选择分类";
|
|
1044
|
+
return ElMessage.warning(b), !1;
|
|
1004
1045
|
}
|
|
1005
|
-
if (M.includes(e.PLUGIN_STORE) &&
|
|
1006
|
-
const
|
|
1007
|
-
return ElMessage.warning(
|
|
1046
|
+
if (M.includes(e.PLUGIN_STORE) && w.value == "1" && (r.serviceType = _.value.serviceType, !r.serviceType)) {
|
|
1047
|
+
const b = O("SOURCE_PUBLISH.PUBLISH_SERVICE_TYPE_MSG") || "请选择服务类型";
|
|
1048
|
+
return ElMessage.warning(b), !1;
|
|
1008
1049
|
}
|
|
1009
1050
|
}
|
|
1010
|
-
return delete
|
|
1051
|
+
return delete r.selectedData, r;
|
|
1011
1052
|
} else
|
|
1012
1053
|
return console.log("error submit!"), !1;
|
|
1013
|
-
}, z =
|
|
1054
|
+
}, z = g([]), ee = async () => {
|
|
1014
1055
|
console.log(
|
|
1015
|
-
|
|
1016
|
-
|
|
1056
|
+
P.value,
|
|
1057
|
+
x.value,
|
|
1017
1058
|
"sourceType.value,sourceBnid.value,"
|
|
1018
1059
|
);
|
|
1019
|
-
const { data:
|
|
1020
|
-
|
|
1021
|
-
|
|
1060
|
+
const { data: N } = await L(
|
|
1061
|
+
P.value,
|
|
1062
|
+
x.value
|
|
1022
1063
|
);
|
|
1023
|
-
if (
|
|
1024
|
-
const
|
|
1025
|
-
|
|
1064
|
+
if (N) {
|
|
1065
|
+
const l = N.versionNumber.split(".");
|
|
1066
|
+
l.length === 3 ? l[2] = parseInt(l[2]) + 1 : l.push("1"), d.value.versionNumber = l.join("."), d.value.versionDesc = N.versionDesc, d.value.showExec = N.showExec, d.value.showKnowledge = N.showKnowledge, _.value.bakInt = N.bakInt;
|
|
1026
1067
|
}
|
|
1027
|
-
z.value =
|
|
1028
|
-
let
|
|
1029
|
-
const
|
|
1030
|
-
if (
|
|
1031
|
-
|
|
1032
|
-
}),
|
|
1033
|
-
|
|
1068
|
+
z.value = N?.channels || [], de(() => {
|
|
1069
|
+
let l = [];
|
|
1070
|
+
const r = {};
|
|
1071
|
+
if (N?.channels.forEach((I) => {
|
|
1072
|
+
l.push(String(I.channelType)), (I.bakInt || I.bakInt == 0) && (r.bakInt = String(I.bakInt)), (I.serviceType || I.serviceType == 0) && (r.serviceType = String(I.serviceType)), (I.currency || I.currency == 0) && (r.currency = I.currency);
|
|
1073
|
+
}), l.length == 0)
|
|
1074
|
+
P.value == F.AGENT ? l = [e.H5, e.AIBox] : l = [e.AIBox];
|
|
1034
1075
|
else {
|
|
1035
|
-
const
|
|
1036
|
-
|
|
1076
|
+
const I = l.find((M) => M == e.AIBox);
|
|
1077
|
+
P.value == F.AGENT && !I && l.push(e.AIBox);
|
|
1037
1078
|
}
|
|
1038
|
-
|
|
1079
|
+
_.value?.handleToggleRowSelection(l, r);
|
|
1039
1080
|
});
|
|
1040
1081
|
};
|
|
1041
1082
|
return ie(() => {
|
|
1042
|
-
console.log("props",
|
|
1043
|
-
}), (
|
|
1044
|
-
const
|
|
1045
|
-
return
|
|
1046
|
-
|
|
1047
|
-
default:
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
r
|
|
1083
|
+
console.log("props", A), P.value = A.propsSourceType, w.value = A.propsAuthType, x.value = A.propsSourceBnid, ee();
|
|
1084
|
+
}), (N, l) => {
|
|
1085
|
+
const r = m("el-button"), I = m("back-bar"), M = m("el-input"), b = m("el-form-item"), u = m("el-switch"), n = m("el-form");
|
|
1086
|
+
return S(), V("div", _t, [
|
|
1087
|
+
i(I, { "back-bar-style": "#f7f8fa" }, {
|
|
1088
|
+
default: s(() => [
|
|
1089
|
+
c("div", pt, [
|
|
1090
|
+
c("span", null, U(t(O)("SOURCE_PUBLISH.PUBLISH") || "发布"), 1),
|
|
1091
|
+
i(r, {
|
|
1051
1092
|
type: "primary",
|
|
1052
1093
|
class: "publish-container__sure",
|
|
1053
1094
|
onClick: X,
|
|
1054
|
-
loading:
|
|
1095
|
+
loading: f.value
|
|
1055
1096
|
}, {
|
|
1056
|
-
default:
|
|
1057
|
-
|
|
1097
|
+
default: s(() => [
|
|
1098
|
+
D(U(t(O)("SOURCE_PUBLISH.SURE_PUBLISH") || "确认发布"), 1)
|
|
1058
1099
|
]),
|
|
1059
1100
|
_: 1
|
|
1060
1101
|
}, 8, ["loading"])
|
|
@@ -1062,53 +1103,53 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
1062
1103
|
]),
|
|
1063
1104
|
_: 1
|
|
1064
1105
|
}),
|
|
1065
|
-
|
|
1106
|
+
i(n, {
|
|
1066
1107
|
ref_key: "formRef",
|
|
1067
1108
|
ref: y,
|
|
1068
|
-
model:
|
|
1109
|
+
model: d.value,
|
|
1069
1110
|
"label-width": "80px",
|
|
1070
1111
|
class: "publish-container__form",
|
|
1071
1112
|
rules: W.value,
|
|
1072
1113
|
"label-position": "top",
|
|
1073
|
-
onSubmit:
|
|
1114
|
+
onSubmit: l[5] || (l[5] = Pe(() => {
|
|
1074
1115
|
}, ["prevent"]))
|
|
1075
1116
|
}, {
|
|
1076
|
-
default:
|
|
1077
|
-
|
|
1078
|
-
default:
|
|
1079
|
-
|
|
1117
|
+
default: s(() => [
|
|
1118
|
+
i(ne, null, {
|
|
1119
|
+
default: s(() => [
|
|
1120
|
+
D(U(t(O)("SOURCE_PUBLISH.PUBLISH_RECORD") || "发布记录"), 1)
|
|
1080
1121
|
]),
|
|
1081
1122
|
_: 1
|
|
1082
1123
|
}),
|
|
1083
|
-
|
|
1084
|
-
default:
|
|
1085
|
-
|
|
1086
|
-
label:
|
|
1124
|
+
i(se, null, {
|
|
1125
|
+
default: s(() => [
|
|
1126
|
+
i(b, {
|
|
1127
|
+
label: t(O)("SOURCE_PUBLISH.VERSION_NUMBER") || "版本号",
|
|
1087
1128
|
prop: "versionNumber"
|
|
1088
1129
|
}, {
|
|
1089
|
-
default:
|
|
1090
|
-
|
|
1091
|
-
modelValue:
|
|
1092
|
-
"onUpdate:modelValue":
|
|
1093
|
-
placeholder:
|
|
1130
|
+
default: s(() => [
|
|
1131
|
+
i(M, {
|
|
1132
|
+
modelValue: d.value.versionNumber,
|
|
1133
|
+
"onUpdate:modelValue": l[0] || (l[0] = (T) => d.value.versionNumber = T),
|
|
1134
|
+
placeholder: t(O)("SOURCE_PUBLISH.VERSION_PLACEHOLDER") || "版本示例:0.0.1",
|
|
1094
1135
|
onInput: Q
|
|
1095
1136
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1096
1137
|
]),
|
|
1097
1138
|
_: 1
|
|
1098
1139
|
}, 8, ["label"]),
|
|
1099
|
-
|
|
1100
|
-
label:
|
|
1140
|
+
i(b, {
|
|
1141
|
+
label: t(O)("SOURCE_PUBLISH.VERSION_DESC") || "版本描述",
|
|
1101
1142
|
prop: "versionDesc"
|
|
1102
1143
|
}, {
|
|
1103
|
-
default:
|
|
1104
|
-
|
|
1144
|
+
default: s(() => [
|
|
1145
|
+
i(M, {
|
|
1105
1146
|
type: "textarea",
|
|
1106
|
-
modelValue:
|
|
1107
|
-
"onUpdate:modelValue":
|
|
1147
|
+
modelValue: d.value.versionDesc,
|
|
1148
|
+
"onUpdate:modelValue": l[1] || (l[1] = (T) => d.value.versionDesc = T),
|
|
1108
1149
|
rows: 4,
|
|
1109
1150
|
maxlength: "2000",
|
|
1110
1151
|
"show-word-limit": "",
|
|
1111
|
-
placeholder:
|
|
1152
|
+
placeholder: t(O)("SOURCE_PUBLISH.VERSION_DESC") || "版本描述"
|
|
1112
1153
|
}, null, 8, ["modelValue", "placeholder"])
|
|
1113
1154
|
]),
|
|
1114
1155
|
_: 1
|
|
@@ -1116,29 +1157,29 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
1116
1157
|
]),
|
|
1117
1158
|
_: 1
|
|
1118
1159
|
}),
|
|
1119
|
-
|
|
1120
|
-
default:
|
|
1121
|
-
|
|
1160
|
+
o.showPublishConfig ? (S(), B(ne, { key: 0 }, {
|
|
1161
|
+
default: s(() => [
|
|
1162
|
+
D(U(t(O)("SOURCE_PUBLISH.PUBLISH_CONFIG") || "发布配置"), 1)
|
|
1122
1163
|
]),
|
|
1123
1164
|
_: 1
|
|
1124
1165
|
})) : H("", !0),
|
|
1125
|
-
|
|
1126
|
-
default:
|
|
1127
|
-
|
|
1128
|
-
default:
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1166
|
+
o.showPublishConfig ? (S(), B(se, { key: 1 }, {
|
|
1167
|
+
default: s(() => [
|
|
1168
|
+
i(b, { prop: "showExec" }, {
|
|
1169
|
+
default: s(() => [
|
|
1170
|
+
c("div", Ot, [
|
|
1171
|
+
c("p", null, [
|
|
1172
|
+
l[6] || (l[6] = c("img", {
|
|
1132
1173
|
src: be,
|
|
1133
1174
|
width: "20",
|
|
1134
1175
|
height: "20",
|
|
1135
1176
|
alt: ""
|
|
1136
1177
|
}, null, -1)),
|
|
1137
|
-
|
|
1178
|
+
c("span", null, U(t(O)("SOURCE_PUBLISH.SHOW_EXECUTE_PROCESS") || "展示执行过程"), 1)
|
|
1138
1179
|
]),
|
|
1139
|
-
|
|
1140
|
-
modelValue:
|
|
1141
|
-
"onUpdate:modelValue":
|
|
1180
|
+
i(u, {
|
|
1181
|
+
modelValue: d.value.showExec,
|
|
1182
|
+
"onUpdate:modelValue": l[2] || (l[2] = (T) => d.value.showExec = T),
|
|
1142
1183
|
"active-value": 1,
|
|
1143
1184
|
"inactive-value": 0
|
|
1144
1185
|
}, null, 8, ["modelValue"])
|
|
@@ -1146,21 +1187,21 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
1146
1187
|
]),
|
|
1147
1188
|
_: 1
|
|
1148
1189
|
}),
|
|
1149
|
-
|
|
1150
|
-
default:
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1190
|
+
i(b, { prop: "showKnowledge" }, {
|
|
1191
|
+
default: s(() => [
|
|
1192
|
+
c("div", It, [
|
|
1193
|
+
c("p", null, [
|
|
1194
|
+
l[7] || (l[7] = c("img", {
|
|
1154
1195
|
src: ye,
|
|
1155
1196
|
width: "20",
|
|
1156
1197
|
height: "20",
|
|
1157
1198
|
alt: ""
|
|
1158
1199
|
}, null, -1)),
|
|
1159
|
-
|
|
1200
|
+
c("span", null, U(t(O)("SOURCE_PUBLISH.SHOW_RECALL_KNOWLEDGE") || "展示召回的知识库内容"), 1)
|
|
1160
1201
|
]),
|
|
1161
|
-
|
|
1162
|
-
modelValue:
|
|
1163
|
-
"onUpdate:modelValue":
|
|
1202
|
+
i(u, {
|
|
1203
|
+
modelValue: d.value.showKnowledge,
|
|
1204
|
+
"onUpdate:modelValue": l[3] || (l[3] = (T) => d.value.showKnowledge = T),
|
|
1164
1205
|
"active-value": 1,
|
|
1165
1206
|
"inactive-value": 0
|
|
1166
1207
|
}, null, 8, ["modelValue"])
|
|
@@ -1171,24 +1212,24 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
1171
1212
|
]),
|
|
1172
1213
|
_: 1
|
|
1173
1214
|
})) : H("", !0),
|
|
1174
|
-
|
|
1175
|
-
default:
|
|
1176
|
-
|
|
1177
|
-
|
|
1215
|
+
i(ne, null, {
|
|
1216
|
+
default: s(() => [
|
|
1217
|
+
l[8] || (l[8] = c("span", { class: "publish-container__required" }, "*", -1)),
|
|
1218
|
+
D(U(t(O)("SOURCE_PUBLISH.PUBLISH_SETTING") || "发布设置"), 1)
|
|
1178
1219
|
]),
|
|
1179
1220
|
_: 1
|
|
1180
1221
|
}),
|
|
1181
|
-
|
|
1182
|
-
default:
|
|
1183
|
-
|
|
1184
|
-
default:
|
|
1185
|
-
|
|
1222
|
+
i(se, null, {
|
|
1223
|
+
default: s(() => [
|
|
1224
|
+
i(b, { prop: "selectedData" }, {
|
|
1225
|
+
default: s(() => [
|
|
1226
|
+
i(St, {
|
|
1186
1227
|
ref_key: "publishSettingsRef",
|
|
1187
|
-
ref:
|
|
1188
|
-
"source-type":
|
|
1228
|
+
ref: _,
|
|
1229
|
+
"source-type": P.value,
|
|
1189
1230
|
"channel-management": z.value,
|
|
1190
|
-
modelValue:
|
|
1191
|
-
"onUpdate:modelValue":
|
|
1231
|
+
modelValue: d.value.selectedData,
|
|
1232
|
+
"onUpdate:modelValue": l[4] || (l[4] = (T) => d.value.selectedData = T),
|
|
1192
1233
|
onValidateField: J
|
|
1193
1234
|
}, null, 8, ["source-type", "channel-management", "modelValue"])
|
|
1194
1235
|
]),
|
|
@@ -1203,28 +1244,28 @@ const se = /* @__PURE__ */ K(Ve, [["render", Fe], ["__scopeId", "data-v-d8a76b28
|
|
|
1203
1244
|
]);
|
|
1204
1245
|
};
|
|
1205
1246
|
}
|
|
1206
|
-
}, vt = /* @__PURE__ */ K(At, [["__scopeId", "data-v-
|
|
1247
|
+
}, vt = /* @__PURE__ */ K(At, [["__scopeId", "data-v-b2ada39a"]]), Bt = ve(vt);
|
|
1207
1248
|
export {
|
|
1208
1249
|
j as API_CHANNEL_TYPES,
|
|
1209
1250
|
Ge as AUTHORIZED_CHANNEL_TYPES,
|
|
1210
1251
|
tt as ApiTooltip,
|
|
1211
|
-
|
|
1252
|
+
ce as CHANNEL_ICON_CONFIG,
|
|
1212
1253
|
et as FeishuTooltip,
|
|
1213
|
-
|
|
1254
|
+
k as LIBRARY_PAGE,
|
|
1214
1255
|
yt as OFFICIAL_LABEL,
|
|
1215
|
-
|
|
1256
|
+
ae as OPEN_STATUS_VALUE,
|
|
1216
1257
|
ke as PUBLISH_TYPE_ICON_MAPPING,
|
|
1217
1258
|
$e as PermissionSetting,
|
|
1218
1259
|
Ke as PublishIcon,
|
|
1219
|
-
|
|
1260
|
+
St as PublishSettings,
|
|
1261
|
+
xe as RELEASE_CHANNEL_CONFIG,
|
|
1220
1262
|
e as RELEASE_CHANNEL_TYPE,
|
|
1221
1263
|
q as STORE_CHANNEL_TYPES,
|
|
1222
1264
|
Bt as SourcePublish,
|
|
1223
1265
|
Bt as default,
|
|
1224
1266
|
we as getChannelsByType,
|
|
1225
|
-
xe as getReleaseChannelConfig,
|
|
1226
1267
|
We as getStoreDetailType,
|
|
1227
1268
|
bt as serviceStatus,
|
|
1228
1269
|
Lt as serviceType,
|
|
1229
|
-
|
|
1270
|
+
oe as serviceTypeMap
|
|
1230
1271
|
};
|