提交 98557603 编写于 作者: zhujiamin's avatar zhujiamin

feat: 更新插件

上级 1de9c522
...@@ -2,8 +2,8 @@ var Q = Object.defineProperty; ...@@ -2,8 +2,8 @@ var Q = Object.defineProperty;
var X = (t, n, s) => n in t ? Q(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s; var X = (t, n, s) => n in t ? Q(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
var b = (t, n, s) => (X(t, typeof n != "symbol" ? n + "" : n, s), s); var b = (t, n, s) => (X(t, typeof n != "symbol" ? n + "" : n, s), s);
import { PluginStaticResource as Z, ViewMode as ee } from "@ibiz-template/runtime"; import { PluginStaticResource as Z, ViewMode as ee } from "@ibiz-template/runtime";
import { ref as C, watch as _, defineComponent as S, getCurrentInstance as z, computed as N, onMounted as K, h as a, toRefs as te, reactive as se, nextTick as R, toRef as ae } from "vue"; import { ref as C, watch as _, defineComponent as S, getCurrentInstance as z, computed as N, onMounted as K, h as a, toRefs as te, reactive as se, nextTick as F, toRef as ae } from "vue";
import { useRouter as F, useRoute as B, useIndexViewController as ne, useNamespace as q, useControlController as oe, usePropsWatch as re, useListController as ie, useListExpViewController as le, useRouteKey as ce, getUploadProps as de, getEditorEmits as ue, useMPickupViewController as he, useTreeController as pe } from "@ibiz-template/vue-util"; import { useRouter as B, useRoute as R, useIndexViewController as ne, useNamespace as q, useControlController as oe, usePropsWatch as re, useListController as ie, useListExpViewController as le, useRouteKey as ce, getUploadProps as de, getEditorEmits as ue, useMPickupViewController as he, useTreeController as pe } from "@ibiz-template/vue-util";
import { createUUID as me } from "qx-util"; import { createUUID as me } from "qx-util";
import { IndexViewModel as fe, PortletPartModel as ge, ViewPortletModel as ve, ListModel as U, TreeModel as ye } from "@ibiz-template/model"; import { IndexViewModel as fe, PortletPartModel as ge, ViewPortletModel as ve, ListModel as U, TreeModel as ye } from "@ibiz-template/model";
import O from "dayjs"; import O from "dayjs";
...@@ -31,7 +31,7 @@ const Ee = (t) => { ...@@ -31,7 +31,7 @@ const Ee = (t) => {
return `/${s}/${n}/${ibiz.env.routePlaceholder}`; return `/${s}/${n}/${ibiz.env.routePlaceholder}`;
}; };
function Ie(t, n) { function Ie(t, n) {
const s = F(t), e = C(""), r = C(""), o = C([]), u = C([]), y = (l) => { const s = B(t), e = C(""), r = C(""), o = C([]), u = C([]), y = (l) => {
l.forEach((h) => { l.forEach((h) => {
const w = o.value.indexOf(h); const w = o.value.indexOf(h);
w !== -1 && o.value.splice(w, 1); w !== -1 && o.value.splice(w, 1);
...@@ -43,7 +43,7 @@ function Ie(t, n) { ...@@ -43,7 +43,7 @@ function Ie(t, n) {
() => t.$route.path, () => t.$route.path,
(l, h) => { (l, h) => {
if (l !== h) { if (l !== h) {
const w = B(t); const w = R(t);
e.value = Ee(w), r.value = Te(w); e.value = Ee(w), r.value = Te(w);
const k = u.value.find( const k = u.value.find(
(v) => v.key === e.value (v) => v.key === e.value
...@@ -89,7 +89,7 @@ function Ie(t, n) { ...@@ -89,7 +89,7 @@ function Ie(t, n) {
const h = u.value[l]; const h = u.value[l];
h && s.push(h.fullPath); h && s.push(h.fullPath);
}, g = () => { }, g = () => {
const h = B(t).fullPath; const h = R(t).fullPath;
let w = h.indexOf("/"); let w = h.indexOf("/");
for (let v = 0; v < 2; v++) for (let v = 0; v < 2; v++)
w = h.indexOf("/", w + 1); w = h.indexOf("/", w + 1);
...@@ -423,7 +423,7 @@ const Ne = S({ ...@@ -423,7 +423,7 @@ const Ne = S({
srffirstlogin: f srffirstlogin: f
} = ((v = ibiz.appData) == null ? void 0 : v.context) || {}, { } = ((v = ibiz.appData) == null ? void 0 : v.context) || {}, {
proxy: g proxy: g
} = z(), d = F(g), c = async () => { } = z(), d = B(g), c = async () => {
(await ibiz.auth.v7logout()).ok ? (ibiz.message.success("\u767B\u51FA\u6210\u529F"), d.push(`/login?ru=${encodeURIComponent(window.location.hash.replace("#/", "/"))}`)) : ibiz.message.error("\u767B\u51FA\u5931\u8D25"); (await ibiz.auth.v7logout()).ok ? (ibiz.message.success("\u767B\u51FA\u6210\u529F"), d.push(`/login?ru=${encodeURIComponent(window.location.hash.replace("#/", "/"))}`)) : ibiz.message.error("\u767B\u51FA\u5931\u8D25");
}, m = C(!0), x = () => { }, m = C(!0), x = () => {
m.value = !m.value; m.value = !m.value;
...@@ -505,7 +505,7 @@ const Ne = S({ ...@@ -505,7 +505,7 @@ const Ne = S({
} }
}, [a("i", { }, [a("i", {
class: "ivu-icon ivu-icon-ios-log-out" class: "ivu-icon ivu-icon-ios-log-out"
}), "\u9000\u51FA\u767B\u9646"])]) }), "\u9000\u51FA\u767B\u5F55"])])
} }
}), a("div", { }), a("div", {
class: [this.ns.be("option", "bottom")] class: [this.ns.be("option", "bottom")]
...@@ -661,7 +661,7 @@ const $e = S({ ...@@ -661,7 +661,7 @@ const $e = S({
})]); })]);
} }
}); });
class Re { class Fe {
constructor() { constructor() {
b(this, "component", $e); b(this, "component", $e);
} }
...@@ -760,13 +760,13 @@ class W extends Ce { ...@@ -760,13 +760,13 @@ class W extends Ce {
); );
} }
} }
const Be = ["#FF0700", "#FFF400", "#73A0FA"], Fe = { const Re = ["#FF0700", "#FFF400", "#73A0FA"], Be = {
strMapCode: !0, strMapCode: !0,
visualMap: { visualMap: {
text: ["\u9AD8", "\u4F4E"], text: ["\u9AD8", "\u4F4E"],
min: 0, min: 0,
max: 100, max: 100,
rangeColor: Be rangeColor: Re
}, },
pointSymbol: "pin" pointSymbol: "pin"
}, Ue = "/assets/json/map/jiangsu/{id}.json"; }, Ue = "/assets/json/map/jiangsu/{id}.json";
...@@ -860,7 +860,7 @@ const We = S({ ...@@ -860,7 +860,7 @@ const We = S({
setup(t, { setup(t, {
emit: n emit: n
}) { }) {
const s = q("map-chart"), e = N(() => De(Fe, t.options)), { const s = q("map-chart"), e = N(() => De(Be, t.options)), {
chartRef: r, chartRef: r,
historyNames: o, historyNames: o,
changeMap: u, changeMap: u,
...@@ -1315,7 +1315,7 @@ const j = S({ ...@@ -1315,7 +1315,7 @@ const j = S({
} }
}, ["\u5168\u90E8"]) : null; }, ["\u5168\u90E8"]) : null;
}; };
return R(() => { return F(() => {
u && (f({ u && (f({
deptid: e.params.n_orgid_eq, deptid: e.params.n_orgid_eq,
orgid: e.params.n_orgid_eq, orgid: e.params.n_orgid_eq,
...@@ -1324,7 +1324,7 @@ const j = S({ ...@@ -1324,7 +1324,7 @@ const j = S({
sysdepartment: void 0 sysdepartment: void 0
}), e.selectedData.length = 0); }), e.selectedData.length = 0);
}), _(() => e.items, () => { }), _(() => e.items, () => {
R(() => { F(() => {
u = !0, Object.assign(e.context, { u = !0, Object.assign(e.context, {
n_orgid_eq: e.params.n_orgid_eq n_orgid_eq: e.params.n_orgid_eq
}), f({ }), f({
...@@ -1836,7 +1836,7 @@ const ht = S({ ...@@ -1836,7 +1836,7 @@ const ht = S({
new ot() new ot()
), E.loadStyle(["/style.css"]), ibiz.register.portletPart.register( ), E.loadStyle(["/style.css"]), ibiz.register.portletPart.register(
"PORTLET_CUSTOM_JskqWebPortalSearchHeader", "PORTLET_CUSTOM_JskqWebPortalSearchHeader",
new Re() new Fe()
), ibiz.register.portletPart.register( ), ibiz.register.portletPart.register(
"PORTLET_CUSTOM_jskqWebPortalMapArea", "PORTLET_CUSTOM_jskqWebPortalMapArea",
new Qe() new Qe()
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册