提交 f36de805 编写于 作者: lxm1993's avatar lxm1993

feat: 插件更新

上级 6cd49dfa
var $ = Object.defineProperty; var R = Object.defineProperty;
var N = (s, n, e) => n in s ? $(s, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[n] = e; var N = (s, n, e) => n in s ? R(s, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[n] = e;
var y = (s, n, e) => (N(s, typeof n != "symbol" ? n + "" : n, e), e); var y = (s, n, e) => (N(s, typeof n != "symbol" ? n + "" : n, e), e);
import { PluginStaticResource as U, AppFuncCommand as j } from "@ibiz-template/runtime"; import { PluginStaticResource as U, AppFuncCommand as j } from "@ibiz-template/runtime";
import { ListPortletController as D, AppMenuPortletController as E } from "@ibiz-template/controller"; import { ListPortletController as D, AppMenuPortletController as E } from "@ibiz-template/controller";
...@@ -8,7 +8,7 @@ import { useNamespace as k, useListController as O } from "@ibiz-template/vue-ut ...@@ -8,7 +8,7 @@ import { useNamespace as k, useListController as O } from "@ibiz-template/vue-ut
import { defineComponent as L, ref as f, getCurrentInstance as C, onMounted as I, h as t, watch as J, onUnmounted as H } from "vue"; import { defineComponent as L, ref as f, getCurrentInstance as C, onMounted as I, h as t, watch as J, onUnmounted as H } from "vue";
import { Tooltip as w, Button as A, Icon as F } from "view-design"; import { Tooltip as w, Button as A, Icon as F } from "view-design";
import { CounterService as K } from "@ibiz-template/service"; import { CounterService as K } from "@ibiz-template/service";
const m = new U(import.meta.url); const g = new U(import.meta.url);
const Q = L({ const Q = L({
name: "AppPortalListPortlet", name: "AppPortalListPortlet",
props: { props: {
...@@ -24,7 +24,7 @@ const Q = L({ ...@@ -24,7 +24,7 @@ const Q = L({
setup(s) { setup(s) {
const n = k("app-portal-list-portlet"), e = f([]), p = Array.from({ const n = k("app-portal-list-portlet"), e = f([]), p = Array.from({
length: 3 length: 3
}).map((c, i) => m.dir(`/assets/img/app-portal-list-${i}.svg`)), l = C(); }).map((c, i) => g.dir(`/assets/img/app-portal-list-${i}.svg`)), l = C();
if (l && s.modelData.list) { if (l && s.modelData.list) {
const c = O(l.proxy, s.modelData.list, s.controller.context); const c = O(l.proxy, s.modelData.list, s.controller.context);
I(() => { I(() => {
...@@ -97,7 +97,7 @@ const T = L({ ...@@ -97,7 +97,7 @@ const T = L({
emit: n emit: n
}) { }) {
var S; var S;
const e = k("func-drawer"), p = m.dir("/assets/img/placeholder.svg"), l = "\u672A\u5206\u7C7B", g = f([]), c = f([]), i = f(!1), h = (S = C()) == null ? void 0 : S.proxy, b = () => { const e = k("func-drawer"), p = g.dir("/assets/img/placeholder.svg"), l = "\u672A\u5206\u7C7B", h = f([]), c = f([]), i = f(!1), m = (S = C()) == null ? void 0 : S.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 T = L({ ...@@ -113,7 +113,7 @@ const T = L({
r[u] ? r[u].push(a) : r[u] = [a]; r[u] ? r[u].push(a) : r[u] = [a];
} }
return a.ispersonal; return a.ispersonal;
}), g.value = Object.keys(r).map((a) => ({ }), h.value = Object.keys(r).map((a) => ({
name: a, name: a,
items: r[a] items: r[a]
})); }));
...@@ -127,7 +127,7 @@ const T = L({ ...@@ -127,7 +127,7 @@ const T = L({
list: c.value list: c.value
}) })
}).then((o) => { }).then((o) => {
o.ok && (h == null || h.$Notice.success({ o.ok && (m == null || m.$Notice.success({
title: "\u6210\u529F", title: "\u6210\u529F",
desc: "\u4FDD\u5B58\u6210\u529F" desc: "\u4FDD\u5B58\u6210\u529F"
}), b()); }), b());
...@@ -157,7 +157,7 @@ const T = L({ ...@@ -157,7 +157,7 @@ const T = L({
if (o.stopPropagation(), r.ispersonal = Number(!r.ispersonal), u === "remove") if (o.stopPropagation(), r.ispersonal = Number(!r.ispersonal), u === "remove")
c.value.splice(a, 1); c.value.splice(a, 1);
else if (u === "change") { else if (u === "change") {
const P = c.value.findIndex((R) => R.pssysappfuncid === r.pssysappfuncid); const P = c.value.findIndex(($) => $.pssysappfuncid === r.pssysappfuncid);
P === -1 ? c.value.push(r) : c.value.splice(P, 1); P === -1 ? c.value.push(r) : c.value.splice(P, 1);
} }
}; };
...@@ -209,7 +209,7 @@ const T = L({ ...@@ -209,7 +209,7 @@ const T = L({
class: e.be("group-item", "icon") class: e.be("group-item", "icon")
}, [t("img", { }, [t("img", {
attrs: { attrs: {
src: o.icon || p, src: o.icon ? g.dir(`/assets/img/${o.icon}`) : p,
draggable: !1 draggable: !1
} }
})]), t(w, { })]), t(w, {
...@@ -219,7 +219,7 @@ const T = L({ ...@@ -219,7 +219,7 @@ const T = L({
} }
}, [t("div", { }, [t("div", {
class: e.be("group-item", "text") class: e.be("group-item", "text")
}, [o.pssysappfuncname])])]))])]), g.value.map((o, r) => t("div", { }, [o.pssysappfuncname])])]))])]), h.value.map((o, r) => t("div", {
class: e.b("group"), class: e.b("group"),
key: r key: r
}, [t("header", { }, [t("header", {
...@@ -246,7 +246,7 @@ const T = L({ ...@@ -246,7 +246,7 @@ const T = L({
class: e.be("group-item", "icon") class: e.be("group-item", "icon")
}, [t("img", { }, [t("img", {
attrs: { attrs: {
src: a.icon || p, src: a.icon ? g.dir(`/assets/img/${a.icon}`) : p,
draggable: !1 draggable: !1
} }
})]), t(w, { })]), t(w, {
...@@ -274,17 +274,17 @@ const T = L({ ...@@ -274,17 +274,17 @@ const T = L({
} }
}, },
setup(s) { setup(s) {
const n = k("func-portal-list-portlet"), e = m.dir("/assets/img/quick-entry.svg"), p = m.dir("/assets/img/editor.svg"), l = m.dir("/assets/img/placeholder.svg"), g = f([]), c = C(); const n = k("func-portal-list-portlet"), e = g.dir("/assets/img/quick-entry.svg"), p = g.dir("/assets/img/editor.svg"), l = g.dir("/assets/img/placeholder.svg"), h = f([]), c = C();
let i = null; let i = null;
c && s.modelData.list && (i = O(c.proxy, s.modelData.list, s.controller.context), I(() => { c && s.modelData.list && (i = O(c.proxy, s.modelData.list, s.controller.context), I(() => {
i == null || i.nerve.self.evt.on("mounted", async () => { i == null || i.nerve.self.evt.on("mounted", async () => {
if (i) { if (i) {
const d = await i.load(); const d = await i.load();
g.value = d; h.value = d;
} }
}); });
})); }));
const h = (d) => { const m = (d) => {
d && ibiz.net.get(`/appfuncs/${d}/getfuncurl`).then((v) => { d && ibiz.net.get(`/appfuncs/${d}/getfuncurl`).then((v) => {
v.ok && v.data && v.data.url && window.open(v.data.url); v.ok && v.data && v.data.url && window.open(v.data.url);
}); });
...@@ -294,13 +294,13 @@ const T = L({ ...@@ -294,13 +294,13 @@ const T = L({
quickEntryImg: e, quickEntryImg: e,
editorImg: p, editorImg: p,
placeholderImg: l, placeholderImg: l,
funcPortalList: g, funcPortalList: h,
openPage: h, openPage: m,
isShowDrawer: b, isShowDrawer: b,
isShowDrawerChange: async () => { isShowDrawerChange: async () => {
if (b.value = !1, i) { if (b.value = !1, i) {
const d = await i.load(); const d = await i.load();
g.value = d; h.value = d;
} }
} }
}; };
...@@ -349,7 +349,7 @@ const T = L({ ...@@ -349,7 +349,7 @@ const T = L({
class: this.ns.be("item", "icon") class: this.ns.be("item", "icon")
}, [t("img", { }, [t("img", {
attrs: { attrs: {
src: m.dir(`/assets/img/${s.icon}`) || this.placeholderImg src: s.icon ? g.dir(`/assets/img/${s.icon}`) : this.placeholderImg
} }
})]), t(w, { })]), t(w, {
attrs: { attrs: {
...@@ -396,14 +396,14 @@ const Y = L({ ...@@ -396,14 +396,14 @@ const Y = L({
setup(s) { setup(s) {
const n = k("todo-app-menu-portlet"), e = Array.from({ const n = k("todo-app-menu-portlet"), e = Array.from({
length: 5 length: 5
}).map((c, i) => m.dir(`/assets/img/todo-app-menu-${i}.svg`)); }).map((c, i) => g.dir(`/assets/img/todo-app-menu-${i}.svg`));
let p = null; let p = null;
const l = f({}); const l = f({});
if (s.modelData.appMenu) { if (s.modelData.appMenu) {
const i = s.modelData.appMenu.source.getPSAppCounterRef(); const i = s.modelData.appMenu.source.getPSAppCounterRef();
i && (I(async () => { i && (I(async () => {
p = await K.getCounterByRef(i), p.onChange((h) => { p = await K.getCounterByRef(i), p.onChange((m) => {
l.value = h; l.value = m;
}); });
}), H(() => { }), H(() => {
p == null || p.destroy(); p == null || p.destroy();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册