提交 7bd6ef2e 编写于 作者: zhangpingchuan's avatar zhangpingchuan

feat: 更新插件

上级 e8e3c744
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, AppFuncCommand as ae } from "@ibiz-template/runtime";
import { ref as C, watch as _, defineComponent as D, getCurrentInstance as j, computed as R, onMounted as L, h as i, toRefs as ie, reactive as re, nextTick as K, toRef as ne, onActivated as oe } from "vue";
import { useRouter as G, useRoute as B, useIndexViewController as le, useNamespace as S, useControlController as ce, usePropsWatch as de, useListController as ue, useListExpViewController as he, useRouteKey as pe, getUploadProps as me, getEditorEmits as fe, useMPickupViewController as ge, useTreeController as ve, useViewController as ye } from "@ibiz-template/vue-util";
import { createUUID as we, notNilEmpty as be } from "qx-util";
import { IndexViewModel as Ce, PortletPartModel as xe, ViewPortletModel as ke, ListModel as H, TreeModel as Pe, getControl as $, GridModel as U } from "@ibiz-template/model";
var ee = Object.defineProperty;
var te = (t, a, s) => a in t ? ee(t, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[a] = s;
var w = (t, a, s) => (te(t, typeof a != "symbol" ? a + "" : a, s), s);
import { PluginStaticResource as se, ViewMode as ae, AppFuncCommand as ie } from "@ibiz-template/runtime";
import { ref as C, watch as _, defineComponent as D, getCurrentInstance as j, computed as R, onMounted as L, h as i, toRefs as re, reactive as ne, nextTick as K, toRef as oe, onActivated as le } from "vue";
import { useRouter as H, useRoute as B, useIndexViewController as ce, useNamespace as S, useControlController as de, usePropsWatch as ue, useListController as he, useListExpViewController as pe, useRouteKey as me, getUploadProps as fe, getEditorEmits as ge, useMPickupViewController as ve, useTreeController as ye, useViewController as we } from "@ibiz-template/vue-util";
import { createUUID as be, notNilEmpty as Ce } from "qx-util";
import { IndexViewModel as xe, PortletPartModel as ke, ViewPortletModel as Pe, ListModel as Y, TreeModel as qe, getControl as $, GridModel as U } from "@ibiz-template/model";
import { sm3 as G } from "sm-crypto";
import A from "dayjs";
import { CustomPortletController as qe, ViewPortletController as De, EditFormController as Se, ListController as _e, UploadEditorController as Me, FormMDCtrlController as Ee, GridViewNerve as Te, GridViewController as je } from "@ibiz-template/controller";
import { mergeDeepRight as Ie } from "ramda";
import { init as Ve, registerMap as ze } from "echarts";
import { Treeselect as Ae } from "@riophae/vue-treeselect";
import { convertNavData as Oe } from "@ibiz-template/service";
const M = new te(import.meta.url);
class Ne {
import { CustomPortletController as De, ViewPortletController as Se, EditFormController as _e, ListController as Me, UploadEditorController as Ee, FormMDCtrlController as Te, GridViewNerve as je, GridViewController as Ie } from "@ibiz-template/controller";
import { mergeDeepRight as Ve } from "ramda";
import { init as ze, registerMap as Ae } from "echarts";
import { Treeselect as Oe } from "@riophae/vue-treeselect";
import { convertNavData as Ne } from "@ibiz-template/service";
const M = new se(import.meta.url);
class Re {
constructor() {
w(this, "component", "UserIndexView");
}
}
const Re = (t) => {
const Le = (t) => {
const { view2: a, params2: s, params1: e } = t.params;
if (!a)
return "";
......@@ -27,12 +28,12 @@ const Re = (t) => {
""
);
return r = r || ibiz.env.routePlaceholder, `/${e}/${a}/${r}`;
}, Le = (t) => {
}, Fe = (t) => {
const { view1: a, appContext: s } = t.params;
return `/${s}/${a}/${ibiz.env.routePlaceholder}`;
};
function Fe(t, a) {
const s = G(t), e = C(""), r = C(""), n = C([]), d = C([]), f = (l) => {
function Ke(t, a) {
const s = H(t), e = C(""), r = C(""), n = C([]), d = C([]), f = (l) => {
l.forEach((h) => {
const b = n.value.indexOf(h);
b !== -1 && n.value.splice(b, 1);
......@@ -45,7 +46,7 @@ function Fe(t, a) {
(l, h) => {
if (l !== h) {
const b = B(t);
e.value = Re(b), r.value = Le(b);
e.value = Le(b), r.value = Fe(b);
const k = d.value.find(
(y) => y.key === e.value
);
......@@ -135,7 +136,7 @@ function Fe(t, a) {
}
};
}
const Ke = /* @__PURE__ */ D({
const Be = /* @__PURE__ */ D({
__name: "index-view",
props: {
context: null,
......@@ -143,10 +144,10 @@ const Ke = /* @__PURE__ */ D({
modelPath: null
},
setup(t) {
const a = t, { proxy: s } = j(), e = le(s, a.modelPath), r = !0;
const a = t, { proxy: s } = j(), e = ce(s, a.modelPath), r = !0;
let n = null, d = null, f = () => {
}, o = null, p = null, g = null, v = null, u = null, c, m, x, l;
const h = C(we());
const h = C(be());
{
const {
currentKey: k,
......@@ -158,14 +159,14 @@ const Ke = /* @__PURE__ */ D({
handleTabClick: I,
handleTabDelete: V,
handleCloseAll: T,
handleCloseOther: J
} = Fe(s, e);
m = k, x = y, l = q, o = O, p = I, g = V, v = T, u = J, n = (E) => {
handleCloseOther: X
} = Ke(s, e);
m = k, x = y, l = q, o = O, p = I, g = V, v = T, u = X, n = (E) => {
const N = m.value;
E.evt.on("closeView", () => {
z(N);
}), E.evt.on("setTitle", (X) => {
P(N, { caption: X });
}), E.evt.on("setTitle", (Z) => {
P(N, { caption: Z });
});
}, d = (E) => {
P(m.value, E);
......@@ -188,7 +189,7 @@ const Ke = /* @__PURE__ */ D({
} };
}
});
function Be(t, a, s, e, r, n, d, f) {
function $e(t, a, s, e, r, n, d, f) {
var o = typeof t == "function" ? t.options : t;
a && (o.render = a, o.staticRenderFns = s, o._compiled = !0), e && (o.functional = !0), n && (o._scopeId = "data-v-" + n);
var p;
......@@ -215,21 +216,21 @@ function Be(t, a, s, e, r, n, d, f) {
options: o
};
}
var $e = function() {
var Ue = 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);
}, Ue = [], Ge = /* @__PURE__ */ Be(
Ke,
$e,
}, Ge = [], He = /* @__PURE__ */ $e(
Be,
Ue,
Ge,
!1,
null,
null,
null,
null
);
const He = Ge.exports;
const Y = D({
const Ye = He.exports;
const Q = D({
name: "ChangePassword",
props: {
isShowModal: {
......@@ -272,8 +273,8 @@ const Y = D({
try {
n.value = !0;
const u = await ibiz.net.post("/v7/changepwd ", {
oldPwd: r.value.oldPwd,
newPwd: r.value.newPwd
oldPwd: G(r.value.oldPwd).toUpperCase(),
newPwd: G(r.value.newPwd).toUpperCase()
});
if (u.ok) {
ibiz.notification.success({
......@@ -379,7 +380,7 @@ const Y = D({
}, ["\u786E\u8BA4\u4FEE\u6539"])])]);
}
});
function Ye(t, a) {
function Qe(t, a) {
return i("div", {
class: t.e("logo")
}, [i("img", {
......@@ -391,11 +392,11 @@ function Ye(t, a) {
class: t.e("logo-caption")
}, [a.caption])]);
}
const Qe = D({
const We = D({
name: "UserAppLayout",
props: {
model: {
type: Ce,
type: xe,
required: !0
},
isComplete: {
......@@ -424,7 +425,7 @@ const Qe = D({
srffirstlogin: g
} = ((y = ibiz.appData) == null ? void 0 : y.context) || {}, {
proxy: v
} = j(), u = G(v), c = async () => {
} = j(), u = H(v), c = async () => {
(await ibiz.auth.v7logout()).ok ? (ibiz.message.success("\u767B\u51FA\u6210\u529F"), u.push(`/login?ru=${encodeURIComponent(window.location.hash.replace("#/", "/"))}`)) : ibiz.message.error("\u767B\u51FA\u5931\u8D25");
}, m = C(!0), x = () => {
m.value = !m.value;
......@@ -459,7 +460,7 @@ const Qe = D({
value: this.collapseChange
},
class: [this.ns.b("nav"), this.ns.is("collapse", this.collapseChange)]
}, [Ye(this.ns, this.model), i("div", {
}, [Qe(this.ns, this.model), i("div", {
class: this.ns.b("option")
}, [i("i-poptip", {
attrs: {
......@@ -572,7 +573,7 @@ const Qe = D({
this.isShowModal = t;
}
}
}, [i(Y, {
}, [i(Q, {
attrs: {
isShowModal: this.isShowModal
},
......@@ -582,7 +583,7 @@ const Qe = D({
})])])]) : null;
}
});
class Q extends qe {
class W extends De {
constructor() {
super(...arguments);
w(this, "options", []);
......@@ -608,15 +609,15 @@ class Q extends qe {
);
}
}
const We = D({
const Je = D({
name: "PortletSearchHeader",
props: {
modelData: {
type: xe,
type: ke,
required: !0
},
controller: {
type: Q,
type: W,
required: !0
}
},
......@@ -676,12 +677,12 @@ const We = D({
})]);
}
});
class Je {
class Xe {
constructor() {
w(this, "component", We);
w(this, "component", Je);
}
async createController(a, s, e) {
const r = new Q(
const r = new W(
a,
s,
e
......@@ -689,7 +690,7 @@ class Je {
return await r.init(), r;
}
}
class W extends De {
class J extends Se {
constructor() {
super(...arguments);
w(this, "data", {});
......@@ -707,7 +708,7 @@ class W extends De {
this.entityService = await ibiz.entityService.getService(
s.appEntity.codeName,
this.context
), this.form = new Se(s, this.context, {
), this.form = new _e(s, this.context, {
...this.params
}), await this.form.init(), this.dashboard.nerve.self.evt.on("mounted", () => {
this.load();
......@@ -775,22 +776,22 @@ class W extends De {
);
}
}
const Xe = ["#FF0700", "#FFF400", "#73A0FA"], Ze = {
const Ze = ["#FF0700", "#FFF400", "#73A0FA"], et = {
strMapCode: !0,
visualMap: {
text: ["\u9AD8", "\u4F4E"],
min: 0,
max: 100,
rangeColor: Xe
rangeColor: Ze
},
pointSymbol: "pin"
}, et = "/assets/json/map/jiangsu/{id}.json";
async function tt(t) {
}, tt = "/assets/json/map/jiangsu/{id}.json";
async function st(t) {
return (await ibiz.net.axios({
url: M.dir(et.replace("{id}", t))
url: M.dir(tt.replace("{id}", t))
})).data;
}
function st(t, a) {
function at(t, a) {
const s = /* @__PURE__ */ new Map(), e = C(""), r = C([]);
let n;
const d = C(), f = (c) => {
......@@ -805,8 +806,8 @@ function st(t, a) {
}, o = async (c) => {
if (s.has(c))
return;
const m = await tt(c);
s.set(c, f(m)), ze(c, m);
const m = await st(c);
s.set(c, f(m)), Ae(c, m);
}, p = (c) => {
const m = s.get(e.value);
if (m)
......@@ -824,7 +825,7 @@ function st(t, a) {
}
};
return L(() => {
n = Ve(d.value), window.addEventListener("resize", () => {
n = ze(d.value), window.addEventListener("resize", () => {
n == null || n.resize();
}), n.on("click", (c) => {
if (c.componentType === "series" && c.seriesType === "scatter") {
......@@ -853,7 +854,7 @@ function st(t, a) {
refresh: g
};
}
const at = D({
const it = D({
name: "MapChart",
props: {
mapData: {
......@@ -875,14 +876,14 @@ const at = D({
setup(t, {
emit: a
}) {
const s = S("map-chart"), e = R(() => Ie(Ze, t.options)), {
const s = S("map-chart"), e = R(() => Ve(et, t.options)), {
chartRef: r,
historyNames: n,
changeMap: d,
getCityName: f,
goBack: o,
refresh: p
} = st((u) => {
} = at((u) => {
const {
visualMap: c,
pointSymbol: m
......@@ -993,7 +994,7 @@ const at = D({
const {
mapData: g,
pointData: v
} = ie(t);
} = re(t);
return _([g, v], () => {
p();
}), {
......@@ -1018,20 +1019,20 @@ const at = D({
}
}, ["\u8FD4\u56DE"])]);
}
}), it = `image://${M.dir("/assets/img/fiveStars.png")}`, rt = D({
}), rt = `image://${M.dir("/assets/img/fiveStars.png")}`, nt = D({
name: "PortalMapArea",
props: {
modelData: {
type: ke,
type: Pe,
required: !0
},
controller: {
type: W,
type: J,
required: !0
}
},
setup(t) {
const a = re(t.controller), s = S("portal-map-area");
const a = ne(t.controller), s = S("portal-map-area");
return {
c: a,
ns: s
......@@ -1057,14 +1058,14 @@ const at = D({
class: this.ns.e("center")
}, [i("div", {
class: this.ns.e("title")
}, [`${this.c.data.orgname} \u2014 ${this.c.data.yzrs}\u4EBA`]), i(at, {
}, [`${this.c.data.orgname} \u2014 ${this.c.data.yzrs}\u4EBA`]), i(it, {
class: this.ns.e("map"),
attrs: {
mapData: this.c.mapData,
pointData: this.c.pointData,
defaultMapName: this.c.params.orgcode,
options: {
pointSymbol: it
pointSymbol: rt
}
},
on: {
......@@ -1087,12 +1088,12 @@ const at = D({
})]);
}
});
class nt {
class ot {
constructor() {
w(this, "component", rt);
w(this, "component", nt);
}
async createController(a, s, e) {
const r = new W(
const r = new J(
a,
s,
e
......@@ -1100,7 +1101,7 @@ class nt {
return await r.init(), r;
}
}
class ot extends _e {
class lt extends Me {
constructor() {
super(...arguments);
w(this, "unit", "");
......@@ -1121,13 +1122,13 @@ class ot extends _e {
}), s;
}
}
function lt(t, a, s, e = {}) {
return ce(t, () => {
const r = new ot(a, s, e);
return de(t, "mdCtrlActiveMode", r.setMdCtrlActiveMode.bind(r)), r;
function ct(t, a, s, e = {}) {
return de(t, () => {
const r = new lt(a, s, e);
return ue(t, "mdCtrlActiveMode", r.setMdCtrlActiveMode.bind(r)), r;
});
}
function ct(t) {
function dt(t) {
return { handleClick: (e) => {
const r = t.selectedData.findIndex((n) => e.srfkey === n.srfkey);
if (t.singleSelect)
......@@ -1141,11 +1142,11 @@ function ct(t) {
t.handleDblClick(e);
} };
}
const dt = D({
const ut = D({
name: "KqqkListControl",
props: {
modelData: {
type: H,
type: Y,
required: !0
},
context: {
......@@ -1172,10 +1173,10 @@ const dt = D({
setup(t) {
const {
proxy: a
} = j(), s = S("kqqk-list"), e = lt(a, t.modelData, t.context, t.params), {
} = j(), s = S("kqqk-list"), e = ct(a, t.modelData, t.context, t.params), {
handleClick: r,
handleDblClick: n
} = ct(e), d = (o, p) => {
} = dt(e), d = (o, p) => {
const g = e.selectedData.findIndex((u) => u.srfkey === o.srfkey), v = [s.b("item"), s.is("active", g !== -1)];
return i("div", {
class: v,
......@@ -1210,12 +1211,12 @@ const dt = D({
}, [this.c.complete && [this.renderListContent()]]);
}
});
class ut {
class ht {
constructor() {
w(this, "component", dt);
w(this, "component", ut);
}
}
function ht(t) {
function pt(t) {
return { handleClick: (e) => {
const r = t.selectedData.findIndex((n) => e.srfkey === n.srfkey);
if (t.singleSelect)
......@@ -1233,7 +1234,7 @@ const F = D({
name: "ListExpControl",
props: {
modelData: {
type: H,
type: Y,
required: !0
},
context: {
......@@ -1264,10 +1265,10 @@ const F = D({
setup(t) {
const {
proxy: a
} = j(), s = S("control-list"), e = ue(a, t.modelData, t.context, t.params), {
} = j(), s = S("control-list"), e = he(a, t.modelData, t.context, t.params), {
handleClick: r,
handleDblClick: n
} = ht(e);
} = pt(e);
let d = !0;
L(() => {
_(() => e, (u, c) => {
......@@ -1372,10 +1373,10 @@ const F = D({
}, [this.c.complete && [this.renderAll(), this.renderListContent(), this.renderLoadMore()]]);
}
});
const pt = D({
const mt = D({
name: "ListExpSelectTreeView",
components: {
Treeselect: Ae,
Treeselect: Oe,
ListExpControl: F
},
props: {
......@@ -1395,9 +1396,9 @@ const pt = D({
setup(t) {
const {
proxy: a
} = j(), s = he(a, t.modelPath), e = C(""), r = C([]), n = S("list-exp-select-tree");
} = j(), s = pe(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, r.value = [t.srfnav]), pe(ne(s.navItem, "key"), a, e);
t.srfnav && (s.navItem.key = t.srfnav, r.value = [t.srfnav]), me(oe(s.navItem, "key"), a, e);
});
const d = [`${s.context.srforgid}`];
s.context.srforgid && (s.context.selectedDeptName = s.context.srforgname, Object.assign(s.params, {
......@@ -1487,7 +1488,7 @@ const pt = D({
context: this.c.navItem.context,
params: this.c.navItem.params,
modal: {
mode: se.EMBED
mode: ae.EMBED
},
modelPath: s.navView.source.modelPath
},
......@@ -1499,30 +1500,30 @@ const pt = D({
return null;
}
});
class mt {
class ft {
constructor() {
w(this, "component", "ListExpSelectTreeView");
}
}
class ft {
class gt {
constructor() {
w(this, "component", "BYQKEditView");
}
}
class gt {
class vt {
constructor() {
w(this, "formEditor", "KqBase64ImageUpload");
w(this, "gridEditor", "IBizGridFileUpload");
}
async createController(a, s) {
const e = new Me(a, s);
const e = new Ee(a, s);
return await e.init(), e;
}
}
const vt = D({
const yt = D({
name: "KqBase64ImageUpload",
props: me(),
emits: fe(),
props: fe(),
emits: ge(),
setup(t) {
var n, d, f;
const a = S("kq-base64-image-upload"), s = ((n = t.controller.model) == null ? void 0 : n.width) || "auto", e = ((d = t.controller.model) == null ? void 0 : d.height) || "150px", r = ((f = t.controller.editorParams) == null ? void 0 : f["justify-content"]) || "center";
......@@ -1541,12 +1542,12 @@ const vt = D({
})]);
}
});
class yt {
class wt {
constructor() {
w(this, "component", "KqdwCustomPickupTreeView");
}
}
const wt = D({
const bt = D({
name: "KqdwCustomPickupTreeView",
props: {
context: {
......@@ -1568,7 +1569,7 @@ const wt = D({
setup(t) {
const a = S("kqdw-custom-pickup-tree-view"), {
proxy: s
} = j(), e = ge(s, t.modelPath), r = C(null);
} = j(), e = ve(s, t.modelPath), r = C(null);
let n = null;
const d = C([]), f = C({}), o = C([]), p = C([]), g = C(""), v = C([]), u = async (y) => {
await n.loadNodes(y), f.value = y, o.value.push(y);
......@@ -1578,7 +1579,7 @@ const wt = D({
if (y !== q && y) {
await e.model.pickupViewPanel.embedView.init();
const O = (P = e.model.pickupViewPanel.embedView.source.getPSControls()) == null ? void 0 : P.find((V) => V.controlType === "TREEVIEW");
O || console.warn("\u672A\u627E\u5230[\u6811(tree)]\u90E8\u4EF6"), r.value = new Pe(O), await r.value.init(), n = ve(s, r.value, t.context, t.params), await n.init();
O || console.warn("\u672A\u627E\u5230[\u6811(tree)]\u90E8\u4EF6"), r.value = new qe(O), await r.value.init(), n = ye(s, r.value, t.context, t.params), await n.init();
const I = await n.load();
if (I.length > 0 && (d.value = I, f.value.children = I, o.value.push({
text: "\u5F53\u524D\u9662",
......@@ -1755,16 +1756,16 @@ const wt = D({
}, ["\u53D6\u6D88"])])]);
}
});
class bt {
class Ct {
constructor() {
w(this, "component", "KqbcFormMDCtrl");
}
async createController(a, s, e) {
const r = new Ee(a, s, e);
const r = new Te(a, s, e);
return await r.init(), r;
}
}
const Ct = D({
const xt = D({
name: "UserTabPageExp",
props: {
routeMsgs: {
......@@ -1835,12 +1836,12 @@ const Ct = D({
}))])])]);
}
});
class xt {
class kt {
constructor() {
w(this, "component", "QytjGridView");
}
}
class kt extends Te {
class Pt extends je {
constructor() {
super(...arguments);
w(this, "qjgrid");
......@@ -1853,7 +1854,7 @@ class kt extends Te {
super.connect(s, e), s === "qjgrid" && (this.qjgrid = e), s === "ycgrid" && (this.ycgrid = e);
}
}
class Pt extends je {
class qt extends Ie {
constructor() {
super(...arguments);
w(this, "activeRadio", "qyry");
......@@ -1861,7 +1862,7 @@ class Pt extends je {
w(this, "activeGrid", !0);
}
createNerve() {
return new kt(this);
return new Pt(this);
}
async onInit() {
await super.onInit();
......@@ -1882,7 +1883,7 @@ class Pt extends je {
else {
const e = this.model.source.getPSAppViewNavParams();
let r = {};
be(e) && (r = Oe(e, this.context, this.params)), Object.assign(this.params, r);
Ce(e) && (r = Ne(e, this.context, this.params)), Object.assign(this.params, r);
}
s && s.ctrlParams.SORT && (this.params.sort = s.ctrlParams.SORT);
}
......@@ -1908,13 +1909,13 @@ class Pt extends je {
}
}
}
function qt(t, a) {
return ye(
function Dt(t, a) {
return we(
t,
(s, e) => new Pt(a, s, e)
(s, e) => new qt(a, s, e)
);
}
const Dt = D({
const St = D({
name: "QytjGridView",
props: {
context: Object,
......@@ -1933,8 +1934,8 @@ const Dt = D({
setup(t) {
const {
proxy: a
} = j(), s = S("qytj-grid-view"), e = qt(a, t.modelPath);
oe(() => e.refresh());
} = j(), s = S("qytj-grid-view"), e = Dt(a, t.modelPath);
le(() => e.refresh());
const r = R(() => e.activeRadio);
return _(() => t.context, () => {
const n = e.context.n_orgid_eq;
......@@ -2078,7 +2079,7 @@ const Dt = D({
}, [a, s, e]);
}
});
class St extends ae {
class _t extends ie {
custom(a, s, e) {
if (a.id === "performanceappraisal") {
const r = { userid: s == null ? void 0 : s.srfjxuserid }, n = window.Environment, d = JSON.stringify(r), f = window.btoa(d), o = `${n.jxkhUrl}param=${f}`;
......@@ -2087,10 +2088,10 @@ class St extends ae {
throw ibiz.log.warn("custom", a, s, e), new Error("\u672A\u5B9E\u73B0");
}
}
const Lt = {
const Kt = {
mateUrl: import.meta.url,
install(t) {
new St(), t.component("UserTabPageExp", Ct), t.component("UserIndexView", He), t.component("UserAppLayout", Qe), t.component("ListExpSelectTreeView", pt), t.component("ListExpControl", F), t.component("ChangePassword", Y), t.component(
new _t(), t.component("UserTabPageExp", xt), t.component("UserIndexView", Ye), t.component("UserAppLayout", We), t.component("ListExpSelectTreeView", mt), t.component("ListExpControl", F), t.component("ChangePassword", Q), t.component(
"BYQKEditView",
() => import("./byqk-edit-view.fea98c06.js")
), t.component(
......@@ -2098,34 +2099,34 @@ const Lt = {
() => import("./kqbc-form-mdctrl.b92c2279.js")
), ibiz.register.view.register(
"VIEW_CUSTOM_JskqIndexView",
new Ne()
new Re()
), ibiz.register.view.register(
"VIEW_CUSTOM_ListExpSelectTreeView",
new mt()
new ft()
), M.loadStyle(["/style.css"]), ibiz.register.portletPart.register(
"PORTLET_CUSTOM_JskqWebPortalSearchHeader",
new Je()
new Xe()
), ibiz.register.portletPart.register(
"PORTLET_CUSTOM_jskqWebPortalMapArea",
new nt()
new ot()
), ibiz.register.control.register(
"LIST_RENDER_JskqWebKqqkList",
new ut()
new ht()
), ibiz.register.view.register(
"VIEW_CUSTOM_ByqkCustomEditView",
new ft()
), t.component("KqBase64ImageUpload", vt), ibiz.register.editor.register(
"PICTURE_ONE_Base64ImageUpload",
new gt()
), t.component("KqdwCustomPickupTreeView", wt), ibiz.register.view.register(
), t.component("KqBase64ImageUpload", yt), ibiz.register.editor.register(
"PICTURE_ONE_Base64ImageUpload",
new vt()
), t.component("KqdwCustomPickupTreeView", bt), ibiz.register.view.register(
"VIEW_CUSTOM_KqdwCustomPickupTreeView",
new yt()
), t.component("QytjGridView", Dt), ibiz.register.view.register(
new wt()
), t.component("QytjGridView", St), ibiz.register.view.register(
"VIEW_CUSTOM_QytjGridView",
new xt()
), ibiz.register.formDetail.register("MDCTRL", new bt());
new kt()
), ibiz.register.formDetail.register("MDCTRL", new Ct());
}
};
export {
Lt as default
Kt as default
};
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(D){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new k(n||[]);return i(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(D){return{type:"throw",arg:D}}}r.wrap=f;var h={};function v(){}function d(){}function y(){}var m={};s(m,c,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(P([])));b&&b!==n&&o.call(b,c)&&(m=b);var w=y.prototype=v.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(e,r){function n(i,a,c,u){var l=p(e[i],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return a=a?a.then(o,o):o()}})}function L(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return N()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function P(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:N}}function N(){return{value:void 0,done:!0}}return d.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:d,configurable:!0}),d.displayName=s(y,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},x(O.prototype),s(O.prototype,u,(function(){return this})),r.AsyncIterator=O,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new O(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),s(w,l,"Generator"),s(w,c,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function i(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void r(l)}c.done?e(u):Promise.resolve(u).then(n,o)}System.register(["vue","@ibiz-template/vue-util","@ibiz-template/model","@ibiz-template/controller"],(function(t,r){"use strict";var a,c,u,l,s,f,p,h;return{setters:[function(t){a=t.defineComponent,c=t.getCurrentInstance,u=t.watch,l=t.h},function(t){s=t.useNamespace,f=t.useController},function(t){p=t.FormMDCtrlModel},function(t){h=t.FormMDCtrlController}],execute:function(){var r=a({name:"KqbcFormMDCtrl",props:{modelData:{type:p,required:!0},controller:{type:h,required:!0}},setup:function(t){var r=s("form-mdctrl"),o=c().proxy;f(o,t.controller);var a=t.controller;u((function(){return a.form.isLoaded}),(function(t,e){t!==e&&!0===t&&a.loadData()}));var l=function(){var t,r=(t=e().mark((function t(){var r,o,i,c,u,l,s;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=a.form)){t.next=14;break}if(i=null===(o=r.model.appEntity)||void 0===o?void 0:o.codeName,c=r.context,!i||!c){t.next=14;break}return u=n({},c),t.next=8,ibiz.entityService.getService(i,u);case 8:if(!(l=t.sent)||!a.data){t.next=14;break}return t.next=12,l.exec("Getkqzgzsc",u,n({},a.data));case 12:(s=t.sent).ok&&s.data&&(a.data.gzsc=s.data.gzsc,a.data.bcs=s.data.bcs);case 14:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function c(t){i(a,n,o,c,u,"next",t)}function u(t){i(a,n,o,c,u,"throw",t)}c(void 0)}))});return function(){return r.apply(this,arguments)}}();return u((function(){var t;return null===(t=a.contentCtrlData)||void 0===t?void 0:t.length}),(function(){l()})),{ns:r,c:a,onNeuronInit:function(t){return function(e){a.formNeurons.get(t)||e.evt.on("afterSave",l),a.onNeuronInit(t)(e)}}}},render:function(){var t=this;return l("div",{class:this.ns.b()},[l("div",{class:t.ns.b("main")},[[l("div",{class:t.ns.b("title")},[l("span",{class:t.ns.b("caption")},[t.modelData.source.caption]),l("i-button",{class:t.ns.b("add-btn"),attrs:{type:"text"},on:{click:function(){return t.c.handleAdd()}}},["添加"])]),t.c.contentCtrlData.length>0&&t.c.contentCtrlData.map((function(e,r){var n=null,i=t.c.model.form;if(i&&t.c.providers[i.name]&&t.c.model.appEntity){var a,c=Object.assign(t.c.form.context.clone(),o({},null===(a=t.c.model.appEntity.codeName)||void 0===a?void 0:a.toLowerCase(),e[t.c.model.appEntity.keyName]));n=l(t.c.providers[i.name].component,{props:{modelData:i,context:c,params:t.c.form.params,enableAutoSave:!0},on:{neuronInit:t.onNeuronInit(e.srfkey)}})}return l("div",{class:t.ns.b("form-content"),key:e.srfkey},[n,l("div",{class:t.ns.b("btn")},[l("i-button",{class:t.ns.b("remove-btn"),attrs:{type:"text"},on:{click:function(){return t.c.handleRemove(e,r)}}},["删除"])])])}))]])])}});t({KqbcFormMDCtrl:r,default:r})}}}))}();
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var r,n={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(r){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new C(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=h;var v="suspendedStart",y="suspendedYield",d="executing",m="completed",b={};function g(){}function w(){}function x(){}var O={};f(O,u,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(F([])));L&&L!==o&&i.call(L,u)&&(O=L);var j=x.prototype=g.prototype=Object.create(O);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function P(e,r){function n(o,a,c,u){var l=p(e[o],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var o;a(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}})}function S(t,e,n){var o=v;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:r,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=N(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=p(t,e,n);if("normal"===l.type){if(o=n.done?m:y,l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function N(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,N(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=p(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,b;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,b):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,b)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function F(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return a.next=a}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=x,a(j,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(j),t},n.awrap=function(t){return{__await:t}},k(P.prototype),f(P.prototype,l,(function(){return this})),n.AsyncIterator=P,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new P(h(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(j),f(j,s,"Generator"),f(j,u,(function(){return this})),f(j,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=F,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:F(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),b}},n}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(e,r,n){return(r=function(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function i(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}System.register(["vue","@ibiz-template/vue-util","@ibiz-template/model","@ibiz-template/controller"],(function(t,r){"use strict";var a,c,u,l,s,f,h,p;return{setters:[function(t){a=t.defineComponent,c=t.getCurrentInstance,u=t.watch,l=t.h},function(t){s=t.useNamespace,f=t.useController},function(t){h=t.FormMDCtrlModel},function(t){p=t.FormMDCtrlController}],execute:function(){var r=a({name:"KqbcFormMDCtrl",props:{modelData:{type:h,required:!0},controller:{type:p,required:!0}},setup:function(t){var r=s("form-mdctrl"),o=c().proxy;f(o,t.controller);var a=t.controller;u((function(){return a.form.isLoaded}),(function(t,e){t!==e&&!0===t&&a.loadData()}));var l=function(){var t,r=(t=e().mark((function t(){var r,o,i,c,u,l,s;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=a.form)){t.next=14;break}if(i=null===(o=r.model.appEntity)||void 0===o?void 0:o.codeName,c=r.context,!i||!c){t.next=14;break}return u=n({},c),t.next=8,ibiz.entityService.getService(i,u);case 8:if(!(l=t.sent)||!a.data){t.next=14;break}return t.next=12,l.exec("Getkqzgzsc",u,n({},a.data));case 12:(s=t.sent).ok&&s.data&&(a.data.gzsc=s.data.gzsc,a.data.bcs=s.data.bcs);case 14:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function c(t){i(a,n,o,c,u,"next",t)}function u(t){i(a,n,o,c,u,"throw",t)}c(void 0)}))});return function(){return r.apply(this,arguments)}}();return u((function(){var t;return null===(t=a.contentCtrlData)||void 0===t?void 0:t.length}),(function(){l()})),{ns:r,c:a,onNeuronInit:function(t){return function(e){a.formNeurons.get(t)||e.evt.on("afterSave",l),a.onNeuronInit(t)(e)}}}},render:function(){var t=this;return l("div",{class:this.ns.b()},[l("div",{class:t.ns.b("main")},[[l("div",{class:t.ns.b("title")},[l("span",{class:t.ns.b("caption")},[t.modelData.source.caption]),l("i-button",{class:t.ns.b("add-btn"),attrs:{type:"text"},on:{click:function(){return t.c.handleAdd()}}},["添加"])]),t.c.contentCtrlData.length>0&&t.c.contentCtrlData.map((function(e,r){var n=null,i=t.c.model.form;if(i&&t.c.providers[i.name]&&t.c.model.appEntity){var a,c=Object.assign(t.c.form.context.clone(),o({},null===(a=t.c.model.appEntity.codeName)||void 0===a?void 0:a.toLowerCase(),e[t.c.model.appEntity.keyName]));n=l(t.c.providers[i.name].component,{props:{modelData:i,context:c,params:t.c.form.params,enableAutoSave:!0},on:{neuronInit:t.onNeuronInit(e.srfkey)}})}return l("div",{class:t.ns.b("form-content"),key:e.srfkey},[n,l("div",{class:t.ns.b("btn")},[l("i-button",{class:t.ns.b("remove-btn"),attrs:{type:"text"},on:{click:function(){return t.c.handleRemove(e,r)}}},["删除"])])])}))]])])}});t({KqbcFormMDCtrl:r,default:r})}}}))}();
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册