提交 cca2d000 编写于 作者: zhf's avatar zhf

feat: 更新公文效能插件

上级 b74ddf89
var A = Object.defineProperty;
var M = (e, s, t) => s in e ? A(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
var n = (e, s, t) => (M(e, typeof s != "symbol" ? s + "" : s, t), t);
var l = (e, s, t) => (M(e, typeof s != "symbol" ? s + "" : s, t), t);
import { PluginStaticResource as j, ViewMode as D } from "@ibiz-template/runtime";
import { CustomPortletController as B, ViewPortletController as N, SpanEditorController as R, AppPortalViewNerve as G, AppPortalViewController as q } from "@ibiz-template/controller";
import { CustomPortletController as B, ViewPortletController as N, SpanEditorController as R, AppPortalViewNerve as F, AppPortalViewController as G } from "@ibiz-template/controller";
import m from "dayjs";
import { PortletPartModel as F, ListModel as E, ViewPortletModel as Y } from "@ibiz-template/model";
import { PortletPartModel as q, ListModel as E, ViewPortletModel as Y } from "@ibiz-template/model";
import { defineComponent as w, reactive as z, watch as k, h as a, getCurrentInstance as C, ref as P, computed as _ } from "vue";
import { useNamespace as p, useTabExpViewController as U, useRouter as $, useRoute as S, getViewName as K, getSpanProps as W, useListController as L, useViewController as H } from "@ibiz-template/vue-util";
import { useNamespace as p, useTabExpViewController as U, useRouter as $, useRoute as V, getViewName as K, getSpanProps as W, useListController as L, useViewController as H } from "@ibiz-template/vue-util";
const J = new j(import.meta.url);
class Q {
constructor() {
n(this, "component", "IndexView");
l(this, "component", "IndexView");
}
}
class O extends B {
constructor() {
super(...arguments);
n(this, "items", [
l(this, "items", [
{
text: "近一年",
value: 12
......@@ -30,11 +30,11 @@ class O extends B {
value: 3
}
]);
n(this, "data", {
l(this, "data", {
selectDate: [],
itemValue: 12
});
n(this, "onItemValueChange", (t) => {
l(this, "onItemValueChange", (t) => {
const r = m();
this.data.selectDate = [
r.subtract(t, "month").add(1, "day").toDate(),
......@@ -48,18 +48,18 @@ class O extends B {
changeViewParams() {
const [t, r] = this.data.selectDate;
if (t && r) {
const o = m(t).format("YYYY-MM-DD"), l = m(r).format("YYYY-MM-DD");
const o = m(t).format("YYYY-MM-DD"), i = m(r).format("YYYY-MM-DD");
this.dashboard.nerve.self.evt.asyncEmit(
"contextOrParamsChange",
{ ...this.context },
{
...this.params,
starttime: o,
endtime: l,
endtime: i,
kssj: o,
jssj: l,
jssj: i,
tjkssj: o,
tjjssj: l
tjjssj: i
},
!0
);
......@@ -76,7 +76,7 @@ class T extends N {
* @date 2023-11-16 15:11:57
* @type {EntityService}
*/
n(this, "entityService");
l(this, "entityService");
/**
* 请求结果
*
......@@ -84,7 +84,7 @@ class T extends N {
* @date 2023-11-16 15:11:41
* @type {{ data: IData }}
*/
n(this, "result", { data: {} });
l(this, "result", { data: {} });
}
async onInit() {
await super.onInit(), this.entityService = await ibiz.entityService.getService(
......@@ -117,7 +117,7 @@ class T extends N {
}
class X {
constructor() {
n(this, "component", "PortalDatePicker");
l(this, "component", "PortalDatePicker");
}
async createController(s, t, r) {
const o = new O(
......@@ -130,13 +130,13 @@ class X {
}
class Z {
constructor() {
n(this, "component", "CustomTabExpView");
l(this, "component", "CustomTabExpView");
}
}
class tt {
constructor(s) {
n(this, "formEditor", "GrowthRateSpan");
n(this, "gridEditor", "IBizGridSpan");
l(this, "formEditor", "GrowthRateSpan");
l(this, "gridEditor", "IBizGridSpan");
s === "SPAN_LINK" && (this.formEditor = "IBizSpanLink", this.gridEditor = "IBizSpanLink");
}
async createController(s, t) {
......@@ -146,12 +146,12 @@ class tt {
}
class et {
constructor() {
n(this, "component", "BwsdCustomList");
l(this, "component", "BwsdCustomList");
}
}
class st {
constructor() {
n(this, "component", "FwzlPortal");
l(this, "component", "FwzlPortal");
}
async createController(s, t, r) {
const o = new T(s, t, r);
......@@ -160,19 +160,19 @@ class st {
}
class at {
constructor() {
n(this, "component", "FwzlCustomList");
l(this, "component", "FwzlCustomList");
}
}
class rt {
constructor() {
n(this, "component", "GwxnAppPortalView");
l(this, "component", "GwxnAppPortalView");
}
}
const ot = w({
name: "PortalDatePicker",
props: {
modelData: {
type: F,
type: q,
required: !0
},
controller: {
......@@ -185,14 +185,14 @@ const ot = w({
Object.assign(t, {
data: z(t.data)
});
const r = m("2017-01-01"), o = m(), l = {
const r = m("2017-01-01"), o = m(), i = {
disabledDate: (d) => {
const u = m(d);
return u.isBefore(r, "day") || o.isBefore(u, "day");
}
}, c = (d) => {
if (Array.isArray(d) && d.length === 2) {
const [u, h] = d.map((y) => m(y));
const [u, h] = d.map((x) => m(x));
if (u.clone().add(1, "year").subtract(1, "day").isBefore(h, "day")) {
t.data.selectDate = [...t.data.selectDate], ibiz.message.error("统计期间不能超过一年");
return;
......@@ -201,11 +201,11 @@ const ot = w({
}
};
return k(() => t.data.selectDate, (d, u) => {
const [h, x] = d.map((i) => m(i).format("YYYY-MM-DD")), [y, V] = u.map((i) => m(i).format("YYYY-MM-DD"));
h === y && x === V || t.changeViewParams();
const [h, y] = d.map((n) => m(n).format("YYYY-MM-DD")), [x, S] = u.map((n) => m(n).format("YYYY-MM-DD"));
h === x && y === S || t.changeViewParams();
}), {
ns: s,
options: l,
options: i,
onSelectDateChange: c
};
},
......@@ -280,13 +280,13 @@ const it = w({
setup(e) {
const {
proxy: s
} = C(), t = p("custom-tab-exp-view"), r = p("view"), o = U(s, e.modelPath), l = P([]), c = P(""), d = P(!1), u = $(s), h = {}, x = async (i) => {
const f = S(s).fullPath;
} = C(), t = p("custom-tab-exp-view"), r = p("view"), o = U(s, e.modelPath), i = P([]), c = P(""), d = P(!1), u = $(s), h = {}, y = async (n) => {
const f = V(s).fullPath;
h[c.value] = f;
const b = o.model.tabExpPanel.tabExpPages.find((v) => v.name === i);
const b = o.model.tabExpPanel.tabExpPages.find((v) => v.name === n);
if ((b == null ? void 0 : b.embedView.initialized) === !1 && await b.embedView.init(), o.context.isRouter) {
if (d.value = !0, h[i])
u.push(h[i]);
if (d.value = !0, h[n])
u.push(h[n]);
else {
const v = Object.assign(o.context.clone(), {
toRouteLevel: o.modal.level + 1
......@@ -294,17 +294,17 @@ const it = w({
ibiz.openView.root(b.embedView.source, v, o.params);
}
setTimeout(() => {
d.value = !1, c.value = i;
d.value = !1, c.value = n;
}, 0);
} else
l.value.includes(i) || (l.value.push(i), c.value = i);
i.value.includes(n) || (i.value.push(n), c.value = n);
};
o.nerve.self.evt.on("created", () => {
const i = S(s), {
const n = V(s), {
tabExpPages: g
} = o.model.tabExpPanel;
if (o.context.isRouter) {
const f = e.modal.level + 1, b = i.params[`view${f}`];
const f = e.modal.level + 1, b = n.params[`view${f}`];
if (b) {
const v = g.find((I) => K(I.embedView.source) === b);
v && (c.value = v.name);
......@@ -312,22 +312,22 @@ const it = w({
}
if (g.length && !c.value) {
const f = g[0].name;
x(f);
y(f);
}
});
const y = _(() => Object.values(o.tabExpPages).map((i) => i.key)), V = {
const x = _(() => Object.values(o.tabExpPages).map((n) => n.key)), S = {
mode: D.EMBED
};
return {
c: o,
ns: t,
ns2: r,
onTabClick: x,
lazyList: l,
onTabClick: y,
lazyList: i,
deactivateAll: d,
activeTab: c,
keyHistory: y,
embedViewModal: V
keyHistory: x,
embedViewModal: S
};
},
render() {
......@@ -507,7 +507,15 @@ const lt = w({
const {
proxy: s
} = C(), t = p("bwsd-custom-list"), r = L(s, e.modelData, e.context, e.params);
return r.size = r.model.size, {
r.size = r.model.size;
let o = "";
const {
defaultSortField: i,
defaultSortDir: c
} = r.model;
return i && c && (o = `${i},${c}`), r.nerve.self.evt.on("beforeLoad", () => !r.model.source.noSort && o ? {
sort: o
} : {}), {
c: r,
ns: t
};
......@@ -654,8 +662,8 @@ const dt = w({
var c;
const {
proxy: s
} = C(), t = L(s, e.modelData, e.context, e.params), r = p("fwzl-custom-list"), o = P([]), l = (c = t.model.source.getPSControlParam()) == null ? void 0 : c.ctrlParams;
return l && l.COLOR && (o.value = JSON.parse(l.COLOR)), {
} = C(), t = L(s, e.modelData, e.context, e.params), r = p("fwzl-custom-list"), o = P([]), i = (c = t.model.source.getPSControlParam()) == null ? void 0 : c.ctrlParams;
return i && i.COLOR && (o.value = JSON.parse(i.COLOR)), {
c: t,
ns: r,
colorList: o
......@@ -745,7 +753,7 @@ const ut = w({
}, [this.text]);
}
});
class mt extends G {
class mt extends F {
connect(s, t) {
var r;
super.connect(s, t), s === "dashboard" && ((r = this.dashboard) == null || r.evt.on(
......@@ -754,7 +762,7 @@ class mt extends G {
));
}
}
class pt extends q {
class pt extends G {
createNerve() {
return new mt(this);
}
......
!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(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}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){x(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(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(l){u=!0,o=l}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(D){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),s=new k(n||[]);return o(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(D){return{type:"throw",arg:D}}}e.wrap=p;var d={};function h(){}function m(){}function v(){}var y={};l(y,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==r&&n.call(w,a)&&(y=w);var g=v.prototype=h.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(e,r){function i(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==t(p)&&n.call(p,"__await")?r.resolve(p.__await).then((function(t){i("next",t,s,c)}),(function(t){i("throw",t,s,c)})):r.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,e){function n(){return new r((function(r,n){i(t,e,r,n)}))}return a=a?a.then(n,n):n()}})}function O(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 L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===d)continue;return s}}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 c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;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,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}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 E(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 C(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,o(g,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},x(P.prototype),l(P.prototype,c,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(g),l(g,u,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.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}},e.values=C,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(E),!t)for(var e in this)"t"===e.charAt(0)&&n.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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)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 o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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,d):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),d},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),E(r),d}},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;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function c(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,s,"next",t)}function s(t){c(i,n,o,a,s,"throw",t)}a(void 0)}))}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=p(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},l.apply(this,arguments)}function p(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,r){if(r&&("object"===t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,P(n.key),n)}}function w(t,e,r){return e&&b(t.prototype,e),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e,r){return(e=P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(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)}System.register(["@ibiz-template/runtime","@ibiz-template/controller","dayjs","@ibiz-template/model","vue","@ibiz-template/vue-util"],(function(t,r){"use strict";var i,a,c,p,d,m,b,P,O,S,j,E,k,C,L,D,V,z,T,_,I,A,N,M,R,B;return{setters:[function(t){i=t.PluginStaticResource,a=t.ViewMode},function(t){c=t.CustomPortletController,p=t.ViewPortletController,d=t.SpanEditorController,m=t.AppPortalViewNerve,b=t.AppPortalViewController},function(t){P=t.default},function(t){O=t.PortletPartModel,S=t.ListModel,j=t.ViewPortletModel},function(t){E=t.defineComponent,k=t.reactive,C=t.watch,L=t.h,D=t.getCurrentInstance,V=t.ref,z=t.computed},function(t){T=t.useNamespace,_=t.useTabExpViewController,I=t.useRouter,A=t.useRoute,N=t.getViewName,M=t.getSpanProps,R=t.useListController,B=t.useViewController}],execute:function(){var G=new i(r.meta.url),q=w((function t(){g(this,t),x(this,"component","IndexView")})),Y=function(t){f(i,t);var e,r=h(i);function i(){var t;g(this,i);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return x(v(t=r.call.apply(r,[this].concat(n))),"items",[{text:"近一年",value:12},{text:"近半年",value:6},{text:"近三月",value:3}]),x(v(t),"data",{selectDate:[],itemValue:12}),x(v(t),"onItemValueChange",(function(e){var r=P();t.data.selectDate=[r.subtract(e,"month").add(1,"day").toDate(),r.toDate()]})),t}return w(i,[{key:"onInit",value:(e=u(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(y(i.prototype),"onInit",this).call(this);case 2:this.onItemValueChange(this.data.itemValue),this.changeViewParams();case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"changeViewParams",value:function(){var t=o(this.data.selectDate,2),e=t[0],r=t[1];if(e&&r){var i=P(e).format("YYYY-MM-DD"),a=P(r).format("YYYY-MM-DD");this.dashboard.nerve.self.evt.asyncEmit("contextOrParamsChange",n({},this.context),n(n({},this.params),{},{starttime:i,endtime:a,kssj:i,jssj:a,tjkssj:i,tjjssj:a}),!0)}}}]),i}(c),F=function(t){f(o,t);var e,r,n=h(o);function o(){var t;g(this,o);for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return x(v(t=n.call.apply(n,[this].concat(r))),"entityService",void 0),x(v(t),"result",{data:{}}),t}return w(o,[{key:"onInit",value:(r=u(s().mark((function t(){var e=this;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(y(o.prototype),"onInit",this).call(this);case 2:return t.next=4,ibiz.entityService.getService("GwxnFwzl",this.context);case 4:this.entityService=t.sent,this.dashboard.nerve.self.evt.on("mounted",(function(){e.load()}));case 6:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"calcViewParams",value:function(){l(y(o.prototype),"calcViewParams",this).call(this),this.dashboard.complete&&this.load()}},{key:"load",value:(e=u(s().mark((function t(){var e;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.entityService){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.entityService.exec("Getfwzldata",this.context,this.params);case 4:(e=t.sent).ok&&e.data?this.result.data=e.data:this.result.data={};case 6:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),o}(p),U=function(){function t(){g(this,t),x(this,"component","PortalDatePicker")}var e;return w(t,[{key:"createController",value:(e=u(s().mark((function t(e,r,n){var o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new Y(e,r,n),t.next=3,o.init();case 3:return t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(t,r,n){return e.apply(this,arguments)})}]),t}(),K=w((function t(){g(this,t),x(this,"component","CustomTabExpView")})),W=function(){function t(e){g(this,t),x(this,"formEditor","GrowthRateSpan"),x(this,"gridEditor","IBizGridSpan"),"SPAN_LINK"===e&&(this.formEditor="IBizSpanLink",this.gridEditor="IBizSpanLink")}var e;return w(t,[{key:"createController",value:(e=u(s().mark((function t(e,r){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new d(e,r),t.next=3,n.init();case 3:return t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)}))),function(t,r){return e.apply(this,arguments)})}]),t}(),H=w((function t(){g(this,t),x(this,"component","BwsdCustomList")})),$=function(){function t(){g(this,t),x(this,"component","FwzlPortal")}var e;return w(t,[{key:"createController",value:(e=u(s().mark((function t(e,r,n){var o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new F(e,r,n),t.next=3,o.init();case 3:return t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(t,r,n){return e.apply(this,arguments)})}]),t}(),J=w((function t(){g(this,t),x(this,"component","FwzlCustomList")})),Q=w((function t(){g(this,t),x(this,"component","GwxnAppPortalView")})),X=E({name:"PortalDatePicker",props:{modelData:{type:O,required:!0},controller:{type:Y,required:!0}},setup:function(t){var r=T("portal-date-picker"),n=t.controller;Object.assign(n,{data:k(n.data)});var i=P("2017-01-01"),a=P(),s={disabledDate:function(t){var e=P(t);return e.isBefore(i,"day")||a.isBefore(e,"day")}};return C((function(){return n.data.selectDate}),(function(t,e){var r=o(t.map((function(t){return P(t).format("YYYY-MM-DD")})),2),i=r[0],a=r[1],s=o(e.map((function(t){return P(t).format("YYYY-MM-DD")})),2),c=s[0],u=s[1];i===c&&a===u||n.changeViewParams()})),{ns:r,options:s,onSelectDateChange:function(t){if(Array.isArray(t)&&2===t.length){var r=o(t.map((function(t){return P(t)})),2),i=r[0],a=r[1];if(i.clone().add(1,"year").subtract(1,"day").isBefore(a,"day"))return n.data.selectDate=e(n.data.selectDate),void ibiz.message.error("统计期间不能超过一年");n.data.selectDate=[i.toDate(),a.toDate()],n.data.itemValue=0}}}},render:function(){var t=this,e=this.controller.model,r=[this.ns.b(),this.ns.m(this.modelData.modelClass)];return L("portlet-layout",{attrs:{controller:this.controller},class:r},[L("div",{class:this.ns.b("content")},[L("div",{class:this.ns.e("text")},[e.title||""]),L("i-date-picker",{class:this.ns.e("picker"),attrs:{type:"daterange",placeholder:"请选择日期",separator:" 至 ",clearable:!1,editable:!1,"split-panels":!0,value:this.controller.data.selectDate,options:this.options},on:{"on-change":this.onSelectDateChange}}),L("i-radio-group",{class:this.ns.e("radio-group"),attrs:{type:"button"},on:{"on-change":this.controller.onItemValueChange},model:{value:this.controller.data.itemValue,callback:function(e){t.$set(t.controller.data,"itemValue",e)}}},[this.controller.items.map((function(e){return L("i-radio",{class:t.ns.e("radio"),attrs:{label:e.value}},[e.text])}))])])])}}),Z=E({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},noLoadDefault:{type:Boolean,required:!1}},setup:function(t){var e=D().proxy,r=T("custom-tab-exp-view"),n=T("view"),o=_(e,t.modelPath),i=V([]),c=V(""),l=V(!1),p=I(e),f={},d=function(){var t=u(s().mark((function t(r){var n,a,u,d;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=A(e),a=n.fullPath,f[c.value]=a,!1!==(null==(u=o.model.tabExpPanel.tabExpPages.find((function(t){return t.name===r})))?void 0:u.embedView.initialized)){t.next=7;break}return t.next=7,u.embedView.init();case 7:o.context.isRouter?(l.value=!0,f[r]?p.push(f[r]):(d=Object.assign(o.context.clone(),{toRouteLevel:o.modal.level+1}),ibiz.openView.root(u.embedView.source,d,o.params)),setTimeout((function(){l.value=!1,c.value=r}),0)):i.value.includes(r)||(i.value.push(r),c.value=r);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();o.nerve.self.evt.on("created",(function(){var r=A(e),n=o.model.tabExpPanel.tabExpPages;if(o.context.isRouter){var i=t.modal.level+1,a=r.params["view".concat(i)];if(a){var s=n.find((function(t){return N(t.embedView.source)===a}));s&&(c.value=s.name)}}if(n.length&&!c.value){var u=n[0].name;d(u)}}));var h=z((function(){return Object.values(o.tabExpPages).map((function(t){return t.key}))})),m={mode:a.EMBED};return{c:o,ns:r,ns2:n,onTabClick:d,lazyList:i,deactivateAll:l,activeTab:c,keyHistory:h,embedViewModal:m}},render:function(){var t=this,e=this.c,r=!0===this.c.context.isRouter;return L("view-base",{class:[this.ns.b(),r?this.ns.m("route"):""],attrs:{controller:this.c},scopedSlots:{caption:function(){return L("div",{class:t.ns2.b("caption")},[e.complete&&e.model.source.getPSSysImage()?[L("app-icon",{class:t.ns2.be("caption","icon"),attrs:{icon:e.model.source.getPSSysImage()}}),L("span",{class:t.ns2.be("caption","text"),attrs:{title:e.caption}},[e.caption])]:L("span",{class:t.ns2.be("caption","text"),attrs:{title:e.caption}},[e.caption]),e.complete&&L("i-radio-group",{class:t.ns.e("radio-group"),attrs:{type:"button"},on:{"on-change":t.onTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[t.c.model.tabExpPanel.tabExpPages.map((function(e){if(t.c.tabExpPages[e.name])return L("i-radio",{class:t.ns.e("radio"),attrs:{label:e.name}},[e.source.caption])}))])])}}},[this.c.complete&&[L("i-tabs",{class:this.ns.e("tab"),attrs:{name:this.c.model.codeName},on:{"on-click":this.onTabClick},model:{value:this.activeTab,callback:function(e){t.activeTab=e}}},[this.c.model.tabExpPanel.tabExpPages.map((function(e){var r=t.c.tabExpPages[e.name];if(r)return L("i-tab-pane",{class:t.ns.e("tab-item"),attrs:{tab:t.c.model.codeName,label:e.source.caption,name:e.name}},[t.lazyList.includes(e.name)&&L("ViewShell",{attrs:{context:t.c.context,params:t.c.params,modal:t.embedViewModal,modelPath:e.embedView.source.modelPath},on:{neuronInit:t.c.nerve.onNeuronInit(e.name)},key:r.key})])}))]),r&&this.activeTab&&L("div",{class:this.ns.e("route-content")},[L("router-view",{key:this.c.tabExpPages[this.activeTab].key,on:{"neuron-init":this.c.nerve.onNeuronInit(this.activeTab)}},[function(e){var r=e.Component;return r&&L("appKeepAlive",{attrs:{keyList:t.keyHistory}},[L(r)])}])])]])}}),tt=E({name:"GrowthRateSpan",props:M(),setup:function(){return{ns:T("growth-rate-span")}},render:function(){return L("div",{class:[this.ns.b()]},[L("rate-span",{attrs:{value:this.value}})])}}),et=E({name:"BwsdCustomList",props:{modelData:{type:S,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},mdCtrlActiveMode:{type:Number,default:2},isSelectFirstDefault:{type:Boolean,required:!1},defaultSelectKeys:{type:Array,required:!1},isExpView:{type:Boolean,required:!1}},setup:function(t){var e=D().proxy,r=T("bwsd-custom-list"),n=R(e,t.modelData,t.context,t.params);return n.size=n.model.size,{c:n,ns:r}},render:function(){var t=this;return L("control-layout",{attrs:{modelData:this.c.model}},[L("div",{class:this.ns.b()},[this.c.items.length?null:L("div",{class:this.ns.b("item")},["暂无数据"]),this.c.items.map((function(e,r){return L("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","index")},["".concat(r+1,".")]),L("div",{class:t.ns.be("item","key")},[e.key||""]),L("div",{class:t.ns.be("item","value")},[e.value||""])])}))])])}}),rt=E({name:"FwzlPortal",props:{modelData:{type:j,required:!0},controller:{type:F,required:!0}},setup:function(t){var e=T("view-portlet");return Object.assign(t.controller,{result:k(t.controller.result)}),{ns:e,ns2:T("fwzl-portal"),onNeuronInit:function(e){t.controller.setViewNeuron(e)}}},render:function(){var t=this,e=this.controller,r=[this.ns.b(),this.ns.m(this.modelData.modelClass),this.ns2.b()];return L("portlet-layout",{attrs:{controller:this.controller},class:r},[L("div",{class:[t.ns2.b("content")]},[L("div",{class:t.ns2.e("text")},["总计退文"]),L("div",{class:t.ns2.e("value")},[e.result.data.ztws||0]),L("div",{class:t.ns2.e("text")},["件"]),L("div",{class:t.ns2.e("rate")},[L("rate-span",{attrs:{value:e.result.data.tqztwszf}})])]),L("ViewShell",{attrs:{context:e.viewContext,params:e.params,modal:{mode:a.EMBED},modelPath:e.model.embedView.source.modelPath},on:{neuronInit:this.onNeuronInit},key:e.model.embedView.codeName})])}}),nt=E({name:"FwzlCustomList",props:{modelData:{type:S,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},mdCtrlActiveMode:{type:Number,default:2},isSelectFirstDefault:{type:Boolean,required:!1},defaultSelectKeys:{type:Array,required:!1},isExpView:{type:Boolean,required:!1}},setup:function(t){var e,r=D().proxy,n=R(r,t.modelData,t.context,t.params),o=T("fwzl-custom-list"),i=V([]),a=null===(e=n.model.source.getPSControlParam())||void 0===e?void 0:e.ctrlParams;return a&&a.COLOR&&(i.value=JSON.parse(a.COLOR)),{c:n,ns:o,colorList:i}},render:function(){var t=this;return L("control-layout",{attrs:{modelData:this.c.model}},[this.c.complete&&(t.c.items.length?L("div",{class:t.ns.b()},[L("div",{class:t.ns.b("item-icon")},[t.c.items.map((function(e,r){return L("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","icon"),style:{"--background":"".concat(t.colorList[r]||"#5190ff")}})])}))]),L("div",{class:t.ns.b("item-text")},[t.c.items.map((function(e){return L("div",{class:t.ns.b("item")},[e.text&&L("div",{class:t.ns.be("item","text")},[e.text])])}))]),L("div",{class:t.ns.b("item-value")},[t.c.items.map((function(e){return L("div",{class:t.ns.b("item")},[null!=e.value&&L("div",{class:t.ns.be("item","value")},[e.value])])}))]),L("div",{class:t.ns.b("item-percentage")},[t.c.items.map((function(e){return L("div",{class:t.ns.b("item")},[e.percentage&&L("div",{class:t.ns.be("item","percentage")},[e.percentage])])}))]),L("div",{class:t.ns.b("item-rate")},[t.c.items.map((function(e){return L("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","rate")},[L("rate-span",{attrs:{value:e.rate}})])])}))])]):L("div",{class:[t.ns.b(),t.ns.m("empty")]},["未有被退文部门"]))])}}),ot=E({name:"RateSpan",props:{value:{type:String}},setup:function(t){var e=T("rate-span"),r=V(""),n=V();return C((function(){return t.value}),(function(t){if(t&&parseInt(t,10)){if(t.startsWith("-"))return r.value=t.slice(1),void(n.value="decrease");r.value=t,n.value="increase"}else r.value=""}),{immediate:!0}),{ns:e,text:r,type:n}},render:function(){if(this.text&&this.type)return L("div",{class:[this.ns.b(),this.ns.m(this.type)]},[this.text])}}),it=function(t){f(r,t);var e=h(r);function r(){return g(this,r),e.apply(this,arguments)}return w(r,[{key:"connect",value:function(t,e){var n;(l(y(r.prototype),"connect",this).call(this,t,e),"dashboard"===t)&&(null===(n=this.dashboard)||void 0===n||n.evt.on("contextOrParamsChange",this.controller.setContextOrParams.bind(this.controller)))}}]),r}(m),at=function(t){f(r,t);var e=h(r);function r(){return g(this,r),e.apply(this,arguments)}return w(r,[{key:"createNerve",value:function(){return new it(this)}}]),r}(b);var st=E({name:"GwxnAppPortalView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},noLoadDefault:{type:Boolean,required:!1}},setup:function(t){var e,r,n=D().proxy;return{c:(e=n,r=t.modelPath,B(e,(function(t,e){return new at(r,t,e)})))}},render:function(t){var e=null;if(this.c.complete){var r=this.c.model.dashboard;this.c.providers[r.name]&&(e=t(this.c.providers[r.name].component,{props:{modelData:r,context:this.c.context,params:this.c.params},on:{neuronInit:this.c.nerve.onNeuronInit(r.name)}}))}return t("view-base",{attrs:{controller:this.c}},[e])}});t("default",{mateUrl:r.meta.url,install:function(t){G.loadStyle(["/style.css"]),ibiz.register.view.register("VIEW_CUSTOM_GwxnIndexCSS",new q),t.component("RateSpan",ot),t.component("GwxnAppPortalView",st),ibiz.register.view.register("VIEW_CUSTOM_GwxnAppPortalView",new Q),t.component("PortalDatePicker",X),ibiz.register.portletPart.register("PORTLET_CUSTOM_PortalDatePicker",new U),t.component("CustomTabExpView",Z),ibiz.register.view.register("VIEW_CUSTOM_CustomTabExpView",new K),t.component("GrowthRateSpan",tt),ibiz.register.editor.register("SPAN_GrowthRateSpan",new W),t.component("BwsdCustomList",et),ibiz.register.control.register("CUSTOM_BwsdCustomList",new H),t.component("FwzlPortal",rt),ibiz.register.portletPart.register("PORTLET_CUSTOM_FwzlPortal",new $),t.component("FwzlCustomList",nt),ibiz.register.control.register("CUSTOM_FwzlCustomList",new J)}})}}}))}();
!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(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}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){x(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(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(l){u=!0,o=l}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(D){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),s=new k(n||[]);return o(a,"_invoke",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(D){return{type:"throw",arg:D}}}e.wrap=p;var d={};function h(){}function m(){}function v(){}var y={};l(y,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==r&&n.call(w,a)&&(y=w);var g=v.prototype=h.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(e,r){function i(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==t(p)&&n.call(p,"__await")?r.resolve(p.__await).then((function(t){i("next",t,s,c)}),(function(t){i("throw",t,s,c)})):r.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,e){function n(){return new r((function(r,n){i(t,e,r,n)}))}return a=a?a.then(n,n):n()}})}function O(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 L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===d)continue;return s}}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 c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;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,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}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 E(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 C(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,o(g,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},x(P.prototype),l(P.prototype,c,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(g),l(g,u,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.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}},e.values=C,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(E),!t)for(var e in this)"t"===e.charAt(0)&&n.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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)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 o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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,d):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),d},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),E(r),d}},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;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function c(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,s,"next",t)}function s(t){c(i,n,o,a,s,"throw",t)}a(void 0)}))}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=p(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},l.apply(this,arguments)}function p(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,r){if(r&&("object"===t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,P(n.key),n)}}function w(t,e,r){return e&&b(t.prototype,e),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e,r){return(e=P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(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)}System.register(["@ibiz-template/runtime","@ibiz-template/controller","dayjs","@ibiz-template/model","vue","@ibiz-template/vue-util"],(function(t,r){"use strict";var i,a,c,p,d,m,b,P,O,S,j,E,k,C,L,D,V,z,T,_,I,A,N,M,R,B;return{setters:[function(t){i=t.PluginStaticResource,a=t.ViewMode},function(t){c=t.CustomPortletController,p=t.ViewPortletController,d=t.SpanEditorController,m=t.AppPortalViewNerve,b=t.AppPortalViewController},function(t){P=t.default},function(t){O=t.PortletPartModel,S=t.ListModel,j=t.ViewPortletModel},function(t){E=t.defineComponent,k=t.reactive,C=t.watch,L=t.h,D=t.getCurrentInstance,V=t.ref,z=t.computed},function(t){T=t.useNamespace,_=t.useTabExpViewController,I=t.useRouter,A=t.useRoute,N=t.getViewName,M=t.getSpanProps,R=t.useListController,B=t.useViewController}],execute:function(){var G=new i(r.meta.url),q=w((function t(){g(this,t),x(this,"component","IndexView")})),Y=function(t){f(i,t);var e,r=h(i);function i(){var t;g(this,i);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return x(v(t=r.call.apply(r,[this].concat(n))),"items",[{text:"近一年",value:12},{text:"近半年",value:6},{text:"近三月",value:3}]),x(v(t),"data",{selectDate:[],itemValue:12}),x(v(t),"onItemValueChange",(function(e){var r=P();t.data.selectDate=[r.subtract(e,"month").add(1,"day").toDate(),r.toDate()]})),t}return w(i,[{key:"onInit",value:(e=u(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(y(i.prototype),"onInit",this).call(this);case 2:this.onItemValueChange(this.data.itemValue),this.changeViewParams();case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"changeViewParams",value:function(){var t=o(this.data.selectDate,2),e=t[0],r=t[1];if(e&&r){var i=P(e).format("YYYY-MM-DD"),a=P(r).format("YYYY-MM-DD");this.dashboard.nerve.self.evt.asyncEmit("contextOrParamsChange",n({},this.context),n(n({},this.params),{},{starttime:i,endtime:a,kssj:i,jssj:a,tjkssj:i,tjjssj:a}),!0)}}}]),i}(c),F=function(t){f(o,t);var e,r,n=h(o);function o(){var t;g(this,o);for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return x(v(t=n.call.apply(n,[this].concat(r))),"entityService",void 0),x(v(t),"result",{data:{}}),t}return w(o,[{key:"onInit",value:(r=u(s().mark((function t(){var e=this;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(y(o.prototype),"onInit",this).call(this);case 2:return t.next=4,ibiz.entityService.getService("GwxnFwzl",this.context);case 4:this.entityService=t.sent,this.dashboard.nerve.self.evt.on("mounted",(function(){e.load()}));case 6:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"calcViewParams",value:function(){l(y(o.prototype),"calcViewParams",this).call(this),this.dashboard.complete&&this.load()}},{key:"load",value:(e=u(s().mark((function t(){var e;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.entityService){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.entityService.exec("Getfwzldata",this.context,this.params);case 4:(e=t.sent).ok&&e.data?this.result.data=e.data:this.result.data={};case 6:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),o}(p),U=function(){function t(){g(this,t),x(this,"component","PortalDatePicker")}var e;return w(t,[{key:"createController",value:(e=u(s().mark((function t(e,r,n){var o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new Y(e,r,n),t.next=3,o.init();case 3:return t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(t,r,n){return e.apply(this,arguments)})}]),t}(),K=w((function t(){g(this,t),x(this,"component","CustomTabExpView")})),W=function(){function t(e){g(this,t),x(this,"formEditor","GrowthRateSpan"),x(this,"gridEditor","IBizGridSpan"),"SPAN_LINK"===e&&(this.formEditor="IBizSpanLink",this.gridEditor="IBizSpanLink")}var e;return w(t,[{key:"createController",value:(e=u(s().mark((function t(e,r){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new d(e,r),t.next=3,n.init();case 3:return t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)}))),function(t,r){return e.apply(this,arguments)})}]),t}(),H=w((function t(){g(this,t),x(this,"component","BwsdCustomList")})),$=function(){function t(){g(this,t),x(this,"component","FwzlPortal")}var e;return w(t,[{key:"createController",value:(e=u(s().mark((function t(e,r,n){var o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new F(e,r,n),t.next=3,o.init();case 3:return t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(t,r,n){return e.apply(this,arguments)})}]),t}(),J=w((function t(){g(this,t),x(this,"component","FwzlCustomList")})),Q=w((function t(){g(this,t),x(this,"component","GwxnAppPortalView")})),X=E({name:"PortalDatePicker",props:{modelData:{type:O,required:!0},controller:{type:Y,required:!0}},setup:function(t){var r=T("portal-date-picker"),n=t.controller;Object.assign(n,{data:k(n.data)});var i=P("2017-01-01"),a=P(),s={disabledDate:function(t){var e=P(t);return e.isBefore(i,"day")||a.isBefore(e,"day")}};return C((function(){return n.data.selectDate}),(function(t,e){var r=o(t.map((function(t){return P(t).format("YYYY-MM-DD")})),2),i=r[0],a=r[1],s=o(e.map((function(t){return P(t).format("YYYY-MM-DD")})),2),c=s[0],u=s[1];i===c&&a===u||n.changeViewParams()})),{ns:r,options:s,onSelectDateChange:function(t){if(Array.isArray(t)&&2===t.length){var r=o(t.map((function(t){return P(t)})),2),i=r[0],a=r[1];if(i.clone().add(1,"year").subtract(1,"day").isBefore(a,"day"))return n.data.selectDate=e(n.data.selectDate),void ibiz.message.error("统计期间不能超过一年");n.data.selectDate=[i.toDate(),a.toDate()],n.data.itemValue=0}}}},render:function(){var t=this,e=this.controller.model,r=[this.ns.b(),this.ns.m(this.modelData.modelClass)];return L("portlet-layout",{attrs:{controller:this.controller},class:r},[L("div",{class:this.ns.b("content")},[L("div",{class:this.ns.e("text")},[e.title||""]),L("i-date-picker",{class:this.ns.e("picker"),attrs:{type:"daterange",placeholder:"请选择日期",separator:" 至 ",clearable:!1,editable:!1,"split-panels":!0,value:this.controller.data.selectDate,options:this.options},on:{"on-change":this.onSelectDateChange}}),L("i-radio-group",{class:this.ns.e("radio-group"),attrs:{type:"button"},on:{"on-change":this.controller.onItemValueChange},model:{value:this.controller.data.itemValue,callback:function(e){t.$set(t.controller.data,"itemValue",e)}}},[this.controller.items.map((function(e){return L("i-radio",{class:t.ns.e("radio"),attrs:{label:e.value}},[e.text])}))])])])}}),Z=E({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},noLoadDefault:{type:Boolean,required:!1}},setup:function(t){var e=D().proxy,r=T("custom-tab-exp-view"),n=T("view"),o=_(e,t.modelPath),i=V([]),c=V(""),l=V(!1),p=I(e),f={},d=function(){var t=u(s().mark((function t(r){var n,a,u,d;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=A(e),a=n.fullPath,f[c.value]=a,!1!==(null==(u=o.model.tabExpPanel.tabExpPages.find((function(t){return t.name===r})))?void 0:u.embedView.initialized)){t.next=7;break}return t.next=7,u.embedView.init();case 7:o.context.isRouter?(l.value=!0,f[r]?p.push(f[r]):(d=Object.assign(o.context.clone(),{toRouteLevel:o.modal.level+1}),ibiz.openView.root(u.embedView.source,d,o.params)),setTimeout((function(){l.value=!1,c.value=r}),0)):i.value.includes(r)||(i.value.push(r),c.value=r);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();o.nerve.self.evt.on("created",(function(){var r=A(e),n=o.model.tabExpPanel.tabExpPages;if(o.context.isRouter){var i=t.modal.level+1,a=r.params["view".concat(i)];if(a){var s=n.find((function(t){return N(t.embedView.source)===a}));s&&(c.value=s.name)}}if(n.length&&!c.value){var u=n[0].name;d(u)}}));var h=z((function(){return Object.values(o.tabExpPages).map((function(t){return t.key}))})),m={mode:a.EMBED};return{c:o,ns:r,ns2:n,onTabClick:d,lazyList:i,deactivateAll:l,activeTab:c,keyHistory:h,embedViewModal:m}},render:function(){var t=this,e=this.c,r=!0===this.c.context.isRouter;return L("view-base",{class:[this.ns.b(),r?this.ns.m("route"):""],attrs:{controller:this.c},scopedSlots:{caption:function(){return L("div",{class:t.ns2.b("caption")},[e.complete&&e.model.source.getPSSysImage()?[L("app-icon",{class:t.ns2.be("caption","icon"),attrs:{icon:e.model.source.getPSSysImage()}}),L("span",{class:t.ns2.be("caption","text"),attrs:{title:e.caption}},[e.caption])]:L("span",{class:t.ns2.be("caption","text"),attrs:{title:e.caption}},[e.caption]),e.complete&&L("i-radio-group",{class:t.ns.e("radio-group"),attrs:{type:"button"},on:{"on-change":t.onTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[t.c.model.tabExpPanel.tabExpPages.map((function(e){if(t.c.tabExpPages[e.name])return L("i-radio",{class:t.ns.e("radio"),attrs:{label:e.name}},[e.source.caption])}))])])}}},[this.c.complete&&[L("i-tabs",{class:this.ns.e("tab"),attrs:{name:this.c.model.codeName},on:{"on-click":this.onTabClick},model:{value:this.activeTab,callback:function(e){t.activeTab=e}}},[this.c.model.tabExpPanel.tabExpPages.map((function(e){var r=t.c.tabExpPages[e.name];if(r)return L("i-tab-pane",{class:t.ns.e("tab-item"),attrs:{tab:t.c.model.codeName,label:e.source.caption,name:e.name}},[t.lazyList.includes(e.name)&&L("ViewShell",{attrs:{context:t.c.context,params:t.c.params,modal:t.embedViewModal,modelPath:e.embedView.source.modelPath},on:{neuronInit:t.c.nerve.onNeuronInit(e.name)},key:r.key})])}))]),r&&this.activeTab&&L("div",{class:this.ns.e("route-content")},[L("router-view",{key:this.c.tabExpPages[this.activeTab].key,on:{"neuron-init":this.c.nerve.onNeuronInit(this.activeTab)}},[function(e){var r=e.Component;return r&&L("appKeepAlive",{attrs:{keyList:t.keyHistory}},[L(r)])}])])]])}}),tt=E({name:"GrowthRateSpan",props:M(),setup:function(){return{ns:T("growth-rate-span")}},render:function(){return L("div",{class:[this.ns.b()]},[L("rate-span",{attrs:{value:this.value}})])}}),et=E({name:"BwsdCustomList",props:{modelData:{type:S,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},mdCtrlActiveMode:{type:Number,default:2},isSelectFirstDefault:{type:Boolean,required:!1},defaultSelectKeys:{type:Array,required:!1},isExpView:{type:Boolean,required:!1}},setup:function(t){var e=D().proxy,r=T("bwsd-custom-list"),n=R(e,t.modelData,t.context,t.params);n.size=n.model.size;var o="",i=n.model,a=i.defaultSortField,s=i.defaultSortDir;return a&&s&&(o="".concat(a,",").concat(s)),n.nerve.self.evt.on("beforeLoad",(function(){return!n.model.source.noSort&&o?{sort:o}:{}})),{c:n,ns:r}},render:function(){var t=this;return L("control-layout",{attrs:{modelData:this.c.model}},[L("div",{class:this.ns.b()},[this.c.items.length?null:L("div",{class:this.ns.b("item")},["暂无数据"]),this.c.items.map((function(e,r){return L("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","index")},["".concat(r+1,".")]),L("div",{class:t.ns.be("item","key")},[e.key||""]),L("div",{class:t.ns.be("item","value")},[e.value||""])])}))])])}}),rt=E({name:"FwzlPortal",props:{modelData:{type:j,required:!0},controller:{type:F,required:!0}},setup:function(t){var e=T("view-portlet");return Object.assign(t.controller,{result:k(t.controller.result)}),{ns:e,ns2:T("fwzl-portal"),onNeuronInit:function(e){t.controller.setViewNeuron(e)}}},render:function(){var t=this,e=this.controller,r=[this.ns.b(),this.ns.m(this.modelData.modelClass),this.ns2.b()];return L("portlet-layout",{attrs:{controller:this.controller},class:r},[L("div",{class:[t.ns2.b("content")]},[L("div",{class:t.ns2.e("text")},["总计退文"]),L("div",{class:t.ns2.e("value")},[e.result.data.ztws||0]),L("div",{class:t.ns2.e("text")},["件"]),L("div",{class:t.ns2.e("rate")},[L("rate-span",{attrs:{value:e.result.data.tqztwszf}})])]),L("ViewShell",{attrs:{context:e.viewContext,params:e.params,modal:{mode:a.EMBED},modelPath:e.model.embedView.source.modelPath},on:{neuronInit:this.onNeuronInit},key:e.model.embedView.codeName})])}}),nt=E({name:"FwzlCustomList",props:{modelData:{type:S,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},mdCtrlActiveMode:{type:Number,default:2},isSelectFirstDefault:{type:Boolean,required:!1},defaultSelectKeys:{type:Array,required:!1},isExpView:{type:Boolean,required:!1}},setup:function(t){var e,r=D().proxy,n=R(r,t.modelData,t.context,t.params),o=T("fwzl-custom-list"),i=V([]),a=null===(e=n.model.source.getPSControlParam())||void 0===e?void 0:e.ctrlParams;return a&&a.COLOR&&(i.value=JSON.parse(a.COLOR)),{c:n,ns:o,colorList:i}},render:function(){var t=this;return L("control-layout",{attrs:{modelData:this.c.model}},[this.c.complete&&(t.c.items.length?L("div",{class:t.ns.b()},[L("div",{class:t.ns.b("item-icon")},[t.c.items.map((function(e,r){return L("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","icon"),style:{"--background":"".concat(t.colorList[r]||"#5190ff")}})])}))]),L("div",{class:t.ns.b("item-text")},[t.c.items.map((function(e){return L("div",{class:t.ns.b("item")},[e.text&&L("div",{class:t.ns.be("item","text")},[e.text])])}))]),L("div",{class:t.ns.b("item-value")},[t.c.items.map((function(e){return L("div",{class:t.ns.b("item")},[null!=e.value&&L("div",{class:t.ns.be("item","value")},[e.value])])}))]),L("div",{class:t.ns.b("item-percentage")},[t.c.items.map((function(e){return L("div",{class:t.ns.b("item")},[e.percentage&&L("div",{class:t.ns.be("item","percentage")},[e.percentage])])}))]),L("div",{class:t.ns.b("item-rate")},[t.c.items.map((function(e){return L("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","rate")},[L("rate-span",{attrs:{value:e.rate}})])])}))])]):L("div",{class:[t.ns.b(),t.ns.m("empty")]},["未有被退文部门"]))])}}),ot=E({name:"RateSpan",props:{value:{type:String}},setup:function(t){var e=T("rate-span"),r=V(""),n=V();return C((function(){return t.value}),(function(t){if(t&&parseInt(t,10)){if(t.startsWith("-"))return r.value=t.slice(1),void(n.value="decrease");r.value=t,n.value="increase"}else r.value=""}),{immediate:!0}),{ns:e,text:r,type:n}},render:function(){if(this.text&&this.type)return L("div",{class:[this.ns.b(),this.ns.m(this.type)]},[this.text])}}),it=function(t){f(r,t);var e=h(r);function r(){return g(this,r),e.apply(this,arguments)}return w(r,[{key:"connect",value:function(t,e){var n;(l(y(r.prototype),"connect",this).call(this,t,e),"dashboard"===t)&&(null===(n=this.dashboard)||void 0===n||n.evt.on("contextOrParamsChange",this.controller.setContextOrParams.bind(this.controller)))}}]),r}(m),at=function(t){f(r,t);var e=h(r);function r(){return g(this,r),e.apply(this,arguments)}return w(r,[{key:"createNerve",value:function(){return new it(this)}}]),r}(b);var st=E({name:"GwxnAppPortalView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},noLoadDefault:{type:Boolean,required:!1}},setup:function(t){var e,r,n=D().proxy;return{c:(e=n,r=t.modelPath,B(e,(function(t,e){return new at(r,t,e)})))}},render:function(t){var e=null;if(this.c.complete){var r=this.c.model.dashboard;this.c.providers[r.name]&&(e=t(this.c.providers[r.name].component,{props:{modelData:r,context:this.c.context,params:this.c.params},on:{neuronInit:this.c.nerve.onNeuronInit(r.name)}}))}return t("view-base",{attrs:{controller:this.c}},[e])}});t("default",{mateUrl:r.meta.url,install:function(t){G.loadStyle(["/style.css"]),ibiz.register.view.register("VIEW_CUSTOM_GwxnIndexCSS",new q),t.component("RateSpan",ot),t.component("GwxnAppPortalView",st),ibiz.register.view.register("VIEW_CUSTOM_GwxnAppPortalView",new Q),t.component("PortalDatePicker",X),ibiz.register.portletPart.register("PORTLET_CUSTOM_PortalDatePicker",new U),t.component("CustomTabExpView",Z),ibiz.register.view.register("VIEW_CUSTOM_CustomTabExpView",new K),t.component("GrowthRateSpan",tt),ibiz.register.editor.register("SPAN_GrowthRateSpan",new W),t.component("BwsdCustomList",et),ibiz.register.control.register("CUSTOM_BwsdCustomList",new H),t.component("FwzlPortal",rt),ibiz.register.portletPart.register("PORTLET_CUSTOM_FwzlPortal",new $),t.component("FwzlCustomList",nt),ibiz.register.control.register("CUSTOM_FwzlCustomList",new J)}})}}}))}();
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册