提交 bbae8c5f 编写于 作者: zhf's avatar zhf

feat: 更新插件

上级 550a8510
var q = Object.defineProperty;
var _ = (s, n, e) => n in s ? q(s, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[n] = e;
var w = (s, n, e) => (_(s, typeof n != "symbol" ? n + "" : n, e), e);
var P = (s, n, e) => (_(s, typeof n != "symbol" ? n + "" : n, e), e);
import { ListPortletController as y, AppMenuPortletController as A } from "@ibiz-template/controller";
import { ListPortletModel as F, AppMenuPortletModel as $ } from "@ibiz-template/model";
import { useNamespace as D, useListController as T } from "@ibiz-template/vue-util";
......@@ -68,7 +68,7 @@ const d = new U(import.meta.url), G = k({
});
class J {
constructor() {
w(this, "component", G);
P(this, "component", G);
}
async createController(n, e, p) {
const l = new y(
......@@ -94,8 +94,8 @@ const M = k({
setup(s, {
emit: n
}) {
var S;
const e = D("func-drawer"), p = d.dir("/assets/img/placeholder.svg"), l = "未分类", h = f([]), c = f([]), i = f(!1), m = (S = L()) == null ? void 0 : S.proxy, b = () => {
var I;
const e = D("func-drawer"), p = d.dir("/assets/img/placeholder.svg"), l = "未分类", h = f([]), c = f([]), i = f(!1), m = (I = L()) == null ? void 0 : I.proxy, b = () => {
ibiz.net.post("/appfuncs/fetchpersonfuncsetting", {
page: 0,
size: 1e3,
......@@ -147,20 +147,23 @@ const M = k({
if (a.preventDefault(), i.value && a.dataTransfer) {
const o = Number(a.dataTransfer.getData("originIndex"));
if (o !== r) {
const u = c.value[o], P = c.value[r];
c.value.splice(o, 1, P), c.value.splice(r, 1, u);
const u = c.value[o], w = c.value[r];
c.value.splice(o, 1, w), c.value.splice(r, 1, u);
}
}
}, I = (a, r, o, u) => {
}, S = (a, r, o, u) => {
if (a.stopPropagation(), r.ispersonal = +!r.ispersonal, u === "remove")
c.value.splice(o, 1);
else if (u === "change") {
const P = c.value.findIndex((O) => O.pssysappfuncid === r.pssysappfuncid);
P === -1 ? c.value.push(r) : c.value.splice(P, 1);
const w = c.value.findIndex((O) => O.pssysappfuncid === r.pssysappfuncid);
w === -1 ? c.value.push(r) : c.value.splice(w, 1);
}
};
return () => t("div", {
class: [e.b(), s.isShowDrawer ? e.m("show") : ""]
class: [e.b(), s.isShowDrawer ? e.m("show") : ""],
style: {
marginTop: s.isShowDrawer ? "0" : "-100vh"
}
}, [t("div", {
class: e.b("content")
}, [t("div", {
......@@ -196,7 +199,7 @@ const M = k({
}, [t("div", {
class: [e.be("group-item", "checkbox"), e.bem("group-item", "checkbox", "remove"), i.value ? e.bem("group-item", "checkbox", "show") : ""],
on: {
click: (o) => I(o, a, r, "remove")
click: (o) => S(o, a, r, "remove")
}
}, [t("i-icon", {
attrs: {
......@@ -233,7 +236,7 @@ const M = k({
}, [t("div", {
class: [e.be("group-item", "checkbox"), o.ispersonal ? e.bem("group-item", "checkbox", "selected") : "", i.value ? e.bem("group-item", "checkbox", "show") : ""],
on: {
click: (u) => I(u, o, r, "change")
click: (u) => S(u, o, r, "change")
}
}, [o.ispersonal ? t("i-icon", {
attrs: {
......@@ -368,7 +371,7 @@ const M = k({
});
class K {
constructor() {
w(this, "component", H);
P(this, "component", H);
}
async createController(n, e, p) {
const l = new y(
......@@ -454,7 +457,7 @@ const Q = k({
});
class V {
constructor() {
w(this, "component", Q);
P(this, "component", Q);
}
async createController(n, e, p) {
const l = new A(
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册