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

feat: 更新插件

上级 130bec33
...@@ -2,39 +2,40 @@ var Z = Object.defineProperty; ...@@ -2,39 +2,40 @@ var Z = Object.defineProperty;
var ee = (t, a, s) => a in t ? Z(t, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[a] = s; var ee = (t, a, s) => a in t ? Z(t, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[a] = s;
var w = (t, a, s) => (ee(t, typeof a != "symbol" ? a + "" : a, s), s); var w = (t, a, s) => (ee(t, typeof a != "symbol" ? a + "" : a, s), s);
import { PluginStaticResource as te, ViewMode as se } from "@ibiz-template/runtime"; import { PluginStaticResource as te, ViewMode as se } from "@ibiz-template/runtime";
import { ref as C, watch as _, defineComponent as D, getCurrentInstance as I, computed as L, onMounted as N, h as i, toRefs as ae, reactive as ie, nextTick as F, toRef as re, onActivated as ne } from "vue"; import { ref as C, watch as _, defineComponent as D, getCurrentInstance as I, computed as R, onMounted as L, h as i, toRefs as ae, reactive as ie, nextTick as F, toRef as re, onActivated as ne } from "vue";
import { useRouter as G, useRoute as $, useIndexViewController as oe, useNamespace as S, useControlController as le, usePropsWatch as ce, useListController as de, useListExpViewController as ue, useRouteKey as he, getUploadProps as pe, getEditorEmits as me, useMPickupViewController as fe, useTreeController as ge, useViewController as ye } from "@ibiz-template/vue-util"; import { useRouter as G, useRoute as $, useIndexViewController as oe, useNamespace as S, useControlController as le, usePropsWatch as ce, useListController as de, useListExpViewController as ue, useRouteKey as he, getUploadProps as pe, getEditorEmits as me, useMPickupViewController as fe, useTreeController as ge, useViewController as ye } from "@ibiz-template/vue-util";
import { createUUID as ve } from "qx-util"; import { createUUID as ve, notNilEmpty as we } from "qx-util";
import { IndexViewModel as we, PortletPartModel as be, ViewPortletModel as Ce, ListModel as H, TreeModel as xe, getControl as B, GridModel as U } from "@ibiz-template/model"; import { IndexViewModel as be, PortletPartModel as Ce, ViewPortletModel as xe, ListModel as H, TreeModel as ke, getControl as B, GridModel as U } from "@ibiz-template/model";
import z from "dayjs"; import z from "dayjs";
import { CustomPortletController as ke, ViewPortletController as Pe, EditFormController as qe, ListController as De, UploadEditorController as Se, FormMDCtrlController as _e, GridViewNerve as Me, GridViewController as Ee } from "@ibiz-template/controller"; import { CustomPortletController as Pe, ViewPortletController as qe, EditFormController as De, ListController as Se, UploadEditorController as _e, FormMDCtrlController as Me, GridViewNerve as Te, GridViewController as Ee } from "@ibiz-template/controller";
import { mergeDeepRight as Te } from "ramda"; import { mergeDeepRight as Ie } from "ramda";
import { init as Ie, registerMap as Ve } from "echarts"; import { init as Ve, registerMap as je } from "echarts";
import { Treeselect as je } from "@riophae/vue-treeselect"; import { Treeselect as ze } from "@riophae/vue-treeselect";
const E = new te(import.meta.url); import { convertNavData as Ae } from "@ibiz-template/service";
class ze { const T = new te(import.meta.url);
class Oe {
constructor() { constructor() {
w(this, "component", "UserIndexView"); w(this, "component", "UserIndexView");
} }
} }
const Ae = (t) => { const Re = (t) => {
const { view2: a, params2: s, params1: e } = t.params; const { view2: a, params2: s, params1: e } = t.params;
if (!a) if (!a)
return ""; return "";
let n = s.replace( let r = s.replace(
new RegExp(";srfnav=[^;=]*$|(?<=;)srfnav=[^;=]*;|^srfnav=[^;=]*;|^srfnav=[^;=]*$", "g"), new RegExp(";srfnav=[^;=]*$|(?<=;)srfnav=[^;=]*;|^srfnav=[^;=]*;|^srfnav=[^;=]*$", "g"),
"" ""
); );
return n = n || ibiz.env.routePlaceholder, `/${e}/${a}/${n}`; return r = r || ibiz.env.routePlaceholder, `/${e}/${a}/${r}`;
}, Oe = (t) => { }, Le = (t) => {
const { view1: a, appContext: s } = t.params; const { view1: a, appContext: s } = t.params;
return `/${s}/${a}/${ibiz.env.routePlaceholder}`; return `/${s}/${a}/${ibiz.env.routePlaceholder}`;
}; };
function Le(t, a) { function Ne(t, a) {
const s = G(t), e = C(""), n = C(""), r = C([]), u = C([]), v = (l) => { const s = G(t), e = C(""), r = C(""), n = C([]), u = C([]), v = (l) => {
l.forEach((h) => { l.forEach((h) => {
const b = r.value.indexOf(h); const b = n.value.indexOf(h);
b !== -1 && r.value.splice(b, 1); b !== -1 && n.value.splice(b, 1);
const k = u.value.findIndex((y) => y.key === h); const k = u.value.findIndex((y) => y.key === h);
k !== -1 && u.value.splice(k, 1); k !== -1 && u.value.splice(k, 1);
}); });
...@@ -44,14 +45,14 @@ function Le(t, a) { ...@@ -44,14 +45,14 @@ function Le(t, a) {
(l, h) => { (l, h) => {
if (l !== h) { if (l !== h) {
const b = $(t); const b = $(t);
e.value = Ae(b), n.value = Oe(b); e.value = Re(b), r.value = Le(b);
const k = u.value.find( const k = u.value.find(
(y) => y.key === e.value (y) => y.key === e.value
); );
if (k) if (k)
b.matched.length === 2 ? s.push(k.fullPath) : k.fullPath = b.fullPath; b.matched.length === 2 ? s.push(k.fullPath) : k.fullPath = b.fullPath;
else { else {
if (l === n.value) if (l === r.value)
return; return;
u.value.push({ u.value.push({
key: e.value, key: e.value,
...@@ -67,8 +68,8 @@ function Le(t, a) { ...@@ -67,8 +68,8 @@ function Le(t, a) {
e, e,
(l, h) => { (l, h) => {
if (l !== h && l) { if (l !== h && l) {
const b = r.value.indexOf(l); const b = n.value.indexOf(l);
b === -1 || r.value.splice(b, 1), r.value.unshift(l); b === -1 || n.value.splice(b, 1), n.value.unshift(l);
} }
}, },
{ immediate: !0 } { immediate: !0 }
...@@ -78,9 +79,9 @@ function Le(t, a) { ...@@ -78,9 +79,9 @@ function Le(t, a) {
b && (h.caption && (b.caption = h.caption), h.modelPath && (b.modelPath = h.modelPath)); b && (h.caption && (b.caption = h.caption), h.modelPath && (b.modelPath = h.modelPath));
}, p = (l = e.value) => { }, p = (l = e.value) => {
v([l]); v([l]);
const h = r.value[0]; const h = n.value[0];
if (!h) if (!h)
a.model.source.blankMode ? window.close() : (e.value = "", s.push(n.value)); a.model.source.blankMode ? window.close() : (e.value = "", s.push(r.value));
else { else {
const b = u.value.find((k) => k.key === h); const b = u.value.find((k) => k.key === h);
s.push(b.fullPath); s.push(b.fullPath);
...@@ -96,9 +97,9 @@ function Le(t, a) { ...@@ -96,9 +97,9 @@ function Le(t, a) {
const k = `${h.substring(0, b)}/-`; const k = `${h.substring(0, b)}/-`;
s.push(k); s.push(k);
}, d = () => { }, d = () => {
if (r.value.length > 0) { if (n.value.length > 0) {
const l = u.value.find( const l = u.value.find(
(h) => h.key === r.value[0] (h) => h.key === n.value[0]
); );
l && s.push(l.fullPath); l && s.push(l.fullPath);
} else } else
...@@ -106,7 +107,7 @@ function Le(t, a) { ...@@ -106,7 +107,7 @@ function Le(t, a) {
}; };
return { return {
currentKey: e, currentKey: e,
keyHistory: r, keyHistory: n,
routeMsgs: u, routeMsgs: u,
updateRouteMsg: o, updateRouteMsg: o,
closeView: p, closeView: p,
...@@ -134,7 +135,7 @@ function Le(t, a) { ...@@ -134,7 +135,7 @@ function Le(t, a) {
} }
}; };
} }
const Ne = /* @__PURE__ */ D({ const Ke = /* @__PURE__ */ D({
__name: "index-view", __name: "index-view",
props: { props: {
context: null, context: null,
...@@ -142,8 +143,8 @@ const Ne = /* @__PURE__ */ D({ ...@@ -142,8 +143,8 @@ const Ne = /* @__PURE__ */ D({
modelPath: null modelPath: null
}, },
setup(t) { setup(t) {
const a = t, { proxy: s } = I(), e = oe(s, a.modelPath), n = !0; const a = t, { proxy: s } = I(), e = oe(s, a.modelPath), r = !0;
let r = null, u = null, v = () => { let n = null, u = null, v = () => {
}, o = null, p = null, f = null, g = null, d = null, c, m, x, l; }, o = null, p = null, f = null, g = null, d = null, c, m, x, l;
const h = C(ve()); const h = C(ve());
{ {
...@@ -156,10 +157,10 @@ const Ne = /* @__PURE__ */ D({ ...@@ -156,10 +157,10 @@ const Ne = /* @__PURE__ */ D({
deleteRouteCache: A, deleteRouteCache: A,
handleTabClick: V, handleTabClick: V,
handleTabDelete: j, handleTabDelete: j,
handleCloseAll: T, handleCloseAll: E,
handleCloseOther: J handleCloseOther: J
} = Le(s, e); } = Ne(s, e);
m = k, x = y, l = P, o = A, p = V, f = j, g = T, d = J, r = (M) => { m = k, x = y, l = P, o = A, p = V, f = j, g = E, d = J, n = (M) => {
const O = m.value; const O = m.value;
M.evt.on("closeView", () => { M.evt.on("closeView", () => {
K(O); K(O);
...@@ -170,35 +171,35 @@ const Ne = /* @__PURE__ */ D({ ...@@ -170,35 +171,35 @@ const Ne = /* @__PURE__ */ D({
q(m.value, M); q(m.value, M);
}, window.onpopstate = () => { }, window.onpopstate = () => {
o([x.value[1]]); o([x.value[1]]);
}, c = L(() => { }, c = R(() => {
const M = l.value.find( const M = l.value.find(
(O) => O.key === m.value (O) => O.key === m.value
); );
return (M == null ? void 0 : M.modelPath) || ""; return (M == null ? void 0 : M.modelPath) || "";
}); });
} }
return N(() => { return L(() => {
setTimeout(() => { setTimeout(() => {
const k = document.querySelector(".app-loading-x"); const k = document.querySelector(".app-loading-x");
k && (k.style.display = "none"); k && (k.style.display = "none");
}, 300); }, 300);
}), { __sfc: !0, props: a, proxy: s, c: e, isShowTabPageExp: n, onCreated: r, onViewFound: u, onMenuRouteChange: v, deleteRouteCache: o, handleTabClick: p, handleTabDelete: f, handleCloseAll: g, handleCloseOther: d, currentPath: c, currentKey: m, keyHistory: x, routeMsgs: l, appKeepAliveKey: h, collapseChange: (k) => { }), { __sfc: !0, props: a, proxy: s, c: e, isShowTabPageExp: r, onCreated: n, onViewFound: u, onMenuRouteChange: v, deleteRouteCache: o, handleTabClick: p, handleTabDelete: f, handleCloseAll: g, handleCloseOther: d, currentPath: c, currentKey: m, keyHistory: x, routeMsgs: l, appKeepAliveKey: h, collapseChange: (k) => {
e.collapseChange = k; e.collapseChange = k;
} }; } };
} }
}); });
function Re(t, a, s, e, n, r, u, v) { function Fe(t, a, s, e, r, n, u, v) {
var o = typeof t == "function" ? t.options : t; var o = typeof t == "function" ? t.options : t;
a && (o.render = a, o.staticRenderFns = s, o._compiled = !0), e && (o.functional = !0), r && (o._scopeId = "data-v-" + r); a && (o.render = a, o.staticRenderFns = s, o._compiled = !0), e && (o.functional = !0), n && (o._scopeId = "data-v-" + n);
var p; var p;
if (u ? (p = function(d) { if (u ? (p = function(d) {
d = d || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !d && typeof __VUE_SSR_CONTEXT__ < "u" && (d = __VUE_SSR_CONTEXT__), n && n.call(this, d), d && d._registeredComponents && d._registeredComponents.add(u); d = d || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !d && typeof __VUE_SSR_CONTEXT__ < "u" && (d = __VUE_SSR_CONTEXT__), r && r.call(this, d), d && d._registeredComponents && d._registeredComponents.add(u);
}, o._ssrRegister = p) : n && (p = v ? function() { }, o._ssrRegister = p) : r && (p = v ? function() {
n.call( r.call(
this, this,
(o.functional ? this.parent : this).$root.$options.shadowRoot (o.functional ? this.parent : this).$root.$options.shadowRoot
); );
} : n), p) } : r), p)
if (o.functional) { if (o.functional) {
o._injectStyles = p; o._injectStyles = p;
var f = o.render; var f = o.render;
...@@ -214,20 +215,20 @@ function Re(t, a, s, e, n, r, u, v) { ...@@ -214,20 +215,20 @@ function Re(t, a, s, e, n, r, u, v) {
options: o options: o
}; };
} }
var Ke = function() { var $e = function() {
var a = this, s = a._self._c, e = a._self._setupProxy; var a = this, s = a._self._c, e = a._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" }) : a._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" }) : a._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)] : a._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" }) : a._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" }) : a._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)] : a._e()], 2);
}, Fe = [], $e = /* @__PURE__ */ Re( }, Be = [], Ue = /* @__PURE__ */ Fe(
Ne,
Ke, Ke,
Fe, $e,
Be,
!1, !1,
null, null,
null, null,
null, null,
null null
); );
const Be = $e.exports; const Ge = Ue.exports;
const Y = D({ const Y = D({
name: "ChangePassword", name: "ChangePassword",
props: { props: {
...@@ -239,11 +240,11 @@ const Y = D({ ...@@ -239,11 +240,11 @@ const Y = D({
setup(t, { setup(t, {
emit: a emit: a
}) { }) {
const s = S("change-password"), e = C(null), n = C({ const s = S("change-password"), e = C(null), r = C({
oldPwd: "", oldPwd: "",
newPwd: "", newPwd: "",
newPwd2: "" newPwd2: ""
}), r = C(!1), u = { }), n = C(!1), u = {
oldPwd: [{ oldPwd: [{
required: !0, required: !0,
message: "\u8BF7\u8F93\u5165\u539F\u5BC6\u7801", message: "\u8BF7\u8F93\u5165\u539F\u5BC6\u7801",
...@@ -261,7 +262,7 @@ const Y = D({ ...@@ -261,7 +262,7 @@ const Y = D({
required: !0, required: !0,
trigger: "blur", trigger: "blur",
validator(o, p, f) { validator(o, p, f) {
p !== n.value.newPwd ? f(new Error("\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u4E0D\u4E00\u81F4\uFF0C\u8BF7\u68C0\u67E5")) : f(); p !== r.value.newPwd ? f(new Error("\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u4E0D\u4E00\u81F4\uFF0C\u8BF7\u68C0\u67E5")) : f();
} }
}] }]
}, v = () => { }, v = () => {
...@@ -269,24 +270,24 @@ const Y = D({ ...@@ -269,24 +270,24 @@ const Y = D({
var p, f, g; var p, f, g;
if (o) if (o)
try { try {
r.value = !0; n.value = !0;
const d = await ibiz.net.post("/v7/changepwd ", { const d = await ibiz.net.post("/v7/changepwd ", {
oldPwd: n.value.oldPwd, oldPwd: r.value.oldPwd,
newPwd: n.value.newPwd newPwd: r.value.newPwd
}); });
if (d.ok) { if (d.ok) {
ibiz.notification.success({ ibiz.notification.success({
title: "\u4FEE\u6539\u5BC6\u7801\u6210\u529F\uFF01" title: "\u4FEE\u6539\u5BC6\u7801\u6210\u529F\uFF01"
}), r.value = !1, a("change-success"); }), n.value = !1, a("change-success");
return; return;
} }
ibiz.notification.error({ ibiz.notification.error({
title: ((p = d.data) == null ? void 0 : p.message) || "\u4FEE\u6539\u5BC6\u7801\u5931\u8D25\uFF01" title: ((p = d.data) == null ? void 0 : p.message) || "\u4FEE\u6539\u5BC6\u7801\u5931\u8D25\uFF01"
}), r.value = !1; }), n.value = !1;
} catch (d) { } catch (d) {
ibiz.notification.error({ ibiz.notification.error({
title: ((g = (f = d.response) == null ? void 0 : f.data) == null ? void 0 : g.message) || "\u4FEE\u6539\u5BC6\u7801\u5931\u8D25\uFF01" title: ((g = (f = d.response) == null ? void 0 : f.data) == null ? void 0 : g.message) || "\u4FEE\u6539\u5BC6\u7801\u5931\u8D25\uFF01"
}), r.value = !1; }), n.value = !1;
} }
}); });
}; };
...@@ -294,9 +295,9 @@ const Y = D({ ...@@ -294,9 +295,9 @@ const Y = D({
o === !0 && e.value && e.value.resetFields(); o === !0 && e.value && e.value.resetFields();
}), { }), {
ns: s, ns: s,
formData: n, formData: r,
rules: u, rules: u,
loading: r, loading: n,
formRef: e, formRef: e,
handleSubmit: v handleSubmit: v
}; };
...@@ -378,23 +379,23 @@ const Y = D({ ...@@ -378,23 +379,23 @@ const Y = D({
}, ["\u786E\u8BA4\u4FEE\u6539"])])]); }, ["\u786E\u8BA4\u4FEE\u6539"])])]);
} }
}); });
function Ue(t, a) { function He(t, a) {
return i("div", { return i("div", {
class: t.e("logo") class: t.e("logo")
}, [i("img", { }, [i("img", {
class: t.e("logo-img"), class: t.e("logo-img"),
attrs: { attrs: {
src: E.dir("/assets/img/jh-800.png") src: T.dir("/assets/img/jh-800.png")
} }
}), i("div", { }), i("div", {
class: t.e("logo-caption") class: t.e("logo-caption")
}, [a.caption])]); }, [a.caption])]);
} }
const Ge = D({ const Ye = D({
name: "UserAppLayout", name: "UserAppLayout",
props: { props: {
model: { model: {
type: we, type: be,
required: !0 required: !0
}, },
isComplete: { isComplete: {
...@@ -411,9 +412,9 @@ const Ge = D({ ...@@ -411,9 +412,9 @@ const Ge = D({
slots: s slots: s
}) { }) {
var y; var y;
const e = S("layout"), n = C(!1), r = () => { const e = S("layout"), r = C(!1), n = () => {
n.value = !n.value, a("onCollapseChange", n.value); r.value = !r.value, a("onCollapseChange", r.value);
}, u = L(() => t.model.source.blankMode === !0), v = async () => { }, u = R(() => t.model.source.blankMode === !0), v = async () => {
var q; var q;
const P = (q = s.menu) == null ? void 0 : q.call(s)[0].componentInstance; const P = (q = s.menu) == null ? void 0 : q.call(s)[0].componentInstance;
P && P.c && await P.c.onClickMenuItem("menuitem46"); P && P.c && await P.c.onClickMenuItem("menuitem46");
...@@ -430,9 +431,9 @@ const Ge = D({ ...@@ -430,9 +431,9 @@ const Ge = D({
}, l = C(!1), h = C(!0); }, l = C(!1), h = C(!0);
return f === 1 && (l.value = !0, h.value = !1), { return f === 1 && (l.value = !0, h.value = !1), {
ns: e, ns: e,
collapseChange: n, collapseChange: r,
isBlank: u, isBlank: u,
collapseMenus: r, collapseMenus: n,
openView: v, openView: v,
srfusername: o, srfusername: o,
srforgsectorname: p, srforgsectorname: p,
...@@ -458,7 +459,7 @@ const Ge = D({ ...@@ -458,7 +459,7 @@ const Ge = D({
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)]
}, [Ue(this.ns, this.model), i("div", { }, [He(this.ns, this.model), i("div", {
class: this.ns.b("option") class: this.ns.b("option")
}, [i("i-poptip", { }, [i("i-poptip", {
attrs: { attrs: {
...@@ -473,7 +474,7 @@ const Ge = D({ ...@@ -473,7 +474,7 @@ const Ge = D({
}, [i("img", { }, [i("img", {
class: "head", class: "head",
attrs: { attrs: {
src: E.dir("/assets/img/head.svg") src: T.dir("/assets/img/head.svg")
} }
}), i("div", { }), i("div", {
class: "user" class: "user"
...@@ -484,7 +485,7 @@ const Ge = D({ ...@@ -484,7 +485,7 @@ const Ge = D({
}, [this.srforgsectorname])]), i("img", { }, [this.srforgsectorname])]), i("img", {
class: "down", class: "down",
attrs: { attrs: {
src: E.dir("/assets/img/down.svg") src: T.dir("/assets/img/down.svg")
} }
})]), })]),
content: () => i("div", { content: () => i("div", {
...@@ -496,7 +497,7 @@ const Ge = D({ ...@@ -496,7 +497,7 @@ const Ge = D({
}, [i("img", { }, [i("img", {
class: "lr", class: "lr",
attrs: { attrs: {
src: E.dir("/assets/img/lr.svg") src: T.dir("/assets/img/lr.svg")
} }
}), "\u4FEE\u6539\u5BC6\u7801"]), i("div", { }), "\u4FEE\u6539\u5BC6\u7801"]), i("div", {
class: "logout", class: "logout",
...@@ -518,7 +519,7 @@ const Ge = D({ ...@@ -518,7 +519,7 @@ const Ge = D({
}, [i("img", { }, [i("img", {
class: "gj", class: "gj",
attrs: { attrs: {
src: E.dir("/assets/img/gj.svg") src: T.dir("/assets/img/gj.svg")
}, },
on: { on: {
click: () => this.openView() click: () => this.openView()
...@@ -567,7 +568,7 @@ const Ge = D({ ...@@ -567,7 +568,7 @@ const Ge = D({
})])])]) : null; })])])]) : null;
} }
}); });
class Q extends ke { class Q extends Pe {
constructor() { constructor() {
super(...arguments); super(...arguments);
w(this, "options", []); w(this, "options", []);
...@@ -593,11 +594,11 @@ class Q extends ke { ...@@ -593,11 +594,11 @@ class Q extends ke {
); );
} }
} }
const He = D({ const Qe = D({
name: "PortletSearchHeader", name: "PortletSearchHeader",
props: { props: {
modelData: { modelData: {
type: be, type: Ce,
required: !0 required: !0
}, },
controller: { controller: {
...@@ -606,9 +607,9 @@ const He = D({ ...@@ -606,9 +607,9 @@ const He = D({
} }
}, },
setup(t) { setup(t) {
const a = S("portal-search-header"), s = C([]), e = C(new Date()), n = (o) => { const a = S("portal-search-header"), s = C([]), e = C(new Date()), r = (o) => {
s.value = o, t.controller.rylx = o.join(","), t.controller.changeViewParams(); s.value = o, t.controller.rylx = o.join(","), t.controller.changeViewParams();
}, r = (o) => { }, n = (o) => {
e.value = o, t.controller.kqrq = o ? z(o).format("YYYY-MM-DD") : "", t.controller.changeViewParams(); e.value = o, t.controller.kqrq = o ? z(o).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(",");
...@@ -623,8 +624,8 @@ const He = D({ ...@@ -623,8 +624,8 @@ const He = D({
return u.isSame(p, "day") || u.isBefore(p, "day"); return u.isSame(p, "day") || u.isBefore(p, "day");
} }
}, },
onSelectArrayChange: n, onSelectArrayChange: r,
onDateChange: r onDateChange: n
}; };
}, },
render() { render() {
...@@ -661,20 +662,20 @@ const He = D({ ...@@ -661,20 +662,20 @@ const He = D({
})]); })]);
} }
}); });
class Ye { class We {
constructor() { constructor() {
w(this, "component", He); w(this, "component", Qe);
} }
async createController(a, s, e) { async createController(a, s, e) {
const n = new Q( const r = new Q(
a, a,
s, s,
e e
); );
return await n.init(), n; return await r.init(), r;
} }
} }
class W extends Pe { class W extends qe {
constructor() { constructor() {
super(...arguments); super(...arguments);
w(this, "data", {}); w(this, "data", {});
...@@ -692,14 +693,14 @@ class W extends Pe { ...@@ -692,14 +693,14 @@ class W extends Pe {
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 qe(s, this.context, { ), this.form = new De(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();
}); });
} }
calcPercent(s, e, n = 1) { calcPercent(s, e, r = 1) {
return s ? parseFloat((s * 100 / e).toFixed(n)) : 0; return s ? parseFloat((s * 100 / e).toFixed(r)) : 0;
} }
calcViewParams() { calcViewParams() {
super.calcViewParams(), this.dashboard.complete && (this.form.setContextOrParams(void 0, this.params, !0), this.load()); super.calcViewParams(), this.dashboard.complete && (this.form.setContextOrParams(void 0, this.params, !0), this.load());
...@@ -712,20 +713,20 @@ class W extends Pe { ...@@ -712,20 +713,20 @@ class W extends Pe {
"FetchMapData", "FetchMapData",
this.context, this.context,
this.params this.params
)).data.map((r) => ({ )).data.map((n) => ({
name: r.orgcode, name: n.orgcode,
value: this.calcPercent(Number(r.zcl), 1, 2), value: this.calcPercent(Number(n.zcl), 1, 2),
title: r.orgname, title: n.orgname,
zcl: `${this.calcPercent(Number(r.zcl), 1, 2)}%`, zcl: `${this.calcPercent(Number(n.zcl), 1, 2)}%`,
zcrs: r.zcrs, zcrs: n.zcrs,
yzrs: r.yzrs != null ? r.yzrs : "", yzrs: n.yzrs != null ? n.yzrs : "",
zgrs: r.zgrs != null ? r.zgrs : "", zgrs: n.zgrs != null ? n.zgrs : "",
jd: r.jd, jd: n.jd,
wd: r.wd wd: n.wd
})), n = e.findIndex( })), r = e.findIndex(
(r) => r.name === this.params.orgcode (n) => n.name === this.params.orgcode
); );
n !== -1 && (this.pointData = e.splice(n, 1)), this.mapData = e.length === 0 ? this.pointData : e; r !== -1 && (this.pointData = e.splice(r, 1)), this.mapData = e.length === 0 ? this.pointData : e;
} }
onMapChange(s) { onMapChange(s) {
const e = `${s}`; const e = `${s}`;
...@@ -760,24 +761,24 @@ class W extends Pe { ...@@ -760,24 +761,24 @@ class W extends Pe {
); );
} }
} }
const Qe = ["#FF0700", "#FFF400", "#73A0FA"], We = { const Je = ["#FF0700", "#FFF400", "#73A0FA"], Xe = {
strMapCode: !0, strMapCode: !0,
visualMap: { visualMap: {
text: ["\u9AD8", "\u4F4E"], text: ["\u9AD8", "\u4F4E"],
min: 0, min: 0,
max: 100, max: 100,
rangeColor: Qe rangeColor: Je
}, },
pointSymbol: "pin" pointSymbol: "pin"
}, Je = "/assets/json/map/jiangsu/{id}.json"; }, Ze = "/assets/json/map/jiangsu/{id}.json";
async function Xe(t) { async function et(t) {
return (await ibiz.net.axios({ return (await ibiz.net.axios({
url: E.dir(Je.replace("{id}", t)) url: T.dir(Ze.replace("{id}", t))
})).data; })).data;
} }
function Ze(t, a) { function tt(t, a) {
const s = /* @__PURE__ */ new Map(), e = C(""), n = C([]); const s = /* @__PURE__ */ new Map(), e = C(""), r = C([]);
let r; let n;
const u = C(), v = (c) => { const u = C(), v = (c) => {
const m = { const m = {
cityNames: {}, cityNames: {},
...@@ -790,47 +791,47 @@ function Ze(t, a) { ...@@ -790,47 +791,47 @@ function Ze(t, a) {
}, o = async (c) => { }, o = async (c) => {
if (s.has(c)) if (s.has(c))
return; return;
const m = await Xe(c); const m = await et(c);
s.set(c, v(m)), Ve(c, m); s.set(c, v(m)), je(c, m);
}, p = (c) => { }, p = (c) => {
const m = s.get(e.value); const m = s.get(e.value);
if (m) if (m)
return m.cityNames[c]; return m.cityNames[c];
}, f = () => { }, f = () => {
const c = t(e.value); const c = t(e.value);
r.setOption(c), r.resize(); n.setOption(c), n.resize();
}, g = async (c, m = !1) => { }, g = async (c, m = !1) => {
m || a("mapChange", { name: c }), s.has(c) || await o(c), e.value = c, n.value.push(c), f(); m || a("mapChange", { name: c }), s.has(c) || await o(c), e.value = c, r.value.push(c), f();
}, d = () => { }, d = () => {
if (n.value.length > 1) { if (r.value.length > 1) {
n.value.pop(); r.value.pop();
const c = n.value.pop(); const c = r.value.pop();
g(c); g(c);
} }
}; };
return N(() => { return L(() => {
r = Ie(u.value), window.addEventListener("resize", () => { n = Ve(u.value), window.addEventListener("resize", () => {
r == null || r.resize(); n == null || n.resize();
}), r.on("click", (c) => { }), n.on("click", (c) => {
if (c.componentType === "series" && c.seriesType === "scatter") { if (c.componentType === "series" && c.seriesType === "scatter") {
a("pointClick", c.data); a("pointClick", c.data);
return; return;
} }
c.name !== e.value && g(c.name); c.name !== e.value && g(c.name);
}), r.on("mouseover", function(c) { }), n.on("mouseover", function(c) {
if (c.componentType === "series" && c.seriesType === "scatter") { if (c.componentType === "series" && c.seriesType === "scatter") {
const m = c.dataIndex, x = r.getOption(), l = x.series[c.seriesIndex].data, h = x.series[c.seriesIndex].symbolSize; const m = c.dataIndex, x = n.getOption(), l = x.series[c.seriesIndex].data, h = x.series[c.seriesIndex].symbolSize;
l[m].symbolSize = h + 10, r.setOption(x); l[m].symbolSize = h + 10, n.setOption(x);
} }
}), r.on("mouseout", function(c) { }), n.on("mouseout", function(c) {
if (c.componentType === "series" && c.seriesType === "scatter") { if (c.componentType === "series" && c.seriesType === "scatter") {
const m = c.dataIndex, x = r.getOption(), l = x.series[c.seriesIndex].data; const m = c.dataIndex, x = n.getOption(), l = x.series[c.seriesIndex].data;
delete l[m].symbolSize, r.setOption(x); delete l[m].symbolSize, n.setOption(x);
} }
}); });
}), { }), {
chartRef: u, chartRef: u,
historyNames: n, historyNames: r,
currenName: e, currenName: e,
changeMap: g, changeMap: g,
getCityName: p, getCityName: p,
...@@ -838,7 +839,7 @@ function Ze(t, a) { ...@@ -838,7 +839,7 @@ function Ze(t, a) {
refresh: f refresh: f
}; };
} }
const et = D({ const st = D({
name: "MapChart", name: "MapChart",
props: { props: {
mapData: { mapData: {
...@@ -860,14 +861,14 @@ const et = D({ ...@@ -860,14 +861,14 @@ const et = D({
setup(t, { setup(t, {
emit: a emit: a
}) { }) {
const s = S("map-chart"), e = L(() => Te(We, t.options)), { const s = S("map-chart"), e = R(() => Ie(Xe, t.options)), {
chartRef: n, chartRef: r,
historyNames: r, historyNames: n,
changeMap: u, changeMap: u,
getCityName: v, getCityName: v,
goBack: o, goBack: o,
refresh: p refresh: p
} = Ze((d) => { } = tt((d) => {
const { const {
visualMap: c, visualMap: c,
pointSymbol: m pointSymbol: m
...@@ -972,7 +973,7 @@ const et = D({ ...@@ -972,7 +973,7 @@ const et = D({
}, (d, c) => { }, (d, c) => {
d === "mapChange" ? a("mapChange", c.name) : a(d, c); d === "mapChange" ? a("mapChange", c.name) : a(d, c);
}); });
N(() => { L(() => {
u(t.defaultMapName, !0); u(t.defaultMapName, !0);
}); });
const { const {
...@@ -983,8 +984,8 @@ const et = D({ ...@@ -983,8 +984,8 @@ const et = D({
p(); p();
}), { }), {
ns: s, ns: s,
chartRef: n, chartRef: r,
historyNames: r, historyNames: n,
goBack: o goBack: o
}; };
}, },
...@@ -1003,11 +1004,11 @@ const et = D({ ...@@ -1003,11 +1004,11 @@ const et = D({
} }
}, ["\u8FD4\u56DE"])]); }, ["\u8FD4\u56DE"])]);
} }
}), tt = `image://${E.dir("/assets/img/fiveStars.png")}`, st = D({ }), at = `image://${T.dir("/assets/img/fiveStars.png")}`, it = D({
name: "PortalMapArea", name: "PortalMapArea",
props: { props: {
modelData: { modelData: {
type: Ce, type: xe,
required: !0 required: !0
}, },
controller: { controller: {
...@@ -1042,14 +1043,14 @@ const et = D({ ...@@ -1042,14 +1043,14 @@ const et = D({
class: this.ns.e("center") class: this.ns.e("center")
}, [i("div", { }, [i("div", {
class: this.ns.e("title") class: this.ns.e("title")
}, [`${this.c.data.orgname} \u2014 ${this.c.data.yzrs}\u4EBA`]), i(et, { }, [`${this.c.data.orgname} \u2014 ${this.c.data.yzrs}\u4EBA`]), i(st, {
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: tt pointSymbol: at
} }
}, },
on: { on: {
...@@ -1072,20 +1073,20 @@ const et = D({ ...@@ -1072,20 +1073,20 @@ const et = D({
})]); })]);
} }
}); });
class at { class rt {
constructor() { constructor() {
w(this, "component", st); w(this, "component", it);
} }
async createController(a, s, e) { async createController(a, s, e) {
const n = new W( const r = new W(
a, a,
s, s,
e e
); );
return await n.init(), n; return await r.init(), r;
} }
} }
class it extends De { class nt extends Se {
constructor() { constructor() {
super(...arguments); super(...arguments);
w(this, "unit", ""); w(this, "unit", "");
...@@ -1106,27 +1107,27 @@ class it extends De { ...@@ -1106,27 +1107,27 @@ class it extends De {
}), s; }), s;
} }
} }
function rt(t, a, s, e = {}) { function ot(t, a, s, e = {}) {
return le(t, () => { return le(t, () => {
const n = new it(a, s, e); const r = new nt(a, s, e);
return ce(t, "mdCtrlActiveMode", n.setMdCtrlActiveMode.bind(n)), n; return ce(t, "mdCtrlActiveMode", r.setMdCtrlActiveMode.bind(r)), r;
}); });
} }
function nt(t) { function lt(t) {
return { handleClick: (e) => { return { handleClick: (e) => {
const n = t.selectedData.findIndex((r) => e.srfkey === r.srfkey); const r = t.selectedData.findIndex((n) => e.srfkey === n.srfkey);
if (t.singleSelect) if (t.singleSelect)
n === -1 ? t.onSelectionChange([e]) : t.onSelectionChange([]); r === -1 ? t.onSelectionChange([e]) : t.onSelectionChange([]);
else { else {
const r = t.selectedData; const n = t.selectedData;
n === -1 ? r.push(e) : r.splice(n, 1), t.onSelectionChange(r); r === -1 ? n.push(e) : n.splice(r, 1), t.onSelectionChange(n);
} }
t.handleClick(e); t.handleClick(e);
}, handleDblClick: (e) => { }, handleDblClick: (e) => {
t.handleDblClick(e); t.handleDblClick(e);
} }; } };
} }
const ot = D({ const ct = D({
name: "KqqkListControl", name: "KqqkListControl",
props: { props: {
modelData: { modelData: {
...@@ -1157,17 +1158,17 @@ const ot = D({ ...@@ -1157,17 +1158,17 @@ const ot = D({
setup(t) { setup(t) {
const { const {
proxy: a proxy: a
} = I(), s = S("kqqk-list"), e = rt(a, t.modelData, t.context, t.params), { } = I(), s = S("kqqk-list"), e = ot(a, t.modelData, t.context, t.params), {
handleClick: n, handleClick: r,
handleDblClick: r handleDblClick: n
} = nt(e), u = (o, p) => { } = lt(e), u = (o, p) => {
const f = e.selectedData.findIndex((d) => d.srfkey === o.srfkey), g = [s.b("item"), s.is("active", f !== -1)]; const f = e.selectedData.findIndex((d) => d.srfkey === o.srfkey), g = [s.b("item"), s.is("active", f !== -1)];
return i("div", { return i("div", {
class: g, class: g,
key: o.srfkey + p, key: o.srfkey + p,
on: { on: {
click: () => n(o), click: () => r(o),
dblclick: () => r(o) dblclick: () => n(o)
} }
}, [i("span", { }, [i("span", {
class: s.be("item", "title") class: s.be("item", "title")
...@@ -1195,26 +1196,26 @@ const ot = D({ ...@@ -1195,26 +1196,26 @@ const ot = D({
}, [this.c.complete && [this.renderListContent()]]); }, [this.c.complete && [this.renderListContent()]]);
} }
}); });
class lt { class dt {
constructor() { constructor() {
w(this, "component", ot); w(this, "component", ct);
} }
} }
function ct(t) { function ut(t) {
return { handleClick: (e) => { return { handleClick: (e) => {
const n = t.selectedData.findIndex((r) => e.srfkey === r.srfkey); const r = t.selectedData.findIndex((n) => e.srfkey === n.srfkey);
if (t.singleSelect) if (t.singleSelect)
n === -1 ? t.onSelectionChange([e]) : t.onSelectionChange([]); r === -1 ? t.onSelectionChange([e]) : t.onSelectionChange([]);
else { else {
const r = t.selectedData; const n = t.selectedData;
n === -1 ? r.push(e) : r.splice(n, 1), t.onSelectionChange(r); r === -1 ? n.push(e) : n.splice(r, 1), t.onSelectionChange(n);
} }
t.handleClick(e); t.handleClick(e);
}, handleDblClick: (e) => { }, handleDblClick: (e) => {
t.handleDblClick(e); t.handleDblClick(e);
} }; } };
} }
const R = D({ const N = D({
name: "ListExpControl", name: "ListExpControl",
props: { props: {
modelData: { modelData: {
...@@ -1250,11 +1251,11 @@ const R = D({ ...@@ -1250,11 +1251,11 @@ const R = D({
const { const {
proxy: a proxy: a
} = I(), s = S("control-list"), e = de(a, t.modelData, t.context, t.params), { } = I(), s = S("control-list"), e = de(a, t.modelData, t.context, t.params), {
handleClick: n, handleClick: r,
handleDblClick: r handleDblClick: n
} = ct(e); } = ut(e);
let u = !0; let u = !0;
N(() => { L(() => {
_(() => e, (d, c) => { _(() => e, (d, c) => {
if (t.isExpView && d && d !== c) { if (t.isExpView && d && d !== c) {
let m = e.items[0]; let m = e.items[0];
...@@ -1278,13 +1279,13 @@ const R = D({ ...@@ -1278,13 +1279,13 @@ const R = D({
srfkey: e.items[0].srfkey srfkey: e.items[0].srfkey
}]); }]);
const c = e.selectedData.findIndex((l) => l.srfkey === d.srfkey), m = () => { const c = e.selectedData.findIndex((l) => l.srfkey === d.srfkey), m = () => {
u = !1, delete e.context.n_orgid_eq, e.context.calendarcaption = d.deptname, n(d); u = !1, delete e.context.n_orgid_eq, e.context.calendarcaption = d.deptname, r(d);
}, x = [s.b("item"), s.is("active", c !== -1 && u === !1)]; }, x = [s.b("item"), s.is("active", c !== -1 && u === !1)];
return i("div", { return i("div", {
class: x, class: x,
on: { on: {
click: () => m(), click: () => m(),
dblclick: () => r(d) dblclick: () => n(d)
} }
}, [e.layoutPanelProvider ? i(e.layoutPanelProvider.component, { }, [e.layoutPanelProvider ? i(e.layoutPanelProvider.component, {
props: { props: {
...@@ -1299,7 +1300,7 @@ const R = D({ ...@@ -1299,7 +1300,7 @@ const R = D({
}, [i("div", ["\u6682\u65E0\u6570\u636E"])]), f = (d) => { }, [i("div", ["\u6682\u65E0\u6570\u636E"])]), f = (d) => {
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
}), e.context.calendarcaption = d.deptname, n(d); }), e.context.calendarcaption = d.deptname, r(d);
}, g = () => { }, g = () => {
const d = [s.b("item"), s.is("active", u === !0)]; const d = [s.b("item"), s.is("active", u === !0)];
return e.items.length > 0 ? i("div", { return e.items.length > 0 ? i("div", {
...@@ -1357,11 +1358,11 @@ const R = D({ ...@@ -1357,11 +1358,11 @@ const R = D({
}, [this.c.complete && [this.renderAll(), this.renderListContent(), this.renderLoadMore()]]); }, [this.c.complete && [this.renderAll(), this.renderListContent(), this.renderLoadMore()]]);
} }
}); });
const dt = D({ const ht = D({
name: "ListExpSelectTreeView", name: "ListExpSelectTreeView",
components: { components: {
Treeselect: je, Treeselect: ze,
ListExpControl: R ListExpControl: N
}, },
props: { props: {
context: Object, context: Object,
...@@ -1380,9 +1381,9 @@ const dt = D({ ...@@ -1380,9 +1381,9 @@ const dt = D({
setup(t) { setup(t) {
const { const {
proxy: a proxy: a
} = I(), s = ue(a, t.modelPath), e = C(""), n = C([]), r = S("list-exp-select-tree"); } = I(), s = ue(a, t.modelPath), e = C(""), r = C([]), n = 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, n.value = [t.srfnav]), he(re(s.navItem, "key"), a, e); t.srfnav && (s.navItem.key = t.srfnav, r.value = [t.srfnav]), he(re(s.navItem, "key"), a, e);
}); });
const u = [`${s.context.srforgid}`]; const u = [`${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, {
...@@ -1399,14 +1400,14 @@ const dt = D({ ...@@ -1399,14 +1400,14 @@ const dt = D({
}, p = C(!1); }, p = C(!1);
return { return {
c: s, c: s,
defaultSelectKeys: n, defaultSelectKeys: r,
routeViewKey: e, routeViewKey: e,
normalizer: v, normalizer: v,
select: o, select: o,
dataItems: [], dataItems: [],
isLoadCodeList: p, isLoadCodeList: p,
value: u, value: u,
ns: r ns: n
}; };
}, },
render() { render() {
...@@ -1418,13 +1419,13 @@ const dt = D({ ...@@ -1418,13 +1419,13 @@ const dt = D({
} = a, e = this.c.model.codeName; } = a, e = this.c.model.codeName;
if (this.dataItems.length === 0 && e === "SysDepartmentKqAYTJListExp1View") { if (this.dataItems.length === 0 && e === "SysDepartmentKqAYTJListExp1View") {
const { const {
codeName: n codeName: r
} = this.c.model.source.getQuickGroupPSCodeList(); } = this.c.model.source.getQuickGroupPSCodeList();
(async (u) => { (async (u) => {
this.dataItems = await ibiz.codeListService.get(u, this.c.context, { this.dataItems = await ibiz.codeListService.get(u, this.c.context, {
size: 1e3 size: 1e3
}), this.isLoadCodeList = !0; }), this.isLoadCodeList = !0;
})(n); })(r);
} }
return i("exp-view-base", { return i("exp-view-base", {
class: [this.ns.b()], class: [this.ns.b()],
...@@ -1433,7 +1434,7 @@ const dt = D({ ...@@ -1433,7 +1434,7 @@ const dt = D({
expBarModel: this.c.model.listExpBar expBarModel: this.c.model.listExpBar
}, },
scopedSlots: { scopedSlots: {
default: () => i(R, { default: () => i(N, {
attrs: { attrs: {
modelData: s, modelData: s,
context: this.c.context, context: this.c.context,
...@@ -1484,39 +1485,39 @@ const dt = D({ ...@@ -1484,39 +1485,39 @@ const dt = D({
return null; return null;
} }
}); });
class ut { class pt {
constructor() { constructor() {
w(this, "component", "ListExpSelectTreeView"); w(this, "component", "ListExpSelectTreeView");
} }
} }
class ht { class mt {
constructor() { constructor() {
w(this, "component", "BYQKEditView"); w(this, "component", "BYQKEditView");
} }
} }
class pt { class ft {
constructor() { constructor() {
w(this, "formEditor", "KqBase64ImageUpload"); w(this, "formEditor", "KqBase64ImageUpload");
w(this, "gridEditor", "IBizGridFileUpload"); w(this, "gridEditor", "IBizGridFileUpload");
} }
async createController(a, s) { async createController(a, s) {
const e = new Se(a, s); const e = new _e(a, s);
return await e.init(), e; return await e.init(), e;
} }
} }
const mt = D({ const gt = D({
name: "KqBase64ImageUpload", name: "KqBase64ImageUpload",
props: pe(), props: pe(),
emits: me(), emits: me(),
setup(t) { setup(t) {
var r, u, v; var n, u, v;
const a = S("kq-base64-image-upload"), s = ((r = t.controller.model) == null ? void 0 : r.width) || "auto", e = ((u = t.controller.model) == null ? void 0 : u.height) || "150px", n = ((v = t.controller.editorParams) == null ? void 0 : v["justify-content"]) || "center"; const a = S("kq-base64-image-upload"), s = ((n = t.controller.model) == null ? void 0 : n.width) || "auto", e = ((u = t.controller.model) == null ? void 0 : u.height) || "150px", r = ((v = t.controller.editorParams) == null ? void 0 : v["justify-content"]) || "center";
return () => i("div", { return () => i("div", {
class: a.b(), class: a.b(),
style: { style: {
width: s, width: s,
height: e, height: e,
justifyContent: n justifyContent: r
} }
}, [i("img", { }, [i("img", {
attrs: { attrs: {
...@@ -1526,12 +1527,12 @@ const mt = D({ ...@@ -1526,12 +1527,12 @@ const mt = D({
})]); })]);
} }
}); });
class ft { class yt {
constructor() { constructor() {
w(this, "component", "KqdwCustomPickupTreeView"); w(this, "component", "KqdwCustomPickupTreeView");
} }
} }
const gt = D({ const vt = D({
name: "KqdwCustomPickupTreeView", name: "KqdwCustomPickupTreeView",
props: { props: {
context: { context: {
...@@ -1553,29 +1554,29 @@ const gt = D({ ...@@ -1553,29 +1554,29 @@ const gt = D({
setup(t) { setup(t) {
const a = S("kqdw-custom-pickup-tree-view"), { const a = S("kqdw-custom-pickup-tree-view"), {
proxy: s proxy: s
} = I(), e = fe(s, t.modelPath), n = C(null); } = I(), e = fe(s, t.modelPath), r = C(null);
let r = null; let n = null;
const u = C([]), v = C({}), o = C([]), p = C([]), f = C(""), g = C([]), d = async (y) => { const u = C([]), v = C({}), o = C([]), p = C([]), f = C(""), g = C([]), d = async (y) => {
await r.loadNodes(y), v.value = y, o.value.push(y); await n.loadNodes(y), v.value = y, o.value.push(y);
}; };
return _(() => e.complete, async (y, P) => { return _(() => e.complete, async (y, P) => {
var q; var q;
if (y !== P && y) { if (y !== P && y) {
await e.model.pickupViewPanel.embedView.init(); await e.model.pickupViewPanel.embedView.init();
const A = (q = e.model.pickupViewPanel.embedView.source.getPSControls()) == null ? void 0 : q.find((j) => j.controlType === "TREEVIEW"); const A = (q = e.model.pickupViewPanel.embedView.source.getPSControls()) == null ? void 0 : q.find((j) => j.controlType === "TREEVIEW");
A || console.warn("\u672A\u627E\u5230[\u6811(tree)]\u90E8\u4EF6"), n.value = new xe(A), await n.value.init(), r = ge(s, n.value, t.context, t.params), await r.init(); A || console.warn("\u672A\u627E\u5230[\u6811(tree)]\u90E8\u4EF6"), r.value = new ke(A), await r.value.init(), n = ge(s, r.value, t.context, t.params), await n.init();
const V = await r.load(); const V = await n.load();
if (V.length > 0 && (u.value = V, v.value.children = V, o.value.push({ if (V.length > 0 && (u.value = V, v.value.children = V, o.value.push({
text: "\u5F53\u524D\u9662", text: "\u5F53\u524D\u9662",
children: V children: V
})), e.params.selectedData) { })), e.params.selectedData) {
const j = JSON.parse(e.params.selectedData); const j = JSON.parse(e.params.selectedData);
j.length > 0 && (p.value = j.map((T) => ({ j.length > 0 && (p.value = j.map((E) => ({
srfkey: T.srfkey, srfkey: E.srfkey,
srfmajortext: T.srfmajortext, srfmajortext: E.srfmajortext,
value: T.srfkey, value: E.srfkey,
text: T.srfmajortext, text: E.srfmajortext,
dxlx: T.dxlx dxlx: E.dxlx
}))); })));
} }
} }
...@@ -1620,7 +1621,7 @@ const gt = D({ ...@@ -1620,7 +1621,7 @@ const gt = D({
})); }));
}, },
search: async () => { search: async () => {
const y = await (r == null ? void 0 : r.load()); const y = await (n == null ? void 0 : n.load());
y && (g.value = y); y && (g.value = y);
}, },
queryTreeNodeList: g queryTreeNodeList: g
...@@ -1740,16 +1741,16 @@ const gt = D({ ...@@ -1740,16 +1741,16 @@ const gt = D({
}, ["\u53D6\u6D88"])])]); }, ["\u53D6\u6D88"])])]);
} }
}); });
class yt { class wt {
constructor() { constructor() {
w(this, "component", "KqbcFormMDCtrl"); w(this, "component", "KqbcFormMDCtrl");
} }
async createController(a, s, e) { async createController(a, s, e) {
const n = new _e(a, s, e); const r = new Me(a, s, e);
return await n.init(), n; return await r.init(), r;
} }
} }
const vt = D({ const bt = D({
name: "UserTabPageExp", name: "UserTabPageExp",
props: { props: {
routeMsgs: { routeMsgs: {
...@@ -1765,7 +1766,7 @@ const vt = D({ ...@@ -1765,7 +1766,7 @@ const vt = D({
setup(t, { setup(t, {
emit: a emit: a
}) { }) {
const s = S("user-tab-page-exp"), e = C("0"), n = [{ const s = S("user-tab-page-exp"), e = C("0"), r = [{
text: "\u5173\u95ED\u6240\u6709", text: "\u5173\u95ED\u6240\u6709",
value: "closeAll" value: "closeAll"
}, { }, {
...@@ -1778,7 +1779,7 @@ const vt = D({ ...@@ -1778,7 +1779,7 @@ const vt = D({
}), { }), {
ns: s, ns: s,
tabsValue: e, tabsValue: e,
actions: n, actions: r,
changePage: (o) => { changePage: (o) => {
e.value = o, a("tab-click", +o); e.value = o, a("tab-click", +o);
}, },
...@@ -1820,12 +1821,12 @@ const vt = D({ ...@@ -1820,12 +1821,12 @@ const vt = D({
}))])])]); }))])])]);
} }
}); });
class wt { class Ct {
constructor() { constructor() {
w(this, "component", "QytjGridView"); w(this, "component", "QytjGridView");
} }
} }
class bt extends Me { class xt extends Te {
constructor() { constructor() {
super(...arguments); super(...arguments);
w(this, "qjgrid"); w(this, "qjgrid");
...@@ -1838,7 +1839,7 @@ class bt extends Me { ...@@ -1838,7 +1839,7 @@ class bt extends Me {
super.connect(s, e), s === "qjgrid" && (this.qjgrid = e), s === "ycgrid" && (this.ycgrid = e); super.connect(s, e), s === "qjgrid" && (this.qjgrid = e), s === "ycgrid" && (this.ycgrid = e);
} }
} }
class Ct extends Ee { class kt extends Ee {
constructor() { constructor() {
super(...arguments); super(...arguments);
w(this, "activeRadio", "qyry"); w(this, "activeRadio", "qyry");
...@@ -1846,7 +1847,7 @@ class Ct extends Ee { ...@@ -1846,7 +1847,7 @@ class Ct extends Ee {
w(this, "activeGrid", !0); w(this, "activeGrid", !0);
} }
createNerve() { createNerve() {
return new bt(this); return new xt(this);
} }
async onInit() { async onInit() {
await super.onInit(); await super.onInit();
...@@ -1858,6 +1859,19 @@ class Ct extends Ee { ...@@ -1858,6 +1859,19 @@ class Ct extends Ee {
load() { load() {
return this.params.n_kqny_eq || this.setTimeFrameParams(), this.activeRadio === "ycry" ? this.nerve.ycgrid.call.load() : this.activeRadio === "qjry" ? this.nerve.qjgrid.call.load() : this.nerve.grid.call.load(); return this.params.n_kqny_eq || this.setTimeFrameParams(), this.activeRadio === "ycry" ? this.nerve.ycgrid.call.load() : this.activeRadio === "qjry" ? this.nerve.qjgrid.call.load() : this.nerve.grid.call.load();
} }
setSort() {
let s = null;
if (this.activeRadio === "ycry")
s = this.ycgrid.source.getPSControlParam();
else if (this.activeRadio === "qjry")
s = this.qjgrid.source.getPSControlParam();
else {
const e = this.model.source.getPSAppViewNavParams();
let r = {};
we(e) && (r = Ae(e, this.context, this.params)), Object.assign(this.params, r);
}
s && s.ctrlParams.SORT && (this.params.sort = s.ctrlParams.SORT);
}
setActiveRadio(s) { setActiveRadio(s) {
this.activeRadio = s, this.setTimeFrameParams(), this.load(); this.activeRadio = s, this.setTimeFrameParams(), this.load();
} }
...@@ -1865,7 +1879,7 @@ class Ct extends Ee { ...@@ -1865,7 +1879,7 @@ class Ct extends Ee {
this.selectTimeFrame = s, this.setTimeFrameParams(), this.load(); this.selectTimeFrame = s, this.setTimeFrameParams(), this.load();
} }
setTimeFrameParams() { setTimeFrameParams() {
this.params.n_kqny_eq = this.selectTimeFrame; this.params.n_kqny_eq = this.selectTimeFrame, this.setSort();
} }
async exportData(s) { async exportData(s) {
if (this.activeRadio === "ycry") { if (this.activeRadio === "ycry") {
...@@ -1880,13 +1894,13 @@ class Ct extends Ee { ...@@ -1880,13 +1894,13 @@ class Ct extends Ee {
} }
} }
} }
function xt(t, a) { function Pt(t, a) {
return ye( return ye(
t, t,
(s, e) => new Ct(a, s, e) (s, e) => new kt(a, s, e)
); );
} }
const kt = D({ const qt = D({
name: "QytjGridView", name: "QytjGridView",
props: { props: {
context: Object, context: Object,
...@@ -1905,13 +1919,13 @@ const kt = D({ ...@@ -1905,13 +1919,13 @@ const kt = D({
setup(t) { setup(t) {
const { const {
proxy: a proxy: a
} = I(), s = S("qytj-grid-view"), e = xt(a, t.modelPath); } = I(), s = S("qytj-grid-view"), e = Pt(a, t.modelPath);
ne(() => e.refresh()); ne(() => e.refresh());
const n = L(() => e.activeRadio); const r = R(() => e.activeRadio);
return _(() => t.context, () => { return _(() => t.context, () => {
const r = e.context.n_orgid_eq; const n = e.context.n_orgid_eq;
r ? Object.assign(e.params, { n ? Object.assign(e.params, {
n_orgid_eq: r n_orgid_eq: n
}) : e.params.n_orgid_eq && delete e.params.n_orgid_eq; }) : e.params.n_orgid_eq && delete e.params.n_orgid_eq;
}, { }, {
deep: !0, deep: !0,
...@@ -1919,59 +1933,59 @@ const kt = D({ ...@@ -1919,59 +1933,59 @@ const kt = D({
}), { }), {
c: e, c: e,
ns: s, ns: s,
activeRadio: n activeRadio: r
}; };
}, },
render(t) { render(t) {
let a = null, s = null, e = null; let a = null, s = null, e = null;
if (this.c.complete) { if (this.c.complete) {
const { const {
grid: n grid: r
} = this.c.model; } = this.c.model;
if (this.c.providers[n.name] && (a = t(this.c.providers[n.name].component, { if (this.c.providers[r.name] && (a = t(this.c.providers[r.name].component, {
key: "grid", key: "grid",
class: [this.ns.e("grid"), this.ns.is("active", this.activeRadio === "qyry")], class: [this.ns.e("grid"), this.ns.is("active", this.activeRadio === "qyry")],
props: { props: {
modelData: n, modelData: r,
context: this.c.context, context: this.c.context,
params: this.c.params params: this.c.params
}, },
on: { on: {
neuronInit: this.c.nerve.onNeuronInit(n.name) neuronInit: this.c.nerve.onNeuronInit(r.name)
} }
})), this.activeRadio === "ycry" || this.c.activeGrid) { })), this.activeRadio === "ycry" || this.c.activeGrid) {
const { const {
ycgrid: r ycgrid: n
} = this.c; } = this.c;
this.c.providers.grid && (s = t(this.c.providers.grid.component, { this.c.providers.grid && (s = t(this.c.providers.grid.component, {
key: "ycgrid", key: "ycgrid",
class: [this.ns.e("grid"), this.ns.is("active", this.activeRadio === "ycry")], class: [this.ns.e("grid"), this.ns.is("active", this.activeRadio === "ycry")],
props: { props: {
modelData: r, modelData: n,
context: this.c.context, context: this.c.context,
params: this.c.params, params: this.c.params,
"grid-row-active-mode": this.c.model.gridRowActiveMode "grid-row-active-mode": this.c.model.gridRowActiveMode
}, },
on: { on: {
neuronInit: this.c.nerve.onNeuronInit(r.name) neuronInit: this.c.nerve.onNeuronInit(n.name)
} }
})); }));
} }
if (this.activeRadio === "qjry" || this.c.activeGrid) { if (this.activeRadio === "qjry" || this.c.activeGrid) {
const { const {
qjgrid: r qjgrid: n
} = this.c; } = this.c;
this.c.providers.grid && (e = t(this.c.providers.grid.component, { this.c.providers.grid && (e = t(this.c.providers.grid.component, {
key: "qjgrid", key: "qjgrid",
class: [this.ns.e("grid"), this.ns.is("active", this.activeRadio === "qjry")], class: [this.ns.e("grid"), this.ns.is("active", this.activeRadio === "qjry")],
props: { props: {
modelData: r, modelData: n,
context: this.c.context, context: this.c.context,
params: this.c.params, params: this.c.params,
"grid-row-active-mode": this.c.model.gridRowActiveMode "grid-row-active-mode": this.c.model.gridRowActiveMode
}, },
on: { on: {
neuronInit: this.c.nerve.onNeuronInit(r.name) neuronInit: this.c.nerve.onNeuronInit(n.name)
} }
})); }));
} }
...@@ -1983,15 +1997,15 @@ const kt = D({ ...@@ -1983,15 +1997,15 @@ const kt = D({
}, },
scopedSlots: { scopedSlots: {
caption: () => { caption: () => {
const n = `${this.c.context.calendarcaption || this.c.context.srfpersonname}\u7EDF\u8BA1`; const r = `${this.c.context.calendarcaption || this.c.context.srfpersonname}\u7EDF\u8BA1`;
return t("div", { return t("div", {
class: this.ns.b("caption") class: this.ns.b("caption")
}, [t("span", { }, [t("span", {
class: this.ns.be("caption", "text"), class: this.ns.be("caption", "text"),
attrs: { attrs: {
title: n title: r
} }
}, [n])]); }, [r])]);
}, },
toolbar: () => [t("div", { toolbar: () => [t("div", {
class: [this.ns.b("exp")] class: [this.ns.b("exp")]
...@@ -2001,8 +2015,8 @@ const kt = D({ ...@@ -2001,8 +2015,8 @@ const kt = D({
type: "button" type: "button"
}, },
on: { on: {
"on-change": (n) => { "on-change": (r) => {
this.c.setActiveRadio(n); this.c.setActiveRadio(r);
} }
} }
}, [t("i-radio", { }, [t("i-radio", {
...@@ -2040,8 +2054,8 @@ const kt = D({ ...@@ -2040,8 +2054,8 @@ const kt = D({
placeholder: "\u8BF7\u9009\u62E9" placeholder: "\u8BF7\u9009\u62E9"
}, },
on: { on: {
"on-change": (n) => { "on-change": (r) => {
this.c.setSelectTimeFrame(n); this.c.setSelectTimeFrame(r);
} }
}, },
style: "width: 110px;" style: "width: 110px;"
...@@ -2049,10 +2063,10 @@ const kt = D({ ...@@ -2049,10 +2063,10 @@ const kt = D({
} }
}, [a, s, e]); }, [a, s, e]);
} }
}), zt = { }), Rt = {
mateUrl: import.meta.url, mateUrl: import.meta.url,
install(t) { install(t) {
t.component("UserTabPageExp", vt), t.component("UserIndexView", Be), t.component("UserAppLayout", Ge), t.component("ListExpSelectTreeView", dt), t.component("ListExpControl", R), t.component("ChangePassword", Y), t.component( t.component("UserTabPageExp", bt), t.component("UserIndexView", Ge), t.component("UserAppLayout", Ye), t.component("ListExpSelectTreeView", ht), t.component("ListExpControl", N), t.component("ChangePassword", Y), t.component(
"BYQKEditView", "BYQKEditView",
() => import("./byqk-edit-view.fea98c06.js") () => import("./byqk-edit-view.fea98c06.js")
), t.component( ), t.component(
...@@ -2060,34 +2074,34 @@ const kt = D({ ...@@ -2060,34 +2074,34 @@ const kt = D({
() => 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 ze() new Oe()
), ibiz.register.view.register( ), ibiz.register.view.register(
"VIEW_CUSTOM_ListExpSelectTreeView", "VIEW_CUSTOM_ListExpSelectTreeView",
new ut() new pt()
), E.loadStyle(["/style.css"]), ibiz.register.portletPart.register( ), T.loadStyle(["/style.css"]), ibiz.register.portletPart.register(
"PORTLET_CUSTOM_JskqWebPortalSearchHeader", "PORTLET_CUSTOM_JskqWebPortalSearchHeader",
new Ye() new We()
), ibiz.register.portletPart.register( ), ibiz.register.portletPart.register(
"PORTLET_CUSTOM_jskqWebPortalMapArea", "PORTLET_CUSTOM_jskqWebPortalMapArea",
new at() new rt()
), ibiz.register.control.register( ), ibiz.register.control.register(
"LIST_RENDER_JskqWebKqqkList", "LIST_RENDER_JskqWebKqqkList",
new lt() new dt()
), ibiz.register.view.register( ), ibiz.register.view.register(
"VIEW_CUSTOM_ByqkCustomEditView", "VIEW_CUSTOM_ByqkCustomEditView",
new ht() new mt()
), t.component("KqBase64ImageUpload", mt), ibiz.register.editor.register( ), t.component("KqBase64ImageUpload", gt), ibiz.register.editor.register(
"PICTURE_ONE_Base64ImageUpload", "PICTURE_ONE_Base64ImageUpload",
new pt()
), t.component("KqdwCustomPickupTreeView", gt), ibiz.register.view.register(
"VIEW_CUSTOM_KqdwCustomPickupTreeView",
new ft() new ft()
), t.component("QytjGridView", kt), ibiz.register.view.register( ), t.component("KqdwCustomPickupTreeView", vt), ibiz.register.view.register(
"VIEW_CUSTOM_KqdwCustomPickupTreeView",
new yt()
), t.component("QytjGridView", qt), ibiz.register.view.register(
"VIEW_CUSTOM_QytjGridView", "VIEW_CUSTOM_QytjGridView",
new wt() new Ct()
), ibiz.register.formDetail.register("MDCTRL", new yt()); ), ibiz.register.formDetail.register("MDCTRL", new wt());
} }
}; };
export { export {
zt as default Rt as default
}; };
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册