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

feat: 更新插件

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