提交 c373e0dd 编写于 作者: jlj05024111@163.com's avatar jlj05024111@163.com

feat: 更新插件包sy-pms-portal

上级 892b97dd
...@@ -27,8 +27,8 @@ const d = new N(import.meta.url), J = D({ ...@@ -27,8 +27,8 @@ const d = new N(import.meta.url), J = D({
const c = E(l.proxy, s.modelData.list, s.controller.context); const c = E(l.proxy, s.modelData.list, s.controller.context);
x(() => { x(() => {
c.nerve.self.evt.on("mounted", async () => { c.nerve.self.evt.on("mounted", async () => {
const i = await c.load(); const i = await c.load(), g = window.Environment || {};
e.value = i.slice(0, 4); e.value = i.slice(0, g.portalNum || 4);
}); });
}); });
} }
...@@ -97,7 +97,7 @@ const A = D({ ...@@ -97,7 +97,7 @@ const A = D({
emit: n emit: n
}) { }) {
var M; var M;
const e = k("func-drawer"), p = d.dir("/assets/img/placeholder.svg"), l = "未分类", h = f([]), c = f([]), i = f(!1), m = (M = C()) == null ? void 0 : M.proxy, b = () => { const e = k("func-drawer"), p = d.dir("/assets/img/placeholder.svg"), l = "未分类", m = f([]), c = f([]), i = f(!1), g = (M = C()) == null ? void 0 : M.proxy, b = () => {
ibiz.net.post("/appfuncs/fetchpersonfuncsetting", { ibiz.net.post("/appfuncs/fetchpersonfuncsetting", {
page: 0, page: 0,
size: 1e3, size: 1e3,
...@@ -113,7 +113,7 @@ const A = D({ ...@@ -113,7 +113,7 @@ const A = D({
r[u] ? r[u].push(a) : r[u] = [a]; r[u] ? r[u].push(a) : r[u] = [a];
} }
return a.ispersonal; return a.ispersonal;
}), h.value = Object.keys(r).map((a) => ({ }), m.value = Object.keys(r).map((a) => ({
name: a, name: a,
items: r[a] items: r[a]
})); }));
...@@ -127,7 +127,7 @@ const A = D({ ...@@ -127,7 +127,7 @@ const A = D({
list: c.value list: c.value
}) })
}).then((o) => { }).then((o) => {
o.ok && (m == null || m.$Notice.success({ o.ok && (g == null || g.$Notice.success({
title: "成功", title: "成功",
desc: "保存成功" desc: "保存成功"
}), b()); }), b());
...@@ -136,7 +136,7 @@ const A = D({ ...@@ -136,7 +136,7 @@ const A = D({
j(() => s.isShowDrawer, (o) => { j(() => s.isShowDrawer, (o) => {
o && b(); o && b();
}); });
const g = (o) => { const h = (o) => {
o && ibiz.net.get(`/appfuncs/${o}/getfuncurl`).then((r) => { o && ibiz.net.get(`/appfuncs/${o}/getfuncurl`).then((r) => {
r.ok && r.data && r.data.url && L(r.data.url, { r.ok && r.data && r.data.url && L(r.data.url, {
type: "_blank" type: "_blank"
...@@ -192,7 +192,7 @@ const A = D({ ...@@ -192,7 +192,7 @@ const A = D({
class: [e.b("group-item"), o.pssysappfuncid ? "" : e.bm("group-item", "disabled")], class: [e.b("group-item"), o.pssysappfuncid ? "" : e.bm("group-item", "disabled")],
key: o.pssysappfuncid, key: o.pssysappfuncid,
on: { on: {
click: () => g(o.pssysappfuncid), click: () => h(o.pssysappfuncid),
dragstart: (a) => v(a, r), dragstart: (a) => v(a, r),
dragover: z, dragover: z,
drop: (a) => _(a, r) drop: (a) => _(a, r)
...@@ -224,7 +224,7 @@ const A = D({ ...@@ -224,7 +224,7 @@ const A = D({
} }
}, [t("div", { }, [t("div", {
class: e.be("group-item", "text") class: e.be("group-item", "text")
}, [o.pssysappfuncname])])]))])]), h.value.map((o, r) => t("div", { }, [o.pssysappfuncname])])]))])]), m.value.map((o, r) => t("div", {
class: e.b("group"), class: e.b("group"),
key: r key: r
}, [t("header", { }, [t("header", {
...@@ -235,7 +235,7 @@ const A = D({ ...@@ -235,7 +235,7 @@ const A = D({
class: [e.b("group-item"), a.pssysappfuncid ? "" : e.bm("group-item", "disabled")], class: [e.b("group-item"), a.pssysappfuncid ? "" : e.bm("group-item", "disabled")],
key: a.pssysappfuncid, key: a.pssysappfuncid,
on: { on: {
click: () => g(a.pssysappfuncid) click: () => h(a.pssysappfuncid)
} }
}, [t("div", { }, [t("div", {
class: [e.be("group-item", "checkbox"), a.ispersonal ? e.bem("group-item", "checkbox", "selected") : "", i.value ? e.bem("group-item", "checkbox", "show") : ""], class: [e.be("group-item", "checkbox"), a.ispersonal ? e.bem("group-item", "checkbox", "selected") : "", i.value ? e.bem("group-item", "checkbox", "show") : ""],
...@@ -279,18 +279,18 @@ const A = D({ ...@@ -279,18 +279,18 @@ const A = D({
} }
}, },
setup(s) { setup(s) {
const n = k("func-portal-list-portlet"), e = d.dir("/assets/img/quick-entry.svg"), p = d.dir("/assets/img/editor.svg"), l = d.dir("/assets/img/placeholder.svg"), h = f([]), c = C(); const n = k("func-portal-list-portlet"), e = d.dir("/assets/img/quick-entry.svg"), p = d.dir("/assets/img/editor.svg"), l = d.dir("/assets/img/placeholder.svg"), m = f([]), c = C();
let i = null; let i = null;
c && s.modelData.list && (i = E(c.proxy, s.modelData.list, s.controller.context), x(() => { c && s.modelData.list && (i = E(c.proxy, s.modelData.list, s.controller.context), x(() => {
i == null || i.nerve.self.evt.on("mounted", async () => { i == null || i.nerve.self.evt.on("mounted", async () => {
if (i) { if (i) {
const g = await i.load(); const h = await i.load();
h.value = g; m.value = h;
} }
}); });
})); }));
const m = (g) => { const g = (h) => {
g && ibiz.net.get(`/appfuncs/${g}/getfuncurl`).then((v) => { h && ibiz.net.get(`/appfuncs/${h}/getfuncurl`).then((v) => {
v.ok && v.data && v.data.url && L(v.data.url, { v.ok && v.data && v.data.url && L(v.data.url, {
type: "_blank" type: "_blank"
}); });
...@@ -301,13 +301,13 @@ const A = D({ ...@@ -301,13 +301,13 @@ const A = D({
quickEntryImg: e, quickEntryImg: e,
editorImg: p, editorImg: p,
placeholderImg: l, placeholderImg: l,
funcPortalList: h, funcPortalList: m,
openPage: m, openPage: g,
isShowDrawer: b, isShowDrawer: b,
isShowDrawerChange: async () => { isShowDrawerChange: async () => {
if (b.value = !1, i) { if (b.value = !1, i) {
const g = await i.load(); const h = await i.load();
h.value = g; m.value = h;
} }
} }
}; };
...@@ -409,8 +409,8 @@ const V = D({ ...@@ -409,8 +409,8 @@ const V = D({
if (s.modelData.appMenu) { if (s.modelData.appMenu) {
const i = s.modelData.appMenu.source.getPSAppCounterRef(); const i = s.modelData.appMenu.source.getPSAppCounterRef();
i && (x(async () => { i && (x(async () => {
p = await G.getCounterByRef(i), p.onChange((m) => { p = await G.getCounterByRef(i), p.onChange((g) => {
l.value = m; l.value = g;
}); });
}), B(() => { }), B(() => {
p == null || p.destroy(); p == null || p.destroy();
......
...@@ -24,13 +24,13 @@ ...@@ -24,13 +24,13 @@
}, },
"dependencies": { "dependencies": {
"@ibiz-template/command": "0.0.1-syui.1", "@ibiz-template/command": "0.0.1-syui.1",
"@ibiz-template/controller": "0.0.1-syuifix.11", "@ibiz-template/controller": "0.0.1-syuifix.13",
"@ibiz-template/core": "0.0.1-syuifix.11", "@ibiz-template/core": "0.0.1-syuifix.13",
"@ibiz-template/model": "0.0.1-syuifix.9", "@ibiz-template/model": "0.0.1-syuifix.9",
"@ibiz-template/runtime": "0.0.1-syuifix.11", "@ibiz-template/runtime": "0.0.1-syuifix.13",
"@ibiz-template/service": "0.0.1-syuifix.11", "@ibiz-template/service": "0.0.1-syuifix.13",
"@ibiz-template/theme": "0.0.1-syuifix.11", "@ibiz-template/theme": "0.0.1-syuifix.11",
"@ibiz-template/vue-util": "0.0.1-syuifix.11", "@ibiz-template/vue-util": "0.0.1-syuifix.13",
"async-validator": "^4.2.5", "async-validator": "^4.2.5",
"axios": "^1.1.3", "axios": "^1.1.3",
"core-js": "3", "core-js": "3",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册