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

feat: 插件升级

上级 ee3cd767
...@@ -4,7 +4,7 @@ var y = (s, n, e) => (N(s, typeof n != "symbol" ? n + "" : n, e), e); ...@@ -4,7 +4,7 @@ var y = (s, n, e) => (N(s, typeof n != "symbol" ? n + "" : n, e), e);
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 U } from "@ibiz-template/model"; import { ListPortletModel as z, AppMenuPortletModel as U } 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 f, getCurrentInstance as C, onMounted as I, h as t, watch as j, onUnmounted as B } from "vue"; import { defineComponent as L, ref as f, getCurrentInstance as C, onMounted as x, h as t, watch as j, onUnmounted as B } from "vue";
import { Tooltip as P, Button as A, Icon as F } from "view-design"; import { Tooltip as P, Button as A, Icon as F } from "view-design";
import { PluginStaticResource as G, AppFuncCommand as J } from "@ibiz-template/runtime"; import { PluginStaticResource as G, AppFuncCommand as J } from "@ibiz-template/runtime";
import { CounterService as H } from "@ibiz-template/service"; import { CounterService as H } from "@ibiz-template/service";
...@@ -26,7 +26,7 @@ const d = new G(import.meta.url), K = L({ ...@@ -26,7 +26,7 @@ const d = new G(import.meta.url), K = L({
}).map((c, i) => d.dir(`/assets/img/app-portal-list-${i}.svg`)), l = C(); }).map((c, i) => d.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(() => { 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();
e.value = i.slice(0, 3); e.value = i.slice(0, 3);
...@@ -118,7 +118,7 @@ const T = L({ ...@@ -118,7 +118,7 @@ const T = L({
})); }));
} }
}); });
}, x = () => { }, I = () => {
i.value && (c.value.forEach((o, r) => { i.value && (c.value.forEach((o, r) => {
o.showorder = r; o.showorder = r;
}), ibiz.net.post("/appfuncs/setfuncsetting", { }), ibiz.net.post("/appfuncs/setfuncsetting", {
...@@ -174,7 +174,7 @@ const T = L({ ...@@ -174,7 +174,7 @@ const T = L({
class: e.b("group-header-right") class: e.b("group-header-right")
}, [t(A, { }, [t(A, {
on: { on: {
click: x click: I
} }
}, [i.value ? "保存" : "配置"]), t(A, { }, [i.value ? "保存" : "配置"]), t(A, {
on: { on: {
...@@ -275,7 +275,7 @@ const T = L({ ...@@ -275,7 +275,7 @@ const T = L({
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"), 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), 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 g = await i.load();
...@@ -400,7 +400,7 @@ const X = L({ ...@@ -400,7 +400,7 @@ const X = L({
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 && (x(async () => {
p = await H.getCounterByRef(i), p.onChange((m) => { p = await H.getCounterByRef(i), p.onChange((m) => {
l.value = m; l.value = m;
}); });
...@@ -415,7 +415,7 @@ const X = L({ ...@@ -415,7 +415,7 @@ const X = L({
counterData: l, counterData: l,
onClickMenuItem: async (c) => { onClickMenuItem: async (c) => {
const i = c.source.getPSAppFunc(); const i = c.source.getPSAppFunc();
i && await ibiz.commands.execute(J.TAG, i); i && await ibiz.commands.execute(J.TAG, i, s.controller.context, s.controller.params);
} }
}; };
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册