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

feat: 更新插件

上级 4a012e36
...@@ -5,10 +5,10 @@ import { PluginStaticResource as U, AppFuncCommand as j } from "@ibiz-template/r ...@@ -5,10 +5,10 @@ import { PluginStaticResource as U, AppFuncCommand as j } from "@ibiz-template/r
import { ListPortletController as D, AppMenuPortletController as E } from "@ibiz-template/controller"; import { ListPortletController as D, AppMenuPortletController as E } from "@ibiz-template/controller";
import { ListPortletModel as z, AppMenuPortletModel as B, DefectModelError as G } from "@ibiz-template/model"; import { ListPortletModel as z, AppMenuPortletModel as B, DefectModelError as G } from "@ibiz-template/model";
import { useNamespace as k, useListController as O } from "@ibiz-template/vue-util"; import { useNamespace as k, useListController as O } from "@ibiz-template/vue-util";
import { defineComponent as L, ref as m, 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 v = new U(import.meta.url); const m = new U(import.meta.url);
const Q = L({ const Q = L({
name: "AppPortalListPortlet", name: "AppPortalListPortlet",
props: { props: {
...@@ -22,9 +22,9 @@ const Q = L({ ...@@ -22,9 +22,9 @@ const Q = L({
} }
}, },
setup(s) { setup(s) {
const n = k("app-portal-list-portlet"), e = m([]), p = Array.from({ const n = k("app-portal-list-portlet"), e = f([]), p = Array.from({
length: 3 length: 3
}).map((c, i) => v.dir(`/assets/img/app-portal-list-${i}.svg`)), l = C(); }).map((c, i) => m.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 = v.dir("/assets/img/placeholder.svg"), l = "\u672A\u5206\u7C7B", g = m([]), c = m([]), i = m(!1), h = (S = C()) == null ? void 0 : S.proxy, b = () => { 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 = () => {
ibiz.net.post("/appfuncs/fetchpersonfuncsetting", { ibiz.net.post("/appfuncs/fetchpersonfuncsetting", {
page: 0, page: 0,
size: 1e3, size: 1e3,
...@@ -140,7 +140,7 @@ const T = L({ ...@@ -140,7 +140,7 @@ const T = L({
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 && window.open(r.data.url); r.ok && r.data && r.data.url && window.open(r.data.url);
}); });
}, f = (o, r) => { }, v = (o, r) => {
var a; var a;
i.value && ((a = o.dataTransfer) == null || a.setData("originIndex", r.toString())); i.value && ((a = o.dataTransfer) == null || a.setData("originIndex", r.toString()));
}, q = (o) => { }, q = (o) => {
...@@ -188,7 +188,7 @@ const T = L({ ...@@ -188,7 +188,7 @@ const T = L({
key: o.pssysappfuncid, key: o.pssysappfuncid,
on: { on: {
click: () => d(o.pssysappfuncid), click: () => d(o.pssysappfuncid),
dragstart: (a) => f(a, r), dragstart: (a) => v(a, r),
dragover: q, dragover: q,
drop: (a) => _(a, r) drop: (a) => _(a, r)
}, },
...@@ -274,7 +274,7 @@ const T = L({ ...@@ -274,7 +274,7 @@ const T = L({
} }
}, },
setup(s) { setup(s) {
const n = k("func-portal-list-portlet"), e = v.dir("/assets/img/quick-entry.svg"), p = v.dir("/assets/img/editor.svg"), l = v.dir("/assets/img/placeholder.svg"), g = m([]), c = C(); 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();
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 () => {
...@@ -285,10 +285,10 @@ const T = L({ ...@@ -285,10 +285,10 @@ const T = L({
}); });
})); }));
const h = (d) => { const h = (d) => {
d && ibiz.net.get(`/appfuncs/${d}/getfuncurl`).then((f) => { d && ibiz.net.get(`/appfuncs/${d}/getfuncurl`).then((v) => {
f.ok && f.data && f.data.url && window.open(f.data.url); v.ok && v.data && v.data.url && window.open(v.data.url);
}); });
}, b = m(!1); }, b = f(!1);
return { return {
ns: n, ns: n,
quickEntryImg: e, quickEntryImg: e,
...@@ -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: s.icon || this.placeholderImg src: m.dir(`/assets/img/${s.icon}`) || this.placeholderImg
} }
})]), t(w, { })]), t(w, {
attrs: { attrs: {
...@@ -396,9 +396,9 @@ const Y = L({ ...@@ -396,9 +396,9 @@ 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) => v.dir(`/assets/img/todo-app-menu-${i}.svg`)); }).map((c, i) => m.dir(`/assets/img/todo-app-menu-${i}.svg`));
let p = null; let p = null;
const l = m({}); 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 () => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册