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

feat: 插件更新

上级 6cd49dfa
var $ = Object.defineProperty;
var N = (s, n, e) => n in s ? $(s, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[n] = e;
var R = Object.defineProperty;
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);
import { PluginStaticResource as U, AppFuncCommand as j } from "@ibiz-template/runtime";
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
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 { CounterService as K } from "@ibiz-template/service";
const m = new U(import.meta.url);
const g = new U(import.meta.url);
const Q = L({
name: "AppPortalListPortlet",
props: {
......@@ -24,7 +24,7 @@ const Q = L({
setup(s) {
const n = k("app-portal-list-portlet"), e = f([]), p = Array.from({
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) {
const c = O(l.proxy, s.modelData.list, s.controller.context);
I(() => {
......@@ -97,7 +97,7 @@ const T = L({
emit: n
}) {
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", {
page: 0,
size: 1e3,
......@@ -113,7 +113,7 @@ const T = L({
r[u] ? r[u].push(a) : r[u] = [a];
}
return a.ispersonal;
}), g.value = Object.keys(r).map((a) => ({
}), h.value = Object.keys(r).map((a) => ({
name: a,
items: r[a]
}));
......@@ -127,7 +127,7 @@ const T = L({
list: c.value
})
}).then((o) => {
o.ok && (h == null || h.$Notice.success({
o.ok && (m == null || m.$Notice.success({
title: "\u6210\u529F",
desc: "\u4FDD\u5B58\u6210\u529F"
}), b());
......@@ -157,7 +157,7 @@ const T = L({
if (o.stopPropagation(), r.ispersonal = Number(!r.ispersonal), u === "remove")
c.value.splice(a, 1);
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);
}
};
......@@ -209,7 +209,7 @@ const T = L({
class: e.be("group-item", "icon")
}, [t("img", {
attrs: {
src: o.icon || p,
src: o.icon ? g.dir(`/assets/img/${o.icon}`) : p,
draggable: !1
}
})]), t(w, {
......@@ -219,7 +219,7 @@ const T = L({
}
}, [t("div", {
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"),
key: r
}, [t("header", {
......@@ -246,7 +246,7 @@ const T = L({
class: e.be("group-item", "icon")
}, [t("img", {
attrs: {
src: a.icon || p,
src: a.icon ? g.dir(`/assets/img/${a.icon}`) : p,
draggable: !1
}
})]), t(w, {
......@@ -274,17 +274,17 @@ const T = L({
}
},
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;
c && s.modelData.list && (i = O(c.proxy, s.modelData.list, s.controller.context), I(() => {
i == null || i.nerve.self.evt.on("mounted", async () => {
if (i) {
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) => {
v.ok && v.data && v.data.url && window.open(v.data.url);
});
......@@ -294,13 +294,13 @@ const T = L({
quickEntryImg: e,
editorImg: p,
placeholderImg: l,
funcPortalList: g,
openPage: h,
funcPortalList: h,
openPage: m,
isShowDrawer: b,
isShowDrawerChange: async () => {
if (b.value = !1, i) {
const d = await i.load();
g.value = d;
h.value = d;
}
}
};
......@@ -349,7 +349,7 @@ const T = L({
class: this.ns.be("item", "icon")
}, [t("img", {
attrs: {
src: m.dir(`/assets/img/${s.icon}`) || this.placeholderImg
src: s.icon ? g.dir(`/assets/img/${s.icon}`) : this.placeholderImg
}
})]), t(w, {
attrs: {
......@@ -396,14 +396,14 @@ const Y = L({
setup(s) {
const n = k("todo-app-menu-portlet"), e = Array.from({
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;
const l = f({});
if (s.modelData.appMenu) {
const i = s.modelData.appMenu.source.getPSAppCounterRef();
i && (I(async () => {
p = await K.getCounterByRef(i), p.onChange((h) => {
l.value = h;
p = await K.getCounterByRef(i), p.onChange((m) => {
l.value = m;
});
}), H(() => {
p == null || p.destroy();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册