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

feat: 更新插件

上级 b52fff0b
var Z = Object.defineProperty; var J = Object.defineProperty;
var ee = (t, n, s) => n in t ? Z(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s; var G = (t, n, s) => n in t ? J(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
var b = (t, n, s) => (ee(t, typeof n != "symbol" ? n + "" : n, s), s); var v = (t, n, s) => (G(t, typeof n != "symbol" ? n + "" : n, s), s);
import { PluginStaticResource as te, ViewMode as se } from "@ibiz-template/runtime"; import { PluginStaticResource as Q, ViewMode as X } from "@ibiz-template/runtime";
import { ref as k, watch as _, defineComponent as S, getCurrentInstance as O, computed as N, onMounted as z, h as a, toRefs as U, reactive as ae, nextTick as F, toRef as ne } from "vue"; import { ref as C, watch as M, defineComponent as D, getCurrentInstance as V, computed as A, onMounted as z, h as a, toRefs as F, reactive as Z, nextTick as $, toRef as ee } from "vue";
import { useRouter as H, useRoute as B, useIndexViewController as re, useNamespace as q, useControlController as oe, usePropsWatch as ie, useListController as le, useListExpViewController as ce, useRouteKey as de, getUploadProps as ue, getEditorEmits as pe, useMPickupViewController as he, useTreeController as me } from "@ibiz-template/vue-util"; import { useRouter as B, useRoute as te, useIndexViewController as se, useNamespace as S, useControlController as ae, usePropsWatch as ne, useListController as re, useListExpViewController as oe, useRouteKey as ie, getUploadProps as le, getEditorEmits as ce, useMPickupViewController as de, useTreeController as ue } from "@ibiz-template/vue-util";
import { createUUID as fe } from "qx-util"; import { createUUID as R } from "qx-util";
import { IndexViewModel as ge, PortletPartModel as ye, ViewPortletModel as ve, ListModel as W, TreeModel as xe } from "@ibiz-template/model"; import { IndexViewModel as pe, PortletPartModel as he, ViewPortletModel as me, ListModel as U, TreeModel as fe } from "@ibiz-template/model";
import K from "dayjs"; import j from "dayjs";
import { CustomPortletController as Ce, ViewPortletController as be, EditFormController as ke, ListController as we, UploadEditorController as Pe, FormMDCtrlController as De } from "@ibiz-template/controller"; import { CustomPortletController as ge, ViewPortletController as ye, EditFormController as ve, ListController as xe, UploadEditorController as Ce, FormMDCtrlController as be } from "@ibiz-template/controller";
import { init as Y, registerMap as Se } from "echarts"; import { init as H, registerMap as ke } from "echarts";
import { mergeDeepRight as qe } from "ramda"; import { mergeDeepRight as we } from "ramda";
import { Treeselect as _e } from "@riophae/vue-treeselect"; import { Treeselect as Pe } from "@riophae/vue-treeselect";
const E = new te(import.meta.url); const E = new Q(import.meta.url);
class Me { class De {
constructor() { constructor() {
b(this, "component", "UserIndexView"); v(this, "component", "UserIndexView");
} }
} }
const Ee = (t) => { const Se = (t) => {
const { view2: n, params2: s, params1: e } = t.params; const { view2: n, params2: s, params1: e } = t.params;
if (!n) if (!n)
return ""; return "";
...@@ -26,36 +26,47 @@ const Ee = (t) => { ...@@ -26,36 +26,47 @@ const Ee = (t) => {
"" ""
); );
return o = o || ibiz.env.routePlaceholder, `/${e}/${n}/${o}`; return o = o || ibiz.env.routePlaceholder, `/${e}/${n}/${o}`;
}, Te = (t) => { }, qe = (t) => {
const { view1: n, appContext: s } = t.params; const { view1: n, appContext: s } = t.params;
return `/${s}/${n}/${ibiz.env.routePlaceholder}`; return `/${s}/${n}/${ibiz.env.routePlaceholder}`;
}; };
function Ie(t, n) { function _e(t, n) {
const s = H(t), e = k(""), o = k(""), r = k([]), d = k([]), f = (l) => { const s = B(t), e = C(""), o = C(""), r = C([]), d = C([]), g = (h) => {
l.forEach((p) => { h.forEach((u) => {
const x = r.value.indexOf(p); const c = r.value.indexOf(u);
x !== -1 && r.value.splice(x, 1); if (c !== -1) {
const w = d.value.findIndex((v) => v.key === p); r.value.splice(c, 1);
w !== -1 && d.value.splice(w, 1); const l = d.value.findIndex((m) => m.key === u);
d.value.splice(l, 1);
}
}); });
}; };
_( return M(
e,
(h, u) => {
if (h !== u && h) {
const c = r.value.indexOf(h);
c === -1 || r.value.splice(c, 1), r.value.unshift(h);
}
},
{ immediate: !0 }
), M(
() => t.$route.path, () => t.$route.path,
(l, p) => { (h, u) => {
if (l !== p) { if (h !== u) {
const x = B(t); const c = te(t);
e.value = Ee(x), o.value = Te(x); e.value = Se(c), o.value = qe(c);
const w = d.value.find( const l = d.value.find(
(v) => v.key === e.value (m) => m.key === e.value
); );
if (w) if (l)
w.fullPath = x.fullPath; l.fullPath = c.fullPath;
else { else {
if (l === o.value) if (h === o.value)
return; return;
d.value.push({ d.value.push({
key: e.value, key: e.value,
fullPath: x.fullPath, fullPath: c.fullPath,
modelPath: "", modelPath: "",
caption: "" caption: ""
}); });
...@@ -63,78 +74,28 @@ function Ie(t, n) { ...@@ -63,78 +74,28 @@ function Ie(t, n) {
} }
}, },
{ deep: !0, immediate: !0 } { deep: !0, immediate: !0 }
), _( ), {
e,
(l, p) => {
if (l !== p && l) {
const x = r.value.indexOf(l);
x === -1 || r.value.splice(x, 1), r.value.unshift(l);
}
},
{ immediate: !0 }
);
const i = async (l, p) => {
const x = d.value.find((w) => w.key === e.value);
x && (p.caption && (x.caption = p.caption), p.modelPath && (x.modelPath = p.modelPath));
}, h = (l = e.value) => {
f([l]);
const p = r.value[0];
if (!p)
n.model.source.blankMode ? window.close() : (e.value = "", s.push(o.value));
else {
const x = d.value.find((w) => w.key === p);
s.push(x.fullPath);
}
}, g = (l) => {
const p = d.value[l];
p && s.push(p.fullPath);
}, y = () => {
const p = B(t).fullPath;
let x = p.indexOf("/");
for (let v = 0; v < 2; v++)
x = p.indexOf("/", x + 1);
const w = `${p.substring(0, x)}/-`;
s.push(w);
}, u = () => {
if (r.value.length > 0) {
const l = d.value.find(
(p) => p.key === r.value[0]
);
l && s.push(l.fullPath);
} else
y();
};
return {
currentKey: e, currentKey: e,
keyHistory: r, keyHistory: r,
routeMsgs: d, routeMsgs: d,
updateRouteMsg: i, updateRouteMsg: (h, u) => {
closeView: h, const c = d.value.find((l) => l.key === e.value);
deleteRouteCache: f, c && (u.caption && (c.caption = u.caption), u.modelPath && (c.modelPath = u.modelPath));
handleTabClick: g,
handleTabDelete: (l) => {
const p = d.value[l];
p && (f([p.key]), u());
}, },
handleCloseAll: () => { closeView: (h = e.value) => {
if (d.value.length > 0) { g([h]);
const l = []; const u = r.value[0];
d.value.forEach((p) => { if (!u)
l.push(p.key); n.model.source.blankMode ? (window.callback && window.callback(), window.close()) : (e.value = "", s.push(o.value));
}), f(l), u(); else {
const c = d.value.find((l) => l.key === u);
s.push(c.fullPath);
} }
}, },
handleCloseOther: () => { deleteRouteCache: g
if (d.value.length > 0) {
const l = [];
d.value.forEach((p) => {
p.key !== e.value && l.push(p.key);
}), f(l), u();
}
}
}; };
} }
const Ve = /* @__PURE__ */ S({ const Me = /* @__PURE__ */ D({
__name: "index-view", __name: "index-view",
props: { props: {
context: null, context: null,
...@@ -142,93 +103,91 @@ const Ve = /* @__PURE__ */ S({ ...@@ -142,93 +103,91 @@ const Ve = /* @__PURE__ */ S({
modelPath: null modelPath: null
}, },
setup(t) { setup(t) {
const n = t, { proxy: s } = O(), e = re(s, n.modelPath), o = !0; const n = t, { proxy: s } = V(), e = se(s, n.modelPath), o = !1;
let r = null, d = null, f = () => { let r = null, d = null, g = () => {
}, i = null, h = null, g = null, y = null, u = null, c, m, C, l; }, i = null, p = null, h = null, u = null, c = null, l, m, y, f;
const p = k(fe()); const b = C(R());
{ {
const { const {
currentKey: w, currentKey: q,
keyHistory: v, keyHistory: x,
routeMsgs: D, routeMsgs: w,
updateRouteMsg: P, updateRouteMsg: k,
closeView: R, closeView: N,
deleteRouteCache: L, deleteRouteCache: L
handleTabClick: I, } = _e(s, e);
handleTabDelete: V, m = q, y = x, f = w, i = L, r = (P) => {
handleCloseAll: T, const _ = m.value;
handleCloseOther: Q P.evt.on("closeView", () => {
} = Ie(s, e); N(_);
m = w, C = v, l = D, i = L, h = I, g = V, y = T, u = Q, r = (M) => { }), P.evt.on("setTitle", (I) => {
const A = m.value; k(_, { caption: I });
M.evt.on("closeView", () => {
R(A);
}), M.evt.on("setTitle", (X) => {
P(A, { caption: X });
}); });
}, d = (M) => { }, d = (P) => {
P(m.value, M); k(m.value, P);
}, g = () => {
i(y.value.slice(1)), b.value = R();
}, window.onpopstate = () => { }, window.onpopstate = () => {
i([C.value[1]]); i([y.value[1]]);
}, c = N(() => { }, l = A(() => {
const M = l.value.find( const P = f.value.find(
(A) => A.key === m.value (_) => _.key === m.value
); );
return (M == null ? void 0 : M.modelPath) || ""; return (P == null ? void 0 : P.modelPath) || "";
}); });
} }
return z(() => { return z(() => {
setTimeout(() => { setTimeout(() => {
const w = document.querySelector(".app-loading-x"); const q = document.querySelector(".app-loading-x");
w && (w.style.display = "none"); q && (q.style.display = "none");
}, 300); }, 300);
}), { __sfc: !0, props: n, proxy: s, c: e, isShowTabPageExp: o, onCreated: r, onViewFound: d, onMenuRouteChange: f, deleteRouteCache: i, handleTabClick: h, handleTabDelete: g, handleCloseAll: y, handleCloseOther: u, currentPath: c, currentKey: m, keyHistory: C, routeMsgs: l, appKeepAliveKey: p, collapseChange: (w) => { }), { __sfc: !0, props: n, proxy: s, c: e, isShowTabPageExp: o, onCreated: r, onViewFound: d, onMenuRouteChange: g, deleteRouteCache: i, handleTabClick: p, handleTabDelete: h, handleCloseAll: u, handleCloseOther: c, currentPath: l, currentKey: m, keyHistory: y, routeMsgs: f, appKeepAliveKey: b, collapseChange: (q) => {
e.collapseChange = w; e.collapseChange = q;
} }; } };
} }
}); });
function Oe(t, n, s, e, o, r, d, f) { function Ee(t, n, s, e, o, r, d, g) {
var i = typeof t == "function" ? t.options : t; var i = typeof t == "function" ? t.options : t;
n && (i.render = n, i.staticRenderFns = s, i._compiled = !0), e && (i.functional = !0), r && (i._scopeId = "data-v-" + r); n && (i.render = n, i.staticRenderFns = s, i._compiled = !0), e && (i.functional = !0), r && (i._scopeId = "data-v-" + r);
var h; var p;
if (d ? (h = function(u) { if (d ? (p = function(c) {
u = u || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !u && typeof __VUE_SSR_CONTEXT__ < "u" && (u = __VUE_SSR_CONTEXT__), o && o.call(this, u), u && u._registeredComponents && u._registeredComponents.add(d); c = c || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ < "u" && (c = __VUE_SSR_CONTEXT__), o && o.call(this, c), c && c._registeredComponents && c._registeredComponents.add(d);
}, i._ssrRegister = h) : o && (h = f ? function() { }, i._ssrRegister = p) : o && (p = g ? function() {
o.call( o.call(
this, this,
(i.functional ? this.parent : this).$root.$options.shadowRoot (i.functional ? this.parent : this).$root.$options.shadowRoot
); );
} : o), h) } : o), p)
if (i.functional) { if (i.functional) {
i._injectStyles = h; i._injectStyles = p;
var g = i.render; var h = i.render;
i.render = function(c, m) { i.render = function(l, m) {
return h.call(m), g(c, m); return p.call(m), h(l, m);
}; };
} else { } else {
var y = i.beforeCreate; var u = i.beforeCreate;
i.beforeCreate = y ? [].concat(y, h) : [h]; i.beforeCreate = u ? [].concat(u, p) : [p];
} }
return { return {
exports: t, exports: t,
options: i options: i
}; };
} }
var ze = function() { var Ie = function() {
var n = this, s = n._self._c, e = n._self._setupProxy; var n = this, s = n._self._c, e = n._self._setupProxy;
return s("UserAppLayout", { attrs: { "is-complete": e.c.complete, model: e.c.model, "is-show-tab-page-exp": e.isShowTabPageExp }, on: { onCollapseChange: e.collapseChange } }, [e.c.complete ? [e.c.complete ? s("app-menu", { attrs: { slot: "menu", "current-path": e.currentPath, "model-data": e.c.model.appMenu, context: e.c.context, "collapse-change": e.c.collapseChange }, on: { menuRouteChange: e.onMenuRouteChange }, slot: "menu" }) : n._e(), e.isShowTabPageExp ? s("user-tab-page-exp", { attrs: { slot: "tabPageExp", "route-msgs": e.routeMsgs, "current-key": e.currentKey }, on: { "tab-click": e.handleTabClick, "tab-delete": e.handleTabDelete, "close-all": e.handleCloseAll, "close-other": e.handleCloseOther }, slot: "tabPageExp" }) : n._e(), e.isShowTabPageExp ? s("AppKeepAlive", { attrs: { "key-list": e.keyHistory } }, [s("router-view", { key: e.currentKey, on: { neuronInit: e.onCreated, viewFound: e.onViewFound } })], 1) : s("AppKeepAlive", { key: e.appKeepAliveKey, attrs: { "key-list": e.keyHistory } }, [s("router-view", { key: e.currentKey, on: { neuronInit: e.onCreated, viewFound: e.onViewFound } })], 1)] : n._e()], 2); return s("UserAppLayout", { attrs: { "is-complete": e.c.complete, model: e.c.model, "is-show-tab-page-exp": e.isShowTabPageExp }, on: { onCollapseChange: e.collapseChange } }, [e.c.complete ? [e.c.complete ? s("app-menu", { attrs: { slot: "menu", "current-path": e.currentPath, "model-data": e.c.model.appMenu, context: e.c.context, "collapse-change": e.c.collapseChange }, on: { menuRouteChange: e.onMenuRouteChange }, slot: "menu" }) : n._e(), e.isShowTabPageExp ? s("user-tab-page-exp", { attrs: { slot: "tabPageExp", "route-msgs": e.routeMsgs, "current-key": e.currentKey }, on: { "tab-click": e.handleTabClick, "tab-delete": e.handleTabDelete, "close-all": e.handleCloseAll, "close-other": e.handleCloseOther }, slot: "tabPageExp" }) : n._e(), e.isShowTabPageExp ? s("AppKeepAlive", { attrs: { "key-list": e.keyHistory } }, [s("router-view", { key: e.currentKey, on: { neuronInit: e.onCreated, viewFound: e.onViewFound } })], 1) : s("AppKeepAlive", { key: e.appKeepAliveKey, attrs: { "key-list": e.keyHistory } }, [s("router-view", { key: e.currentKey, on: { neuronInit: e.onCreated, viewFound: e.onViewFound } })], 1)] : n._e()], 2);
}, Le = [], Ae = /* @__PURE__ */ Oe( }, Ve = [], Te = /* @__PURE__ */ Ee(
Me,
Ie,
Ve, Ve,
ze,
Le,
!1, !1,
null, null,
null, null,
null, null,
null null
); );
const je = Ae.exports; const ze = Te.exports;
function Ke(t, n) { function Le(t, n) {
return a("div", { return a("div", {
class: t.e("logo") class: t.e("logo")
}, [a("img", { }, [a("img", {
...@@ -240,11 +199,11 @@ function Ke(t, n) { ...@@ -240,11 +199,11 @@ function Ke(t, n) {
class: t.e("logo-caption") class: t.e("logo-caption")
}, [n.caption])]); }, [n.caption])]);
} }
const Ne = S({ const Oe = D({
name: "UserAppLayout", name: "UserAppLayout",
props: { props: {
model: { model: {
type: ge, type: pe,
required: !0 required: !0
}, },
isComplete: { isComplete: {
...@@ -260,33 +219,33 @@ const Ne = S({ ...@@ -260,33 +219,33 @@ const Ne = S({
emit: n, emit: n,
slots: s slots: s
}) { }) {
var C; var y;
const e = q("layout"), o = k(!1), r = () => { const e = S("layout"), o = C(!1), r = () => {
o.value = !o.value, n("onCollapseChange", o.value); o.value = !o.value, n("onCollapseChange", o.value);
}, d = N(() => t.model.source.blankMode === !0), f = async () => { }, d = A(() => t.model.source.blankMode === !0), g = async () => {
var p; var b;
const l = (p = s.menu) == null ? void 0 : p.call(s)[0].componentInstance; const f = (b = s.menu) == null ? void 0 : b.call(s)[0].componentInstance;
l && l.c && await l.c.onClickMenuItem("menuitem46"); f && f.c && await f.c.onClickMenuItem("menuitem46");
}, { }, {
srfusername: i = "\u6E38\u5BA2", srfusername: i = "\u6E38\u5BA2",
srforgsectorname: h srforgsectorname: p
} = ((C = ibiz.appData) == null ? void 0 : C.context) || {}, { } = ((y = ibiz.appData) == null ? void 0 : y.context) || {}, {
proxy: g proxy: h
} = O(), y = H(g), u = async () => { } = V(), u = B(h), c = async () => {
(await ibiz.auth.v7logout()).ok ? (ibiz.message.success("\u767B\u51FA\u6210\u529F"), y.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"), u.push(`/login?ru=${encodeURIComponent(window.location.hash.replace("#/", "/"))}`)) : ibiz.message.error("\u767B\u51FA\u5931\u8D25");
}, c = k(!0); }, l = C(!0);
return { return {
ns: e, ns: e,
collapseChange: o, collapseChange: o,
isBlank: d, isBlank: d,
collapseMenus: r, collapseMenus: r,
openView: f, openView: g,
srfusername: i, srfusername: i,
srforgsectorname: h, srforgsectorname: p,
clickOut: u, clickOut: c,
isShowOpt: c, isShowOpt: l,
changeShowOpt: () => { changeShowOpt: () => {
c.value = !c.value; l.value = !l.value;
} }
}; };
}, },
...@@ -299,7 +258,7 @@ const Ne = S({ ...@@ -299,7 +258,7 @@ const Ne = S({
value: this.collapseChange value: this.collapseChange
}, },
class: [this.ns.b("nav"), this.ns.is("collapse", this.collapseChange)] class: [this.ns.b("nav"), this.ns.is("collapse", this.collapseChange)]
}, [Ke(this.ns, this.model), a("div", { }, [Le(this.ns, this.model), a("div", {
class: this.ns.b("option") class: this.ns.b("option")
}, [a("i-poptip", { }, [a("i-poptip", {
attrs: { attrs: {
...@@ -387,19 +346,19 @@ const Ne = S({ ...@@ -387,19 +346,19 @@ const Ne = S({
}, [this.$slots.tabPageExp, this.$slots.default])])]) : null; }, [this.$slots.tabPageExp, this.$slots.default])])]) : null;
} }
}); });
class J extends Ce { class W extends ge {
constructor() { constructor() {
super(...arguments); super(...arguments);
b(this, "options", []); v(this, "options", []);
b(this, "kqrq", ""); v(this, "kqrq", "");
b(this, "rylx", ""); v(this, "rylx", "");
} }
async onInit() { async onInit() {
await super.onInit(), this.options = await ibiz.codeListService.get( await super.onInit(), this.options = await ibiz.codeListService.get(
"UsrCodeList0402031972", "UsrCodeList0402031972",
this.context, this.context,
this.params this.params
), this.context.srforgcode && (this.params.orgcode = this.context.srforgcode), this.kqrq = K().subtract(1, "day").startOf("day").format("YYYY-MM-DD"), this.rylx = this.options.map((s) => s.value).join(","), this.changeViewParams(); ), this.context.srforgcode && (this.params.orgcode = this.context.srforgcode), this.kqrq = j().subtract(1, "day").startOf("day").format("YYYY-MM-DD"), this.rylx = this.options.map((s) => s.value).join(","), this.changeViewParams();
} }
changeViewParams() { changeViewParams() {
this.dashboard.setContextOrParams( this.dashboard.setContextOrParams(
...@@ -413,34 +372,34 @@ class J extends Ce { ...@@ -413,34 +372,34 @@ class J extends Ce {
); );
} }
} }
const $e = S({ const je = D({
name: "PortletSearchHeader", name: "PortletSearchHeader",
props: { props: {
modelData: { modelData: {
type: ye, type: he,
required: !0 required: !0
}, },
controller: { controller: {
type: J, type: W,
required: !0 required: !0
} }
}, },
setup(t) { setup(t) {
const n = q("portal-search-header"), s = k([]), e = k(new Date()), o = (i) => { const n = S("portal-search-header"), s = C([]), e = C(new Date()), o = (i) => {
s.value = i, t.controller.rylx = i.join(","), t.controller.changeViewParams(); s.value = i, t.controller.rylx = i.join(","), t.controller.changeViewParams();
}, r = (i) => { }, r = (i) => {
e.value = i, t.controller.kqrq = i ? K(i).format("YYYY-MM-DD") : "", t.controller.changeViewParams(); e.value = i, t.controller.kqrq = i ? j(i).format("YYYY-MM-DD") : "", t.controller.changeViewParams();
}; };
e.value = new Date(t.controller.kqrq), s.value = t.controller.rylx.split(","); e.value = new Date(t.controller.kqrq), s.value = t.controller.rylx.split(",");
const d = K(); const d = j();
return { return {
ns: n, ns: n,
selectArray: s, selectArray: s,
selectDate: e, selectDate: e,
options: { options: {
disabledDate: (i) => { disabledDate: (i) => {
const h = K(i); const p = j(i);
return d.isSame(h, "day") || d.isBefore(h, "day"); return d.isSame(p, "day") || d.isBefore(p, "day");
} }
}, },
onSelectArrayChange: o, onSelectArrayChange: o,
...@@ -481,12 +440,12 @@ const $e = S({ ...@@ -481,12 +440,12 @@ const $e = S({
})]); })]);
} }
}); });
class Re { class Ae {
constructor() { constructor() {
b(this, "component", $e); v(this, "component", je);
} }
async createController(n, s, e) { async createController(n, s, e) {
const o = new J( const o = new W(
n, n,
s, s,
e e
...@@ -494,17 +453,17 @@ class Re { ...@@ -494,17 +453,17 @@ class Re {
return await o.init(), o; return await o.init(), o;
} }
} }
class G extends be { class Y extends ye {
constructor() { constructor() {
super(...arguments); super(...arguments);
b(this, "data", {}); v(this, "data", {});
b(this, "mapData", []); v(this, "mapData", []);
b(this, "pointData", []); v(this, "pointData", []);
b(this, "form"); v(this, "form");
b(this, "hasLoad", !1); v(this, "hasLoad", !1);
b(this, "isloading", !1); v(this, "isloading", !1);
b(this, "entityService"); v(this, "entityService");
b(this, "pointClicked", !1); v(this, "pointClicked", !1);
} }
async onInit() { async onInit() {
await super.onInit(), await this.model.embedView.init(); await super.onInit(), await this.model.embedView.init();
...@@ -512,7 +471,7 @@ class G extends be { ...@@ -512,7 +471,7 @@ class G extends be {
this.entityService = await ibiz.entityService.getService( this.entityService = await ibiz.entityService.getService(
s.appEntity.codeName, s.appEntity.codeName,
this.context this.context
), this.form = new ke(s, this.context, { ), this.form = new ve(s, this.context, {
...this.params ...this.params
}), await this.form.init(), this.dashboard.nerve.self.evt.on("mounted", () => { }), await this.form.init(), this.dashboard.nerve.self.evt.on("mounted", () => {
this.load(); this.load();
...@@ -578,7 +537,7 @@ class G extends be { ...@@ -578,7 +537,7 @@ class G extends be {
); );
} }
} }
const j = S({ const O = D({
name: "RingChart", name: "RingChart",
props: { props: {
percent: { percent: {
...@@ -595,11 +554,11 @@ const j = S({ ...@@ -595,11 +554,11 @@ const j = S({
} }
}, },
setup(t) { setup(t) {
const n = q("ring-chart"), s = k(); const n = S("ring-chart"), s = C();
let e; let e;
const o = N(() => { const o = A(() => {
const h = 100 / t.colors.length, g = Math.round(t.percent / h); const p = 100 / t.colors.length, h = Math.round(t.percent / p);
return t.colors[g]; return t.colors[h];
}), r = () => ({ }), r = () => ({
tooltip: { tooltip: {
trigger: "item" trigger: "item"
...@@ -622,8 +581,8 @@ const j = S({ ...@@ -622,8 +581,8 @@ const j = S({
label: { label: {
show: !1, show: !1,
position: "center", position: "center",
formatter(h) { formatter(p) {
return [`{a|${`${h.percent * 2}%`}}`, `{b|${t.text}}`].join(` return [`{a|${`${p.percent * 2}%`}}`, `{b|${t.text}}`].join(`
`); `);
}, },
rich: { rich: {
...@@ -661,14 +620,14 @@ const j = S({ ...@@ -661,14 +620,14 @@ const j = S({
}] }]
}); });
z(() => { z(() => {
e = Y(s.value), e.setOption(r()); e = H(s.value), e.setOption(r());
}); });
const { const {
percent: d, percent: d,
colors: f, colors: g,
text: i text: i
} = U(t); } = F(t);
return _([d, f, i], () => { return M([d, g, i], () => {
e && (e.setOption(r()), e.resize()); e && (e.setOption(r()), e.resize());
}), window.addEventListener("resize", () => { }), window.addEventListener("resize", () => {
e == null || e.resize(); e == null || e.resize();
...@@ -683,85 +642,85 @@ const j = S({ ...@@ -683,85 +642,85 @@ const j = S({
ref: "chartRef" ref: "chartRef"
}); });
} }
}), Fe = ["#FF0700", "#FFF400", "#73A0FA"], Be = { }), Ke = ["#FF0700", "#FFF400", "#73A0FA"], Ne = {
strMapCode: !0, strMapCode: !0,
visualMap: { visualMap: {
text: ["\u9AD8", "\u4F4E"], text: ["\u9AD8", "\u4F4E"],
min: 0, min: 0,
max: 100, max: 100,
rangeColor: Fe rangeColor: Ke
}, },
pointSymbol: "pin" pointSymbol: "pin"
}, Ue = "/assets/json/map/jiangsu/{id}.json"; }, $e = "/assets/json/map/jiangsu/{id}.json";
async function He(t) { async function Re(t) {
return (await ibiz.net.axios({ return (await ibiz.net.axios({
url: E.dir(Ue.replace("{id}", t)) url: E.dir($e.replace("{id}", t))
})).data; })).data;
} }
function We(t, n) { function Fe(t, n) {
const s = /* @__PURE__ */ new Map(), e = k(""), o = k([]); const s = /* @__PURE__ */ new Map(), e = C(""), o = C([]);
let r; let r;
const d = k(), f = (c) => { const d = C(), g = (l) => {
const m = { const m = {
cityNames: {}, cityNames: {},
noChild: c.features.length === 1 noChild: l.features.length === 1
}; };
return c.features.forEach((C) => { return l.features.forEach((y) => {
const { adcode: l, name: p } = C.properties; const { adcode: f, name: b } = y.properties;
m.cityNames[l] = p; m.cityNames[f] = b;
}), m; }), m;
}, i = async (c) => { }, i = async (l) => {
if (s.has(c)) if (s.has(l))
return; return;
const m = await He(c); const m = await Re(l);
s.set(c, f(m)), Se(c, m); s.set(l, g(m)), ke(l, m);
}, h = (c) => { }, p = (l) => {
const m = s.get(e.value); const m = s.get(e.value);
if (m) if (m)
return m.cityNames[c]; return m.cityNames[l];
}, g = () => { }, h = () => {
const c = t(e.value); const l = t(e.value);
r.setOption(c), r.resize(); r.setOption(l), r.resize();
}, y = async (c, m = !1) => { }, u = async (l, m = !1) => {
m || n("mapChange", { name: c }), s.has(c) || await i(c), e.value = c, o.value.push(c), g(); m || n("mapChange", { name: l }), s.has(l) || await i(l), e.value = l, o.value.push(l), h();
}, u = () => { }, c = () => {
if (o.value.length > 1) { if (o.value.length > 1) {
o.value.pop(); o.value.pop();
const c = o.value.pop(); const l = o.value.pop();
y(c); u(l);
} }
}; };
return z(() => { return z(() => {
r = Y(d.value), window.addEventListener("resize", () => { r = H(d.value), window.addEventListener("resize", () => {
r == null || r.resize(); r == null || r.resize();
}), r.on("click", (c) => { }), r.on("click", (l) => {
if (c.componentType === "series" && c.seriesType === "scatter") { if (l.componentType === "series" && l.seriesType === "scatter") {
n("pointClick", c.data); n("pointClick", l.data);
return; return;
} }
c.name !== e.value && y(c.name); l.name !== e.value && u(l.name);
}), r.on("mouseover", function(c) { }), r.on("mouseover", function(l) {
if (c.componentType === "series" && c.seriesType === "scatter") { if (l.componentType === "series" && l.seriesType === "scatter") {
const m = c.dataIndex, C = r.getOption(), l = C.series[c.seriesIndex].data, p = C.series[c.seriesIndex].symbolSize; const m = l.dataIndex, y = r.getOption(), f = y.series[l.seriesIndex].data, b = y.series[l.seriesIndex].symbolSize;
l[m].symbolSize = p + 10, r.setOption(C); f[m].symbolSize = b + 10, r.setOption(y);
} }
}), r.on("mouseout", function(c) { }), r.on("mouseout", function(l) {
if (c.componentType === "series" && c.seriesType === "scatter") { if (l.componentType === "series" && l.seriesType === "scatter") {
const m = c.dataIndex, C = r.getOption(), l = C.series[c.seriesIndex].data; const m = l.dataIndex, y = r.getOption(), f = y.series[l.seriesIndex].data;
delete l[m].symbolSize, r.setOption(C); delete f[m].symbolSize, r.setOption(y);
} }
}); });
}), { }), {
chartRef: d, chartRef: d,
historyNames: o, historyNames: o,
currenName: e, currenName: e,
changeMap: y, changeMap: u,
getCityName: h, getCityName: p,
goBack: u, goBack: c,
refresh: g refresh: h
}; };
} }
const Ye = S({ const Be = D({
name: "MapChart", name: "MapChart",
props: { props: {
mapData: { mapData: {
...@@ -783,20 +742,20 @@ const Ye = S({ ...@@ -783,20 +742,20 @@ const Ye = S({
setup(t, { setup(t, {
emit: n emit: n
}) { }) {
const s = q("map-chart"), e = N(() => qe(Be, t.options)), { const s = S("map-chart"), e = A(() => we(Ne, t.options)), {
chartRef: o, chartRef: o,
historyNames: r, historyNames: r,
changeMap: d, changeMap: d,
getCityName: f, getCityName: g,
goBack: i, goBack: i,
refresh: h refresh: p
} = We((u) => { } = Fe((c) => {
const { const {
visualMap: c, visualMap: l,
pointSymbol: m pointSymbol: m
} = e.value, C = { } = e.value, y = {
geo: { geo: {
map: u map: c
}, },
tooltip: { tooltip: {
trigger: "item", trigger: "item",
...@@ -809,32 +768,32 @@ const Ye = S({ ...@@ -809,32 +768,32 @@ const Ye = S({
extraCssText: "backdrop-filter: blur(3px);" extraCssText: "backdrop-filter: blur(3px);"
}, },
visualMap: { visualMap: {
min: c.min, min: l.min,
max: c.max, max: l.max,
text: c.text, text: l.text,
realtime: !1, realtime: !1,
hoverLink: !1, hoverLink: !1,
inRange: { inRange: {
color: c.rangeColor color: l.rangeColor
} }
}, },
series: [ series: [
{ {
type: "map", type: "map",
map: u, map: c,
nameProperty: e.value.strMapCode ? "adcodeStr" : "adcode", nameProperty: e.value.strMapCode ? "adcodeStr" : "adcode",
tooltip: { tooltip: {
formatter: (l) => { formatter: (f) => {
const p = f(l.name), x = t.mapData.find((w) => w.name == l.name); const b = g(f.name), T = t.mapData.find((q) => q.name == f.name);
if (!!x) if (!!T)
return ` return `
<div style='display:flex;justify-content: space-between;'> <div style='display:flex;justify-content: space-between;'>
<span>${p}</span> <span>${b}</span>
<span>${x.zcrs}</span> <span>${T.zcrs}</span>
</div> </div>
<div style='display:flex;justify-content: space-between;'> <div style='display:flex;justify-content: space-between;'>
<span>\u6B63\u5E38\u7387\uFF1A</span> <span>\u6B63\u5E38\u7387\uFF1A</span>
<span>${x.zcl}</span> <span>${T.zcl}</span>
</div> </div>
`; `;
} }
...@@ -843,19 +802,19 @@ const Ye = S({ ...@@ -843,19 +802,19 @@ const Ye = S({
show: !0, show: !0,
color: "#000000", color: "#000000",
fontSize: 11, fontSize: 11,
formatter: (l) => f(l.name) formatter: (f) => g(f.name)
}, },
select: { select: {
disabled: !0 disabled: !0
}, },
data: t.mapData.map((l) => ({ data: t.mapData.map((f) => ({
name: l.name, name: f.name,
value: l.value value: f.value
})) }))
} }
] ]
}; };
return t.pointData && C.series.push({ return t.pointData && y.series.push({
type: "scatter", type: "scatter",
coordinateSystem: "geo", coordinateSystem: "geo",
symbol: m, symbol: m,
...@@ -869,43 +828,43 @@ const Ye = S({ ...@@ -869,43 +828,43 @@ const Ye = S({
color: "#000000", color: "#000000",
fontSize: 10, fontSize: 10,
textShadowBlur: 0, textShadowBlur: 0,
formatter: (l) => l.data.title, formatter: (f) => f.data.title,
position: "left", position: "left",
offset: [10, -15] offset: [10, -15]
}, },
tooltip: { tooltip: {
formatter: (l) => { formatter: (f) => {
const p = l.data; const b = f.data;
return ` return `
<div style='display:flex;justify-content: space-between;'> <div style='display:flex;justify-content: space-between;'>
<span>${p.title}</span> <span>${b.title}</span>
<span>${p.zcrs}</span> <span>${b.zcrs}</span>
</div> </div>
<div style='display:flex;justify-content: space-between;'> <div style='display:flex;justify-content: space-between;'>
<span>\u6B63\u5E38\u7387\uFF1A</span> <span>\u6B63\u5E38\u7387\uFF1A</span>
<span>${p.zcl}</span> <span>${b.zcl}</span>
</div> </div>
`; `;
} }
}, },
data: t.pointData.map((l) => ({ data: t.pointData.map((f) => ({
...l, ...f,
value: [Number(l.jd), Number(l.wd)], value: [Number(f.jd), Number(f.wd)],
visualMap: !1 visualMap: !1
})) }))
}), C; }), y;
}, (u, c) => { }, (c, l) => {
u === "mapChange" ? n("mapChange", c.name) : n(u, c); c === "mapChange" ? n("mapChange", l.name) : n(c, l);
}); });
z(() => { z(() => {
d(t.defaultMapName, !0); d(t.defaultMapName, !0);
}); });
const { const {
mapData: g, mapData: h,
pointData: y pointData: u
} = U(t); } = F(t);
return _([g, y], () => { return M([h, u], () => {
h(); p();
}), { }), {
ns: s, ns: s,
chartRef: o, chartRef: o,
...@@ -928,20 +887,20 @@ const Ye = S({ ...@@ -928,20 +887,20 @@ const Ye = S({
} }
}, ["\u8FD4\u56DE"])]); }, ["\u8FD4\u56DE"])]);
} }
}), Je = `image://${E.dir("/assets/img/fiveStars.png")}`, Ge = S({ }), Ue = `image://${E.dir("/assets/img/fiveStars.png")}`, He = D({
name: "PortalMapArea", name: "PortalMapArea",
props: { props: {
modelData: { modelData: {
type: ve, type: me,
required: !0 required: !0
}, },
controller: { controller: {
type: G, type: Y,
required: !0 required: !0
} }
}, },
setup(t) { setup(t) {
const n = ae(t.controller), s = q("portal-map-area"); const n = Z(t.controller), s = S("portal-map-area");
return { return {
c: n, c: n,
ns: s ns: s
...@@ -963,12 +922,12 @@ const Ye = S({ ...@@ -963,12 +922,12 @@ const Ye = S({
} }
}) : null, a("div", { }) : null, a("div", {
class: this.ns.e("left") class: this.ns.e("left")
}, [a(j, { }, [a(O, {
attrs: { attrs: {
percent: this.c.data.zcl, percent: this.c.data.zcl,
text: `\u6B63\u5E38\u6570 ${this.c.data.zcrs}` text: `\u6B63\u5E38\u6570 ${this.c.data.zcrs}`
} }
}), a(j, { }), a(O, {
attrs: { attrs: {
percent: this.c.data.ycl, percent: this.c.data.ycl,
text: `\u5F02\u5E38\u6570 ${this.c.data.ycrs}` text: `\u5F02\u5E38\u6570 ${this.c.data.ycrs}`
...@@ -977,14 +936,14 @@ const Ye = S({ ...@@ -977,14 +936,14 @@ const Ye = S({
class: this.ns.e("center") class: this.ns.e("center")
}, [a("div", { }, [a("div", {
class: this.ns.e("title") class: this.ns.e("title")
}, [`${this.c.data.orgname} \u2014 ${this.c.data.yzrs}\u4EBA`]), a(Ye, { }, [`${this.c.data.orgname} \u2014 ${this.c.data.yzrs}\u4EBA`]), a(Be, {
class: this.ns.e("map"), class: this.ns.e("map"),
attrs: { attrs: {
mapData: this.c.mapData, mapData: this.c.mapData,
pointData: this.c.pointData, pointData: this.c.pointData,
defaultMapName: this.c.params.orgcode, defaultMapName: this.c.params.orgcode,
options: { options: {
pointSymbol: Je pointSymbol: Ue
} }
}, },
on: { on: {
...@@ -1004,12 +963,12 @@ const Ye = S({ ...@@ -1004,12 +963,12 @@ const Ye = S({
} }
}, ["\u8FD4\u56DE"])]), a("div", { }, ["\u8FD4\u56DE"])]), a("div", {
class: this.ns.e("right") class: this.ns.e("right")
}, [a(j, { }, [a(O, {
attrs: { attrs: {
percent: this.c.data.qjl, percent: this.c.data.qjl,
text: `\u8BF7\u5047\u4EBA\u6570 ${this.c.data.qjrs}` text: `\u8BF7\u5047\u4EBA\u6570 ${this.c.data.qjrs}`
} }
}), a(j, { }), a(O, {
attrs: { attrs: {
percent: this.c.data.xjl, percent: this.c.data.xjl,
text: `\u4F11\u5047\u4EBA\u6570 ${this.c.data.xjrs}` text: `\u4F11\u5047\u4EBA\u6570 ${this.c.data.xjrs}`
...@@ -1017,12 +976,12 @@ const Ye = S({ ...@@ -1017,12 +976,12 @@ const Ye = S({
})])]); })])]);
} }
}); });
class Qe { class We {
constructor() { constructor() {
b(this, "component", Ge); v(this, "component", He);
} }
async createController(n, s, e) { async createController(n, s, e) {
const o = new G( const o = new Y(
n, n,
s, s,
e e
...@@ -1030,12 +989,12 @@ class Qe { ...@@ -1030,12 +989,12 @@ class Qe {
return await o.init(), o; return await o.init(), o;
} }
} }
class Xe extends we { class Ye extends xe {
constructor() { constructor() {
super(...arguments); super(...arguments);
b(this, "unit", ""); v(this, "unit", "");
b(this, "isPercent", !1); v(this, "isPercent", !1);
b(this, "maxNum", 0); v(this, "maxNum", 0);
} }
async onInit() { async onInit() {
var s; var s;
...@@ -1051,13 +1010,13 @@ class Xe extends we { ...@@ -1051,13 +1010,13 @@ class Xe extends we {
}), s; }), s;
} }
} }
function Ze(t, n, s, e = {}) { function Je(t, n, s, e = {}) {
return oe(t, () => { return ae(t, () => {
const o = new Xe(n, s, e); const o = new Ye(n, s, e);
return ie(t, "mdCtrlActiveMode", o.setMdCtrlActiveMode.bind(o)), o; return ne(t, "mdCtrlActiveMode", o.setMdCtrlActiveMode.bind(o)), o;
}); });
} }
function et(t) { function Ge(t) {
return { handleClick: (e) => { return { handleClick: (e) => {
const o = t.selectedData.findIndex((r) => e.srfkey === r.srfkey); const o = t.selectedData.findIndex((r) => e.srfkey === r.srfkey);
if (t.singleSelect) if (t.singleSelect)
...@@ -1071,11 +1030,11 @@ function et(t) { ...@@ -1071,11 +1030,11 @@ function et(t) {
t.handleDblClick(e); t.handleDblClick(e);
} }; } };
} }
const tt = S({ const Qe = D({
name: "KqqkListControl", name: "KqqkListControl",
props: { props: {
modelData: { modelData: {
type: W, type: U,
required: !0 required: !0
}, },
context: { context: {
...@@ -1102,14 +1061,14 @@ const tt = S({ ...@@ -1102,14 +1061,14 @@ const tt = S({
setup(t) { setup(t) {
const { const {
proxy: n proxy: n
} = O(), s = q("kqqk-list"), e = Ze(n, t.modelData, t.context, t.params), { } = V(), s = S("kqqk-list"), e = Je(n, t.modelData, t.context, t.params), {
handleClick: o, handleClick: o,
handleDblClick: r handleDblClick: r
} = et(e), d = (i, h) => { } = Ge(e), d = (i, p) => {
const g = e.selectedData.findIndex((u) => u.srfkey === i.srfkey), y = [s.b("item"), s.is("active", g !== -1)]; const h = e.selectedData.findIndex((c) => c.srfkey === i.srfkey), u = [s.b("item"), s.is("active", h !== -1)];
return a("div", { return a("div", {
class: y, class: u,
key: i.srfkey + h, key: i.srfkey + p,
on: { on: {
click: () => o(i), click: () => o(i),
dblclick: () => r(i) dblclick: () => r(i)
...@@ -1128,7 +1087,7 @@ const tt = S({ ...@@ -1128,7 +1087,7 @@ const tt = S({
return { return {
c: e, c: e,
ns: s, ns: s,
renderListContent: () => e.items.map((i, h) => d(i, h)) renderListContent: () => e.items.map((i, p) => d(i, p))
}; };
}, },
render() { render() {
...@@ -1140,12 +1099,12 @@ const tt = S({ ...@@ -1140,12 +1099,12 @@ const tt = S({
}, [this.c.complete && [this.renderListContent()]]); }, [this.c.complete && [this.renderListContent()]]);
} }
}); });
class st { class Xe {
constructor() { constructor() {
b(this, "component", tt); v(this, "component", Qe);
} }
} }
function at(t) { function Ze(t) {
return { handleClick: (e) => { return { handleClick: (e) => {
const o = t.selectedData.findIndex((r) => e.srfkey === r.srfkey); const o = t.selectedData.findIndex((r) => e.srfkey === r.srfkey);
if (t.singleSelect) if (t.singleSelect)
...@@ -1159,11 +1118,11 @@ function at(t) { ...@@ -1159,11 +1118,11 @@ function at(t) {
t.handleDblClick(e); t.handleDblClick(e);
} }; } };
} }
const $ = S({ const K = D({
name: "ListExpControl", name: "ListExpControl",
props: { props: {
modelData: { modelData: {
type: W, type: U,
required: !0 required: !0
}, },
context: { context: {
...@@ -1194,63 +1153,63 @@ const $ = S({ ...@@ -1194,63 +1153,63 @@ const $ = S({
setup(t) { setup(t) {
const { const {
proxy: n proxy: n
} = O(), s = q("control-list"), e = le(n, t.modelData, t.context, t.params), { } = V(), s = S("control-list"), e = re(n, t.modelData, t.context, t.params), {
handleClick: o, handleClick: o,
handleDblClick: r handleDblClick: r
} = at(e); } = Ze(e);
let d = !0; let d = !0;
z(() => { z(() => {
_(() => e, (u, c) => { M(() => e, (c, l) => {
if (t.isExpView && u && u !== c) { if (t.isExpView && c && c !== l) {
let m = e.items[0]; let m = e.items[0];
if (t.defaultSelectKeys && t.defaultSelectKeys.length > 0) { if (t.defaultSelectKeys && t.defaultSelectKeys.length > 0) {
const C = e.items.find((l) => l.srfkey === t.defaultSelectKeys[0]); const y = e.items.find((f) => f.srfkey === t.defaultSelectKeys[0]);
C && (m = C); y && (m = y);
} }
m && e.onSelectionChange([m]); m && e.onSelectionChange([m]);
} }
}, { }, {
immediate: !0 immediate: !0
}), _(() => e.items.length, (u) => { }), M(() => e.items.length, (c) => {
t.isExpView && u && e.onSelectionChange([e.items[0]]); t.isExpView && c && e.onSelectionChange([e.items[0]]);
}, { }, {
immediate: !0, immediate: !0,
deep: !0 deep: !0
}); });
}); });
const f = (u) => { const g = (c) => {
e.selectedData.length === 0 && (e.selectedData = [{ e.selectedData.length === 0 && (e.selectedData = [{
srfkey: e.items[0].srfkey srfkey: e.items[0].srfkey
}]); }]);
const c = e.selectedData.findIndex((l) => l.srfkey === u.srfkey), m = () => { const l = e.selectedData.findIndex((f) => f.srfkey === c.srfkey), m = () => {
d = !1, delete e.context.n_orgid_eq, e.context.calendarcaption = u.deptname, o(u); d = !1, delete e.context.n_orgid_eq, e.context.calendarcaption = c.deptname, o(c);
}, C = [s.b("item"), s.is("active", c !== -1 && d === !1)]; }, y = [s.b("item"), s.is("active", l !== -1 && d === !1)];
return a("div", { return a("div", {
class: C, class: y,
on: { on: {
click: () => m(), click: () => m(),
dblclick: () => r(u) dblclick: () => r(c)
} }
}, [e.layoutPanelProvider ? a(e.layoutPanelProvider.component, { }, [e.layoutPanelProvider ? a(e.layoutPanelProvider.component, {
props: { props: {
modelData: e.model, modelData: e.model,
context: e.context, context: e.context,
params: e.params, params: e.params,
inputData: u inputData: c
} }
}) : `${u.deptname}`]); }) : `${c.deptname}`]);
}, i = () => e.model.source.enableGroup ? a("el-collapse") : e.items.map((u) => f(u)), h = () => Object.is(e.total, e.items.length) ? null : a("div", { }, i = () => e.model.source.enableGroup ? a("el-collapse") : e.items.map((c) => g(c)), p = () => Object.is(e.total, e.items.length) ? null : a("div", {
class: s.e("no-data") class: s.e("no-data")
}, [a("div", ["\u6682\u65E0\u6570\u636E"])]), g = (u) => { }, [a("div", ["\u6682\u65E0\u6570\u636E"])]), h = (c) => {
d = !0, Object.assign(e.context, { d = !0, Object.assign(e.context, {
n_orgid_eq: e.params.n_orgid_eq n_orgid_eq: e.params.n_orgid_eq
}), e.context.calendarcaption = u.deptname, o(u); }), e.context.calendarcaption = c.deptname, o(c);
}, y = () => { }, u = () => {
const u = [s.b("item"), s.is("active", d === !0)]; const c = [s.b("item"), s.is("active", d === !0)];
return e.items.length > 0 ? a("div", { return e.items.length > 0 ? a("div", {
class: u, class: c,
on: { on: {
click: () => g({ click: () => h({
deptid: e.params.n_orgid_eq, deptid: e.params.n_orgid_eq,
orgid: e.params.n_orgid_eq, orgid: e.params.n_orgid_eq,
srfkey: e.params.n_orgid_eq, srfkey: e.params.n_orgid_eq,
...@@ -1260,19 +1219,19 @@ const $ = S({ ...@@ -1260,19 +1219,19 @@ const $ = S({
} }
}, ["\u5168\u90E8"]) : null; }, ["\u5168\u90E8"]) : null;
}; };
return F(() => { return $(() => {
d && (g({ d && (h({
deptid: e.params.n_orgid_eq, deptid: e.params.n_orgid_eq,
orgid: e.params.n_orgid_eq, orgid: e.params.n_orgid_eq,
srfkey: e.params.n_orgid_eq, srfkey: e.params.n_orgid_eq,
deptname: e.context.selectedDeptName, deptname: e.context.selectedDeptName,
sysdepartment: void 0 sysdepartment: void 0
}), e.selectedData.length = 0); }), e.selectedData.length = 0);
}), _(() => e.items, () => { }), M(() => e.items, () => {
F(() => { $(() => {
d = !0, Object.assign(e.context, { d = !0, Object.assign(e.context, {
n_orgid_eq: e.params.n_orgid_eq n_orgid_eq: e.params.n_orgid_eq
}), g({ }), h({
deptid: e.params.n_orgid_eq, deptid: e.params.n_orgid_eq,
orgid: e.params.n_orgid_eq, orgid: e.params.n_orgid_eq,
srfkey: e.params.n_orgid_eq, srfkey: e.params.n_orgid_eq,
...@@ -1287,9 +1246,9 @@ const $ = S({ ...@@ -1287,9 +1246,9 @@ const $ = S({
c: e, c: e,
ns: s, ns: s,
renderListContent: i, renderListContent: i,
renderLoadMore: h, renderLoadMore: p,
renderAll: y, renderAll: u,
renderAllClick: g, renderAllClick: h,
isSelectAll: d isSelectAll: d
}; };
}, },
...@@ -1302,11 +1261,11 @@ const $ = S({ ...@@ -1302,11 +1261,11 @@ const $ = S({
}, [this.c.complete && [this.renderAll(), this.renderListContent(), this.renderLoadMore()]]); }, [this.c.complete && [this.renderAll(), this.renderListContent(), this.renderLoadMore()]]);
} }
}); });
const nt = S({ const et = D({
name: "ListExpSelectTreeView", name: "ListExpSelectTreeView",
components: { components: {
Treeselect: _e, Treeselect: Pe,
ListExpControl: $ ListExpControl: K
}, },
props: { props: {
context: Object, context: Object,
...@@ -1325,31 +1284,31 @@ const nt = S({ ...@@ -1325,31 +1284,31 @@ const nt = S({
setup(t) { setup(t) {
const { const {
proxy: n proxy: n
} = O(), s = ce(n, t.modelPath), e = k(""), o = k([]), r = q("list-exp-select-tree"); } = V(), s = oe(n, t.modelPath), e = C(""), o = C([]), r = S("list-exp-select-tree");
s.context.isRouter === !0 && s.nerve.self.evt.on("created", () => { s.context.isRouter === !0 && s.nerve.self.evt.on("created", () => {
t.srfnav && (s.navItem.key = t.srfnav, o.value = [t.srfnav]), de(ne(s.navItem, "key"), n, e); t.srfnav && (s.navItem.key = t.srfnav, o.value = [t.srfnav]), ie(ee(s.navItem, "key"), n, e);
}); });
const d = [`${s.context.srforgid}`]; const d = [`${s.context.srforgid}`];
s.context.srforgid && (s.context.selectedDeptName = s.context.srforgname, Object.assign(s.params, { s.context.srforgid && (s.context.selectedDeptName = s.context.srforgname, Object.assign(s.params, {
n_orgid_eq: s.context.srforgid n_orgid_eq: s.context.srforgid
})); }));
const f = (y) => ({ const g = (u) => ({
id: y.id, id: u.id,
label: y.text, label: u.text,
children: y.children children: u.children
}), i = (y) => { }), i = (u) => {
s.context.selectedDeptName = y.text, Object.assign(s.params, { s.context.selectedDeptName = u.text, Object.assign(s.params, {
n_orgid_eq: y.value n_orgid_eq: u.value
}), s.nerve.list.call.load(); }), s.nerve.list.call.load();
}, h = k(!1); }, p = C(!1);
return { return {
c: s, c: s,
defaultSelectKeys: o, defaultSelectKeys: o,
routeViewKey: e, routeViewKey: e,
normalizer: f, normalizer: g,
select: i, select: i,
dataItems: [], dataItems: [],
isLoadCodeList: h, isLoadCodeList: p,
value: d, value: d,
ns: r ns: r
}; };
...@@ -1378,7 +1337,7 @@ const nt = S({ ...@@ -1378,7 +1337,7 @@ const nt = S({
expBarModel: this.c.model.listExpBar expBarModel: this.c.model.listExpBar
}, },
scopedSlots: { scopedSlots: {
default: () => a($, { default: () => a(K, {
attrs: { attrs: {
modelData: s, modelData: s,
context: this.c.context, context: this.c.context,
...@@ -1417,7 +1376,7 @@ const nt = S({ ...@@ -1417,7 +1376,7 @@ const nt = S({
context: this.c.navItem.context, context: this.c.navItem.context,
params: this.c.navItem.params, params: this.c.navItem.params,
modal: { modal: {
mode: se.EMBED mode: X.EMBED
}, },
modelPath: s.navView.source.modelPath modelPath: s.navView.source.modelPath
}, },
...@@ -1429,33 +1388,33 @@ const nt = S({ ...@@ -1429,33 +1388,33 @@ const nt = S({
return null; return null;
} }
}); });
class rt { class tt {
constructor() { constructor() {
b(this, "component", "ListExpSelectTreeView"); v(this, "component", "ListExpSelectTreeView");
} }
} }
class ot { class st {
constructor() { constructor() {
b(this, "component", "BYQKEditView"); v(this, "component", "BYQKEditView");
} }
} }
class it { class at {
constructor() { constructor() {
b(this, "formEditor", "KqBase64ImageUpload"); v(this, "formEditor", "KqBase64ImageUpload");
b(this, "gridEditor", "IBizGridFileUpload"); v(this, "gridEditor", "IBizGridFileUpload");
} }
async createController(n, s) { async createController(n, s) {
const e = new Pe(n, s); const e = new Ce(n, s);
return await e.init(), e; return await e.init(), e;
} }
} }
const lt = S({ const nt = D({
name: "KqBase64ImageUpload", name: "KqBase64ImageUpload",
props: ue(), props: le(),
emits: pe(), emits: ce(),
setup(t) { setup(t) {
var r, d, f; var r, d, g;
const n = q("kq-base64-image-upload"), s = ((r = t.controller.model) == null ? void 0 : r.width) || "auto", e = ((d = t.controller.model) == null ? void 0 : d.height) || "150px", o = ((f = t.controller.editorParams) == null ? void 0 : f["justify-content"]) || "center"; const n = S("kq-base64-image-upload"), s = ((r = t.controller.model) == null ? void 0 : r.width) || "auto", e = ((d = t.controller.model) == null ? void 0 : d.height) || "150px", o = ((g = t.controller.editorParams) == null ? void 0 : g["justify-content"]) || "center";
return () => a("div", { return () => a("div", {
class: n.b(), class: n.b(),
style: { style: {
...@@ -1471,12 +1430,12 @@ const lt = S({ ...@@ -1471,12 +1430,12 @@ const lt = S({
})]); })]);
} }
}); });
class ct { class rt {
constructor() { constructor() {
b(this, "component", "KqdwCustomPickupTreeView"); v(this, "component", "KqdwCustomPickupTreeView");
} }
} }
const dt = S({ const ot = D({
name: "KqdwCustomPickupTreeView", name: "KqdwCustomPickupTreeView",
props: { props: {
context: { context: {
...@@ -1496,31 +1455,31 @@ const dt = S({ ...@@ -1496,31 +1455,31 @@ const dt = S({
} }
}, },
setup(t) { setup(t) {
const n = q("kqdw-custom-pickup-tree-view"), { const n = S("kqdw-custom-pickup-tree-view"), {
proxy: s proxy: s
} = O(), e = he(s, t.modelPath), o = k(null); } = V(), e = de(s, t.modelPath), o = C(null);
let r = null; let r = null;
const d = k([]), f = k({}), i = k([]), h = k([]), g = k(""), y = k([]), u = async (v) => { const d = C([]), g = C({}), i = C([]), p = C([]), h = C(""), u = C([]), c = async (x) => {
await r.loadNodes(v), f.value = v, i.value.push(v); await r.loadNodes(x), g.value = x, i.value.push(x);
}; };
return _(() => e.complete, async (v, D) => { return M(() => e.complete, async (x, w) => {
var P; var k;
if (v !== D && v) { if (x !== w && x) {
await e.model.pickupViewPanel.embedView.init(); await e.model.pickupViewPanel.embedView.init();
const L = (P = e.model.pickupViewPanel.embedView.source.getPSControls()) == null ? void 0 : P.find((V) => V.controlType === "TREEVIEW"); const L = (k = e.model.pickupViewPanel.embedView.source.getPSControls()) == null ? void 0 : k.find((_) => _.controlType === "TREEVIEW");
L || console.warn("\u672A\u627E\u5230[\u6811(tree)]\u90E8\u4EF6"), o.value = new xe(L), await o.value.init(), r = me(s, o.value, t.context, t.params), await r.init(); L || console.warn("\u672A\u627E\u5230[\u6811(tree)]\u90E8\u4EF6"), o.value = new fe(L), await o.value.init(), r = ue(s, o.value, t.context, t.params), await r.init();
const I = await r.load(); const P = await r.load();
if (I.length > 0 && (d.value = I, f.value.children = I, i.value.push({ if (P.length > 0 && (d.value = P, g.value.children = P, i.value.push({
text: "\u5F53\u524D\u9662", text: "\u5F53\u524D\u9662",
children: I children: P
})), e.params.selectedData) { })), e.params.selectedData) {
const V = JSON.parse(e.params.selectedData); const _ = JSON.parse(e.params.selectedData);
V.length > 0 && (h.value = V.map((T) => ({ _.length > 0 && (p.value = _.map((I) => ({
srfkey: T.srfkey, srfkey: I.srfkey,
srfmajortext: T.srfmajortext, srfmajortext: I.srfmajortext,
value: T.srfkey, value: I.srfkey,
text: T.srfmajortext, text: I.srfmajortext,
dxlx: T.dxlx dxlx: I.dxlx
}))); })));
} }
} }
...@@ -1528,47 +1487,47 @@ const dt = S({ ...@@ -1528,47 +1487,47 @@ const dt = S({
ns: n, ns: n,
c: e, c: e,
treeDatas: d, treeDatas: d,
currentTreeNode: f, currentTreeNode: g,
clickTreeNode: u, clickTreeNode: c,
treeHistory: i, treeHistory: i,
isChecked: (v) => h.value.findIndex((P) => P.value === v.value) !== -1, isChecked: (x) => p.value.findIndex((k) => k.value === x.value) !== -1,
selectTreeNodes: h, selectTreeNodes: p,
handleSelect: (v) => { handleSelect: (x) => {
const D = h.value.findIndex((P) => P.value === v.value); const w = p.value.findIndex((k) => k.value === x.value);
D === -1 ? h.value.push(v) : h.value.splice(D, 1); w === -1 ? p.value.push(x) : p.value.splice(w, 1);
}, },
clickHistory: (v) => { clickHistory: (x) => {
const D = i.value.findIndex((P) => P.value === v.value); const w = i.value.findIndex((k) => k.value === x.value);
i.value = i.value.slice(0, D + 1), f.value = v; i.value = i.value.slice(0, w + 1), g.value = x;
}, },
clearAll: () => { clearAll: () => {
h.value = []; p.value = [];
}, },
onOkButtonClick: () => { onOkButtonClick: () => {
const v = h.value.map((D) => { const x = p.value.map((w) => {
var P; var k;
return { return {
srfkey: D.value, srfkey: w.value,
srfmajortext: D.text, srfmajortext: w.text,
dxlx: (P = D.deData) == null ? void 0 : P.dxlx dxlx: (k = w.deData) == null ? void 0 : k.dxlx
}; };
}); });
e.closeView({ e.closeView({
ok: !0, ok: !0,
data: v data: x
}); });
}, },
query: g, query: h,
queryChange: (v) => { queryChange: (x) => {
v.target && (g.value = v.target.value, Object.assign(e.params, { x.target && (h.value = x.target.value, Object.assign(e.params, {
query: g.value query: h.value
})); }));
}, },
search: async () => { search: async () => {
const v = await (r == null ? void 0 : r.load()); const x = await (r == null ? void 0 : r.load());
v && (y.value = v); x && (u.value = x);
}, },
queryTreeNodeList: y queryTreeNodeList: u
}; };
}, },
render() { render() {
...@@ -1685,16 +1644,16 @@ const dt = S({ ...@@ -1685,16 +1644,16 @@ const dt = S({
}, ["\u53D6\u6D88"])])]); }, ["\u53D6\u6D88"])])]);
} }
}); });
class ut { class it {
constructor() { constructor() {
b(this, "component", "KqbcFormMDCtrl"); v(this, "component", "KqbcFormMDCtrl");
} }
async createController(n, s, e) { async createController(n, s, e) {
const o = new De(n, s, e); const o = new be(n, s, e);
return await o.init(), o; return await o.init(), o;
} }
} }
const pt = S({ const lt = D({
name: "UserTabPageExp", name: "UserTabPageExp",
props: { props: {
routeMsgs: { routeMsgs: {
...@@ -1710,16 +1669,16 @@ const pt = S({ ...@@ -1710,16 +1669,16 @@ const pt = S({
setup(t, { setup(t, {
emit: n emit: n
}) { }) {
const s = q("user-tab-page-exp"), e = k("0"), o = [{ const s = S("user-tab-page-exp"), e = C("0"), o = [{
text: "\u5173\u95ED\u6240\u6709", text: "\u5173\u95ED\u6240\u6709",
value: "closeAll" value: "closeAll"
}, { }, {
text: "\u5173\u95ED\u5176\u4ED6", text: "\u5173\u95ED\u5176\u4ED6",
value: "closeOther" value: "closeOther"
}]; }];
return _(() => t.currentKey, (i, h) => { return M(() => t.currentKey, (i, p) => {
const g = t.routeMsgs.findIndex((y) => y.key === i); const h = t.routeMsgs.findIndex((u) => u.key === i);
g !== -1 && (e.value = `${g}`); h !== -1 && (e.value = `${h}`);
}), { }), {
ns: s, ns: s,
tabsValue: e, tabsValue: e,
...@@ -1764,10 +1723,10 @@ const pt = S({ ...@@ -1764,10 +1723,10 @@ const pt = S({
} }
}))])])]); }))])])]);
} }
}), Pt = { }), Ct = {
mateUrl: import.meta.url, mateUrl: import.meta.url,
install(t) { install(t) {
t.component("UserTabPageExp", pt), t.component("UserIndexView", je), t.component("UserAppLayout", Ne), t.component("ListExpSelectTreeView", nt), t.component("ListExpControl", $), t.component( t.component("UserTabPageExp", lt), t.component("UserIndexView", ze), t.component("UserAppLayout", Oe), t.component("ListExpSelectTreeView", et), t.component("ListExpControl", K), t.component(
"BYQKEditView", "BYQKEditView",
() => import("./byqk-edit-view.fea98c06.js") () => import("./byqk-edit-view.fea98c06.js")
), t.component( ), t.component(
...@@ -1775,31 +1734,31 @@ const pt = S({ ...@@ -1775,31 +1734,31 @@ const pt = S({
() => import("./kqbc-form-mdctrl.b92c2279.js") () => import("./kqbc-form-mdctrl.b92c2279.js")
), ibiz.register.view.register( ), ibiz.register.view.register(
"VIEW_CUSTOM_JskqIndexView", "VIEW_CUSTOM_JskqIndexView",
new Me() new De()
), ibiz.register.view.register( ), ibiz.register.view.register(
"VIEW_CUSTOM_ListExpSelectTreeView", "VIEW_CUSTOM_ListExpSelectTreeView",
new rt() new tt()
), 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 Ae()
), ibiz.register.portletPart.register( ), ibiz.register.portletPart.register(
"PORTLET_CUSTOM_jskqWebPortalMapArea", "PORTLET_CUSTOM_jskqWebPortalMapArea",
new Qe() new We()
), ibiz.register.control.register( ), ibiz.register.control.register(
"LIST_RENDER_JskqWebKqqkList", "LIST_RENDER_JskqWebKqqkList",
new st() new Xe()
), ibiz.register.view.register( ), ibiz.register.view.register(
"VIEW_CUSTOM_ByqkCustomEditView", "VIEW_CUSTOM_ByqkCustomEditView",
new ot() new st()
), t.component("KqBase64ImageUpload", lt), ibiz.register.editor.register( ), t.component("KqBase64ImageUpload", nt), ibiz.register.editor.register(
"PICTURE_ONE_Base64ImageUpload", "PICTURE_ONE_Base64ImageUpload",
new it() new at()
), t.component("KqdwCustomPickupTreeView", dt), ibiz.register.view.register( ), t.component("KqdwCustomPickupTreeView", ot), ibiz.register.view.register(
"VIEW_CUSTOM_KqdwCustomPickupTreeView", "VIEW_CUSTOM_KqdwCustomPickupTreeView",
new ct() new rt()
), ibiz.register.formDetail.register("MDCTRL", new ut()); ), ibiz.register.formDetail.register("MDCTRL", new it());
} }
}; };
export { export {
Pt as default Ct as default
}; };
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册