@opentiny/tiny-engine-workspace-application-center 2.9.0-alpha.8
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/LICENSE +22 -0
- package/dist/index.js +730 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 - present TinyEngine Authors.
|
|
4
|
+
Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,730 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import { ref as j, reactive as R, onMounted as M, resolveComponent as m, createBlock as D, openBlock as _, withCtx as r, createVNode as o, createElementVNode as c, Transition as W, createElementBlock as b, createCommentVNode as I, Fragment as G, renderList as H, createTextVNode as B, normalizeClass as X, toDisplayString as O } from "vue";
|
|
3
|
+
import { Select as q, FormItem as Y, Form as Z, DialogBox as $, Button as J, Input as ee, Notify as E, Search as te, Popover as ne, GridColumn as oe, Grid as ae, Pager as ie, Modal as le } from "@opentiny/vue";
|
|
4
|
+
import { iconSearch as se } from "@opentiny/vue-icon";
|
|
5
|
+
import { SearchEmpty as re } from "@opentiny/tiny-engine-common";
|
|
6
|
+
import { callEntry as F, getMetaApi as v, META_SERVICE as h } from "@opentiny/tiny-engine-meta-register";
|
|
7
|
+
const pe = {
|
|
8
|
+
id: "engine.workspace.application-center",
|
|
9
|
+
title: "应用中心",
|
|
10
|
+
type: "workspace",
|
|
11
|
+
icon: "workspace-icon-application-center"
|
|
12
|
+
}, P = F(() => v(h.Http).get("/material-center/api/business-category/list"), {
|
|
13
|
+
metaData: {
|
|
14
|
+
id: "engine.plugins.blockmanage.js-http.fetchBusinessCategory"
|
|
15
|
+
},
|
|
16
|
+
ctx: () => ({
|
|
17
|
+
getMetaApi: v,
|
|
18
|
+
META_SERVICE: h,
|
|
19
|
+
fetchBusinessCategory: P,
|
|
20
|
+
fetchBusinessCategoryByGroup: V,
|
|
21
|
+
fetchApplicationList: A,
|
|
22
|
+
createApplication: T,
|
|
23
|
+
updateApplication: U,
|
|
24
|
+
deleteApplication: z
|
|
25
|
+
})
|
|
26
|
+
}), V = F((a) => v(h.Http).get(`/material-center/api/business-category/find?group=${a}`), {
|
|
27
|
+
metaData: {
|
|
28
|
+
id: "engine.plugins.blockmanage.js-http.fetchBusinessCategoryByGroup"
|
|
29
|
+
},
|
|
30
|
+
ctx: () => ({
|
|
31
|
+
getMetaApi: v,
|
|
32
|
+
META_SERVICE: h,
|
|
33
|
+
fetchBusinessCategory: P,
|
|
34
|
+
fetchBusinessCategoryByGroup: V,
|
|
35
|
+
fetchApplicationList: A,
|
|
36
|
+
createApplication: T,
|
|
37
|
+
updateApplication: U,
|
|
38
|
+
deleteApplication: z
|
|
39
|
+
})
|
|
40
|
+
}), A = F((a) => v(h.Http).get("app-center/api/apps/page", {
|
|
41
|
+
params: a
|
|
42
|
+
}), {
|
|
43
|
+
metaData: {
|
|
44
|
+
id: "engine.plugins.blockmanage.js-http.fetchApplicationList"
|
|
45
|
+
},
|
|
46
|
+
ctx: () => ({
|
|
47
|
+
getMetaApi: v,
|
|
48
|
+
META_SERVICE: h,
|
|
49
|
+
fetchBusinessCategory: P,
|
|
50
|
+
fetchBusinessCategoryByGroup: V,
|
|
51
|
+
fetchApplicationList: A,
|
|
52
|
+
createApplication: T,
|
|
53
|
+
updateApplication: U,
|
|
54
|
+
deleteApplication: z
|
|
55
|
+
})
|
|
56
|
+
}), T = F((a) => v(h.Http).post("/app-center/api/apps/create", a), {
|
|
57
|
+
metaData: {
|
|
58
|
+
id: "engine.plugins.blockmanage.js-http.createApplication"
|
|
59
|
+
},
|
|
60
|
+
ctx: () => ({
|
|
61
|
+
getMetaApi: v,
|
|
62
|
+
META_SERVICE: h,
|
|
63
|
+
fetchBusinessCategory: P,
|
|
64
|
+
fetchBusinessCategoryByGroup: V,
|
|
65
|
+
fetchApplicationList: A,
|
|
66
|
+
createApplication: T,
|
|
67
|
+
updateApplication: U,
|
|
68
|
+
deleteApplication: z
|
|
69
|
+
})
|
|
70
|
+
}), U = F((a, t) => v(h.Http).post(`/app-center/api/apps/update/${a}`, t), {
|
|
71
|
+
metaData: {
|
|
72
|
+
id: "engine.plugins.blockmanage.js-http.updateApplication"
|
|
73
|
+
},
|
|
74
|
+
ctx: () => ({
|
|
75
|
+
getMetaApi: v,
|
|
76
|
+
META_SERVICE: h,
|
|
77
|
+
fetchBusinessCategory: P,
|
|
78
|
+
fetchBusinessCategoryByGroup: V,
|
|
79
|
+
fetchApplicationList: A,
|
|
80
|
+
createApplication: T,
|
|
81
|
+
updateApplication: U,
|
|
82
|
+
deleteApplication: z
|
|
83
|
+
})
|
|
84
|
+
}), z = F((a) => v(h.Http).get(`/app-center/api/apps/delete/${a}`), {
|
|
85
|
+
metaData: {
|
|
86
|
+
id: "engine.plugins.blockmanage.js-http.deleteApplication"
|
|
87
|
+
},
|
|
88
|
+
ctx: () => ({
|
|
89
|
+
getMetaApi: v,
|
|
90
|
+
META_SERVICE: h,
|
|
91
|
+
fetchBusinessCategory: P,
|
|
92
|
+
fetchBusinessCategoryByGroup: V,
|
|
93
|
+
fetchApplicationList: A,
|
|
94
|
+
createApplication: T,
|
|
95
|
+
updateApplication: U,
|
|
96
|
+
deleteApplication: z
|
|
97
|
+
})
|
|
98
|
+
}), ce = {
|
|
99
|
+
components: {
|
|
100
|
+
TinyInput: ee,
|
|
101
|
+
TinyButton: J,
|
|
102
|
+
TinyDialogBox: $,
|
|
103
|
+
TinyForm: Z,
|
|
104
|
+
TinyFormItem: Y,
|
|
105
|
+
TinySelect: q
|
|
106
|
+
},
|
|
107
|
+
props: {
|
|
108
|
+
visible: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: !1
|
|
111
|
+
},
|
|
112
|
+
template: {
|
|
113
|
+
type: Object,
|
|
114
|
+
default: () => ({})
|
|
115
|
+
},
|
|
116
|
+
openByTemplate: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: !1
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
emits: ["confirm"],
|
|
122
|
+
setup(a, { emit: t }) {
|
|
123
|
+
const f = j(), e = R({
|
|
124
|
+
name: a.template.name || "",
|
|
125
|
+
description: a.template.description || "",
|
|
126
|
+
sceneId: a.template.sceneId || null,
|
|
127
|
+
industryId: a.template.industryId || null,
|
|
128
|
+
assetsUrl: a.template.assetsUrl || "template-cover-1"
|
|
129
|
+
}), C = j(!1), p = R({
|
|
130
|
+
scene: [],
|
|
131
|
+
industry: []
|
|
132
|
+
}), d = {
|
|
133
|
+
name: [
|
|
134
|
+
{ required: !0, message: "应用名称必填", trigger: "blur" },
|
|
135
|
+
{ max: 50, message: "长度不大于50", trigger: "change" },
|
|
136
|
+
{
|
|
137
|
+
trigger: "blur",
|
|
138
|
+
validator: (s, i, u) => {
|
|
139
|
+
/^[\w\-_]+$/.test(i) ? u() : u(new Error("应用名称只能包括英文、数字、中划线和下划线"));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
description: [
|
|
144
|
+
{ max: 200, message: "长度不大于200", trigger: "change" },
|
|
145
|
+
{
|
|
146
|
+
trigger: "blur",
|
|
147
|
+
validator: (s, i, u) => {
|
|
148
|
+
/^[\w\-_\u4e00-\u9fa5]*$/.test(i) ? u() : u(new Error("描述只能包括中文、英文、数字、中划线和下划线"));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
sceneId: [{ required: !0, message: "场景必选", trigger: "change" }],
|
|
153
|
+
industryId: [{ required: !0, message: "行业必选", trigger: "change" }]
|
|
154
|
+
}, g = (s) => t("update:visible", s), k = async () => {
|
|
155
|
+
Promise.all([V("场景"), V("行业")]).then((s) => {
|
|
156
|
+
p.scene = s[0] || [], p.industry = s[1] || [];
|
|
157
|
+
}).catch((s) => {
|
|
158
|
+
E({
|
|
159
|
+
type: "error",
|
|
160
|
+
message: s,
|
|
161
|
+
position: "top-right",
|
|
162
|
+
duration: 5e3
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
}, S = () => {
|
|
166
|
+
C.value = !0;
|
|
167
|
+
}, x = (s) => {
|
|
168
|
+
e.assetsUrl = s, C.value = !1;
|
|
169
|
+
}, w = () => {
|
|
170
|
+
f.value.validate((s) => {
|
|
171
|
+
var i;
|
|
172
|
+
s && (t(
|
|
173
|
+
"confirm",
|
|
174
|
+
(i = a.template) != null && i.id ? {
|
|
175
|
+
id: a.template.id,
|
|
176
|
+
...e
|
|
177
|
+
} : e
|
|
178
|
+
), g(!1));
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
return M(() => {
|
|
182
|
+
k();
|
|
183
|
+
}), {
|
|
184
|
+
isOpen: C,
|
|
185
|
+
editAppInfoRef: f,
|
|
186
|
+
formState: e,
|
|
187
|
+
validRules: d,
|
|
188
|
+
tagsList: p,
|
|
189
|
+
setVisible: g,
|
|
190
|
+
handleOpen: S,
|
|
191
|
+
handleSelectIcon: x,
|
|
192
|
+
confirm: w
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
}, Q = (a, t) => {
|
|
196
|
+
const f = a.__vccOpts || a;
|
|
197
|
+
for (const [e, C] of t)
|
|
198
|
+
f[e] = C;
|
|
199
|
+
return f;
|
|
200
|
+
}, de = { class: "form-item-icon-wrapper" }, me = {
|
|
201
|
+
key: 0,
|
|
202
|
+
class: "dropdown-menu"
|
|
203
|
+
}, ge = { class: "icon-list" };
|
|
204
|
+
function ue(a, t, f, e, C, p) {
|
|
205
|
+
const d = m("tiny-input"), g = m("tiny-form-item"), k = m("tiny-select"), S = m("svg-icon"), x = m("tiny-form"), w = m("tiny-button"), s = m("tiny-dialog-box");
|
|
206
|
+
return _(), D(s, {
|
|
207
|
+
visible: f.visible,
|
|
208
|
+
title: "新建应用",
|
|
209
|
+
width: "400px",
|
|
210
|
+
"append-to-body": "",
|
|
211
|
+
"destroy-on-close": "",
|
|
212
|
+
"onUpdate:visible": e.setVisible
|
|
213
|
+
}, {
|
|
214
|
+
footer: r(() => [
|
|
215
|
+
o(w, {
|
|
216
|
+
type: "primary",
|
|
217
|
+
onClick: e.confirm
|
|
218
|
+
}, {
|
|
219
|
+
default: r(() => [...t[5] || (t[5] = [
|
|
220
|
+
B(" 确定 ", -1)
|
|
221
|
+
])]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["onClick"]),
|
|
224
|
+
o(w, {
|
|
225
|
+
onClick: t[4] || (t[4] = (i) => e.setVisible(!1))
|
|
226
|
+
}, {
|
|
227
|
+
default: r(() => [...t[6] || (t[6] = [
|
|
228
|
+
B("取消", -1)
|
|
229
|
+
])]),
|
|
230
|
+
_: 1
|
|
231
|
+
})
|
|
232
|
+
]),
|
|
233
|
+
default: r(() => [
|
|
234
|
+
o(x, {
|
|
235
|
+
ref: "editAppInfoRef",
|
|
236
|
+
"label-position": "left",
|
|
237
|
+
"label-width": "84px",
|
|
238
|
+
"label-align": "",
|
|
239
|
+
model: e.formState,
|
|
240
|
+
rules: e.validRules,
|
|
241
|
+
"validate-type": "text"
|
|
242
|
+
}, {
|
|
243
|
+
default: r(() => [
|
|
244
|
+
o(g, {
|
|
245
|
+
label: "应用名称",
|
|
246
|
+
prop: "name"
|
|
247
|
+
}, {
|
|
248
|
+
default: r(() => [
|
|
249
|
+
o(d, {
|
|
250
|
+
modelValue: e.formState.name,
|
|
251
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.formState.name = i),
|
|
252
|
+
placeholder: "请输入"
|
|
253
|
+
}, null, 8, ["modelValue"])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}),
|
|
257
|
+
o(g, {
|
|
258
|
+
label: "应用描述",
|
|
259
|
+
prop: "description"
|
|
260
|
+
}, {
|
|
261
|
+
default: r(() => [
|
|
262
|
+
o(d, {
|
|
263
|
+
modelValue: e.formState.description,
|
|
264
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => e.formState.description = i),
|
|
265
|
+
type: "textarea",
|
|
266
|
+
placeholder: "请输入此次发布的修改点"
|
|
267
|
+
}, null, 8, ["modelValue"])
|
|
268
|
+
]),
|
|
269
|
+
_: 1
|
|
270
|
+
}),
|
|
271
|
+
o(g, {
|
|
272
|
+
label: "场景",
|
|
273
|
+
prop: "sceneId"
|
|
274
|
+
}, {
|
|
275
|
+
default: r(() => {
|
|
276
|
+
var i;
|
|
277
|
+
return [
|
|
278
|
+
o(k, {
|
|
279
|
+
modelValue: e.formState.sceneId,
|
|
280
|
+
"onUpdate:modelValue": t[2] || (t[2] = (u) => e.formState.sceneId = u),
|
|
281
|
+
placeholder: "请选择",
|
|
282
|
+
options: e.tagsList.scene,
|
|
283
|
+
disabled: (i = f.template) == null ? void 0 : i.sceneId,
|
|
284
|
+
"value-field": "id",
|
|
285
|
+
"text-field": "name"
|
|
286
|
+
}, null, 8, ["modelValue", "options", "disabled"])
|
|
287
|
+
];
|
|
288
|
+
}),
|
|
289
|
+
_: 1
|
|
290
|
+
}),
|
|
291
|
+
o(g, {
|
|
292
|
+
label: "行业",
|
|
293
|
+
prop: "industryId"
|
|
294
|
+
}, {
|
|
295
|
+
default: r(() => {
|
|
296
|
+
var i;
|
|
297
|
+
return [
|
|
298
|
+
o(k, {
|
|
299
|
+
modelValue: e.formState.industryId,
|
|
300
|
+
"onUpdate:modelValue": t[3] || (t[3] = (u) => e.formState.industryId = u),
|
|
301
|
+
placeholder: "请选择",
|
|
302
|
+
options: e.tagsList.industry,
|
|
303
|
+
disabled: (i = f.template) == null ? void 0 : i.industryId,
|
|
304
|
+
"value-field": "id",
|
|
305
|
+
"text-field": "name"
|
|
306
|
+
}, null, 8, ["modelValue", "options", "disabled"])
|
|
307
|
+
];
|
|
308
|
+
}),
|
|
309
|
+
_: 1
|
|
310
|
+
}),
|
|
311
|
+
o(g, { label: "缩略图" }, {
|
|
312
|
+
default: r(() => [
|
|
313
|
+
c("div", de, [
|
|
314
|
+
o(S, {
|
|
315
|
+
name: e.formState.assetsUrl,
|
|
316
|
+
class: "form-item-icon",
|
|
317
|
+
onClick: e.handleOpen
|
|
318
|
+
}, null, 8, ["name", "onClick"]),
|
|
319
|
+
o(W, { name: "dropdown" }, {
|
|
320
|
+
default: r(() => [
|
|
321
|
+
e.isOpen ? (_(), b("div", me, [
|
|
322
|
+
c("div", ge, [
|
|
323
|
+
(_(), b(G, null, H(15, (i) => o(S, {
|
|
324
|
+
key: i,
|
|
325
|
+
name: "template-cover-" + i,
|
|
326
|
+
class: "icon",
|
|
327
|
+
onClick: (u) => e.handleSelectIcon("template-cover-" + i)
|
|
328
|
+
}, null, 8, ["name", "onClick"])), 64))
|
|
329
|
+
])
|
|
330
|
+
])) : I("", !0)
|
|
331
|
+
]),
|
|
332
|
+
_: 1
|
|
333
|
+
})
|
|
334
|
+
])
|
|
335
|
+
]),
|
|
336
|
+
_: 1
|
|
337
|
+
})
|
|
338
|
+
]),
|
|
339
|
+
_: 1
|
|
340
|
+
}, 8, ["model", "rules"])
|
|
341
|
+
]),
|
|
342
|
+
_: 1
|
|
343
|
+
}, 8, ["visible", "onUpdate:visible"]);
|
|
344
|
+
}
|
|
345
|
+
const ye = /* @__PURE__ */ Q(ce, [["render", ue], ["__scopeId", "data-v-67ebf39c"]]), _e = {
|
|
346
|
+
components: {
|
|
347
|
+
TinyButton: J,
|
|
348
|
+
TinySelect: q,
|
|
349
|
+
TinyPager: ie,
|
|
350
|
+
TinyGrid: ae,
|
|
351
|
+
TinyGridColumn: oe,
|
|
352
|
+
TinyPopover: ne,
|
|
353
|
+
TinySearch: te,
|
|
354
|
+
SearchEmpty: re,
|
|
355
|
+
TinyIconSearch: se(),
|
|
356
|
+
AppDialog: ye
|
|
357
|
+
},
|
|
358
|
+
setup() {
|
|
359
|
+
const a = j([]), t = j(), f = [
|
|
360
|
+
{
|
|
361
|
+
label: "全部应用",
|
|
362
|
+
value: "all"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
label: "我的应用",
|
|
366
|
+
value: "my"
|
|
367
|
+
}
|
|
368
|
+
], e = [
|
|
369
|
+
{
|
|
370
|
+
label: "按创建时间排序",
|
|
371
|
+
value: "created_time"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
label: "按最近更新时间排序",
|
|
375
|
+
value: "last_updated_time"
|
|
376
|
+
}
|
|
377
|
+
], C = [
|
|
378
|
+
{
|
|
379
|
+
id: "default",
|
|
380
|
+
name: "栅格",
|
|
381
|
+
assetsUrl: "workspace-icon-application-center"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
id: "table",
|
|
385
|
+
name: "列表",
|
|
386
|
+
assetsUrl: "small-list"
|
|
387
|
+
}
|
|
388
|
+
], p = R({
|
|
389
|
+
appFilter: "all",
|
|
390
|
+
orderBy: "created_time",
|
|
391
|
+
appSearchKey: "",
|
|
392
|
+
type: "default",
|
|
393
|
+
total: 0,
|
|
394
|
+
pageSize: 10,
|
|
395
|
+
currentPage: 1,
|
|
396
|
+
pageSizes: [10, 20, 30, 40],
|
|
397
|
+
appVisible: !1
|
|
398
|
+
}), d = () => {
|
|
399
|
+
const l = {
|
|
400
|
+
currentPage: p.currentPage,
|
|
401
|
+
pageSize: p.pageSize,
|
|
402
|
+
name: p.appSearchKey,
|
|
403
|
+
createdBy: p.appFilter === "all" ? "" : "1"
|
|
404
|
+
};
|
|
405
|
+
p.orderBy === "last_updated_time" && (l.orderBy = p.orderBy), A(Object.fromEntries(Object.entries(l).filter(([, y]) => !!y))).then((y) => {
|
|
406
|
+
a.value = y.apps || [], p.total = y.total;
|
|
407
|
+
});
|
|
408
|
+
}, g = () => {
|
|
409
|
+
p.appVisible = !0;
|
|
410
|
+
}, k = (l) => {
|
|
411
|
+
t.value = l, p.appVisible = !0;
|
|
412
|
+
}, S = (l) => {
|
|
413
|
+
le.confirm({
|
|
414
|
+
message: "即将删除应用,删除后不可恢复,请谨慎操作。",
|
|
415
|
+
title: "删除应用"
|
|
416
|
+
}).then((y) => {
|
|
417
|
+
y === "confirm" && z(l.id).then(() => {
|
|
418
|
+
d();
|
|
419
|
+
}).catch((n) => {
|
|
420
|
+
E({
|
|
421
|
+
type: "error",
|
|
422
|
+
message: n,
|
|
423
|
+
position: "top-right",
|
|
424
|
+
duration: 5e3
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
}, x = (l) => {
|
|
429
|
+
const y = window.location.href.split("?")[0] || "./";
|
|
430
|
+
window.open(`${y}?type=app&id=${l.id}&tenant=${l.tenantId}`);
|
|
431
|
+
}, w = (l) => {
|
|
432
|
+
p.type = l;
|
|
433
|
+
}, s = (l) => {
|
|
434
|
+
p.pageSize = l, p.currentPage = 1, d();
|
|
435
|
+
}, i = (l) => {
|
|
436
|
+
p.currentPage = l, d();
|
|
437
|
+
}, u = (l) => {
|
|
438
|
+
if (l != null && l.id) {
|
|
439
|
+
const y = l.id;
|
|
440
|
+
delete l.id, U(y, l).then(() => {
|
|
441
|
+
E({
|
|
442
|
+
type: "success",
|
|
443
|
+
message: "应用更新成功",
|
|
444
|
+
position: "top-right",
|
|
445
|
+
duration: 5e3
|
|
446
|
+
}), d();
|
|
447
|
+
}).catch((n) => {
|
|
448
|
+
E({
|
|
449
|
+
type: "error",
|
|
450
|
+
message: n,
|
|
451
|
+
position: "top-right",
|
|
452
|
+
duration: 5e3
|
|
453
|
+
});
|
|
454
|
+
});
|
|
455
|
+
} else
|
|
456
|
+
T(l).then(() => {
|
|
457
|
+
E({
|
|
458
|
+
type: "success",
|
|
459
|
+
message: "应用创建成功",
|
|
460
|
+
position: "top-right",
|
|
461
|
+
duration: 5e3
|
|
462
|
+
}), d();
|
|
463
|
+
}).catch((y) => {
|
|
464
|
+
E({
|
|
465
|
+
type: "error",
|
|
466
|
+
message: y,
|
|
467
|
+
position: "top-right",
|
|
468
|
+
duration: 5e3
|
|
469
|
+
});
|
|
470
|
+
});
|
|
471
|
+
};
|
|
472
|
+
return M(() => {
|
|
473
|
+
d();
|
|
474
|
+
}), {
|
|
475
|
+
state: p,
|
|
476
|
+
appList: a,
|
|
477
|
+
currentTemplate: t,
|
|
478
|
+
appFilterOptions: f,
|
|
479
|
+
appOrderByOptions: e,
|
|
480
|
+
arrangeOptions: C,
|
|
481
|
+
creatApp: g,
|
|
482
|
+
getApplicationList: d,
|
|
483
|
+
typeClick: w,
|
|
484
|
+
handleEdit: k,
|
|
485
|
+
handleDelete: S,
|
|
486
|
+
openApplication: x,
|
|
487
|
+
confirmApp: u,
|
|
488
|
+
pageSizeChange: s,
|
|
489
|
+
currentChange: i
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
}, fe = { class: "app-center" }, ve = { class: "app-center-operation" }, he = { class: "app-center-filter" }, be = { class: "type-toolbar" }, Ce = ["onClick"], ke = { class: "app-center-list" }, Se = { class: "list-wrap" }, we = {
|
|
493
|
+
key: 0,
|
|
494
|
+
class: "list"
|
|
495
|
+
}, Ve = { class: "app-name" }, xe = { class: "app-name-text" }, Ie = { class: "app-tag" }, Be = {
|
|
496
|
+
key: 0,
|
|
497
|
+
class: "tag"
|
|
498
|
+
}, Ae = {
|
|
499
|
+
key: 1,
|
|
500
|
+
class: "tag"
|
|
501
|
+
}, Te = {
|
|
502
|
+
key: 2,
|
|
503
|
+
class: "tag"
|
|
504
|
+
}, Ue = { class: "app-desc" }, ze = { class: "app-view" }, Le = { class: "app-operation" }, Oe = { class: "options" }, Ee = ["onClick"], Fe = ["onClick"], Pe = { class: "app-name" };
|
|
505
|
+
function je(a, t, f, e, C, p) {
|
|
506
|
+
const d = m("svg-icon"), g = m("tiny-button"), k = m("tiny-select"), S = m("tiny-icon-search"), x = m("tiny-search"), w = m("tiny-popover"), s = m("tiny-grid-column"), i = m("tiny-grid"), u = m("search-empty"), l = m("tiny-pager"), y = m("app-dialog");
|
|
507
|
+
return _(), b("div", fe, [
|
|
508
|
+
t[10] || (t[10] = c("div", { class: "app-center-title" }, "应用中心", -1)),
|
|
509
|
+
c("div", ve, [
|
|
510
|
+
o(g, {
|
|
511
|
+
class: "add-app",
|
|
512
|
+
onClick: t[0] || (t[0] = (n) => e.creatApp())
|
|
513
|
+
}, {
|
|
514
|
+
default: r(() => [
|
|
515
|
+
o(d, { name: "add" }),
|
|
516
|
+
t[5] || (t[5] = B("创建应用 ", -1))
|
|
517
|
+
]),
|
|
518
|
+
_: 1
|
|
519
|
+
}),
|
|
520
|
+
c("div", he, [
|
|
521
|
+
o(k, {
|
|
522
|
+
modelValue: e.state.appFilter,
|
|
523
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => e.state.appFilter = n),
|
|
524
|
+
options: e.appFilterOptions,
|
|
525
|
+
onChange: e.getApplicationList
|
|
526
|
+
}, null, 8, ["modelValue", "options", "onChange"]),
|
|
527
|
+
o(k, {
|
|
528
|
+
modelValue: e.state.orderBy,
|
|
529
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => e.state.orderBy = n),
|
|
530
|
+
options: e.appOrderByOptions,
|
|
531
|
+
onChange: e.getApplicationList
|
|
532
|
+
}, null, 8, ["modelValue", "options", "onChange"]),
|
|
533
|
+
o(x, {
|
|
534
|
+
class: "app-center-search",
|
|
535
|
+
modelValue: e.state.appSearchKey,
|
|
536
|
+
"onUpdate:modelValue": t[3] || (t[3] = (n) => e.state.appSearchKey = n),
|
|
537
|
+
clearable: "",
|
|
538
|
+
placeholder: "输入关键字搜索、过滤",
|
|
539
|
+
onSearch: e.getApplicationList,
|
|
540
|
+
"is-enter-search": ""
|
|
541
|
+
}, {
|
|
542
|
+
prefix: r(() => [
|
|
543
|
+
o(S)
|
|
544
|
+
]),
|
|
545
|
+
_: 1
|
|
546
|
+
}, 8, ["modelValue", "onSearch"]),
|
|
547
|
+
c("div", be, [
|
|
548
|
+
(_(!0), b(G, null, H(e.arrangeOptions, (n) => (_(), b("span", {
|
|
549
|
+
key: n.id,
|
|
550
|
+
class: X(["icon-wrap", { active: e.state.type === n.id }]),
|
|
551
|
+
onClick: (L) => e.typeClick(n.id)
|
|
552
|
+
}, [
|
|
553
|
+
o(d, {
|
|
554
|
+
name: n.assetsUrl
|
|
555
|
+
}, null, 8, ["name"])
|
|
556
|
+
], 10, Ce))), 128))
|
|
557
|
+
])
|
|
558
|
+
])
|
|
559
|
+
]),
|
|
560
|
+
c("div", ke, [
|
|
561
|
+
c("div", Se, [
|
|
562
|
+
e.state.type === "default" ? (_(), b("div", we, [
|
|
563
|
+
(_(!0), b(G, null, H(e.appList, (n) => {
|
|
564
|
+
var L, N;
|
|
565
|
+
return _(), b("div", {
|
|
566
|
+
key: n.id,
|
|
567
|
+
class: "item"
|
|
568
|
+
}, [
|
|
569
|
+
c("div", Ve, [
|
|
570
|
+
o(d, {
|
|
571
|
+
name: n.assetsUrl || "template-cover-1",
|
|
572
|
+
class: "app-img"
|
|
573
|
+
}, null, 8, ["name"]),
|
|
574
|
+
c("span", xe, O(n.name), 1)
|
|
575
|
+
]),
|
|
576
|
+
c("div", Ie, [
|
|
577
|
+
n.sceneId ? (_(), b("div", Be, O((L = n.scene[0]) == null ? void 0 : L.name), 1)) : I("", !0),
|
|
578
|
+
n.industryId ? (_(), b("div", Ae, O((N = n.industry[0]) == null ? void 0 : N.name), 1)) : I("", !0),
|
|
579
|
+
n.framework ? (_(), b("div", Te, O(n.framework), 1)) : I("", !0)
|
|
580
|
+
]),
|
|
581
|
+
c("div", Ue, O(n.description), 1),
|
|
582
|
+
c("div", ze, [
|
|
583
|
+
o(g, {
|
|
584
|
+
round: "",
|
|
585
|
+
onClick: (K) => e.openApplication(n)
|
|
586
|
+
}, {
|
|
587
|
+
default: r(() => [...t[6] || (t[6] = [
|
|
588
|
+
B("开发应用", -1)
|
|
589
|
+
])]),
|
|
590
|
+
_: 1
|
|
591
|
+
}, 8, ["onClick"])
|
|
592
|
+
]),
|
|
593
|
+
o(w, {
|
|
594
|
+
"visible-arrow": !1,
|
|
595
|
+
trigger: "hover",
|
|
596
|
+
placement: "bottom-start",
|
|
597
|
+
"popper-class": "operation-popover",
|
|
598
|
+
ref_for: !0,
|
|
599
|
+
ref: "popoverRef"
|
|
600
|
+
}, {
|
|
601
|
+
reference: r(() => [
|
|
602
|
+
c("div", Le, [
|
|
603
|
+
o(d, { name: "ellipsis" })
|
|
604
|
+
])
|
|
605
|
+
]),
|
|
606
|
+
default: r(() => [
|
|
607
|
+
c("div", Oe, [
|
|
608
|
+
c("div", {
|
|
609
|
+
class: "option",
|
|
610
|
+
onClick: (K) => e.handleEdit(n)
|
|
611
|
+
}, "编辑应用", 8, Ee),
|
|
612
|
+
c("div", {
|
|
613
|
+
class: "option",
|
|
614
|
+
onClick: (K) => e.handleDelete(n)
|
|
615
|
+
}, "删除应用", 8, Fe)
|
|
616
|
+
])
|
|
617
|
+
]),
|
|
618
|
+
_: 2
|
|
619
|
+
}, 1536)
|
|
620
|
+
]);
|
|
621
|
+
}), 128))
|
|
622
|
+
])) : I("", !0),
|
|
623
|
+
e.state.type === "table" && e.appList.length ? (_(), D(i, {
|
|
624
|
+
key: 1,
|
|
625
|
+
ref: "gridRef",
|
|
626
|
+
class: "table",
|
|
627
|
+
data: e.appList
|
|
628
|
+
}, {
|
|
629
|
+
default: r(() => [
|
|
630
|
+
o(s, {
|
|
631
|
+
field: "name",
|
|
632
|
+
title: "应用名称",
|
|
633
|
+
"show-overflow": ""
|
|
634
|
+
}, {
|
|
635
|
+
default: r((n) => [
|
|
636
|
+
c("div", Pe, [
|
|
637
|
+
o(d, {
|
|
638
|
+
name: n.row.assetsUrl || "template-cover-1",
|
|
639
|
+
class: "app-img"
|
|
640
|
+
}, null, 8, ["name"]),
|
|
641
|
+
c("span", null, O(n.row.name), 1)
|
|
642
|
+
])
|
|
643
|
+
]),
|
|
644
|
+
_: 1
|
|
645
|
+
}),
|
|
646
|
+
o(s, {
|
|
647
|
+
field: "created_at",
|
|
648
|
+
title: "创建时间",
|
|
649
|
+
"show-overflow": ""
|
|
650
|
+
}),
|
|
651
|
+
o(s, {
|
|
652
|
+
field: "createdBy",
|
|
653
|
+
title: "创建人",
|
|
654
|
+
"show-overflow": ""
|
|
655
|
+
}),
|
|
656
|
+
o(s, {
|
|
657
|
+
field: "description",
|
|
658
|
+
title: "应用描述",
|
|
659
|
+
"show-overflow": ""
|
|
660
|
+
}),
|
|
661
|
+
o(s, {
|
|
662
|
+
width: "180",
|
|
663
|
+
field: "operation",
|
|
664
|
+
title: "操作"
|
|
665
|
+
}, {
|
|
666
|
+
default: r((n) => [
|
|
667
|
+
o(g, {
|
|
668
|
+
type: "text",
|
|
669
|
+
onClick: (L) => e.handleEdit(n.row)
|
|
670
|
+
}, {
|
|
671
|
+
default: r(() => [...t[7] || (t[7] = [
|
|
672
|
+
B(" 编辑 ", -1)
|
|
673
|
+
])]),
|
|
674
|
+
_: 1
|
|
675
|
+
}, 8, ["onClick"]),
|
|
676
|
+
o(g, {
|
|
677
|
+
type: "text",
|
|
678
|
+
onClick: (L) => e.handleDelete(n.row)
|
|
679
|
+
}, {
|
|
680
|
+
default: r(() => [...t[8] || (t[8] = [
|
|
681
|
+
B(" 删除 ", -1)
|
|
682
|
+
])]),
|
|
683
|
+
_: 1
|
|
684
|
+
}, 8, ["onClick"]),
|
|
685
|
+
o(g, {
|
|
686
|
+
type: "text",
|
|
687
|
+
onClick: (L) => e.openApplication(n.row)
|
|
688
|
+
}, {
|
|
689
|
+
default: r(() => [...t[9] || (t[9] = [
|
|
690
|
+
B(" 开发应用 ", -1)
|
|
691
|
+
])]),
|
|
692
|
+
_: 1
|
|
693
|
+
}, 8, ["onClick"])
|
|
694
|
+
]),
|
|
695
|
+
_: 1
|
|
696
|
+
})
|
|
697
|
+
]),
|
|
698
|
+
_: 1
|
|
699
|
+
}, 8, ["data"])) : I("", !0),
|
|
700
|
+
o(u, {
|
|
701
|
+
isShow: !e.appList.length
|
|
702
|
+
}, null, 8, ["isShow"])
|
|
703
|
+
]),
|
|
704
|
+
e.state.total > e.state.pageSize ? (_(), D(l, {
|
|
705
|
+
key: 0,
|
|
706
|
+
mode: "number",
|
|
707
|
+
"current-page": e.state.currentPage,
|
|
708
|
+
"page-size": e.state.pageSize,
|
|
709
|
+
"page-sizes": e.state.pageSizes,
|
|
710
|
+
total: e.state.total,
|
|
711
|
+
onSizeChange: e.pageSizeChange,
|
|
712
|
+
onCurrentChange: e.currentChange
|
|
713
|
+
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "onSizeChange", "onCurrentChange"])) : I("", !0)
|
|
714
|
+
]),
|
|
715
|
+
o(y, {
|
|
716
|
+
visible: e.state.appVisible,
|
|
717
|
+
"onUpdate:visible": t[4] || (t[4] = (n) => e.state.appVisible = n),
|
|
718
|
+
template: e.currentTemplate,
|
|
719
|
+
onConfirm: e.confirmApp
|
|
720
|
+
}, null, 8, ["visible", "template", "onConfirm"])
|
|
721
|
+
]);
|
|
722
|
+
}
|
|
723
|
+
const Re = /* @__PURE__ */ Q(_e, [["render", je], ["__scopeId", "data-v-4b70bdeb"]]), qe = {
|
|
724
|
+
...pe,
|
|
725
|
+
entry: Re
|
|
726
|
+
};
|
|
727
|
+
export {
|
|
728
|
+
qe as default
|
|
729
|
+
};
|
|
730
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../meta.js","../src/AppDialog.vue","../src/Main.vue","../index.ts"],"sourcesContent":["export default {\n id: 'engine.workspace.application-center',\n title: '应用中心',\n type: 'workspace',\n icon: 'workspace-icon-application-center'\n}\n","<template>\n <tiny-dialog-box\n :visible=\"visible\"\n title=\"新建应用\"\n width=\"400px\"\n append-to-body\n destroy-on-close\n @update:visible=\"setVisible\"\n >\n <tiny-form\n ref=\"editAppInfoRef\"\n label-position=\"left\"\n label-width=\"84px\"\n label-align\n :model=\"formState\"\n :rules=\"validRules\"\n validate-type=\"text\"\n >\n <tiny-form-item label=\"应用名称\" prop=\"name\">\n <tiny-input v-model=\"formState.name\" placeholder=\"请输入\"></tiny-input>\n </tiny-form-item>\n <tiny-form-item label=\"应用描述\" prop=\"description\">\n <tiny-input v-model=\"formState.description\" type=\"textarea\" placeholder=\"请输入此次发布的修改点\"></tiny-input>\n </tiny-form-item>\n <tiny-form-item label=\"场景\" prop=\"sceneId\">\n <tiny-select\n v-model=\"formState.sceneId\"\n placeholder=\"请选择\"\n :options=\"tagsList.scene\"\n :disabled=\"template?.sceneId\"\n value-field=\"id\"\n text-field=\"name\"\n ></tiny-select>\n </tiny-form-item>\n <tiny-form-item label=\"行业\" prop=\"industryId\">\n <tiny-select\n v-model=\"formState.industryId\"\n placeholder=\"请选择\"\n :options=\"tagsList.industry\"\n :disabled=\"template?.industryId\"\n value-field=\"id\"\n text-field=\"name\"\n ></tiny-select>\n </tiny-form-item>\n <tiny-form-item label=\"缩略图\">\n <div class=\"form-item-icon-wrapper\">\n <svg-icon :name=\"formState.assetsUrl\" class=\"form-item-icon\" @click=\"handleOpen\"></svg-icon>\n <transition name=\"dropdown\">\n <div v-if=\"isOpen\" class=\"dropdown-menu\">\n <!-- 菜单项 -->\n <div class=\"icon-list\">\n <template v-for=\"iconIndex in 15\" :key=\"iconIndex\">\n <svg-icon\n :name=\"'template-cover-' + iconIndex\"\n class=\"icon\"\n @click=\"handleSelectIcon('template-cover-' + iconIndex)\"\n ></svg-icon>\n </template>\n </div>\n </div>\n </transition>\n </div>\n </tiny-form-item>\n </tiny-form>\n <template #footer>\n <tiny-button type=\"primary\" @click=\"confirm\"> 确定 </tiny-button>\n <tiny-button @click=\"setVisible(false)\">取消</tiny-button>\n </template>\n </tiny-dialog-box>\n</template>\n\n<script lang=\"ts\">\nimport { ref, reactive, onMounted } from 'vue'\nimport {\n Input as TinyInput,\n Button as TinyButton,\n DialogBox as TinyDialogBox,\n Form as TinyForm,\n FormItem as TinyFormItem,\n Select as TinySelect,\n Notify\n} from '@opentiny/vue'\nimport { fetchBusinessCategoryByGroup } from './js/http'\n\nexport default {\n components: {\n TinyInput,\n TinyButton,\n TinyDialogBox,\n TinyForm,\n TinyFormItem,\n TinySelect\n },\n props: {\n visible: {\n type: Boolean,\n default: false\n },\n template: {\n type: Object,\n default: () => ({})\n },\n openByTemplate: {\n type: Boolean,\n default: false\n }\n },\n emits: ['confirm'],\n setup(props, { emit }) {\n const editAppInfoRef = ref()\n\n const formState = reactive({\n name: props.template.name || '',\n description: props.template.description || '',\n sceneId: props.template.sceneId || null,\n industryId: props.template.industryId || null,\n assetsUrl: props.template.assetsUrl || 'template-cover-1'\n })\n\n const isOpen = ref(false)\n\n const tagsList = reactive({\n scene: [],\n industry: []\n })\n\n const validRules = {\n name: [\n { required: true, message: '应用名称必填', trigger: 'blur' },\n { max: 50, message: '长度不大于50', trigger: 'change' },\n {\n trigger: 'blur',\n validator: (rule: any, value: string, callback: any) => {\n if (!/^[\\w\\-_]+$/.test(value)) {\n callback(new Error('应用名称只能包括英文、数字、中划线和下划线'))\n } else {\n callback()\n }\n }\n }\n ],\n description: [\n { max: 200, message: '长度不大于200', trigger: 'change' },\n {\n trigger: 'blur',\n validator: (rule: any, value: string, callback: any) => {\n if (!/^[\\w\\-_\\u4e00-\\u9fa5]*$/.test(value)) {\n callback(new Error('描述只能包括中文、英文、数字、中划线和下划线'))\n } else {\n callback()\n }\n }\n }\n ],\n sceneId: [{ required: true, message: '场景必选', trigger: 'change' }],\n industryId: [{ required: true, message: '行业必选', trigger: 'change' }]\n }\n\n const setVisible = (visible: boolean) => emit('update:visible', visible)\n\n const getTagsList = async () => {\n Promise.all([fetchBusinessCategoryByGroup('场景'), fetchBusinessCategoryByGroup('行业')])\n .then((res) => {\n tagsList.scene = res[0] || []\n tagsList.industry = res[1] || []\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n\n const handleOpen = () => {\n isOpen.value = true\n }\n\n const handleSelectIcon = (icon: string) => {\n formState.assetsUrl = icon\n isOpen.value = false\n }\n\n const confirm = () => {\n editAppInfoRef.value.validate((valid: boolean) => {\n if (valid) {\n emit(\n 'confirm',\n props.template?.id\n ? {\n id: props.template.id,\n ...formState\n }\n : formState\n )\n\n setVisible(false)\n }\n })\n }\n\n onMounted(() => {\n getTagsList()\n })\n\n return {\n isOpen,\n editAppInfoRef,\n formState,\n validRules,\n tagsList,\n setVisible,\n handleOpen,\n handleSelectIcon,\n confirm\n }\n }\n}\n</script>\n\n<style lang=\"less\" scoped>\n.form-item-icon-wrapper {\n position: relative;\n .form-item-icon {\n font-size: 40px;\n cursor: pointer;\n }\n .dropdown-menu {\n position: absolute;\n bottom: 100%;\n left: 0;\n padding: 16px;\n margin-bottom: 5px;\n width: 216px;\n border-radius: 4px;\n z-index: 1000;\n overflow: hidden;\n background: var(--te-template-common-bg-color);\n box-shadow: 0 4px 16px 0 var(--te-base-box-shadow-rgba-3);\n\n .icon-list {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin: 4px 0;\n .icon {\n font-size: 32px;\n cursor: pointer;\n }\n }\n }\n}\n</style>\n","<template>\n <div class=\"app-center\">\n <div class=\"app-center-title\">应用中心</div>\n <div class=\"app-center-operation\">\n <tiny-button class=\"add-app\" @click=\"creatApp()\"> <svg-icon name=\"add\"></svg-icon>创建应用 </tiny-button>\n <div class=\"app-center-filter\">\n <tiny-select v-model=\"state.appFilter\" :options=\"appFilterOptions\" @change=\"getApplicationList\"></tiny-select>\n <tiny-select v-model=\"state.orderBy\" :options=\"appOrderByOptions\" @change=\"getApplicationList\"></tiny-select>\n <tiny-search\n class=\"app-center-search\"\n v-model=\"state.appSearchKey\"\n clearable\n placeholder=\"输入关键字搜索、过滤\"\n @search=\"getApplicationList\"\n is-enter-search\n >\n <template #prefix> <tiny-icon-search /> </template>\n </tiny-search>\n <div class=\"type-toolbar\">\n <span\n v-for=\"item in arrangeOptions\"\n :key=\"item.id\"\n :class=\"['icon-wrap', { active: state.type === item.id }]\"\n @click=\"typeClick(item.id)\"\n >\n <svg-icon :name=\"item.assetsUrl\"></svg-icon>\n </span>\n </div>\n </div>\n </div>\n <div class=\"app-center-list\">\n <div class=\"list-wrap\">\n <div class=\"list\" v-if=\"state.type === 'default'\">\n <template v-for=\"item in appList\" :key=\"item.id\">\n <div class=\"item\">\n <div class=\"app-name\">\n <svg-icon :name=\"item.assetsUrl || 'template-cover-1'\" class=\"app-img\"></svg-icon>\n <span class=\"app-name-text\">{{ item.name }}</span>\n </div>\n <div class=\"app-tag\">\n <div v-if=\"item.sceneId\" class=\"tag\">\n {{ item.scene[0]?.name }}\n </div>\n <div v-if=\"item.industryId\" class=\"tag\">\n {{ item.industry[0]?.name }}\n </div>\n <div v-if=\"item.framework\" class=\"tag\">{{ item.framework }}</div>\n </div>\n <div class=\"app-desc\">{{ item.description }}</div>\n <div class=\"app-view\">\n <tiny-button round @click=\"openApplication(item)\">开发应用</tiny-button>\n </div>\n <tiny-popover\n :visible-arrow=\"false\"\n trigger=\"hover\"\n placement=\"bottom-start\"\n popper-class=\"operation-popover\"\n ref=\"popoverRef\"\n >\n <template #reference>\n <div class=\"app-operation\">\n <svg-icon name=\"ellipsis\"></svg-icon>\n </div>\n </template>\n <div class=\"options\">\n <div class=\"option\" @click=\"handleEdit(item)\">编辑应用</div>\n <div class=\"option\" @click=\"handleDelete(item)\">删除应用</div>\n </div>\n </tiny-popover>\n </div>\n </template>\n </div>\n <tiny-grid ref=\"gridRef\" class=\"table\" v-if=\"state.type === 'table' && appList.length\" :data=\"appList\">\n <tiny-grid-column field=\"name\" title=\"应用名称\" show-overflow>\n <template #default=\"data\">\n <div class=\"app-name\">\n <svg-icon :name=\"data.row.assetsUrl || 'template-cover-1'\" class=\"app-img\"></svg-icon>\n <span>{{ data.row.name }}</span>\n </div>\n </template>\n </tiny-grid-column>\n <tiny-grid-column field=\"created_at\" title=\"创建时间\" show-overflow></tiny-grid-column>\n <tiny-grid-column field=\"createdBy\" title=\"创建人\" show-overflow></tiny-grid-column>\n <tiny-grid-column field=\"description\" title=\"应用描述\" show-overflow></tiny-grid-column>\n <tiny-grid-column width=\"180\" field=\"operation\" title=\"操作\">\n <template #default=\"data\">\n <tiny-button type=\"text\" @click=\"handleEdit(data.row)\"> 编辑 </tiny-button>\n <tiny-button type=\"text\" @click=\"handleDelete(data.row)\"> 删除 </tiny-button>\n <tiny-button type=\"text\" @click=\"openApplication(data.row)\"> 开发应用 </tiny-button>\n </template>\n </tiny-grid-column>\n </tiny-grid>\n <search-empty :isShow=\"!appList.length\" />\n </div>\n <tiny-pager\n v-if=\"state.total > state.pageSize\"\n mode=\"number\"\n :current-page=\"state.currentPage\"\n :page-size=\"state.pageSize\"\n :page-sizes=\"state.pageSizes\"\n :total=\"state.total\"\n @size-change=\"pageSizeChange\"\n @current-change=\"currentChange\"\n ></tiny-pager>\n </div>\n <app-dialog v-model:visible=\"state.appVisible\" :template=\"currentTemplate\" @confirm=\"confirmApp\"></app-dialog>\n </div>\n</template>\n\n<script>\nimport { reactive, ref, onMounted } from 'vue'\nimport { Button, Select, Pager, Grid, GridColumn, Popover, Search, Modal, Notify } from '@opentiny/vue'\nimport { iconSearch } from '@opentiny/vue-icon'\nimport { SearchEmpty } from '@opentiny/tiny-engine-common'\nimport AppDialog from './AppDialog.vue'\nimport { fetchApplicationList, createApplication, updateApplication, deleteApplication } from './js/http'\n\nexport default {\n components: {\n TinyButton: Button,\n TinySelect: Select,\n TinyPager: Pager,\n TinyGrid: Grid,\n TinyGridColumn: GridColumn,\n TinyPopover: Popover,\n TinySearch: Search,\n SearchEmpty,\n TinyIconSearch: iconSearch(),\n AppDialog\n },\n\n setup() {\n const appList = ref([])\n\n const currentTemplate = ref()\n\n const appFilterOptions = [\n {\n label: '全部应用',\n value: 'all'\n },\n {\n label: '我的应用',\n value: 'my'\n }\n ]\n\n const appOrderByOptions = [\n {\n label: '按创建时间排序',\n value: 'created_time'\n },\n {\n label: '按最近更新时间排序',\n value: 'last_updated_time'\n }\n ]\n\n const arrangeOptions = [\n {\n id: 'default',\n name: '栅格',\n assetsUrl: 'workspace-icon-application-center'\n },\n {\n id: 'table',\n name: '列表',\n assetsUrl: 'small-list'\n }\n ]\n\n const state = reactive({\n appFilter: 'all',\n orderBy: 'created_time',\n appSearchKey: '',\n type: 'default',\n total: 0,\n pageSize: 10,\n currentPage: 1,\n pageSizes: [10, 20, 30, 40],\n appVisible: false\n })\n\n const getApplicationList = () => {\n const params = {\n currentPage: state.currentPage,\n pageSize: state.pageSize,\n name: state.appSearchKey,\n createdBy: state.appFilter === 'all' ? '' : '1'\n }\n if (state.orderBy === 'last_updated_time') {\n params.orderBy = state.orderBy\n }\n fetchApplicationList(Object.fromEntries(Object.entries(params).filter(([, value]) => !!value))).then((res) => {\n appList.value = res.apps || []\n state.total = res.total\n })\n }\n\n const creatApp = () => {\n state.appVisible = true\n }\n\n const handleEdit = (template) => {\n currentTemplate.value = template\n state.appVisible = true\n }\n\n const handleDelete = (template) => {\n Modal.confirm({\n message: '即将删除应用,删除后不可恢复,请谨慎操作。',\n title: '删除应用'\n }).then((res) => {\n if (res === 'confirm') {\n deleteApplication(template.id)\n .then(() => {\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n })\n }\n\n const openApplication = (template) => {\n const href = window.location.href.split('?')[0] || './'\n window.open(`${href}?type=app&id=${template.id}&tenant=${template.tenantId}`)\n }\n\n const typeClick = (type) => {\n state.type = type\n }\n\n const pageSizeChange = (val) => {\n state.pageSize = val\n state.currentPage = 1\n getApplicationList()\n }\n\n const currentChange = (val) => {\n state.currentPage = val\n getApplicationList()\n }\n\n const confirmApp = (formData) => {\n if (formData?.id) {\n const updateId = formData.id\n delete formData.id\n updateApplication(updateId, formData)\n .then(() => {\n Notify({\n type: 'success',\n message: '应用更新成功',\n position: 'top-right',\n duration: 5000\n })\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n } else {\n createApplication(formData)\n .then(() => {\n Notify({\n type: 'success',\n message: '应用创建成功',\n position: 'top-right',\n duration: 5000\n })\n getApplicationList()\n })\n .catch((error) => {\n Notify({\n type: 'error',\n message: error,\n position: 'top-right',\n duration: 5000\n })\n })\n }\n }\n\n onMounted(() => {\n getApplicationList()\n })\n\n return {\n state,\n appList,\n currentTemplate,\n appFilterOptions,\n appOrderByOptions,\n arrangeOptions,\n creatApp,\n getApplicationList,\n typeClick,\n handleEdit,\n handleDelete,\n openApplication,\n confirmApp,\n pageSizeChange,\n currentChange\n }\n }\n}\n</script>\n\n<style lang=\"less\" scoped>\n.app-center {\n padding: 24px;\n background: var(--te-template-common-bg-color);\n height: -webkit-fill-available;\n .app-center-title {\n font-size: 20px;\n font-weight: 600;\n }\n .app-center-operation {\n margin: 24px 0 20px;\n display: flex;\n justify-content: space-between;\n }\n .app-center-filter {\n display: flex;\n align-items: center;\n gap: 20px;\n }\n .app-center-search {\n min-width: 300px;\n }\n .type-toolbar {\n display: flex;\n border-radius: 4px;\n background-color: var(--te-template-app-center-btn-bg-color);\n .icon-wrap {\n width: 24px;\n height: 24px;\n color: var(--te-template-app-center-btn-icon-color);\n font-size: 16px;\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n transition: 0.3s;\n &.active {\n border: 1px solid var(--te-template-app-center-btn-border-color-active);\n color: var(--te-template-app-center-btn-color-active);\n border-radius: 4px;\n background-color: var(--te-template-app-center-btn-bg-color-active);\n }\n }\n }\n .app-center-list {\n height: calc(100vh - 200px);\n }\n}\n.list {\n display: flex;\n gap: 24px;\n flex-wrap: wrap;\n .item {\n width: 252px;\n padding: 24px;\n border-radius: 8px;\n background: var(--te-template-center-common-item-bg-color);\n position: relative;\n .app-name {\n display: flex;\n gap: 8px;\n align-items: center;\n .app-img {\n width: 40px;\n height: 40px;\n }\n .app-name-text {\n font-size: 18px;\n font-weight: 600;\n }\n }\n .app-tag {\n display: flex;\n gap: 4px;\n height: 20px;\n margin-top: 12px;\n .tag {\n padding: 2px 4px;\n border-radius: 2px;\n background: var(--te-template-center-common-item-tag-bg-color);\n }\n }\n .app-desc {\n margin-top: 12px;\n color: var(--te-template-center-common-item-desc-text-color);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .app-view {\n position: absolute;\n bottom: 24px;\n right: 24px;\n }\n .app-operation {\n display: none;\n }\n &:hover {\n .app-operation {\n display: block;\n position: absolute;\n width: 20px;\n height: 20px;\n border-radius: 4px;\n background: var(--te-template-center-common-item-operation-bg-color);\n display: inline-flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n top: 16px;\n right: 16px;\n }\n }\n }\n}\n.table {\n .app-name {\n display: flex;\n gap: 8px;\n align-items: center;\n .app-img {\n width: 24px;\n height: 24px;\n }\n }\n\n .tiny-button.tiny-button--text {\n padding-left: 0;\n }\n}\n\n.list-wrap {\n margin-bottom: 12px;\n max-height: calc(100% - 80px);\n overflow: auto;\n .empty-wrap {\n width: 100%;\n }\n}\n.options {\n .option {\n padding: 4px 16px;\n cursor: pointer;\n &:hover {\n background: var(--te-template-common-bg-color-hover);\n }\n }\n}\n</style>\n<style lang=\"less\">\n.tiny-pager__selector.tiny-popover.tiny-popper[x-placement],\n.operation-popover.tiny-popover.tiny-popper[x-placement] {\n padding: 8px 0;\n}\n</style>\n","/**\n * Copyright (c) 2023 - present TinyEngine Authors.\n * Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.\n *\n * Use of this source code is governed by an MIT-style license.\n *\n * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,\n * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR\n * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.\n *\n */\n\nimport entry from './src/Main.vue'\nimport metaData from './meta'\nimport './src/styles/vars.less'\n\nexport default {\n ...metaData,\n entry\n}\n"],"names":["metaData","_sfc_main$1","TinyInput","TinyButton","TinyDialogBox","TinyForm","TinyFormItem","TinySelect","props","emit","editAppInfoRef","ref","formState","reactive","isOpen","tagsList","validRules","rule","value","callback","setVisible","visible","getTagsList","fetchBusinessCategoryByGroup","res","error","Notify","handleOpen","handleSelectIcon","icon","confirm","valid","_a","onMounted","_hoisted_1","_hoisted_3","_createBlock","_component_tiny_dialog_box","$props","$setup","_withCtx","_createVNode","_component_tiny_button","_cache","_createTextVNode","_component_tiny_form","_component_tiny_form_item","_component_tiny_input","$event","_component_tiny_select","_createElementVNode","_component_svg_icon","_Transition","_openBlock","_createElementBlock","_hoisted_2","_Fragment","_renderList","iconIndex","_sfc_main","Button","Select","Pager","Grid","GridColumn","Popover","Search","SearchEmpty","iconSearch","AppDialog","appList","currentTemplate","appFilterOptions","appOrderByOptions","arrangeOptions","state","getApplicationList","params","fetchApplicationList","creatApp","handleEdit","template","handleDelete","Modal","deleteApplication","openApplication","href","typeClick","type","pageSizeChange","val","currentChange","confirmApp","formData","updateId","updateApplication","createApplication","_hoisted_4","_hoisted_6","_hoisted_7","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_21","_component_tiny_search","_component_tiny_icon_search","item","_hoisted_8","_toDisplayString","_hoisted_12","_hoisted_13","_b","_hoisted_14","_component_tiny_popover","_hoisted_19","_hoisted_20","_component_tiny_grid","_component_tiny_grid_column","data","_component_search_empty","_component_tiny_pager","_component_app_dialog","index","entry"],"mappings":";;;;;;AAAA,MAAAA,KAAe;AAAA,EACb,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IC+EAC,KAAe;AAAA,EACb,YAAY;AAAA,IAAA,WACVC;AAAAA,IAAA,YACAC;AAAAA,IAAA,eACAC;AAAAA,IAAA,UACAC;AAAAA,IAAA,cACAC;AAAAA,IAAA,YACAC;AAAAA,EAAA;AAAA,EAEF,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAEX,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,OAAO,CAAA;AAAA,IAAC;AAAA,IAEnB,gBAAgB;AAAA,MACd,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,OAAO,CAAC,SAAS;AAAA,EACjB,MAAMC,GAAO,EAAE,MAAAC,KAAQ;AACrB,UAAMC,IAAiBC,EAAA,GAEjBC,IAAYC,EAAS;AAAA,MACzB,MAAML,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UAAUT,EAAA;AAAA,MAAkB,WAASA,EAAA;AAAA;;;sFCzFzFuF,KAAe;AAAA,EACb,GAAG9H;AAAA,EACH,OAAA+H;AACF;"}
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.form-item-icon-wrapper[data-v-67ebf39c]{position:relative}.form-item-icon-wrapper .form-item-icon[data-v-67ebf39c]{font-size:40px;cursor:pointer}.form-item-icon-wrapper .dropdown-menu[data-v-67ebf39c]{position:absolute;bottom:100%;left:0;padding:16px;margin-bottom:5px;width:216px;border-radius:4px;z-index:1000;overflow:hidden;background:var(--te-template-common-bg-color);box-shadow:0 4px 16px 0 var(--te-base-box-shadow-rgba-3)}.form-item-icon-wrapper .dropdown-menu .icon-list[data-v-67ebf39c]{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0}.form-item-icon-wrapper .dropdown-menu .icon-list .icon[data-v-67ebf39c]{font-size:32px;cursor:pointer}.app-center[data-v-4b70bdeb]{padding:24px;background:var(--te-template-common-bg-color);height:-webkit-fill-available}.app-center .app-center-title[data-v-4b70bdeb]{font-size:20px;font-weight:600}.app-center .app-center-operation[data-v-4b70bdeb]{margin:24px 0 20px;display:flex;justify-content:space-between}.app-center .app-center-filter[data-v-4b70bdeb]{display:flex;align-items:center;gap:20px}.app-center .app-center-search[data-v-4b70bdeb]{min-width:300px}.app-center .type-toolbar[data-v-4b70bdeb]{display:flex;border-radius:4px;background-color:var(--te-template-app-center-btn-bg-color)}.app-center .type-toolbar .icon-wrap[data-v-4b70bdeb]{width:24px;height:24px;color:var(--te-template-app-center-btn-icon-color);font-size:16px;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;transition:.3s}.app-center .type-toolbar .icon-wrap.active[data-v-4b70bdeb]{border:1px solid var(--te-template-app-center-btn-border-color-active);color:var(--te-template-app-center-btn-color-active);border-radius:4px;background-color:var(--te-template-app-center-btn-bg-color-active)}.app-center .app-center-list[data-v-4b70bdeb]{height:calc(100vh - 200px)}.list[data-v-4b70bdeb]{display:flex;gap:24px;flex-wrap:wrap}.list .item[data-v-4b70bdeb]{width:252px;padding:24px;border-radius:8px;background:var(--te-template-center-common-item-bg-color);position:relative}.list .item .app-name[data-v-4b70bdeb]{display:flex;gap:8px;align-items:center}.list .item .app-name .app-img[data-v-4b70bdeb]{width:40px;height:40px}.list .item .app-name .app-name-text[data-v-4b70bdeb]{font-size:18px;font-weight:600}.list .item .app-tag[data-v-4b70bdeb]{display:flex;gap:4px;height:20px;margin-top:12px}.list .item .app-tag .tag[data-v-4b70bdeb]{padding:2px 4px;border-radius:2px;background:var(--te-template-center-common-item-tag-bg-color)}.list .item .app-desc[data-v-4b70bdeb]{margin-top:12px;color:var(--te-template-center-common-item-desc-text-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list .item .app-view[data-v-4b70bdeb]{position:absolute;bottom:24px;right:24px}.list .item .app-operation[data-v-4b70bdeb]{display:none}.list .item:hover .app-operation[data-v-4b70bdeb]{display:block;position:absolute;width:20px;height:20px;border-radius:4px;background:var(--te-template-center-common-item-operation-bg-color);display:inline-flex;justify-content:center;align-items:center;cursor:pointer;top:16px;right:16px}.table .app-name[data-v-4b70bdeb]{display:flex;gap:8px;align-items:center}.table .app-name .app-img[data-v-4b70bdeb]{width:24px;height:24px}.table .tiny-button.tiny-button--text[data-v-4b70bdeb]{padding-left:0}.list-wrap[data-v-4b70bdeb]{margin-bottom:12px;max-height:calc(100% - 80px);overflow:auto}.list-wrap .empty-wrap[data-v-4b70bdeb]{width:100%}.options .option[data-v-4b70bdeb]{padding:4px 16px;cursor:pointer}.options .option[data-v-4b70bdeb]:hover{background:var(--te-template-common-bg-color-hover)}.tiny-pager__selector.tiny-popover.tiny-popper[x-placement],.operation-popover.tiny-popover.tiny-popper[x-placement]{padding:8px 0}:root{--te-template-common-bg-color: var(--te-common-bg-default);--te-template-common-bg-color-hover: var(--te-common-bg-container);--te-template-app-center-btn-bg-color: var(--te-common-bg-container);--te-template-app-center-btn-icon-color: var(--te-common-icon-secondary);--te-template-app-center-btn-color-active: var(--te-common-icon-primary);--te-template-app-center-btn-border-color-active: var(--te-common-border-active);--te-template-app-center-btn-bg-color-active: var(--te-common-bg-default);--te-template-center-common-item-bg-color: var(--te-common-bg-container-weaken);--te-template-center-common-item-tag-bg-color: var(--te-common-bg-prompt);--te-template-center-common-item-operation-bg-color: var(--te-common-bg-prompt);--te-template-center-common-item-desc-text-color: var(--te-common-text-secondary)}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@opentiny/tiny-engine-workspace-application-center",
|
|
3
|
+
"version": "2.9.0-alpha.8",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "vite build"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "dist/index.js",
|
|
12
|
+
"module": "dist/index.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/opentiny/tiny-engine",
|
|
19
|
+
"directory": "packages/workspace/application-center"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/opentiny/tiny-engine/issues"
|
|
23
|
+
},
|
|
24
|
+
"author": "OpenTiny Team",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"homepage": "https://opentiny.design/tiny-engine",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@opentiny/tiny-engine-common": "2.9.0-alpha.8",
|
|
29
|
+
"@opentiny/tiny-engine-meta-register": "2.9.0-alpha.8",
|
|
30
|
+
"vue-clipboard3": "^2.0.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.9.0-alpha.8",
|
|
34
|
+
"@vitejs/plugin-vue": "^5.1.2",
|
|
35
|
+
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
|
36
|
+
"vite": "^5.4.2"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@opentiny/vue": "^3.20.0",
|
|
40
|
+
"@opentiny/vue-icon": "^3.20.0",
|
|
41
|
+
"vue": "^3.4.15"
|
|
42
|
+
},
|
|
43
|
+
"gitHead": "e9351e337cfcdc40a3943e7be3179dab52dfe9f5"
|
|
44
|
+
}
|