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

feat: 更新插件

上级 5e58b9e2
......@@ -6,19 +6,18 @@ import { ref as w, watch as _, defineComponent as S, getCurrentInstance as V, co
import { useRouter as H, useRoute as B, useIndexViewController as re, useNamespace as q, useControlController as ie, usePropsWatch as le, useListController as ce, useListExpViewController as de, useRouteKey as ue, getUploadProps as he, getEditorEmits as pe, useMPickupViewController as me, useTreeController as fe } from "@ibiz-template/vue-util";
import { createUUID as ge } from "qx-util";
import { IndexViewModel as ve, PortletPartModel as ye, ViewPortletModel as we, ListModel as W, TreeModel as be } from "@ibiz-template/model";
import Ce from "@vue/babel-helper-vue-jsx-merge-props";
import K from "dayjs";
import { CustomPortletController as xe, ViewPortletController as ke, EditFormController as Pe, ListController as De, UploadEditorController as Se, FormMDCtrlController as qe } from "@ibiz-template/controller";
import { init as Y, registerMap as _e } from "echarts";
import { mergeDeepRight as Me } from "ramda";
import { Treeselect as Ee } from "@riophae/vue-treeselect";
import { CustomPortletController as Ce, ViewPortletController as xe, EditFormController as ke, ListController as Pe, UploadEditorController as De, FormMDCtrlController as Se } from "@ibiz-template/controller";
import { init as Y, registerMap as qe } from "echarts";
import { mergeDeepRight as _e } from "ramda";
import { Treeselect as Me } from "@riophae/vue-treeselect";
const E = new se(import.meta.url);
class Te {
class Ee {
constructor() {
C(this, "component", "UserIndexView");
}
}
const Ie = (t) => {
const Te = (t) => {
const { view2: n, params2: s, params1: e } = t.params;
if (!n)
return "";
......@@ -27,11 +26,11 @@ const Ie = (t) => {
""
);
return r = r || ibiz.env.routePlaceholder, `/${e}/${n}/${r}`;
}, ze = (t) => {
}, Ie = (t) => {
const { view1: n, appContext: s } = t.params;
return `/${s}/${n}/${ibiz.env.routePlaceholder}`;
};
function Ve(t, n) {
function ze(t, n) {
const s = H(t), e = w(""), r = w(""), o = w([]), d = w([]), g = (l) => {
l.forEach((p) => {
const b = o.value.indexOf(p);
......@@ -45,7 +44,7 @@ function Ve(t, n) {
(l, p) => {
if (l !== p) {
const b = B(t);
e.value = Ie(b), r.value = ze(b);
e.value = Te(b), r.value = Ie(b);
const k = d.value.find(
(y) => y.key === e.value
);
......@@ -135,7 +134,7 @@ function Ve(t, n) {
}
};
}
const Ae = /* @__PURE__ */ S({
const Ve = /* @__PURE__ */ S({
__name: "index-view",
props: {
context: null,
......@@ -159,7 +158,7 @@ const Ae = /* @__PURE__ */ S({
handleTabDelete: z,
handleCloseAll: T,
handleCloseOther: X
} = Ve(s, e);
} = ze(s, e);
f = k, x = y, l = P, i = O, h = I, m = z, v = T, u = X, o = (M) => {
const L = f.value;
M.evt.on("closeView", () => {
......@@ -188,7 +187,7 @@ const Ae = /* @__PURE__ */ S({
} };
}
});
function Oe(t, n, s, e, r, o, d, g) {
function Ae(t, n, s, e, r, o, d, g) {
var i = typeof t == "function" ? t.options : t;
n && (i.render = n, i.staticRenderFns = s, i._compiled = !0), e && (i.functional = !0), o && (i._scopeId = "data-v-" + o);
var h;
......@@ -215,20 +214,20 @@ function Oe(t, n, s, e, r, o, d, g) {
options: i
};
}
var Le = function() {
var Oe = function() {
var n = this, s = n._self._c, e = n._self._setupProxy;
return s("UserAppLayout", { attrs: { "is-complete": e.c.complete, model: e.c.model, "is-show-tab-page-exp": e.isShowTabPageExp }, on: { onCollapseChange: e.collapseChange } }, [e.c.complete ? [e.c.complete ? s("app-menu", { attrs: { slot: "menu", "current-path": e.currentPath, "model-data": e.c.model.appMenu, context: e.c.context, "collapse-change": e.c.collapseChange }, on: { menuRouteChange: e.onMenuRouteChange }, slot: "menu" }) : n._e(), e.isShowTabPageExp ? s("user-tab-page-exp", { attrs: { slot: "tabPageExp", "route-msgs": e.routeMsgs, "current-key": e.currentKey }, on: { "tab-click": e.handleTabClick, "tab-delete": e.handleTabDelete, "close-all": e.handleCloseAll, "close-other": e.handleCloseOther }, slot: "tabPageExp" }) : n._e(), e.isShowTabPageExp ? s("AppKeepAlive", { attrs: { "key-list": e.keyHistory } }, [s("router-view", { key: e.currentKey, on: { neuronInit: e.onCreated, viewFound: e.onViewFound } })], 1) : s("AppKeepAlive", { key: e.appKeepAliveKey, attrs: { "key-list": e.keyHistory } }, [s("router-view", { key: e.currentKey, on: { neuronInit: e.onCreated, viewFound: e.onViewFound } })], 1)] : n._e()], 2);
}, je = [], Ke = /* @__PURE__ */ Oe(
Ae,
}, Le = [], je = /* @__PURE__ */ Ae(
Ve,
Oe,
Le,
je,
!1,
null,
null,
null,
null
);
const Ne = Ke.exports;
const Ke = je.exports;
const J = S({
name: "ChangePassword",
props: {
......@@ -293,7 +292,7 @@ const J = S({
};
return _(() => t.isShowModal, (i) => {
i === !0 && e.value && e.value.resetFields();
}), {
}), console.log(111), {
ns: s,
formData: r,
rules: d,
......@@ -302,22 +301,21 @@ const J = S({
handleSubmit: g
};
},
render() {
return a("i-form", Ce([{
render(t) {
return t("i-form", {
class: this.ns.b(),
ref: "formRef"
}, {
props: {
ref: "formRef",
attrs: {
model: this.formData,
rules: this.rules
}
}]), [a("i-form-item", {
}, [t("i-form-item", {
attrs: {
prop: "oldPwd",
"label-position": "top",
label: "\u539F\u5BC6\u7801"
}
}, [a("i-input", {
}, [t("i-input", {
attrs: {
type: "password",
password: !0,
......@@ -326,17 +324,17 @@ const J = S({
},
model: {
value: this.formData.oldPwd,
callback: (t) => {
this.$set(this.formData, "oldPwd", t);
callback: (n) => {
this.$set(this.formData, "oldPwd", n);
}
}
})]), a("i-form-item", {
})]), t("i-form-item", {
attrs: {
prop: "newPwd",
"label-position": "top",
label: "\u65B0\u5BC6\u7801"
}
}, [a("i-input", {
}, [t("i-input", {
attrs: {
type: "password",
password: !0,
......@@ -345,17 +343,17 @@ const J = S({
},
model: {
value: this.formData.newPwd,
callback: (t) => {
this.$set(this.formData, "newPwd", t);
callback: (n) => {
this.$set(this.formData, "newPwd", n);
}
}
})]), a("i-form-item", {
})]), t("i-form-item", {
attrs: {
prop: "newPwd2",
"label-position": "top",
label: "\u786E\u8BA4\u5BC6\u7801"
}
}, [a("i-input", {
}, [t("i-input", {
attrs: {
type: "password",
password: !0,
......@@ -364,11 +362,11 @@ const J = S({
},
model: {
value: this.formData.newPwd2,
callback: (t) => {
this.$set(this.formData, "newPwd2", t);
callback: (n) => {
this.$set(this.formData, "newPwd2", n);
}
}
})]), a("i-form-item", [a("i-button", {
})]), t("i-form-item", [t("i-button", {
class: this.ns.b("submit"),
on: {
click: this.handleSubmit
......@@ -380,7 +378,7 @@ const J = S({
}, ["\u786E\u8BA4\u4FEE\u6539"])])]);
}
});
function $e(t, n) {
function Ne(t, n) {
return a("div", {
class: t.e("logo")
}, [a("img", {
......@@ -392,7 +390,7 @@ function $e(t, n) {
class: t.e("logo-caption")
}, [n.caption])]);
}
const Re = S({
const $e = S({
name: "UserAppLayout",
props: {
model: {
......@@ -460,7 +458,7 @@ const Re = S({
value: this.collapseChange
},
class: [this.ns.b("nav"), this.ns.is("collapse", this.collapseChange)]
}, [$e(this.ns, this.model), a("div", {
}, [Ne(this.ns, this.model), a("div", {
class: this.ns.b("option")
}, [a("i-poptip", {
attrs: {
......@@ -569,7 +567,7 @@ const Re = S({
})])])]) : null;
}
});
class G extends xe {
class G extends Ce {
constructor() {
super(...arguments);
C(this, "options", []);
......@@ -595,7 +593,7 @@ class G extends xe {
);
}
}
const Fe = S({
const Re = S({
name: "PortletSearchHeader",
props: {
modelData: {
......@@ -663,9 +661,9 @@ const Fe = S({
})]);
}
});
class Be {
class Fe {
constructor() {
C(this, "component", Fe);
C(this, "component", Re);
}
async createController(n, s, e) {
const r = new G(
......@@ -676,7 +674,7 @@ class Be {
return await r.init(), r;
}
}
class Q extends ke {
class Q extends xe {
constructor() {
super(...arguments);
C(this, "data", {});
......@@ -694,7 +692,7 @@ class Q extends ke {
this.entityService = await ibiz.entityService.getService(
s.appEntity.codeName,
this.context
), this.form = new Pe(s, this.context, {
), this.form = new ke(s, this.context, {
...this.params
}), await this.form.init(), this.dashboard.nerve.self.evt.on("mounted", () => {
this.load();
......@@ -865,22 +863,22 @@ const j = S({
ref: "chartRef"
});
}
}), Ue = ["#FF0700", "#FFF400", "#73A0FA"], He = {
}), Be = ["#FF0700", "#FFF400", "#73A0FA"], Ue = {
strMapCode: !0,
visualMap: {
text: ["\u9AD8", "\u4F4E"],
min: 0,
max: 100,
rangeColor: Ue
rangeColor: Be
},
pointSymbol: "pin"
}, We = "/assets/json/map/jiangsu/{id}.json";
async function Ye(t) {
}, He = "/assets/json/map/jiangsu/{id}.json";
async function We(t) {
return (await ibiz.net.axios({
url: E.dir(We.replace("{id}", t))
url: E.dir(He.replace("{id}", t))
})).data;
}
function Je(t, n) {
function Ye(t, n) {
const s = /* @__PURE__ */ new Map(), e = w(""), r = w([]);
let o;
const d = w(), g = (c) => {
......@@ -895,8 +893,8 @@ function Je(t, n) {
}, i = async (c) => {
if (s.has(c))
return;
const f = await Ye(c);
s.set(c, g(f)), _e(c, f);
const f = await We(c);
s.set(c, g(f)), qe(c, f);
}, h = (c) => {
const f = s.get(e.value);
if (f)
......@@ -943,7 +941,7 @@ function Je(t, n) {
refresh: m
};
}
const Ge = S({
const Je = S({
name: "MapChart",
props: {
mapData: {
......@@ -965,14 +963,14 @@ const Ge = S({
setup(t, {
emit: n
}) {
const s = q("map-chart"), e = N(() => Me(He, t.options)), {
const s = q("map-chart"), e = N(() => _e(Ue, t.options)), {
chartRef: r,
historyNames: o,
changeMap: d,
getCityName: g,
goBack: i,
refresh: h
} = Je((u) => {
} = Ye((u) => {
const {
visualMap: c,
pointSymbol: f
......@@ -1110,7 +1108,7 @@ const Ge = S({
}
}, ["\u8FD4\u56DE"])]);
}
}), Qe = `image://${E.dir("/assets/img/fiveStars.png")}`, Xe = S({
}), Ge = `image://${E.dir("/assets/img/fiveStars.png")}`, Qe = S({
name: "PortalMapArea",
props: {
modelData: {
......@@ -1159,14 +1157,14 @@ const Ge = S({
class: this.ns.e("center")
}, [a("div", {
class: this.ns.e("title")
}, [`${this.c.data.orgname} \u2014 ${this.c.data.yzrs}\u4EBA`]), a(Ge, {
}, [`${this.c.data.orgname} \u2014 ${this.c.data.yzrs}\u4EBA`]), a(Je, {
class: this.ns.e("map"),
attrs: {
mapData: this.c.mapData,
pointData: this.c.pointData,
defaultMapName: this.c.params.orgcode,
options: {
pointSymbol: Qe
pointSymbol: Ge
}
},
on: {
......@@ -1199,9 +1197,9 @@ const Ge = S({
})])]);
}
});
class Ze {
class Xe {
constructor() {
C(this, "component", Xe);
C(this, "component", Qe);
}
async createController(n, s, e) {
const r = new Q(
......@@ -1212,7 +1210,7 @@ class Ze {
return await r.init(), r;
}
}
class et extends De {
class Ze extends Pe {
constructor() {
super(...arguments);
C(this, "unit", "");
......@@ -1233,13 +1231,13 @@ class et extends De {
}), s;
}
}
function tt(t, n, s, e = {}) {
function et(t, n, s, e = {}) {
return ie(t, () => {
const r = new et(n, s, e);
const r = new Ze(n, s, e);
return le(t, "mdCtrlActiveMode", r.setMdCtrlActiveMode.bind(r)), r;
});
}
function st(t) {
function tt(t) {
return { handleClick: (e) => {
const r = t.selectedData.findIndex((o) => e.srfkey === o.srfkey);
if (t.singleSelect)
......@@ -1253,7 +1251,7 @@ function st(t) {
t.handleDblClick(e);
} };
}
const at = S({
const st = S({
name: "KqqkListControl",
props: {
modelData: {
......@@ -1284,10 +1282,10 @@ const at = S({
setup(t) {
const {
proxy: n
} = V(), s = q("kqqk-list"), e = tt(n, t.modelData, t.context, t.params), {
} = V(), s = q("kqqk-list"), e = et(n, t.modelData, t.context, t.params), {
handleClick: r,
handleDblClick: o
} = st(e), d = (i, h) => {
} = tt(e), d = (i, h) => {
const m = e.selectedData.findIndex((u) => u.srfkey === i.srfkey), v = [s.b("item"), s.is("active", m !== -1)];
return a("div", {
class: v,
......@@ -1322,12 +1320,12 @@ const at = S({
}, [this.c.complete && [this.renderListContent()]]);
}
});
class nt {
class at {
constructor() {
C(this, "component", at);
C(this, "component", st);
}
}
function ot(t) {
function nt(t) {
return { handleClick: (e) => {
const r = t.selectedData.findIndex((o) => e.srfkey === o.srfkey);
if (t.singleSelect)
......@@ -1379,7 +1377,7 @@ const $ = S({
} = V(), s = q("control-list"), e = ce(n, t.modelData, t.context, t.params), {
handleClick: r,
handleDblClick: o
} = ot(e);
} = nt(e);
let d = !0;
A(() => {
_(() => e, (u, c) => {
......@@ -1484,10 +1482,10 @@ const $ = S({
}, [this.c.complete && [this.renderAll(), this.renderListContent(), this.renderLoadMore()]]);
}
});
const rt = S({
const ot = S({
name: "ListExpSelectTreeView",
components: {
Treeselect: Ee,
Treeselect: Me,
ListExpControl: $
},
props: {
......@@ -1611,27 +1609,27 @@ const rt = S({
return null;
}
});
class it {
class rt {
constructor() {
C(this, "component", "ListExpSelectTreeView");
}
}
class lt {
class it {
constructor() {
C(this, "component", "BYQKEditView");
}
}
class ct {
class lt {
constructor() {
C(this, "formEditor", "KqBase64ImageUpload");
C(this, "gridEditor", "IBizGridFileUpload");
}
async createController(n, s) {
const e = new Se(n, s);
const e = new De(n, s);
return await e.init(), e;
}
}
const dt = S({
const ct = S({
name: "KqBase64ImageUpload",
props: he(),
emits: pe(),
......@@ -1653,12 +1651,12 @@ const dt = S({
})]);
}
});
class ut {
class dt {
constructor() {
C(this, "component", "KqdwCustomPickupTreeView");
}
}
const ht = S({
const ut = S({
name: "KqdwCustomPickupTreeView",
props: {
context: {
......@@ -1867,16 +1865,16 @@ const ht = S({
}, ["\u53D6\u6D88"])])]);
}
});
class pt {
class ht {
constructor() {
C(this, "component", "KqbcFormMDCtrl");
}
async createController(n, s, e) {
const r = new qe(n, s, e);
const r = new Se(n, s, e);
return await r.init(), r;
}
}
const mt = S({
const pt = S({
name: "UserTabPageExp",
props: {
routeMsgs: {
......@@ -1946,10 +1944,10 @@ const mt = S({
}
}))])])]);
}
}), qt = {
}), Dt = {
mateUrl: import.meta.url,
install(t) {
t.component("UserTabPageExp", mt), t.component("UserIndexView", Ne), t.component("UserAppLayout", Re), t.component("ListExpSelectTreeView", rt), t.component("ListExpControl", $), t.component("ChangePassword", J), t.component(
t.component("UserTabPageExp", pt), t.component("UserIndexView", Ke), t.component("UserAppLayout", $e), t.component("ListExpSelectTreeView", ot), t.component("ListExpControl", $), t.component("ChangePassword", J), t.component(
"BYQKEditView",
() => import("./byqk-edit-view.fea98c06.js")
), t.component(
......@@ -1957,31 +1955,31 @@ const mt = S({
() => import("./kqbc-form-mdctrl.b92c2279.js")
), ibiz.register.view.register(
"VIEW_CUSTOM_JskqIndexView",
new Te()
new Ee()
), ibiz.register.view.register(
"VIEW_CUSTOM_ListExpSelectTreeView",
new it()
new rt()
), E.loadStyle(["/style.css"]), ibiz.register.portletPart.register(
"PORTLET_CUSTOM_JskqWebPortalSearchHeader",
new Be()
new Fe()
), ibiz.register.portletPart.register(
"PORTLET_CUSTOM_jskqWebPortalMapArea",
new Ze()
new Xe()
), ibiz.register.control.register(
"LIST_RENDER_JskqWebKqqkList",
new nt()
new at()
), ibiz.register.view.register(
"VIEW_CUSTOM_ByqkCustomEditView",
new lt()
), t.component("KqBase64ImageUpload", dt), ibiz.register.editor.register(
new it()
), t.component("KqBase64ImageUpload", ct), ibiz.register.editor.register(
"PICTURE_ONE_Base64ImageUpload",
new ct()
), t.component("KqdwCustomPickupTreeView", ht), ibiz.register.view.register(
new lt()
), t.component("KqdwCustomPickupTreeView", ut), ibiz.register.view.register(
"VIEW_CUSTOM_KqdwCustomPickupTreeView",
new ut()
), ibiz.register.formDetail.register("MDCTRL", new pt());
new dt()
), ibiz.register.formDetail.register("MDCTRL", new ht());
}
};
export {
qt as default
Dt as default
};
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册