提交 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({
const c = E(l.proxy, s.modelData.list, s.controller.context);
x(() => {
c.nerve.self.evt.on("mounted", async () => {
const i = await c.load();
e.value = i.slice(0, 4);
const i = await c.load(), g = window.Environment || {};
e.value = i.slice(0, g.portalNum || 4);
});
});
}
......@@ -97,7 +97,7 @@ const A = D({
emit: n
}) {
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", {
page: 0,
size: 1e3,
......@@ -113,7 +113,7 @@ const A = D({
r[u] ? r[u].push(a) : r[u] = [a];
}
return a.ispersonal;
}), h.value = Object.keys(r).map((a) => ({
}), m.value = Object.keys(r).map((a) => ({
name: a,
items: r[a]
}));
......@@ -127,7 +127,7 @@ const A = D({
list: c.value
})
}).then((o) => {
o.ok && (m == null || m.$Notice.success({
o.ok && (g == null || g.$Notice.success({
title: "成功",
desc: "保存成功"
}), b());
......@@ -136,7 +136,7 @@ const A = D({
j(() => s.isShowDrawer, (o) => {
o && b();
});
const g = (o) => {
const h = (o) => {
o && ibiz.net.get(`/appfuncs/${o}/getfuncurl`).then((r) => {
r.ok && r.data && r.data.url && L(r.data.url, {
type: "_blank"
......@@ -192,7 +192,7 @@ const A = D({
class: [e.b("group-item"), o.pssysappfuncid ? "" : e.bm("group-item", "disabled")],
key: o.pssysappfuncid,
on: {
click: () => g(o.pssysappfuncid),
click: () => h(o.pssysappfuncid),
dragstart: (a) => v(a, r),
dragover: z,
drop: (a) => _(a, r)
......@@ -224,7 +224,7 @@ const A = D({
}
}, [t("div", {
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"),
key: r
}, [t("header", {
......@@ -235,7 +235,7 @@ const A = D({
class: [e.b("group-item"), a.pssysappfuncid ? "" : e.bm("group-item", "disabled")],
key: a.pssysappfuncid,
on: {
click: () => g(a.pssysappfuncid)
click: () => h(a.pssysappfuncid)
}
}, [t("div", {
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({
}
},
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;
c && s.modelData.list && (i = E(c.proxy, s.modelData.list, s.controller.context), x(() => {
i == null || i.nerve.self.evt.on("mounted", async () => {
if (i) {
const g = await i.load();
h.value = g;
const h = await i.load();
m.value = h;
}
});
}));
const m = (g) => {
g && ibiz.net.get(`/appfuncs/${g}/getfuncurl`).then((v) => {
const g = (h) => {
h && ibiz.net.get(`/appfuncs/${h}/getfuncurl`).then((v) => {
v.ok && v.data && v.data.url && L(v.data.url, {
type: "_blank"
});
......@@ -301,13 +301,13 @@ const A = D({
quickEntryImg: e,
editorImg: p,
placeholderImg: l,
funcPortalList: h,
openPage: m,
funcPortalList: m,
openPage: g,
isShowDrawer: b,
isShowDrawerChange: async () => {
if (b.value = !1, i) {
const g = await i.load();
h.value = g;
const h = await i.load();
m.value = h;
}
}
};
......@@ -409,8 +409,8 @@ const V = D({
if (s.modelData.appMenu) {
const i = s.modelData.appMenu.source.getPSAppCounterRef();
i && (x(async () => {
p = await G.getCounterByRef(i), p.onChange((m) => {
l.value = m;
p = await G.getCounterByRef(i), p.onChange((g) => {
l.value = g;
});
}), B(() => {
p == null || p.destroy();
......
......@@ -24,13 +24,13 @@
},
"dependencies": {
"@ibiz-template/command": "0.0.1-syui.1",
"@ibiz-template/controller": "0.0.1-syuifix.11",
"@ibiz-template/core": "0.0.1-syuifix.11",
"@ibiz-template/controller": "0.0.1-syuifix.13",
"@ibiz-template/core": "0.0.1-syuifix.13",
"@ibiz-template/model": "0.0.1-syuifix.9",
"@ibiz-template/runtime": "0.0.1-syuifix.11",
"@ibiz-template/service": "0.0.1-syuifix.11",
"@ibiz-template/runtime": "0.0.1-syuifix.13",
"@ibiz-template/service": "0.0.1-syuifix.13",
"@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",
"axios": "^1.1.3",
"core-js": "3",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册