aldehyde 0.2.32 → 0.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.022b9d9e54b55ad6267e.js +1 -0
- package/dist/bundle.022b9d9e54b55ad6267e.js.gz +0 -0
- package/dist/bundle.03c8826fed3306e7bca7.js +1 -0
- package/dist/bundle.17695fcdfc4d8b13d695.js +2 -0
- package/dist/bundle.17695fcdfc4d8b13d695.js.LICENSE.txt +8 -0
- package/dist/bundle.17695fcdfc4d8b13d695.js.gz +0 -0
- package/dist/bundle.1bc3fad9b6dda01db2dc.js +1 -0
- package/dist/bundle.1bc3fad9b6dda01db2dc.js.gz +0 -0
- package/dist/bundle.26e8ea213610dd77dfc5.js +2 -0
- package/dist/bundle.26e8ea213610dd77dfc5.js.LICENSE.txt +22 -0
- package/dist/bundle.26e8ea213610dd77dfc5.js.gz +0 -0
- package/dist/bundle.2e0aa3d0288f29cd9bdb.js +1 -0
- package/dist/bundle.2e0aa3d0288f29cd9bdb.js.gz +0 -0
- package/dist/bundle.3afd92d0051920d083b8.js +1 -0
- package/dist/bundle.3afd92d0051920d083b8.js.gz +0 -0
- package/dist/bundle.3b47a72a98819ce207b4.js +2 -0
- package/dist/bundle.3b47a72a98819ce207b4.js.LICENSE.txt +14 -0
- package/dist/bundle.3b47a72a98819ce207b4.js.gz +0 -0
- package/dist/bundle.4d91709f680596b4b0ac.js +2 -0
- package/dist/bundle.4d91709f680596b4b0ac.js.LICENSE.txt +9 -0
- package/dist/bundle.4d91709f680596b4b0ac.js.gz +0 -0
- package/dist/bundle.4e6573855d62c2c61293.js +1 -0
- package/dist/bundle.4e6573855d62c2c61293.js.gz +0 -0
- package/dist/bundle.51344a730efffedb67a3.js +2 -0
- package/dist/bundle.51344a730efffedb67a3.js.LICENSE.txt +8 -0
- package/dist/bundle.51344a730efffedb67a3.js.gz +0 -0
- package/dist/bundle.59446aa1a6e81028b0f3.js +1 -0
- package/dist/bundle.59446aa1a6e81028b0f3.js.gz +0 -0
- package/dist/bundle.5c631f42a0bc32bcee42.js +1 -0
- package/dist/bundle.5cc46bd3e80bed3462d0.js +2 -0
- package/dist/bundle.5cc46bd3e80bed3462d0.js.LICENSE.txt +1 -0
- package/dist/bundle.5cc46bd3e80bed3462d0.js.gz +0 -0
- package/dist/bundle.5fc1d01501a8fadd2680.js +2 -0
- package/dist/bundle.5fc1d01501a8fadd2680.js.LICENSE.txt +7 -0
- package/dist/bundle.5fc1d01501a8fadd2680.js.gz +0 -0
- package/dist/bundle.6bf28a6aa5ba025b9cbe.js +2 -0
- package/dist/bundle.6bf28a6aa5ba025b9cbe.js.LICENSE.txt +18 -0
- package/dist/bundle.6bf28a6aa5ba025b9cbe.js.gz +0 -0
- package/dist/bundle.6c63d1f8fd32a2e9ca6c.js +75 -0
- package/dist/bundle.6c63d1f8fd32a2e9ca6c.js.LICENSE.txt +17 -0
- package/dist/bundle.6c63d1f8fd32a2e9ca6c.js.gz +0 -0
- package/dist/bundle.75ca758485013fe73c8a.js +1 -0
- package/dist/bundle.75ca758485013fe73c8a.js.gz +0 -0
- package/dist/bundle.79c75972bdb84e2526a0.js +1 -0
- package/dist/bundle.79c75972bdb84e2526a0.js.gz +0 -0
- package/dist/bundle.7c07c768d6aa85f8cb7f.js +1 -0
- package/dist/bundle.7c07c768d6aa85f8cb7f.js.gz +0 -0
- package/dist/bundle.7e85c36e04f1428d40ae.js +2 -0
- package/dist/bundle.7e85c36e04f1428d40ae.js.LICENSE.txt +17 -0
- package/dist/bundle.7e85c36e04f1428d40ae.js.gz +0 -0
- package/dist/bundle.7fe4c9d6d1fad1b785b4.js +1 -0
- package/dist/bundle.7fe4c9d6d1fad1b785b4.js.gz +0 -0
- package/dist/bundle.8a46aaa80505db8f0a31.js +1 -0
- package/dist/bundle.8a46aaa80505db8f0a31.js.gz +0 -0
- package/dist/bundle.8a6c3026f7b0ad7bdc84.js +2 -0
- package/dist/bundle.8a6c3026f7b0ad7bdc84.js.LICENSE.txt +25 -0
- package/dist/bundle.8a6c3026f7b0ad7bdc84.js.gz +0 -0
- package/dist/bundle.9a888a685a8dc8795cb1.js +1 -0
- package/dist/bundle.9d12b63336a9c8d44a9d.js +1 -0
- package/dist/bundle.9d12b63336a9c8d44a9d.js.gz +0 -0
- package/dist/bundle.a7dfe1231cfa8ef5b0d3.js +2 -0
- package/dist/bundle.a7dfe1231cfa8ef5b0d3.js.LICENSE.txt +5 -0
- package/dist/bundle.a7dfe1231cfa8ef5b0d3.js.gz +0 -0
- package/dist/bundle.be6aaf07219b3f9a361f.js +1 -0
- package/dist/bundle.be6aaf07219b3f9a361f.js.gz +0 -0
- package/dist/bundle.c015ad492469b8a18b36.js +1 -0
- package/dist/bundle.c015ad492469b8a18b36.js.gz +0 -0
- package/dist/bundle.c31ad04e1e30564fea70.js +1 -0
- package/dist/bundle.c560447b006cce1238b6.js +2 -0
- package/dist/bundle.c560447b006cce1238b6.js.LICENSE.txt +1 -0
- package/dist/bundle.c560447b006cce1238b6.js.gz +0 -0
- package/dist/bundle.cad48ecfb6c9304f8477.js +2 -0
- package/dist/bundle.cad48ecfb6c9304f8477.js.LICENSE.txt +5 -0
- package/dist/bundle.cad48ecfb6c9304f8477.js.gz +0 -0
- package/dist/bundle.d7eaee8d9bcfcf8b0bd0.js +1 -0
- package/dist/bundle.d7eaee8d9bcfcf8b0bd0.js.gz +0 -0
- package/dist/bundle.d8256eaa6fe575fb9d01.js +8 -0
- package/dist/bundle.d8256eaa6fe575fb9d01.js.LICENSE.txt +8 -0
- package/dist/bundle.d8256eaa6fe575fb9d01.js.gz +0 -0
- package/dist/bundle.dbb253f3029c97475380.js +1 -0
- package/dist/bundle.dbb253f3029c97475380.js.gz +0 -0
- package/dist/bundle.df7845990c0fed52fca8.js +2 -0
- package/dist/bundle.df7845990c0fed52fca8.js.LICENSE.txt +29 -0
- package/dist/bundle.df7845990c0fed52fca8.js.gz +0 -0
- package/dist/bundle.e1ac7a74c5a25a07424c.js +1 -0
- package/dist/bundle.e1ac7a74c5a25a07424c.js.gz +0 -0
- package/dist/bundle.e9b7939a81971b04ce61.js +1 -0
- package/dist/bundle.e9b7939a81971b04ce61.js.gz +0 -0
- package/dist/bundle.eb8b12c34556f700f59a.js +2 -0
- package/dist/bundle.eb8b12c34556f700f59a.js.LICENSE.txt +30 -0
- package/dist/bundle.eb8b12c34556f700f59a.js.gz +0 -0
- package/dist/bundle.f4f8e071565f4dff4698.js +2 -0
- package/dist/bundle.f4f8e071565f4dff4698.js.LICENSE.txt +5 -0
- package/dist/bundle.f4f8e071565f4dff4698.js.gz +0 -0
- package/dist/css/chemstruc-graph-15d5053934e613f20d2b.css +11 -0
- package/dist/css/chemstruc-graph-15d5053934e613f20d2b.css.gz +0 -0
- package/dist/css/common-131a1a93b3a3dde25f8f.css +90 -0
- package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css +886 -0
- package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css.gz +0 -0
- package/dist/css/main-4bd110a5b2a4a3fbef88.css +803 -0
- package/dist/css/main-4bd110a5b2a4a3fbef88.css.gz +0 -0
- package/dist/images/development-30de07a0.png +0 -0
- package/dist/images/pain-point-8f02421e.png +0 -0
- package/dist/images/target-13a5b4b9.png +0 -0
- package/dist/images/time-cost-cb40d2c2.png +0 -0
- package/dist/images/time-prograss-44b86b36.png +0 -0
- package/dist/index.html +4 -0
- package/lib/controls/code-editor/sql-code-editor.d.ts.map +1 -1
- package/lib/controls/code-editor/sql-code-editor.js.map +1 -1
- package/lib/controls/date-picker/index.d.ts +2 -2
- package/lib/controls/entry-control.d.ts.map +1 -1
- package/lib/controls/entry-control.js +2 -2
- package/lib/controls/entry-control.js.map +1 -1
- package/lib/controls/view-control.d.ts.map +1 -1
- package/lib/controls/view-control.js +3 -3
- package/lib/controls/view-control.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/layout/MainPage.js +1 -1
- package/lib/layout/MainPage.js.map +1 -1
- package/lib/layout/header/index.d.ts.map +1 -1
- package/lib/layout/header/index.js.map +1 -1
- package/lib/tmpl/superagent.d.ts.map +1 -1
- package/lib/tmpl/superagent.js +2 -1
- package/lib/tmpl/superagent.js.map +1 -1
- package/lib/welcome/workbench.js.map +1 -1
- package/package.json +2 -3
- package/src/aldehyde/controls/code-editor/sql-code-editor.tsx +1 -2
- package/src/aldehyde/controls/date-picker/index.tsx +2 -2
- package/src/aldehyde/controls/entry-control.tsx +4 -2
- package/src/aldehyde/controls/view-control.tsx +7 -6
- package/src/aldehyde/index.tsx +5 -2
- package/src/aldehyde/layout/MainPage.tsx +1 -1
- package/src/aldehyde/layout/header/index.tsx +0 -1
- package/src/aldehyde/tmpl/superagent.js +3 -1
- package/src/aldehyde/welcome/workbench.tsx +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see bundle.5cc46bd3e80bed3462d0.js.LICENSE.txt */
|
|
2
|
+
!function(){var t,e,r,n,o,a={62508:function(t,e,r){"use strict";r.d(e,{Z:function(){return D}});var n=r(92801),o=r(90237),a=r(65337),i=r(95225),c=r(39576),u=r(61378),l=r(69905),s=r(15274),f=r(67294),h=r(55241),p=r(71577),d=r(53807),v=r(57564),y=r(32763),m=r(59755),g=r(35137),w=r(19650),b=r(28508),Z=r(66847),E=r(69165);function x(){x=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),c=new S(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function h(){}function p(){}function d(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,a)&&(v=g);var w=d.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function o(n,a,i,c){var u=s(t[n],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==(0,y.Z)(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return o("throw",t,i,c)}))}c(u.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,r);if(c){if(c===f)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=s(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function k(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,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(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 n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=d,n(w,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),u(Z.prototype,i,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(l(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),u(w,c,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},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),f},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),C(r),f}},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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var k=function(t){(0,c.Z)(p,t);var e,r,n,h=(r=p,n=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}}(),function(){var t,e=(0,l.Z)(r);if(n){var o=(0,l.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,u.Z)(this,t)});function p(){var t;(0,o.Z)(this,p);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=h.call.apply(h,[this].concat(r)),(0,s.Z)((0,i.Z)(t),"state",{}),t}return(0,a.Z)(p,[{key:"componentDidMount",value:(e=(0,m.Z)(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.formRef,r=t.fields,n=t.value,o=t.onFinish,a=t.onValuesChange;return f.createElement(f.Fragment,null,f.createElement(Z.Z,{onValuesChange:a,labelWrap:!0,ref:e,name:"control-hooks",onFinish:o},f.createElement(E.Z,{formRef:e,nameAttr:"id",fields:r,valueMap:n})))}}]),p}(f.PureComponent);function L(){L=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),c=new S(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function h(){}function p(){}function d(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,a)&&(v=g);var w=d.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function o(n,a,i,c){var u=s(t[n],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==(0,y.Z)(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return o("throw",t,i,c)}))}c(u.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,r);if(c){if(c===f)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=s(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function x(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,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function O(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 n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=d,n(w,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),u(Z.prototype,i,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(l(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),u(w,c,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},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),f},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),C(r),f}},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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var C=function(t){(0,c.Z)(Z,t);var e,r,h,d,y=(h=Z,d=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}}(),function(){var t,e=(0,l.Z)(h);if(d){var r=(0,l.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,u.Z)(this,t)});function Z(){var t;(0,o.Z)(this,Z);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=y.call.apply(y,[this].concat(r)),(0,s.Z)((0,i.Z)(t),"formRef",f.createRef()),(0,s.Z)((0,i.Z)(t),"state",{}),(0,s.Z)((0,i.Z)(t),"reset",(function(){t.formRef.current&&t.formRef.current.resetFields()})),(0,s.Z)((0,i.Z)(t),"onOk",(function(){t.formRef.current.submit()})),t}return(0,a.Z)(Z,[{key:"componentDidMount",value:(r=(0,m.Z)(L().mark((function t(){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,m.Z)(L().mark((function t(){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.reset();case 1:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.title,r=(t.height,t.onOk),o=t.fields,a=t.value,i=t.onCancel,c=t.okButtonType,u=t.needConfirm,l=t.okDanger,s=t.onValuesChange;return(0,n.Z)(this.state),f.createElement(g.Z,{size:"small",style:{width:1e3},title:e,bodyStyle:{overflow:"auto"},extra:f.createElement(f.Fragment,null,f.createElement(w.Z,{size:[8,0]},f.createElement(p.ZP,{onClick:this.reset},"重置"),function(t){return u?l?f.createElement(v.Z,{placement:"rightBottom",title:"确定要执行提交吗?",onConfirm:t,okText:"确定",cancelText:"取消",okType:"danger"},f.createElement(p.ZP,{type:c,danger:!0},"确定")):f.createElement(v.Z,{placement:"rightBottom",title:"确定要执行提交吗?",onConfirm:t,okText:"确定",cancelText:"取消"},f.createElement(p.ZP,{type:c},"确定")):f.createElement(p.ZP,{type:c,onClick:t},"确定")}(this.onOk),i?f.createElement(p.ZP,{onClick:i},f.createElement(b.Z,null)):""))},f.createElement(k,{onValuesChange:s,fields:o,formRef:this.formRef,value:a,onFinish:r}))}}]),Z}(f.PureComponent);(0,s.Z)(C,"defaultProps",{forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},needConfirm:!1,okButtonType:"primary",okDanger:!1});var S=r(93378),O=r(19619),P=r(88284),j=r(73218),R=r(84189),N=r(52125);var I={FileDoneOutlined:O.Z,CheckOutlined:P.Z,CloseCircleOutlined:j.Z,FileAddOutlined:R.Z,ThunderboltOutlined:N.Z},_=function(t){(0,c.Z)(i,t);var e,r,n=(e=i,r=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}}(),function(){var t,n=(0,l.Z)(e);if(r){var o=(0,l.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,u.Z)(this,t)});function i(){return(0,o.Z)(this,i),n.apply(this,arguments)}return(0,a.Z)(i,[{key:"render",value:function(){var t=this.props.type;return I[t]?f.createElement(I[t]):f.createElement(N.Z,null)}}]),i}(f.PureComponent);function T(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(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}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}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}var D=function(t){(0,c.Z)(m,t);var e,r,y=(e=m,r=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}}(),function(){var t,n=(0,l.Z)(e);if(r){var o=(0,l.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,u.Z)(this,t)});function m(){var t;(0,o.Z)(this,m);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=y.call.apply(y,[this].concat(r)),(0,s.Z)((0,i.Z)(t),"state",{popoverOpen:!1}),(0,s.Z)((0,i.Z)(t),"isShow",(function(){var e=t.props,r=e.actionConfig,n=e.data,o=e.formRef;return S.Z.isShow(r,n,o)})),(0,s.Z)((0,i.Z)(t),"getValue",(function(){var e,r=t.props,n=r.data,o=r.formRef,a=r.actionConfig,i={},c=n?n[0]:void 0,u=o?o.current:void 0,l=T(a.writes);try{for(l.s();!(e=l.n()).done;){var s=e.value;s&&(u&&u.getFieldValue(s.id)?i[s.id]=S.Z.getFormRefValue(o,s.id):c&&(c.fieldMap?i[s.id]=c?c.fieldMap[s.id]:void 0:i[s.id]=c?c[s.id]:void 0))}}catch(t){l.e(t)}finally{l.f()}return console.log("actionValue:",i),i})),(0,s.Z)((0,i.Z)(t),"onOk",(function(e){console.log("action form value:",e);var r=t.props,n=r.actionConfig,o=r.doAction;t.setState({popoverOpen:!1}),o(n.id,t.getCodes(),e)})),(0,s.Z)((0,i.Z)(t),"onCancel",(function(){t.setState({popoverOpen:!1})})),(0,s.Z)((0,i.Z)(t),"onValuesChange",(function(e){var r=t.props.formRef;r&&r.current&&r.current.setFieldsValue(e)})),(0,s.Z)((0,i.Z)(t),"getButtonType",(function(){var e=t.props.buttonType;return e?"dashed"==e.split("-")[0]?"dashed":"primary":"dashed"})),(0,s.Z)((0,i.Z)(t),"blockButton",(function(){var e=t.props.buttonType;return e&&e.includes("block")})),(0,s.Z)((0,i.Z)(t),"formButton",(function(){var e=t.state.popoverOpen,r=t.props,n=r.actionConfig,o=(r.doAction,r.data,r.disabled),a=(r.buttonType,r.hiddenType),i=r.buttonSize,c=o;if(!t.isShow()){if(!a||"hidden"==a)return null;c=!0}return f.createElement(h.Z,{placement:"leftBottom",open:e,trigger:"click",content:f.createElement(C,{okDanger:"danger"==n.beforeExeConfirm,needConfirm:!0,title:n.title,onCancel:function(){return t.onCancel()},fields:n.writes,value:t.getValue(),onOk:t.onOk,onValuesChange:t.onValuesChange})},f.createElement(p.ZP,{danger:"danger"==n.beforeExeConfirm,type:t.getButtonType(),block:t.blockButton(),size:i,onClick:function(){return t.setState({popoverOpen:!e})},disabled:c},t.getTitle()))})),(0,s.Z)((0,i.Z)(t),"getTitle",(function(){var e=t.props,r=e.actionConfig,n=e.iconType;return r.icon?"icon-title"==n?f.createElement(f.Fragment,null,f.createElement(_,{type:r.icon}),r.title):"icon"==n?f.createElement(d.Z,{placement:"top",title:r.title},f.createElement(_,{type:r.icon}),""):r.title:r.title})),(0,s.Z)((0,i.Z)(t),"getCodes",(function(){var e=t.props.data,r=[];if(e&&e instanceof Array){var n,o=T(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;a&&r.push(a.code)}}catch(t){o.e(t)}finally{o.f()}}return r})),(0,s.Z)((0,i.Z)(t),"withoutFormButton",(function(){var e=t.props,r=e.actionConfig,n=e.doAction,o=(e.data,e.disabled),a=(e.buttonType,e.hiddenType),i=e.buttonSize,c=o;if(!t.isShow()){if(!a||"hidden"==a)return null;c=!0}var u=t.getCodes(),l=t.blockButton(),s=t.getButtonType();return r.beforeExeConfirm&&"default"!=r.beforeExeConfirm?"danger"==r.beforeExeConfirm?f.createElement(v.Z,{key:r.id,placement:"rightBottom",title:"确定要执行【".concat(r.title,"】吗?"),onConfirm:function(){n(r.id,u,{})},disabled:c,okText:"确定",cancelText:"取消",okType:"danger"},f.createElement(p.ZP,{type:s,block:l,danger:!0,size:i,disabled:c},t.getTitle())):f.createElement(p.ZP,{type:s,block:l,size:i,onClick:function(){return n(r.id,u,{})},disabled:c},t.getTitle()):f.createElement(v.Z,{key:r.id,placement:"rightBottom",title:"确定要执行【".concat(r.title,"】吗?"),onConfirm:function(){n(r.id,u,{})},disabled:c,okText:"确定",cancelText:"取消"},f.createElement(p.ZP,{size:i,type:s,block:l,disabled:c},t.getTitle()))})),t}return(0,a.Z)(m,[{key:"componentDidMount",value:function(){(0,n.Z)(this.props),this.setState({})}},{key:"componentDidUpdate",value:function(t){(0,n.Z)(this.props),this.props}},{key:"render",value:function(){(0,n.Z)(this.state);var t=this.props,e=t.actionConfig;return t.doAction,t.data,t.disabled,t.buttonType,f.createElement(f.Fragment,null,e.writes&&e.writes.length>0?this.formButton():this.withoutFormButton())}}]),m}(f.PureComponent);(0,s.Z)(D,"defaultProps",{buttonType:"dashed",hiddenType:"hidden",buttonSize:void 0,iconType:"icon-title"})},93378:function(t,e,r){"use strict";r.d(e,{Z:function(){return c}});var n=r(90237),o=r(65337);function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return i(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)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}function i(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}var c=function(){function t(){(0,n.Z)(this,t)}return(0,o.Z)(t,null,[{key:"isShow",value:function(t,e,r){var n=t.preposes;if(!n||n.length<=0)return!0;var o=!0;if(r&&r.current){var i,c=a(n);try{for(c.s();!(i=c.n()).done;){var u=i.value;if(u){var l=this.getFormRefValue(r,u.id);if(!this.comparator(u.comparator,l,u.defaultValue)){o=!1;break}}}}catch(t){c.e(t)}finally{c.f()}}else if(e){var s,f=a(e);try{for(f.s();!(s=f.n()).done;){var h=s.value;if(!o)break;if(!h){o=!1;break}var p,d=a(n);try{for(d.s();!(p=d.n()).done;){var v=p.value;if(h.fieldMap){if(!this.comparator(v.comparator,h.fieldMap[v.id],v.defaultValue)){o=!1;break}}else if(!this.comparator(v.comparator,h[v.id],v.defaultValue)){o=!1;break}}}catch(t){d.e(t)}finally{d.f()}}}catch(t){f.e(t)}finally{f.f()}}else o=!1;return o}},{key:"comparator",value:function(t,e,r){if(t||(t="equal"),!r)return!0;if(!e&&"0"!=e)return!1;switch(t){case"equal":return e==r;case"exclude":return!("string"==typeof r?r.split(","):r).includes(e);case"includeOne":return("string"==typeof r?r.split(","):r).includes(e);case"noGreater":return e<=r;case"noLess":return e>=r;case"unequal":return e!=r}}},{key:"getFormRefValue",value:function(t,e){return!(!t||!t.current)&&t.current.getFieldValue(e)}}]),t}()},28101:function(t,e,r){"use strict";var n=r(30698),o=r(67294),a=r(4107),i=r(49288),c=r(49073),u=a.Z.TextArea;e.Z=function(t){var e=t.id,r=t.value,a=(t.itemType,t.fieldConfig),l=t.onChange,s={id:e,placeholder:a.disabled?"无需输入":"请输入".concat(a.title),disabled:a.disabled};return o.createElement(i.Z,{allowClear:!0,dropdownMatchSelectWidth:!0,options:function(){var t=c.Z.getEnums(a.mstrucId);if(!t)return[];var e=[];return t.map((function(t){var r={value:"@@"+t.value,label:t.title};return e.push(r),!1})),e}(),onChange:function(t){if(l){var e;if(void 0===t)return"";e=t.startsWith("@@")?(r||"")+t.substring(2,t.length):t,l(e)}},value:r},o.createElement(u,(0,n.Z)({style:{height:150}},s)))}},22364:function(t,e,r){"use strict";r.d(e,{Z:function(){return x}});var n=r(32763),o=r(30698),a=r(20511),i=r(59755),c=r(90237),u=r(65337),l=r(95225),s=r(39576),f=r(61378),h=r(69905),p=r(15274),d=r(67294),v=r(17356),y=r(49073),m=["fieldConfig","onChange","value"];function g(){g=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:x(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(O([])));w&&w!==e&&r.call(w,i)&&(y=w);var b=v.prototype=p.prototype=Object.create(y);function Z(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,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=f(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 k(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,k(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(b,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},Z(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new E(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},Z(b),l(b,u,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function w(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 b(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach((function(e){(0,p.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Z(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return E(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)?E(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function E(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}var x=function(t){(0,s.Z)(E,t);var e,r,n,w=(r=E,n=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}}(),function(){var t,e=(0,h.Z)(r);if(n){var o=(0,h.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,f.Z)(this,t)});function E(){var t;(0,c.Z)(this,E);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=w.call.apply(w,[this].concat(r)),(0,p.Z)((0,l.Z)(t),"state",{options:[]}),(0,p.Z)((0,l.Z)(t),"handleChange",(function(e){var r=t.props.onChange,n=void 0;e&&(n=e.join("->")),r&&r(n)})),(0,p.Z)((0,l.Z)(t),"getOptions",(0,i.Z)(g().mark((function e(){var r,n,o,a,i,c,u,l;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props,n=r.fieldConfig,o=r.baseValue,e.next=3,y.Z.getOptions(n.mstrucId);case 3:return a=e.sent,i=[],u=a,l=c=[],o.length>0?o.map((function(t,e){if(e>0&&(l[0].subOptions=[],l=l[0].subOptions),u){var r,n=Z(u);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.title==t&&(l.push(b({},o)),u=o.subOptions)}}catch(t){n.e(t)}finally{n.f()}}})):c=a,t.buildOptions(c,i),e.abrupt("return",i);case 11:case"end":return e.stop()}}),e)})))),(0,p.Z)((0,l.Z)(t),"buildOptions",(function(e,r){e.forEach((function(e){var n={};if(n.value=e.title,n.label=e.title,n.key=e.id,r.push(n),e.subOptions){var o=[];n.children=o,t.buildOptions(e.subOptions,o)}else n.isLeaf=!0}))})),t}return(0,u.Z)(E,[{key:"componentDidMount",value:(e=(0,i.Z)(g().mark((function t(){var e;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getOptions();case 2:e=t.sent,this.setState({options:e});case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.options,e=this.props,r=(e.fieldConfig,e.onChange,e.value),n=(0,a.Z)(e,m);return d.createElement(v.Z,(0,o.Z)({displayRender:function(t){return t.join("->")},options:t,value:r?r.split("->"):void 0,onChange:this.handleChange},n))}}]),E}(d.PureComponent);(0,p.Z)(x,"defaultProps",{baseValue:[]})},41307:function(t,e,r){"use strict";r.d(e,{Z:function(){return g}});var n=r(30698),o=r(20511),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(71577),d=r(35137),v=r(43929),y=r(34804),m=["extra","title","className","initCollapse"];var g=function(t){(0,u.Z)(w,t);var e,r,g=(e=w,r=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}}(),function(){var t,n=(0,s.Z)(e);if(r){var o=(0,s.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,l.Z)(this,t)});function w(){var t;(0,a.Z)(this,w);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=g.call.apply(g,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{collapse:!1}),(0,f.Z)((0,c.Z)(t),"cardTitle",(function(){var e=t.props.title;return t.state.collapse?h.createElement(p.ZP,{type:"text",onClick:function(){t.setState({collapse:!1})}},h.createElement(v.Z,null),e):h.createElement(p.ZP,{type:"text",onClick:function(){t.setState({collapse:!0})}},h.createElement(y.Z,null),e)})),t}return(0,i.Z)(w,[{key:"componentDidMount",value:function(){var t=this.props.initCollapse;this.setState({collapse:t})}},{key:"componentDidUpdate",value:function(t){var e=this.props.initCollapse;this.props!=t&&this.setState({collapse:e})}},{key:"render",value:function(){var t=this.state.collapse,e=this.props,r=e.extra,a=(e.title,e.className),i=(e.initCollapse,(0,o.Z)(e,m));return h.createElement(d.Z,(0,n.Z)({},i,{size:"small",extra:t?"":r,className:"".concat(a," ").concat(t?"collapse":""),title:this.cardTitle()}),t?null:this.props.children)}}]),w}(h.PureComponent)},74499:function(t,e,r){"use strict";var n=r(30698),o=r(20511),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(71577),d=r(99160),v=r(19650),y=r(70832),m=r(47389),g=r(94716),w=r(85932),b=["cQueryConfig","mainCode","type","pageType"];var Z={EditOutlined:h.createElement(m.Z,null)},E=function(t){(0,u.Z)(E,t);var e,r,m=(e=E,r=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}}(),function(){var t,n=(0,s.Z)(e);if(r){var o=(0,s.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,l.Z)(this,t)});function E(){var t;(0,a.Z)(this,E);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=m.call.apply(m,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{showDraw:!1}),(0,f.Z)((0,c.Z)(t),"showDraw",(function(e){t.setState({showDraw:!0})})),(0,f.Z)((0,c.Z)(t),"closeDrawer",(function(){t.setState({showDraw:!1})})),t}return(0,i.Z)(E,[{key:"render",value:function(){var t=this,e=this.props,r=e.cQueryConfig,a=e.mainCode,i=e.type,c=e.pageType,u=(0,o.Z)(e,b),l=this.state.showDraw,s=a&&a.indexOf("@R@")>0?a.split("@R@")[0]:a;return h.createElement(h.Fragment,null,"text"==i?h.createElement("span",{className:"cquickTextButton",onClick:function(){t.setState({showDraw:!l})}},r.title):h.createElement(p.ZP,(0,n.Z)({},u,{onClick:function(){t.setState({showDraw:!l})}}),Z[r.title]?Z[r.title]:r.title),l?"edit"==r.type?h.createElement(w.default,{pageType:c,open:l,onCancel:function(){t.setState({showDraw:!1})},sourceId:r.id,code:s,onOk:this.closeDrawer}):h.createElement(d.Z,{placement:"left",title:"关联查询",closable:!0,mask:!1,onClose:this.closeDrawer,open:l,width:"calc(100% - 280px)",style:{maxWidth:1960},extra:h.createElement(v.Z,null,h.createElement(p.ZP,{onClick:this.closeDrawer},"关闭"))},r.path?h.createElement(g.Z.getCustomPage(r.path)):h.createElement(y.default,{sourceId:r.id,mainCode:s})):null)}}]),E}(h.PureComponent);(0,f.Z)(E,"defaultProps",{pageType:"modal"}),e.Z=E},13575:function(t,e,r){"use strict";r.d(e,{Z:function(){return M}});var n=r(32763),o=r(1252),a=r(59755),i=r(90237),c=r(65337),u=r(95225),l=r(39576),s=r(61378),f=r(69905),h=r(15274),p=r(67294),d=r(65460),v=r(71230),y=r(15746),m=r(71577),g=r(12513),w=r(34041),b=r(36646),Z=r(92570),E=r(51042),x=r(32779),k=r(76880),L=r(47389),C=r(40110),S=r(23279),O=r.n(S),P=r(49811),j=r(49073),R=r(42638),N=r(85932),I=r(7935),_=r(55105);function T(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 A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?T(Object(r),!0).forEach((function(e){(0,h.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function D(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return F(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)?F(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function F(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 G(){G=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var M=function(t){(0,l.Z)(S,t);var e,r,n=(e=S,r=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}}(),function(){var t,n=(0,f.Z)(e);if(r){var o=(0,f.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function S(){var t;(0,i.Z)(this,S);for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];return t=n.call.apply(n,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"state",{titleId:void 0,optionCacheKey:void 0,pageNo:1,loading:!1,optionsCache:{},codeLabel:{},ltmplConfig:void 0,showView:!1,showEdit:!1,showTable:!1,drawCode:void 0,preMainCode:void 0}),(0,h.Z)((0,u.Z)(t),"dropdownRender",(function(e){var r=t.props.fieldConfig.actions;return p.createElement(p.Fragment,null,e,r&&r.indexOf("add")>=0?p.createElement(p.Fragment,null,p.createElement(d.Z,{style:{margin:"8px 0"}}),p.createElement(v.Z,{justify:"end"},p.createElement(y.Z,null,p.createElement(m.ZP,{type:"text",icon:p.createElement(Z.Z,{style:{color:"#0958d9"}}),onClick:function(){return t.showTable()}})),p.createElement(y.Z,null,p.createElement(m.ZP,{type:"text",icon:p.createElement(E.Z,{style:{color:"#0958d9"}}),onClick:function(){return t.editItem()}})),p.createElement(y.Z,null,p.createElement(m.ZP,{type:"text",icon:p.createElement(x.Z,{style:{color:"#0958d9"}}),onClick:function(){return t.initCache()}})))):null)})),(0,h.Z)((0,u.Z)(t),"editItem",function(){var e=(0,a.Z)(G().mark((function e(r){var n;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.loadLtmplConfig();case 2:n=e.sent,t.setState({showEdit:!0,showTable:!1,showView:!1,drawCode:r,ltmplConfig:n});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"showTable",(0,a.Z)(G().mark((function e(){return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setState({showEdit:!1,showTable:!0,showView:!1,drawCode:void 0});case 1:case"end":return e.stop()}}),e)})))),(0,h.Z)((0,u.Z)(t),"loadLtmplConfig",(0,a.Z)(G().mark((function e(){var r,n,o;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props.fieldConfig,n=t.state.ltmplConfig,o=n){e.next=7;break}return e.next=6,j.Z.requestLtmplConfig(r.id);case 6:o=e.sent.ltmplConfig;case 7:return t.setState({ltmplConfig:o}),e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)})))),(0,h.Z)((0,u.Z)(t),"showItem",function(){var e=(0,a.Z)(G().mark((function e(r){var n;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.loadLtmplConfig();case 2:n=e.sent,t.setState({showEdit:!1,showTable:!1,showView:!0,drawCode:r,ltmplConfig:n});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"initCache",(function(){t.setState({optionsCache:{},codeLabel:{}})})),(0,h.Z)((0,u.Z)(t),"toOption",(function(e,r,n){var o=t.props.fieldConfig.actions;return t.state.codeLabel[e]=r,{value:e,label:p.createElement(p.Fragment,null,r,o&&o.indexOf("detail")>=0?p.createElement(m.ZP,{size:"small",type:"text"},p.createElement(k.Z,{style:{color:"#0958d9"},onClick:function(r){r.stopPropagation(),t.showItem(e)}})):null,o&&o.indexOf("edit")>=0?p.createElement(m.ZP,{size:"small",type:"text"},p.createElement(L.Z,{style:{color:"#0958d9"},onClick:function(r){r.stopPropagation(),t.editItem(e)}})):null)}})),(0,h.Z)((0,u.Z)(t),"doClose",(function(){t.setState({drawCode:void 0,showEdit:!1,showView:!1,showTable:!1})})),(0,h.Z)((0,u.Z)(t),"drawSubmited",(function(){t.initCache(),t.doClose()})),(0,h.Z)((0,u.Z)(t),"closeTable",(function(){t.drawSubmited()})),(0,h.Z)((0,u.Z)(t),"toValueArray",(function(e){var r,n=[],o=D(t.toArray(e));try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a){var i=a.split("@R@");"null"!=i[1]&&n.push(i[0])}}}catch(t){o.e(t)}finally{o.f()}return n})),(0,h.Z)((0,u.Z)(t),"toArray",(function(t){return t instanceof Array?t:t?t.split(","):[]})),(0,h.Z)((0,u.Z)(t),"toOptions",(function(e,r){var n,o=t.props.fieldConfig,a=[],i=D(t.toArray(e));try{for(i.s();!(n=i.n()).done;){var c=n.value;if(c){var u=c.split("@R@");"null"!=u[1]&&a.push(t.toOption(u[0],u[1],r))}}}catch(t){i.e(t)}finally{i.f()}return o.suppleOptions&&o.suppleOptions.forEach((function(e){var r=!1;a.forEach((function(t){t.value!=e.code||(r=!0)})),r||a.push(t.toOption(e.code,e.title,void 0))})),a})),(0,h.Z)((0,u.Z)(t),"fetchNextPage",(0,a.Z)(G().mark((function e(){var r,n,a,i,c,u,l;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.state,n=r.optionCacheKey,a=r.titleId,i=r.optionsCache,c=i[n],u=c.pageInfo,c.touchEnd){e.next=10;break}return u.pageNo=u.pageNo+1,e.next=7,t.loadData(c.queryKey.key,A({},u),a);case 7:(l=e.sent)&&(c.options=[].concat((0,o.Z)(c.options),(0,o.Z)(l.options)),c.touchEnd=l.touchEnd),t.setState({pageNo:u.pageNo});case 10:case"end":return e.stop()}}),e)})))),(0,h.Z)((0,u.Z)(t),"fetchOptions",function(){var e=(0,a.Z)(G().mark((function e(r){var n,o,a,i,c,u,l,s,f,h,p,d,v,y,m,g,w,b,Z,E;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props,o=n.fieldConfig,a=n.mainCode,i=n.baseCriteria,c=t.state,u=c.optionsCache,l=c.ltmplConfig,s=c.preMainCode,f=a||o.mainCode,s!=f&&(t.setState({preMainCode:f.toString()}),t.initCache()),h="withoutValue",r&&(h=r),p=t.state.titleId,d=u[h]){e.next=36;break}if(t.setState({loading:!0}),v=l){e.next=15;break}return e.next=14,t.loadLtmplConfig();case 14:v=e.sent;case 15:return y={pageNo:1,pageSize:6,virtualEndPageNo:void 0},p=v.primaryColumn.id,m=v.primaryCriteria,g="undefinedCriteria",m&&(g="c_"+m.id),(w=v.defaultPageSize)&&(y.pageSize=w),b={},i&&(b=A({},i)),b[g]=r,e.next=27,P.Z.requestLtmplQueryKey(o.id,A(A(A({},b),y),{},{mainCode:f}));case 27:return Z=e.sent,e.next=30,t.loadData(Z.key,y,p);case 30:E=e.sent,d={options:E.options,pageInfo:y,queryKey:Z,searchValue:r,touchEnd:E.touchEnd},u[h]=d,t.setState({optionCacheKey:h,titleId:p,optionsCache:A({},u),loading:!1}),e.next=37;break;case 36:t.state.optionCacheKey==h&&"withoutValue"==h?t.setState({loading:!1,optionCacheKey:h}):O()((function(){t.setState({loading:!1,optionCacheKey:h})}),500)();case 37:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"onChange",(function(e){var r=t.state.codeLabel,n=(0,o.Z)(e);e&&e.length>t.props.maxSelected&&n.shift();var a=[];n.forEach((function(t){t.indexOf("@R@")>0?a.push(t):a.push(t+"@R@"+r[t])})),t.props.onChange(a)})),(0,h.Z)((0,u.Z)(t),"tagRender",(function(t){var e=t.label,r=t.closable,n=t.onClose;return p.createElement(g.Z,{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},closable:r,onClose:n,style:{marginRight:3}},e)})),(0,h.Z)((0,u.Z)(t),"loadData",function(){var e=(0,a.Z)(G().mark((function e(r,n,o){var a,i,c,u;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.props,i=a.onEntityClick,a.baseCriteria,e.next=3,P.Z.requestQueryData(r,n);case 3:return c=e.sent,u=[],n=c.pageInfo,c.entities.forEach((function(e,r){var n=e.fieldMap[o];if(j.Z.cache(e),n){var a=n.split("@R@"),c=a&&a.length>0?a[a.length-1]:n;if("null"!=c){var l=t.toOption(e.code,c,i);u.push(l)}}})),e.abrupt("return",{options:u,touchEnd:c.touchEnd});case 8:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"debounceFetcher",(function(){return O()((function(e){t.fetchOptions(e)}),800)})),(0,h.Z)((0,u.Z)(t),"debounceFetchNextPage",(function(){O()(t.fetchNextPage,200)()})),t}return(0,c.Z)(S,[{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.baseCriteria,n=e.mainCode,o=e.fieldConfig,a=t.baseCriteria,i=t.mainCode,c=t.fieldConfig;(r&&JSON.stringify(r)!=JSON.stringify(a)||n&&n!=i||o&&c&&o.id!=c.id)&&this.initCache()}},{key:"render",value:function(){var t,e=this,r=this.props,n=r.id,a=r.value,i=r.fieldConfig,c=(r.onChange,r.disabled),u=r.style,l=(r.maxSelected,r.onEntityClick),s=r.mainCode,f=i.actions,h=this.state,d=h.optionCacheKey,v=h.loading,y=h.optionsCache,m=h.drawCode,g=h.showEdit,Z=h.showView,E=h.showTable,x=h.ltmplConfig,k=this.toOptions(a,l),L=(0,o.Z)(k),S=256;if(d&&y[d]){var P=y[d];P.pageInfo&&P.pageInfo.pageSize<8&&(S=32*P.pageInfo.pageSize-10);var j,T=D(P.options);try{for(T.s();!(j=T.n()).done;){var F=j.value;t=!1;var G,M=D(k);try{for(M.s();!(G=M.n()).done;){var q=G.value;q.value==F.value&&(t=!0,q.label=F.label)}}catch(t){M.e(t)}finally{M.f()}t||L.push(F)}}catch(t){T.e(t)}finally{T.f()}}return p.createElement(p.Fragment,null,p.createElement(w.Z,{disabled:c,id:n,listHeight:S,style:A({},u),onChange:this.onChange,value:this.toValueArray(a),mode:"multiple",placeholder:"请选择".concat(i.title),notFoundContent:v?p.createElement(b.Z,{size:"small"}):"无数据",allowClear:!0,showArrow:!0,suffixIcon:p.createElement(C.Z,null),filterOption:!1,dropdownRender:this.dropdownRender,tagRender:f&&(f.indexOf("detail")>=0||f.indexOf("edit")>=0)?this.tagRender:void 0,onSearch:this.debounceFetcher(),onClick:c?null:function(){O()(e.fetchOptions,100)(void 0)},options:v?[]:L,onPopupScroll:function(t){var r=t.target;r.scrollTop+r.offsetHeight+1>=r.scrollHeight&&e.debounceFetchNextPage()}}),Z&&m?p.createElement(R.Z,{placement:"left",onClose:this.doClose,open:Z,sourceId:i.id,code:m}):null,g&&x?x.customEditPagePath?p.createElement(I.Z,{open:g,onOk:function(){e.drawSubmited()},customPath:x.customEditPagePath,sourceId:i.id,mainCode:s,code:m}):p.createElement(N.default,{pageType:"modal",open:g,onCancel:this.doClose,mainCode:s,width:960,sourceId:i.id,code:m,onOk:this.drawSubmited}):null,E?p.createElement(_.Bf,{open:E,onCancel:this.closeTable,width:960,sourceId:i.id,mainCode:s}):null)}}]),S}(p.PureComponent);(0,h.Z)(M,"defaultProps",{maxSelected:100})},39481:function(t,e,r){"use strict";r.d(e,{Z:function(){return m}});var n=r(32763),o=r(1252),a=r(59755),i=r(90237),c=r(65337),u=r(95225),l=r(39576),s=r(61378),f=r(69905),h=r(15274),p=r(67294),d=r(61239),v=r(49811);function y(){y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:x(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(O([])));w&&w!==e&&r.call(w,i)&&(m=w);var b=v.prototype=p.prototype=Object.create(m);function Z(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,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=f(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 k(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,k(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(b,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},Z(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new E(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},Z(b),l(b,u,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var m=function(t){(0,l.Z)(g,t);var e,r,n,m=(r=g,n=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}}(),function(){var t,e=(0,f.Z)(r);if(n){var o=(0,f.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function g(){var t;(0,i.Z)(this,g);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=m.call.apply(m,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"state",{treeData:[]}),(0,h.Z)((0,u.Z)(t),"loadSchoolLevelUnit",(0,a.Z)(y().mark((function t(){var e,r;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],t.next=3,v.Z.requestLtmplQueryTop("221036732522497",{});case 3:return(r=t.sent).entities&&r.entities.forEach((function(t,r){var n={};n.id=t.code,n.level=1,n.pId=0,n.title=t.fieldMap[0xcfc1f06ca002],n.value=n.id+"@R@"+n.title,n.key=n.value,n.selectable=!1,e.push(n)})),t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})))),(0,h.Z)((0,u.Z)(t),"loadLab",function(){var t=(0,a.Z)(y().mark((function t(e){var r,n;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.next=3,v.Z.requestLtmplQueryTop("228261345665025",{mainCode:e});case 3:return(n=t.sent).entities&&n.entities.forEach((function(t,n){var o={};o.id=t.code,o.level=2,o.pId=e,o.title=t.fieldMap[0xcec62beca003],o.value=o.id+"@R@"+o.title,o.key=o.value,o.selectable=!1,r.push(o)})),t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"loadRoom",function(){var t=(0,a.Z)(y().mark((function t(e){var r,n;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.next=3,v.Z.requestLtmplQueryTop("228261733638145",{mainCode:e});case 3:return(n=t.sent).entities&&n.entities.forEach((function(t,n){var o={};o.id=t.code,o.level=3,o.pId=e,o.title=t.fieldMap[0xd239b3eca005],o.value=o.id+"@R@"+o.title,o.key=o.value,o.isLeaf=!0,r.push(o)})),t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"onChange",(function(e){(0,t.props.onChange)(e)})),(0,h.Z)((0,u.Z)(t),"onLoadData",function(){var e=(0,a.Z)(y().mark((function e(r){var n,a,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.state.treeData,1!=r.level){e.next=8;break}return e.next=4,t.loadLab(r.id);case 4:a=e.sent,t.setState({treeData:[].concat((0,o.Z)(n),(0,o.Z)(a))}),e.next=13;break;case 8:if(2!=r.level){e.next=13;break}return e.next=11,t.loadRoom(r.id);case 11:i=e.sent,t.setState({treeData:[].concat((0,o.Z)(n),(0,o.Z)(i))});case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t}return(0,c.Z)(g,[{key:"componentDidMount",value:(e=(0,a.Z)(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=this,t.next=3,this.loadSchoolLevelUnit();case 3:t.t1=t.sent,t.t2={treeData:t.t1},t.t0.setState.call(t.t0,t.t2);case 6:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t,e=this.props,r=(e.id,e.value),n=(e.fieldConfig,e.style,this.state.treeData);return r&&(t=r.split("@R@")[1]),p.createElement(d.Z,{treeDataSimpleMode:!0,style:{width:"100%",minWidth:"260px"},value:t,dropdownStyle:{maxHeight:400,overflow:"auto"},placeholder:"--请选择--",onChange:this.onChange,loadData:this.onLoadData,treeData:n})}}]),g}(p.PureComponent);(0,h.Z)(m,"defaultProps",{maxSelected:100})},97038:function(t,e,r){"use strict";r.d(e,{Z:function(){return b}});var n=r(92801),o=r(90237),a=r(65337),i=r(95225),c=r(39576),u=r(61378),l=r(69905),s=r(15274),f=r(67294),h=r(71577),p=r(55241),d=r(34041),v=r(40110),y=r(55707);function m(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 g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function w(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}var b=function(t){(0,c.Z)(b,t);var e,r,m=(e=b,r=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}}(),function(){var t,n=(0,l.Z)(e);if(r){var o=(0,l.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,u.Z)(this,t)});function b(){var t;(0,o.Z)(this,b);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=m.call.apply(m,[this].concat(r)),(0,s.Z)((0,i.Z)(t),"state",{}),(0,s.Z)((0,i.Z)(t),"onClick",(function(){t.setState({showSelectTable:!0})})),(0,s.Z)((0,i.Z)(t),"onSelect",(function(e){var r=t.props,n=(r.value,r.onChange),o=[];if(e){var a,i=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return w(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)?w(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(e);try{for(i.s();!(a=i.n()).done;){var c=a.value,u=null;if(u=c.title instanceof Array?c.title[0]:c.title,c.title&&c.title.includes("@R@")){var l=u.split("@R@");u=l[l.length-1]}o.push(c.code+"@R@"+u)}}catch(t){i.e(t)}finally{i.f()}}n(o)})),t}return(0,a.Z)(b,[{key:"render",value:function(){var t=this.props,e=t.id,r=t.value,o=(t.itemType,t.fieldConfig),a=t.onChange,i=t.style,c=t.maxSelected,u=t.onEntityClick,l=t.mainCode;(0,n.Z)(this.state);var s=[],m=[];return(r instanceof Array?r:r?[r]:[]).forEach((function(t){if(t.indexOf("@R@")>0){var e=t.split("@R@");s.push({code:e[0],title:e[1]}),m.push({value:t,label:u?f.createElement(h.ZP,{size:"small",style:{padding:"0px"},type:"link",title:"",onClick:function(t){t.stopPropagation(),u(e[0])}},e[1]):e[1]})}})),f.createElement(f.Fragment,null,f.createElement(p.Z,{overlayClassName:"-popover",placement:"bottom",color:"#f0f0f0",overlayStyle:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},overlayInnerStyle:{padding:"0px"},content:f.createElement("div",{style:{height:300,backgroundColor:"#fafafa",overflow:"auto",borderStyle:"solid",borderRadius:"6px",borderWidth:"0px",borderColor:"#8c8c8c"}},f.createElement(y.default,{mainCode:l,maxSelectedRows:c,selectedRows:s,sourceId:o.id,onChange:this.onSelect})),trigger:"click"},f.createElement(d.Z,{id:e,style:g({},i),value:r,mode:"multiple",placeholder:"请选择".concat(o.title),notFoundContent:"请选择",allowClear:!0,showArrow:!0,suffixIcon:f.createElement(v.Z,null),dropdownStyle:{display:"none"},onChange:function(t){a(t)},options:m})))}}]),b}(f.PureComponent);(0,s.Z)(b,"defaultProps",{maxSelected:100})},67077:function(t,e,r){"use strict";r.r(e);var n=r(20511),o=r(30698),a=r(15274),i=r(67294),c=r(9676),u=r(16117),l=r(36646),s=r(58998),f=r(4107),h=r(34041),p=r(72985),d=r(15128),v=r(91118),y=r(74809),m=r(48565),g=r(28101),w=r(40684),b=r(49073),Z=r(2131),E=r(840),x=r(22364),k=r(13575),L=r(97038),C=r(39481),S=r(94716),O=r(55105),P=r(2603),j=["value","onChange","style"],R=["value"],N=["fieldConfig","value","onChange","id","mainCode"];function I(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 _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I(Object(r),!0).forEach((function(e){(0,a.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var T=c.Z.Group,A=u.ZP.Group,D=i.createElement(l.Z,{tip:"Loading..."},i.createElement(s.Z,{message:"正在加载数据。。。",description:"初次访问加载数据较多,可能需要几秒或几分钟,请耐心等待!!",type:"info"})),F=(0,w.ZP)({resolved:{},chunkName:function(){return"signature"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(592),r.e(958)]).then(r.bind(r,21931))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 21931}},{fallback:D}),G=(0,w.ZP)({resolved:{},chunkName:function(){return"chemstruc-graph"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(592),r.e(76),r.e(556),r.e(466),r.e(862),r.e(66),r.e(836),r.e(700),r.e(486),r.e(886),r.e(623),r.e(636),r.e(211),r.e(591),r.e(590)]).then(r.bind(r,42888))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 42888}},{fallback:D}),M=(0,w.ZP)({resolved:{},chunkName:function(){return"html-editor-draft"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(592),r.e(76),r.e(556),r.e(510)]).then(r.bind(r,51768))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 51768}},{fallback:D}),q=(0,w.ZP)({resolved:{},chunkName:function(){return"code-editor-sql-code-editor"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(592),r.e(867),r.e(679)]).then(r.bind(r,98274))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 98274}},{fallback:D}),B=(0,w.ZP)({resolved:{},chunkName:function(){return"color-picker"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(592),r.e(432)]).then(r.bind(r,19221))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 19221}},{fallback:D}),V=(0,w.ZP)({resolved:{},chunkName:function(){return"date-picker"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(537),r.e(288),r.e(74),r.e(10),r.e(592),r.e(189)]).then(r.bind(r,97182))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 97182}},{fallback:D}),H=f.Z.TextArea;function Y(t){var e=[],r=b.Z.getEnums(t);return r&&r.map((function(t){e.push({label:(t.order?t.order+".":"")+t.title,value:t.value})})),e}e.default=function(t){var e=t.fieldConfig,r=t.value,a=t.onChange;return function(t,e,r,a,c,l,s){var w=d.Z.getControlType(r,a),b=void 0,N=r.disabled?"无需输入":"请输入".concat(r.title),I=r.disabled,D=r.min,z=D||"0"==D?S.Z.configParamTrans(D):void 0,U=(D=r.max)||"0"==D?S.Z.configParamTrans(D):void 0,W=_({id:t,mainCode:e,fieldConfig:r,min:z,max:U,itemType:w,viewOrEdit:"edit",onChange:c,disabled:I,value:a,style:{minWidth:220,width:"100%"}},s),K=_({id:t,placeholder:N,disabled:I,value:a,onChange:c,style:{minWidth:220,width:"100%"}},s),Q=i.createElement(f.Z,{type:"text",placeholder:"暂未实现-".concat(w),disabled:!0});if(O.cB.getCustomEditControl(w))return i.createElement(O.cB.getCustomEditControl(w),W);switch(w){case"int":case"decimal":case"float":case"double":case"intrange":case"decimalrange":b=i.createElement(y.Z,W);break;case"text":b=i.createElement(f.Z,(0,o.Z)({allowClear:!0,type:"text"},K));break;case"range":b=i.createElement(m.Z,W);break;case"select":b=i.createElement(h.Z,(0,o.Z)({},K,{notFoundContent:"暂无选项",allowClear:!0,showSearch:!0,optionLabelProp:"value",optionFilterProp:"label",options:Y(r.mstrucId)}));break;case"multiselect":case"texttags":b=i.createElement(h.Z,(0,o.Z)({mode:"multiple"},K,{value:a&&""!=a?"string"==typeof a?a.split(","):a:void 0,notFoundContent:"暂无选项",allowClear:!0,showSearch:!0,optionLabelProp:"value",optionFilterProp:"label",showArrow:!0,options:Y(r.mstrucId)}));break;case"checkbox":b=i.createElement(T,(0,o.Z)({},K,{options:Y(r.mstrucId),value:"string"==typeof a?a.split(","):a}));break;case"radio":b=i.createElement(A,(0,o.Z)({},K,{options:Y(r.mstrucId),value:"string"==typeof a?a.split(",")[0]:a}));break;case"yes-no-switch":var $=K.value,J=K.onChange,X=(K.style,(0,n.Z)(K,j));b=i.createElement(p.Z,(0,o.Z)({style:{width:"60px"},checkedChildren:"是",unCheckedChildren:"否",checked:"是"==$,onChange:function(t){J(t?"是":"否")}},X));break;case"yes-no-radio":var tt=K.value,et=(0,n.Z)(K,R);b=i.createElement(A,(0,o.Z)({value:tt?"是"==tt?"是":"否":null},et),i.createElement(u.ZP,{value:"是"},"是"),i.createElement(u.ZP,{value:"否"},"否"));break;case"date-YY":case"daterange-YY":case"date-M1":case"daterange-M1":case"date":case"daterange":case"datetime-HH":case"datetimerange-HH":case"datetime-mm":case"datetimerange-mm":case"datetime":case"datetimerange":case"time-HH":case"timerange-HH":case"time-mm":case"timerange-mm":case"time":case"timerange":b=i.createElement(V,W);break;case"textarea":case"url":b=i.createElement(H,(0,o.Z)({rows:3,allowClear:!0},K));break;case"html":b=i.createElement(M,(0,o.Z)({viewOrEdit:"edit"},W));break;case"steps":b=i.createElement(v.Z,W);break;case"password":b=i.createElement(f.Z.Password,(0,o.Z)({},K,{prefix:i.createElement(P.Z,{className:"site-form-item-icon"})}));break;case"preselect":b=i.createElement(g.Z,W);break;case"caselect":b=i.createElement(x.Z,W);break;case"relation":default:b=Q;break;case"file":case"video":case"picture":case"non-download-file":b=i.createElement(Z.Z,W);break;case"chemstruc":b=i.createElement(G,(0,o.Z)({viewOrEdit:"edit"},W));break;case"sql-code-editor":b=i.createElement(q,(0,o.Z)({viewOrEdit:"edit"},W));break;case"relselect":case"refselect":case"entity-select":b=i.createElement(k.Z,(0,o.Z)({maxSelected:U?parseInt(U):void 0},W));break;case"table-entity-select":b=i.createElement(L.Z,(0,o.Z)({maxSelected:U?parseInt(U):void 0},W));break;case"lab-tree-select":b=i.createElement(C.Z,(0,o.Z)({maxSelected:U?parseInt(U):void 0},W));break;case"progress":b=i.createElement(E.Z,W);break;case"signature":b=i.createElement(F,W);break;case"color":b=i.createElement(B,W);break;case"hidden":b=i.createElement(f.Z,{type:"hidden",value:a,disabled:!0})}return b}(t.id,t.mainCode,e,r,a,0,(0,n.Z)(t,N))}},15989:function(t,e,r){"use strict";var n=r(67294),o=r(44644),a=r(49073);e.Z=function(t){var e=t.value,r=(t.itemType,t.fieldConfig),i=a.Z.getEnumValueColor(r.mstrucId,e);return n.createElement("span",{className:"infoStyle"},e?n.createElement(o.Z,{color:i||"green",text:e}):null)}},75645:function(t,e,r){"use strict";var n=r(67294),o=r(12513),a=r(49073);e.Z=function(t){var e=t.value,r=(t.itemType,t.fieldConfig),i=[];if(e){var c=e;e instanceof Array||(c=e.split(",")),c.forEach((function(t){var c=a.Z.getEnumValueColor(r.mstrucId,e);i.push(n.createElement(o.Z,{key:t,color:c||"blue"},t))}))}return n.createElement("span",{className:"infoStyle"},i)}},74809:function(t,e,r){"use strict";var n=r(30698),o=r(15274),a=r(67294),i=r(35697),c=r(19650),u=r(94716);function l(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 s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){(0,o.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}e.Z=function(t){var e=t.id,r=t.value,o=t.itemType,l=t.fieldConfig,f=t.onChange,h=t.style,p=t.min,d=t.max,v=void 0,y=function(t){f&&f(t)},m=u.Z.splitValue(r),g=m.valueBegin,w=m.valueEnd,b=r||0==r?r:null,Z=function(t){f&&f(u.Z.concatValue(t,w))},E=function(t){f&&f(u.Z.concatValue(g,t))},x=function(t){(!t.target.value&&0!=t.target.value||isNaN(t.target.value))&&(t.target.value=null)},k=l.disabled?"无需输入":"请输入".concat(l.title),L=l.disabled,C={id:e,placeholder:k,disabled:L,value:r};switch(o){case"int":v=a.createElement(i.Z,(0,n.Z)({style:s({},h),min:p,max:d,stringMode:!0},C,{value:b,onChange:y}));break;case"decimal":case"float":case"double":v=a.createElement(i.Z,(0,n.Z)({style:s({},h)},C,{value:b,min:p,max:d,step:.1,onChange:y}));break;case"intrange":v=a.createElement(c.Z,null,a.createElement(i.Z,{min:p,max:d,placeholder:"开始",value:g,onKeyUp:x,onChange:Z}),"~",a.createElement(i.Z,{min:p,max:d,placeholder:"结束",value:w,onKeyUp:x,onChange:E}));break;case"decimalrange":v=a.createElement(c.Z,null,a.createElement(i.Z,{min:p,max:d,placeholder:"开始",value:g,onChange:Z,step:.1,disabled:L}),"~",a.createElement(i.Z,{min:p,max:d,placeholder:"结束",value:w,step:.1,onChange:E,disabled:L}))}return v}},48565:function(t,e,r){"use strict";var n=r(67294),o=r(4107),a=r(94716);e.Z=function(t){var e,r=t.id,i=t.value,c=(t.itemType,t.fieldConfig),u=t.onChange,l=(t.style,a.Z.splitValue(i)),s=l.valueBegin,f=l.valueEnd,h=c.disabled;return e=n.createElement(o.Z.Group,{compact:!0},n.createElement(o.Z,{id:r,style:{width:"45%"},disabled:h,min:c.min,max:c.max,placeholder:"开始",value:s,onChange:function(t){var e=t.target.value;u&&u(a.Z.concatValue(e,f))}}),"~",n.createElement(o.Z,{style:{width:"45%"},disabled:h,min:c.min,max:c.max,placeholder:"结束",value:f,onChange:function(t){var e=t.target.value;u&&u(a.Z.concatValue(s,e))}})),e}},840:function(t,e,r){"use strict";var n=r(30698),o=r(15274),a=r(67294),i=r(98879),c=r(35697);function u(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 l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){(0,o.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}e.Z=function(t){var e,r=t.value,o=(t.itemType,t.fieldConfig),u=t.onChange,s=t.style,f=t.viewOrEdit;e=r?isNaN(r)?r:r.toString():0;var h,p={placeholder:o.disabled?"无需输入":"请输入".concat(o.title),disabled:o.disabled,value:r};return h="view"==f||o.disabled?a.createElement(i.Z,{width:90,percent:e}):a.createElement(c.Z,(0,n.Z)({style:l({},s),min:0,max:100},p,{onKeyUp:function(t){t.target.value&&!isNaN(t.target.value)?t.target.value=parseInt(t.target.value):t.target.value=0},onChange:function(t){u&&u(t)}})),h}},84680:function(t,e,r){"use strict";r.d(e,{Z:function(){return y}});var n=r(90237),o=r(65337),a=r(95225),i=r(39576),c=r(61378),u=r(69905),l=r(15274),s=r(67294),f=r(19650),h=r(71577),p=r(55241),d=r(24019);function v(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}var y=function(t){(0,i.Z)(m,t);var e,r,y=(e=m,r=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}}(),function(){var t,n=(0,u.Z)(e);if(r){var o=(0,u.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,c.Z)(this,t)});function m(){var t;(0,n.Z)(this,m);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t=y.call.apply(y,[this].concat(r)),(0,l.Z)((0,a.Z)(t),"state",{showDtmplView:!1,showSelectTable:!1,selectedCodes:void 0,openCode:void 0}),(0,l.Z)((0,a.Z)(t),"showRfieldDtmplView",(function(e){t.setState({openCode:e,showDtmplView:!0})})),(0,l.Z)((0,a.Z)(t),"hiddenDtmplView",(function(){t.setState({showDtmplView:!1})})),(0,l.Z)((0,a.Z)(t),"handleRFieldSelect",(function(t){})),(0,l.Z)((0,a.Z)(t),"deleteRFieldValue",(function(t){})),(0,l.Z)((0,a.Z)(t),"showCount",(function(){var e=t.props.value,r="";if(e instanceof Array){var n,o=0,a=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return v(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)?v(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(e);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(o++,(r+=i&&i.indexOf("@R@")>0?i.split("@R@")[1]:i).length>=20)break}}catch(t){a.e(t)}finally{a.f()}return o}return 1})),(0,l.Z)((0,a.Z)(t),"needMore",(function(){var e=t.props.value,r=t.showCount();return(e instanceof Array?e.length:1)>r})),(0,l.Z)((0,a.Z)(t),"getValue",(function(e){var r,n=t.props,o=n.fieldConfig,a=n.value,i=o.buttons;return r=a instanceof Array?e&&e>0&&a.length>e?a.slice(0,e):a:a?a.split(","):[],i&&i.includes("detail")?s.createElement(f.Z,{key:e?e+1:1,size:[0,4],wrap:!0},r.map((function(e,r){var n=!!e&&e.indexOf("@R@")>0,o=n?e.split("@R@")[1]:e,a=e?e.split("@R@")[0]:void 0;return n?s.createElement(h.ZP,{key:r,style:{padding:"0px 0px",height:"100%"},type:"link",title:"",onClick:function(){t.showRfieldDtmplView(a)}},o):s.createElement("span",{key:r},o)}))):s.createElement(f.Z,{key:e?e+2:2,size:[8,16],wrap:!0},r.map((function(t,e){var r=t&&t.indexOf("@R@")>0?t.split("@R@")[1]:t;return t&&t.split("@R@")[0],s.createElement("span",{key:e},r)})))})),t}return(0,o.Z)(m,[{key:"render",value:function(){var t=this.props,e=t.fieldConfig,r=(t.value,t.itemType,this.state),n=r.showDtmplView,o=r.openCode,a=e.buttons,i=this.getValue(this.showCount());return s.createElement(s.Fragment,null,s.createElement(f.Z,{key:3,size:[8,16],wrap:!0,style:{minWidth:"80px"}},i,this.needMore()?s.createElement(p.Z,{overlayStyle:{maxWidth:"400px"},placement:"leftBottom",trigger:"click",content:this.getValue()},s.createElement(h.ZP,{key:"more",type:"link",size:"small"},"更多...")):null,a&&a.includes("detail")?s.createElement(d.Z,{key:"mdv",open:n,onCancel:this.hiddenDtmplView,sourceId:e.id,code:o}," "):""))}}]),m}(s.PureComponent)},91118:function(t,e,r){"use strict";var n=r(20511),o=r(67294),a=r(91718),i=r(34041),c=r(94716),u=r(49073),l=["viewOrEdit"],s=a.Z.Step;e.Z=function(t){var e,r=t.viewOrEdit,f=void 0===r?"view":r,h=(0,n.Z)(t,l),p=h.value,d=(h.itemType,h.fieldConfig),v=h.onChange,y=u.Z.getEnums(d.mstrucId),m=void 0;for(var g in y)p==y[g].value&&(m=parseInt(g));return e=d.disabled||"view"==f?o.createElement(a.Z,{current:m,size:"small"},y.map((function(t){return o.createElement(s,{key:t.value,title:t.title})}))):o.createElement(i.Z,{placeholder:"请选择".concat(d.title),notFoundContent:"暂无选项",allowClear:!0,showSearch:!0,value:p,onChange:function(t){v&&v(t)}},c.Z.getSelectOptions(y)),e}},95026:function(t,e,r){"use strict";r.d(e,{Z:function(){return d}});var n=r(90237),o=r(65337),a=r(95225),i=r(39576),c=r(61378),u=r(69905),l=r(15274),s=r(67294),f=r(94716),h=r(55241),p=r(71577);var d=function(t){(0,i.Z)(v,t);var e,r,d=(e=v,r=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}}(),function(){var t,n=(0,u.Z)(e);if(r){var o=(0,u.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,c.Z)(this,t)});function v(){var t;(0,n.Z)(this,v);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t=d.call.apply(d,[this].concat(r)),(0,l.Z)((0,a.Z)(t),"state",{}),(0,l.Z)((0,a.Z)(t),"toString",(function(t){return t?t.toString():t})),(0,l.Z)((0,a.Z)(t),"viewButton",(function(){var e=t.props,r=e.value,n=e.isHtml,o=e.maxWidth;return s.createElement(s.Fragment,null,s.createElement(h.Z,{overlayStyle:{maxWidth:o},placement:"leftBottom",trigger:"click",content:s.createElement(s.Fragment,null,n?s.createElement("div",{style:{padding:"6px"},dangerouslySetInnerHTML:{__html:r}}):s.createElement("div",{style:{padding:"6px"}},r))},s.createElement(p.ZP,{type:"link",size:"small"},"查看")," "))})),t}return(0,o.Z)(v,[{key:"render",value:function(){var t=this.props,e=t.value,r=t.isHtml,n=t.showMax,o=this.toString(e);if(r){var a=new RegExp("<[^<>]+>","g");o=e.replace(a,"")}var i=f.Z.getLongTextStyle(o.substring(0,n));return s.createElement(s.Fragment,null,o.length<=n||n<=0?s.createElement("span",{className:"infoStyle",style:i},o):s.createElement("span",{className:"infoStyle",style:i},o.substring(0,n),"...",this.viewButton()))}}]),v}(s.PureComponent);(0,l.Z)(d,"defaultProps",{isHtml:!1,showMax:30,maxWidth:"1024px"})},2131:function(t,e,r){"use strict";r.d(e,{Z:function(){return Z}});var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(32823),d=r(63807),v=r(71577),y=r(84391),m=r(49811),g=r(38763),w=r(94716);function b(){b=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:x(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function Z(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,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=f(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 k(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,k(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},Z(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new E(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},Z(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var Z=function(t){(0,u.Z)(Z,t);var e,r,n=(e=Z,r=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}}(),function(){var t,n=(0,s.Z)(e);if(r){var o=(0,s.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,l.Z)(this,t)});function Z(){var t;(0,a.Z)(this,Z);for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t=n.call.apply(n,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{}),(0,f.Z)((0,c.Z)(t),"handleRemove",(function(e){t.props.onChange(JSON.stringify({valid:"delete"}))})),(0,f.Z)((0,c.Z)(t),"handleChange",function(){var e=(0,o.Z)(b().mark((function e(r){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("file change:",r),"done"==r.file.status&&(n={valid:"new",fileKey:r.file.response.fileKey,fileName:r.file.originFileObj.name},(0,t.props.onChange)(JSON.stringify(n)));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.Z)((0,c.Z)(t),"beforeUpload",(function(t){return!!(t.size/1024/1024<40)||(p.ZP.error("超过40M限制 不允许上传~"),!1)})),t}return(0,i.Z)(Z,[{key:"render",value:function(){var t=this.props,e=t.id,r=t.itemType,n=t.disabled,o=t.value,a=[];if(o){var i=o;"string"==typeof i&&(i=JSON.parse(o)),!0===i.valid?a.push({uid:"-1",name:i.base.fileName,status:"done",url:w.Z.api()+"/v3/files"+i.base.path+"?@token=".concat(w.Z.hydrocarbonToken(),"&@programToken=").concat(w.Z.programCode(),"&disposition=attachment")}):"new"==i.valid&&a.push({uid:"-2",name:i.fileName})}return h.createElement("div",null,h.createElement(d.Z,{id:e,maxCount:1,accept:"picture"===r?".png, .jpg, .jpeg":"video"===r?".mp4":void 0,listType:"picture"==r?"picture":"text",fileList:0==a.length?void 0:a,disabled:n,name:"file",headers:g.Z.getHeaderObj(),action:m.Z.postFileAction,beforeUpload:this.beforeUpload,onChange:this.handleChange,onRemove:this.handleRemove},a&&a.length>=1?"":h.createElement(v.ZP,{disabled:n},h.createElement(y.Z,null)," ",n?"无需上传":"点击上传")))}}]),Z}(h.PureComponent)},25291:function(t,e,r){"use strict";r.r(e);var n=r(30698),o=r(67294),a=r(36646),i=r(58998),c=r(44644),u=r(53807),l=r(4107),s=r(40684),f=r(15128),h=r(75645),p=r(15989),d=r(91118),v=r(94716),y=r(84680),m=r(27484),g=r.n(m),w=r(840),b=r(95026),Z=r(55105),E=o.createElement(a.Z,{tip:"Loading..."},o.createElement(i.Z,{message:"正在加载数据。。。",description:"初次访问加载数据较多,可能需要几秒或几分钟,请耐心等待!!",type:"info"})),x=(0,s.ZP)({resolved:{},chunkName:function(){return"signature"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(592),r.e(958)]).then(r.bind(r,21931))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 21931}},{fallback:E}),k=(0,s.ZP)({resolved:{},chunkName:function(){return"chemstruc-graph"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(592),r.e(76),r.e(556),r.e(466),r.e(862),r.e(66),r.e(836),r.e(700),r.e(486),r.e(886),r.e(623),r.e(636),r.e(211),r.e(591),r.e(590)]).then(r.bind(r,42888))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 42888}},{fallback:E}),L=(0,s.ZP)({resolved:{},chunkName:function(){return"code-editor-sql-code-editor"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(592),r.e(867),r.e(679)]).then(r.bind(r,98274))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 98274}},{fallback:E}),C=(0,s.ZP)({resolved:{},chunkName:function(){return"color-picker"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(592),r.e(432)]).then(r.bind(r,19221))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 19221}},{fallback:E}),S=(0,s.ZP)({resolved:{},chunkName:function(){return"controls-file-view"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(592),r.e(441)]).then(r.bind(r,76994))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 76994}},{fallback:E});e.default=function(t){return function(t,e,r,a){var i=f.Z.getControlType(t,e),s=r;s||(s="descriptions"),t.colNum;var m=void 0,E=(t.disabled||"请输入".concat(t.title),t.disabled,e||(t.defaultValue&&!v.Z.isConfigDefaultValue(t.defaultValue)?t.defaultValue:"")),O={fieldConfig:t,itemType:i,value:E,viewOrEdit:"view"};if(Z.cB.getCustomEditControl(i))return o.createElement(Z.cB.getCustomViewControl(i),O);var P=o.createElement("span",{className:"infoStyle"},"暂未完成-".concat(i));switch(i){case"int":case"decimal":case"float":case"double":case"intrange":case"decimalrange":case"range":case"daterange-YY":case"daterange-M1":case"daterange":case"datetimerange-HH":case"datetimerange-mm":case"datetimerange":case"timerange-HH":case"timerange-mm":case"timerange":case"caselect":m=o.createElement("span",{className:"infoStyle"},E);break;case"date-YY":case"date-M1":case"date":case"datetime-HH":case"datetime-mm":case"datetime":case"time-HH":case"time-mm":case"time":m=o.createElement("span",{className:"infoStyle"},E?g()(E).format(v.Z.getDayjsFormat(i)):void 0);break;case"text":case"textarea":case"preselect":m="table"==s?o.createElement(b.Z,{maxWidth:"400px",isHtml:!1,value:E,showMax:t.ellipsisLength}):o.createElement("span",{className:"infoStyle"},E);break;case"select":case"radio":case"yes-no-switch":m=o.createElement(p.Z,O);break;case"yes-no-radio":m=o.createElement("span",{className:"infoStyle"},E?o.createElement(c.Z,{color:"是"==E?"green":"red",text:E}):null);break;case"multiselect":case"checkbox":m=o.createElement(h.Z,O);break;case"html":m="table"==s?o.createElement(b.Z,{isHtml:!0,value:E}):o.createElement("div",{dangerouslySetInnerHTML:{__html:E}});break;case"steps":m=o.createElement(d.Z,O);break;case"password":m=E?o.createElement(u.Z,(0,n.Z)({title:E,color:"#fff1b8"},O),o.createElement("span",{className:"infoStyle"},"********")):null;break;case"relation":default:m=P;break;case"file":case"picture":case"video":case"non-download-file":m=o.createElement(S,O);break;case"chemstruc":m=o.createElement(k,O);break;case"sql-code-editor":m=o.createElement(L,(0,n.Z)({viewOrEdit:"view"},O));break;case"relselect":case"refselect":case"entity-select":case"table-entity-select":m=o.createElement(y.Z,O);break;case"progress":m=o.createElement(w.Z,O);break;case"signature":m=o.createElement(x,O);break;case"color":m=o.createElement(C,O);break;case"url":m=o.createElement("a",{target:"_blank",href:E},"网址");break;case"hidden":m=o.createElement(l.Z,{type:"hidden",value:e,disabled:!0})}return m}(t.fieldConfig,t.value,t.holderType)}},17955:function(t,e,r){"use strict";r.r(e);var n=r(90237),o=r(65337),a=r(95225),i=r(39576),c=r(61378),u=r(69905),l=r(15274),s=r(67294),f=r(4264),h=r(55105),p=r(94716),d=r(75459);function v(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 y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){(0,l.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var m=function(t){(0,i.Z)(v,t);var e,r,d=(e=v,r=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}}(),function(){var t,n=(0,u.Z)(e);if(r){var o=(0,u.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,c.Z)(this,t)});function v(){var t;(0,n.Z)(this,v);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t=d.call.apply(d,[this].concat(r)),(0,l.Z)((0,a.Z)(t),"goBackToLtmpl",(function(){var e=t.props.match.params.sourceId,r=t.props.basePath,n="".concat(r?r+"/":"","/").concat(e,"/act-table?menuId=").concat(t.getMenuId()),o=t.getMainCode();o&&(n+="&mainCode=".concat(o)),t.props.navigate(n)})),(0,l.Z)((0,a.Z)(t),"getMainCode",(function(){return t.props.searchParams.get("mainCode")})),(0,l.Z)((0,a.Z)(t),"getMenuId",(function(){return t.props.searchParams.get("menuId")})),t}return(0,o.Z)(v,[{key:"render",value:function(){var t=this.props.params.pageName,e=this.props.location.search,r=p.Z.transQueryStrToParams(e),n=h.cB.getCustomPage("/"+t)||f.Z;return s.createElement(n,y(y({},this.props.params),{},{goBack:this.goBackToLtmpl},r))}}]),v}(s.PureComponent);e.default=(0,d.Z)(m)},4264:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var n=r(90237),o=r(65337),a=r(39576),i=r(61378),c=r(69905),u=r(67294);var l=r(16321).Z.Title,s=function(t){(0,a.Z)(f,t);var e,r,s=(e=f,r=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}}(),function(){var t,n=(0,c.Z)(e);if(r){var o=(0,c.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,i.Z)(this,t)});function f(){return(0,n.Z)(this,f),s.apply(this,arguments)}return(0,o.Z)(f,[{key:"render",value:function(){return u.createElement(u.Fragment,null,u.createElement(l,null,"没有找到自定义页面"),u.createElement(l,{level:5},"url:/",this.props.pageName),u.createElement(l,{level:5},"请确认配置"))}}]),f}(u.Component)},7935:function(t,e,r){"use strict";r.d(e,{Z:function(){return v}});var n=r(90237),o=r(65337),a=r(95225),i=r(39576),c=r(61378),u=r(69905),l=r(15274),s=r(67294),f=r(71577),h=r(98053),p=r(4264),d=r(55105);var v=function(t){(0,i.Z)(y,t);var e,r,v=(e=y,r=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}}(),function(){var t,n=(0,u.Z)(e);if(r){var o=(0,u.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,c.Z)(this,t)});function y(){var t;(0,n.Z)(this,y);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t=v.call.apply(v,[this].concat(r)),(0,l.Z)((0,a.Z)(t),"state",{}),(0,l.Z)((0,a.Z)(t),"getFooter",(function(){var e=t.props.onOk,r=[];return r.unshift(s.createElement(f.ZP,{onClick:e,type:"primary"},"关 闭")),r})),(0,l.Z)((0,a.Z)(t),"customPage",(function(){var e=t.props,r=e.code,n=e.sourceId,o=e.open,a=e.mainCode,i=e.customPath;if(o){var c=d.cB.getCustomPage(i)||p.Z;return s.createElement(c,{code:r,sourceId:n,mainCode:a,pageName:i})}})),t}return(0,o.Z)(y,[{key:"render",value:function(){var t=this.props,e=t.height,r=t.onOk,n=t.open,o=t.width,a=t.title,i=t.bodyWidth;return s.createElement(h.Z,{open:n,width:o,title:a,closable:!1,bodyStyle:{height:e,width:i,overflow:"auto"},destroyOnClose:!0,centered:!0,onCancel:r,footer:[s.createElement(f.ZP,{onClick:function(){return r()}},"关 闭")]},this.customPage())}}]),y}(s.PureComponent);(0,l.Z)(v,"defaultProps",{height:500,width:1250,bodyWidth:"100%",forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"}})},72670:function(t,e,r){"use strict";var n=r(92801),o=r(90237),a=r(65337),i=r(95225),c=r(39576),u=r(61378),l=r(69905),s=r(15274),f=r(67294),h=r(19650),p=r(22217),d=r(55241),v=r(71577),y=r(37653),m=r(74499);var g=function(t){(0,c.Z)(w,t);var e,r,g=(e=w,r=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}}(),function(){var t,n=(0,l.Z)(e);if(r){var o=(0,l.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,u.Z)(this,t)});function w(){var t;(0,o.Z)(this,w);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=g.call.apply(g,[this].concat(r)),(0,s.Z)((0,i.Z)(t),"state",{}),(0,s.Z)((0,i.Z)(t),"calcOffsetBottom",(function(t){return t.length>=3?120:2==t.length?86:80})),t}return(0,a.Z)(w,[{key:"render",value:function(){(0,n.Z)(this.state);var t=this.props,e=t.dtmplConfig,r=t.mainCode;if(!e)return null;e.buttons;var o,a=e.cQuerys;return a&&a.length>3&&(o=f.createElement("div",{style:{width:"100px"},className:"btns"},f.createElement(h.Z,{direction:"vertical"},a.map((function(t,e){if(e>2)return f.createElement(m.Z,{block:!0,key:t.id,mainCode:r,cQueryConfig:t})}))))),a&&a.length>0&&r?f.createElement(p.Z,{style:{position:"absolute",top:180,right:10,maxHeight:90},offsetTop:300},f.createElement("div",{className:"submitButtonBar"},f.createElement("ul",null,a?a.map((function(t,e){if(e<3)return f.createElement("li",{key:e},f.createElement(m.Z,{type:"text",block:!0,key:t.id,mainCode:r,cQueryConfig:t}))})):"",a&&a.length>2?f.createElement(d.Z,{placement:"leftTop",content:o,trigger:"hover"},f.createElement(v.ZP,{block:!0},f.createElement(y.Z,null),"更多")):""))):""}}]),w}(f.PureComponent);e.Z=g},1233:function(t,e,r){"use strict";r.d(e,{Z:function(){return h}});var n=r(90237),o=r(65337),a=r(95225),i=r(39576),c=r(61378),u=r(69905),l=r(15274),s=r(67294),f=r(22217);var h=function(t){(0,i.Z)(p,t);var e,r,h=(e=p,r=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}}(),function(){var t,n=(0,u.Z)(e);if(r){var o=(0,u.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,c.Z)(this,t)});function p(){var t;(0,n.Z)(this,p);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t=h.call.apply(h,[this].concat(r)),(0,l.Z)((0,a.Z)(t),"scrollToAnchor",(function(e){if(e){var r=document.getElementById(t.props.parentId+e.id);r&&r.scrollIntoView({behavior:"smooth",block:"end"})}})),(0,l.Z)((0,a.Z)(t),"scroll",(function(t){t.preventDefault(),t.stopPropagation();var e=document.getElementsByClassName("rightBar")[0];e&&(e.getElementsByTagName("ul")[0].style.marginTop="")})),t}return(0,o.Z)(p,[{key:"render",value:function(){var t=this,e=this.props,r=e.dtmplConfig,n=e.positionRight,o=[];return r&&r.groups.forEach((function(t){o.push({title:t.title,id:t.id})})),r&&r.premises&&r.premises.length>0&&o.push({id:r.premises[0].id,title:"默认字段"}),o&&o.length>3?s.createElement(f.Z,{style:{position:"absolute",top:60,right:n},offsetTop:80},s.createElement("div",{className:"rightBar",onScroll:this.scroll},s.createElement("ul",null,o?o.map((function(e,r){return s.createElement("li",{onClick:function(){return t.scrollToAnchor(e)},key:r},e.title)})):""))):""}}]),p}(s.PureComponent);(0,l.Z)(h,"defaultProps",{positionRight:15})},28202:function(t,e,r){"use strict";r.d(e,{Z:function(){return D}});var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(35137),d=r(71577),v=r(53807),y=r(47389),m=r(53191),g=r(59879),w=r(49073),b=r(56440),Z=r(99160),E=r(49811),x=r(94716),k=r(29336),L=r(82362),C=r(1233),S=r(41307),O=r(72670);function P(){P=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var j=function(t){(0,u.Z)(v,t);var e,r,n,p,d=(n=v,p=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}}(),function(){var t,e=(0,s.Z)(n);if(p){var r=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function v(){var t;(0,a.Z)(this,v);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=d.call.apply(d,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{loading:!0,id:"dtmplView"+x.Z.getRandomNum(6),snapshotOpen:!1,dtmplData:void 0,premisesTitle:"默认字段",layout:{labelCol:{span:8},wrapperCol:{span:16}}}),(0,f.Z)((0,c.Z)(t),"loadData",(0,o.Z)(P().mark((function e(){var r,n,o,a,i;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.sourceId,o=r.code,a=r.versionId,!o){e.next=9;break}return t.setState({loading:!0}),e.next=5,E.Z.requestViewDtmplData(n,o,a);case 5:i=e.sent,t.setState({dtmplData:i,loading:!1}),e.next=10;break;case 9:t.setState({loading:!1});case 10:case"end":return e.stop()}}),e)})))),(0,f.Z)((0,c.Z)(t),"fieldGroupList",(function(){var e=t.props.dtmplConfig,r=t.state,n=r.dtmplData,o=r.loading,a=r.id,i=[];return e&&(i=e.groups),i.map((function(t){if("relation"!=t.type)return h.createElement(S.Z,{title:t.title,key:t.id,id:a+t.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:o},h.createElement(L.Z,{fields:t.fields,valueMap:n?n.fieldMap:void 0,width:220}));if(t.fields){var e=void 0;return n&&(e=n.arrayMap[t.id]),h.createElement(k.Z,{initCollapse:n&&(!e||e.length<=0),loading:o,parentId:a,key:t.id,fieldGroupConfig:t,value:e,viewOrEdit:"view"})}}))})),t}return(0,i.Z)(v,[{key:"componentDidMount",value:(r=(0,o.Z)(P().mark((function t(){return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadData();case 2:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,o.Z)(P().mark((function t(e){var r,n,o,a,i,c;return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=this.props).sourceId,n=r.code,o=r.versionId,a=r.refreshCode,i=e.code,e.versionId,c=e.refreshCode,!(n!=i||o&&o!=e.versionId||a&&a!=c)){t.next=5;break}return t.next=5,this.loadData();case 5:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.showRightNav,r=t.rightBarPositionRight,n=t.code,o=(t.sourceId,t.dtmplConfig),a=this.state,i=a.premisesTitle,c=a.loading,u=(a.dtmplData,a.layout,a.snapshotOpen,a.id),l=o?o.premises:void 0;return h.createElement("div",null,this.fieldGroupList(),l&&l.length>0?h.createElement(S.Z,{title:i,key:i,id:u+l[0].id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:c},h.createElement(L.Z,{fields:l})):"",e?h.createElement(C.Z,{parentId:u,positionRight:r,dtmplConfig:o}):"",h.createElement(O.Z,{dtmplConfig:o,mainCode:n}))}}]),v}(h.PureComponent);(0,f.Z)(j,"defaultProps",{showRightNav:!0});var R=j;function N(){N=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var I=function(t){(0,u.Z)(y,t);var e,r,n,p,v=(n=y,p=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}}(),function(){var t,e=(0,s.Z)(n);if(p){var r=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function y(){var t;(0,a.Z)(this,y);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=v.call.apply(v,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{list:void 0,loading:!1,current:void 0}),(0,f.Z)((0,c.Z)(t),"loadData",(0,o.Z)(N().mark((function e(){var r,n,o,a,i;return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.sourceId,o=r.code,r.showSnapshot,a=t.state.current,!o){e.next=8;break}return t.setState({loading:!0}),e.next=6,E.Z.requestVersionList(n,o);case 6:i=e.sent,t.setState({list:i,current:!a&&i.length>0?i[0].code:a,loading:!1});case 8:case"end":return e.stop()}}),e)})))),(0,f.Z)((0,c.Z)(t),"onChange",(function(e){var r=t.props.showSnapshot;t.setState({current:e}),r(e)})),(0,f.Z)((0,c.Z)(t),"detailHistory",(function(){var e=t.state,r=e.list,n=e.current;if(r.length>0)return r.map((function(e,r){var o=!!n&&e.code===n,a=o?"red":"blue";return h.createElement(b.Z.Item,{color:a,key:r},x.Z.formateDate(e.time),h.createElement("br",null),""+e.userName,o?"":h.createElement(d.ZP,{style:{marginLeft:10},type:"primary",size:"small",onClick:function(){return t.onChange(e.code)}},"查看"))}))})),t}return(0,i.Z)(y,[{key:"componentDidMount",value:(r=(0,o.Z)(N().mark((function t(){return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,o.Z)(N().mark((function t(e){var r,n;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this.props.open,n=this.state.list,r&&!n&&this.loadData();case 3:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.open,r=t.onClose,n=t.dtmplConfig,o=t.sourceId,a=t.code,i=this.state,c=i.list,u=i.current;return h.createElement(h.Fragment,null,h.createElement(Z.Z,{title:"快照列表",closable:!0,onClose:r,open:e,width:350},c&&c.length>0?h.createElement(b.Z,{mode:"alternate"},this.detailHistory()):"暂无历史记录"),h.createElement(Z.Z,{placement:"left",title:"快照查看",closable:!0,mask:!1,onClose:r,open:e,width:"calc(100% - 380px)",style:{maxWidth:1960}},h.createElement(R,{showRightNav:!1,dtmplConfig:n,sourceId:o,code:a,versionId:u})))}}]),y}(h.PureComponent);(0,f.Z)(I,"defaultProps",{});var _=I;function T(){T=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var A=function(t){(0,u.Z)(Z,t);var e,r,n,b=(r=Z,n=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}}(),function(){var t,e=(0,s.Z)(r);if(n){var o=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function Z(){var t;(0,a.Z)(this,Z);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=b.call.apply(b,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{loading:!0,dtmplConfig:void 0,snapshotOpen:!1,premisesTitle:"默认字段",layout:{labelCol:{span:8},wrapperCol:{span:16}},refreshCode:void 0}),(0,f.Z)((0,c.Z)(t),"doRefresh",(0,o.Z)(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setState({refreshCode:x.Z.getRandomNum(6)});case 1:case"end":return e.stop()}}),e)})))),(0,f.Z)((0,c.Z)(t),"goEdit",(function(){var e=t.props;(0,e.goDtmpl)(e.code)})),(0,f.Z)((0,c.Z)(t),"showSnapshot",(function(){t.setState({snapshotOpen:!0})})),(0,f.Z)((0,c.Z)(t),"onSnapshotClose",(function(){t.setState({snapshotOpen:!1})})),(0,f.Z)((0,c.Z)(t),"toSnapshot",(function(){})),t}return(0,i.Z)(Z,[{key:"componentDidMount",value:(e=(0,o.Z)(T().mark((function t(){var e,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props.sourceId,t.next=3,w.Z.requestViewDtmplConfig(e);case 3:r=t.sent,this.setState({dtmplConfig:r});case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.showRightNav,r=t.rightBarPositionRight,n=t.code,o=t.sourceId,a=t.goDtmpl,i=this.state,c=i.dtmplConfig,u=(i.premisesTitle,i.loading,i.layout,i.snapshotOpen),l=i.refreshCode,s=c?c.buttons:void 0,f=(c&&c.premises,e);return c&&c.groups.length<4&&(f=!1),h.createElement("div",{className:"detailPage ".concat(f?"showRightNav":"noRightNav")},h.createElement(p.Z,{bordered:!1,size:"small",key:"detailTitle",className:"hoverable pageHeader"},h.createElement("h3",null,"详情",h.createElement("div",{className:"fr"},s&&s.includes("dtmplEdit")&&a&&!c.editAction?h.createElement(d.ZP,{className:"hoverbig",onClick:this.goEdit},h.createElement(y.Z,null)):"",s&&s.includes("history")?h.createElement(v.Z,{title:"数据快照"},h.createElement(d.ZP,{className:"hoverbig",onClick:this.showSnapshot},h.createElement(m.Z,null))):"",h.createElement(d.ZP,{className:"hoverbig",title:"刷新",onClick:this.doRefresh},h.createElement(g.Z,null)),h.createElement(_,{dtmplConfig:c,code:n,onClose:this.onSnapshotClose,showSnapshot:this.toSnapshot,sourceId:o,open:u})))),h.createElement(R,{refreshCode:l,showRightNav:f,rightBarPositionRight:r,dtmplConfig:c,sourceId:o,code:n}))}}]),Z}(h.PureComponent);(0,f.Z)(A,"defaultProps",{showRightNav:!0,rightBarPositionRight:15});var D=A},82362:function(t,e,r){"use strict";r.d(e,{Z:function(){return p}});var n=r(90237),o=r(65337),a=r(95225),i=r(39576),c=r(61378),u=r(69905),l=r(15274),s=r(67294),f=r(57995),h=r(25291);var p=function(t){(0,i.Z)(d,t);var e,r,p=(e=d,r=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}}(),function(){var t,n=(0,u.Z)(e);if(r){var o=(0,u.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,c.Z)(this,t)});function d(t){var e;return(0,n.Z)(this,d),e=p.call(this,t),(0,l.Z)((0,a.Z)(e),"initViewList",(function(){var t=e.props,r=t.fields,n=t.valueMap,o=[];return r.length>0&&r.forEach((function(t,e){t.title;var r=n?n[t.id]:void 0;if(r=r||(t.defaultValue?t.defaultValue:void 0),t.id,Math.random(),"hidden"!=t.extControlType){var a=s.createElement(f.Z.Item,{label:t.title,span:t.colNum,key:e,className:"labelcss"},s.createElement(h.default,{holderType:"descriptions",value:r,fieldConfig:t}));o.push(a)}})),o})),e.state={fileList:[]},e}return(0,o.Z)(d,[{key:"render",value:function(){return s.createElement(f.Z,{column:2},this.initViewList())}}]),d}(s.PureComponent)},24019:function(t,e,r){"use strict";r.d(e,{Z:function(){return d}});var n=r(90237),o=r(65337),a=r(39576),i=r(61378),c=r(69905),u=r(15274),l=r(67294),s=r(98053),f=r(71577),h=r(66847),p=r(28202);var d=function(t){(0,a.Z)(h,t);var e,r,u=(e=h,r=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}}(),function(){var t,n=(0,c.Z)(e);if(r){var o=(0,c.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,i.Z)(this,t)});function h(){return(0,n.Z)(this,h),u.apply(this,arguments)}return(0,o.Z)(h,[{key:"render",value:function(){var t=this.props,e=t.height,r=(t.onOk,t.onCancel),n=t.code,o=(t.style,t.sourceId),a=t.open;return l.createElement(s.Z,{open:a,title:"查看",width:"1250px",centered:!0,bodyStyle:{height:e,overflow:"auto"},onCancel:r,footer:[l.createElement(f.ZP,{key:"back",onClick:r},"取 消")]},n?l.createElement(p.Z,{rightBarPositionRight:30,sourceId:o,code:n}):"")}}]),h}(l.PureComponent);(0,u.Z)(d,"defaultProps",{showConfirm:!0,height:500,forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},cancelText:"取消",form:h.Z.useForm}),(0,u.Z)(d,"state",{viewOrEdit:"view"})},87200:function(t,e,r){"use strict";var n=r(30698),o=r(48418),a=r(67294),i=r(18430),c=r(66847),u=r(71577),l=r(34041),s=r(71230),f=r(15746),h=r(19650),p=r(35137),d=r(57564),v=r(67077),y=r(62508),m=r(74499),g=i.Z.Panel,w=c.Z.Item,b=function(t){var e=t.ltmplConfig,r=t.doSearch,b=t.doAction,Z=t.doJump,E=t.doDelete,x=t.selectedRows,k=t.data,L=t.open,C=(t.loading,t.selectedDatas),S=t.doCQuery,O=c.Z.useForm(),P=(0,o.Z)(O,1)[0],j=e.buttons,R=e.actions,N=e.jumps,I=e.cQuerys,_=e.criterias,T=e.drillingParams,A=e.columns,D={};(0,a.useEffect)((function(){P.resetFields()}));var F=j.includes("query")&&r,G=j.includes("batchDelete")&&E,M=!(x&&x.length>0),q=function(e){if(e){var n=t.hiddenCriteriaIds;return e.map((function(t){var e="c_"+t.id,r=k?k[e]:void 0;D[e]=r})),r?e.map((function(e){var r="c_"+e.id,o=k?k[r]:void 0;if(!n.includes(e.id))return a.createElement(w,{label:e.title,name:r,key:e.id,tooltip:e.tip,rules:e.required?[{required:!0,message:"请选择".concat(e.title)}]:void 0},a.createElement(v.default,{mainCode:t.mainCode,value:o,fieldConfig:e}))})):void 0}};return a.createElement(c.Z,{form:P,name:"control-hooks",initialValues:D,layout:"inline",onFinish:function(t){r&&r(t)},style:{width:"100%"}},j.includes("drilling")&&L&&(T.length>0||(A.forEach((function(t){if("dimension"==t.statColType)return!0})),0))?a.createElement(i.Z,{style:{width:"100%"},defaultActiveKey:["1"]},a.createElement(g,{header:"设置-数据上钻",key:"1"},a.createElement(s.Z,null,a.createElement(f.Z,null,a.createElement(h.Z,{size:"small",wrap:!0},q(T),function(){var t="drillingColIds",e=[],r=[];A.forEach((function(t){"dimension"==t.statColType&&(r.push({label:t.title,value:t.id}),e.push(t.id))})),r.push({label:"无",value:"5"}),D[t]=k&&k[t]?k[t]:e;var o={placeholder:"请选择维度",disabled:!1,value:k?k[t]:e,style:{minWidth:220,width:"100%"}};return a.createElement(w,{label:"维度",name:t,key:t,rules:[{required:!0,message:"请选择维度,上钻到顶层请只选【无】"}]},a.createElement(l.Z,(0,n.Z)({mode:"multiple"},o,{notFoundContent:"暂无选项",allowClear:!0,showSearch:!0,showArrow:!0,options:r})))}()))))):"",a.createElement(p.Z,{className:"hoverable",style:{display:L?"block":"none",width:"100%"},headStyle:{background:"#f2f4f5"}},a.createElement(s.Z,null,a.createElement(f.Z,null,a.createElement(h.Z,{size:"small",wrap:!0},q(_),a.createElement(h.Z,{className:"btns"},F?a.createElement(u.ZP,{type:"primary",htmlType:"submit"},"查询"):"",G?a.createElement(d.Z,{placement:"rightBottom",title:"确定要【删除】选中数据吗?",onConfirm:function(){E()},okText:"确定",cancelText:"取消",okType:"danger"},a.createElement(u.ZP,{danger:!0,disabled:M},"删除选中")):"",function(){if(b&&R&&R.length>0)return R.map((function(t){var e=!0;return x&&(x.length>0&&t.multible||1==x.length)&&(e=!1),a.createElement(y.Z,{hiddenType:"disabled",key:t.id,disabled:e,data:C,actionConfig:t,doAction:b,serial:1})}))}(),function(){if(Z&&N&&N.length>0)return N.map((function(t){var e=!0;return x&&1==x.length&&(e=!1),a.createElement(u.ZP,{key:t.id,onClick:function(){return Z(t.id)},disabled:e},t.title)}))}(),function(){if(S&&I&&I.length>0)return I.map((function(t){var e=!0;return x&&1==x.length&&(e=!1),a.createElement(m.Z,{key:t.id,disabled:e,cQueryConfig:t,mainCode:e?void 0:x[0].code})}))}()))))))};b.defaultProps={hiddenCriteriaIds:[],open:!0},e.Z=b},53984:function(t,e,r){"use strict";r.d(e,{Z:function(){return P}});var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(32823),d=r(35137),v=r(72985),y=r(71577),m=r(66847),g=r(49811),w=r(69165),b=r(59879),Z=r(82362),E=r(29336),x=r(41307),k=r(55105);function L(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return C(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)?C(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function C(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(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 O(){O=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var P=function(t){(0,u.Z)(j,t);var e,r,n,C,P=(n=j,C=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}}(),function(){var t,e=(0,s.Z)(n);if(C){var r=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function j(){var t;(0,a.Z)(this,j);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=P.call.apply(P,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"fuseMode",!1),(0,f.Z)((0,c.Z)(t),"premisestitle","默认字段"),(0,f.Z)((0,c.Z)(t),"state",{loading:!0,dtmplData:void 0,appDtmplConfig:void 0}),(0,f.Z)((0,c.Z)(t),"loadData",(0,o.Z)(O().mark((function e(){var r,n,o,a,i,c,u,l;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.sourceId,o=r.code,a=r.formRef,i=r.dtmplData,c=r.dtmplConfig,!o){e.next=8;break}return t.setState({loading:!0}),e.next=5,g.Z.requestDtmplData(n,o,null);case 5:u=e.sent,e.next=9;break;case 8:u=i||{code:void 0,title:void 0,fieldMap:{},arrayMap:{}};case 9:l=k.cB.getAppDtmplConfig(c,i),t.setState({appDtmplConfig:l,dtmplData:u,loading:!1}),setTimeout((function(){return a.current?a.current.resetFields():void 0}),200);case 12:case"end":return e.stop()}}),e)})))),(0,f.Z)((0,c.Z)(t),"doRefresh",(0,o.Z)(O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.loadData();case 2:p.ZP.info("已刷新!");case 3:case"end":return e.stop()}}),e)})))),(0,f.Z)((0,c.Z)(t),"onGroupChange",(function(e,r){var n=t.state.dtmplData;n.arrayMap[e.id]=r;var o=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){(0,f.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},n);t.setState({dtmplData:o})})),(0,f.Z)((0,c.Z)(t),"changeFuseMode",(function(e){t.fuseMode=!e})),(0,f.Z)((0,c.Z)(t),"postForm",function(){var e=(0,o.Z)(O().mark((function e(r){var n,o,a,i,c;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({loading:!0}),n=t.props,o=n.sourceId,a=n.code,i=n.dtmplData,a?r["唯一编码"]=a:i&&i.code&&(r["唯一编码"]=i.code),e.next=5,g.Z.postDtmplData(o,r,p.ZP);case 5:c=e.sent,t.setState({loading:!1}),"success"===c.status&&t.props.onFinish(c.code);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.Z)((0,c.Z)(t),"onSubmit",function(){var e=(0,o.Z)(O().mark((function e(r){var n,o,a,i,c,u,l;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=t.props).showConfirm,n.code,o=n.dtmplConfig,a=t.state.dtmplData,i=r,c=L(o.groups),e.prev=5,l=O().mark((function t(){var e,n;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:"relation"==(e=u.value).type&&(r["".concat(e.id,".$$flag$$")]=!0,(n=a.arrayMap[e.id])&&n.forEach((function(t,n){if(r["".concat(e.id,"[").concat(n,"].$$relation$$")]=t.relationLabel,t.editStatus&&"new"==t.editStatus){var o,a=L(e.fields);try{for(a.s();!(o=a.n()).done;){var i=o.value;r["".concat(e.id,"[").concat(n,"].").concat(i.id)]=t.fieldMap[i.id]}}catch(t){a.e(t)}finally{a.f()}}else if(t.editStatus&&"changed"==t.editStatus){r["".concat(e.id,"[").concat(n,"].唯一编码")]=t.code;var c,u=L(e.fields);try{for(u.s();!(c=u.n()).done;){var l=c.value;r["".concat(e.id,"[").concat(n,"].").concat(l.id)]=t.fieldMap[l.id]}}catch(t){u.e(t)}finally{u.f()}}else r["".concat(e.id,"[").concat(n,"].唯一编码")]=t.code})));case 2:case"end":return t.stop()}}),t)})),c.s();case 8:if((u=c.n()).done){e.next=12;break}return e.delegateYield(l(),"t0",10);case 10:e.next=8;break;case 12:e.next=17;break;case 14:e.prev=14,e.t1=e.catch(5),c.e(e.t1);case 17:return e.prev=17,c.f(),e.finish(17);case 20:return e.next=22,t.postForm(i);case 22:e.sent;case 23:case"end":return e.stop()}}),e,null,[[5,14,17,20]])})));return function(t){return e.apply(this,arguments)}}()),(0,f.Z)((0,c.Z)(t),"fieldGroupList",(function(e,r){var n=t.props,o=n.parentId,a=n.maxColsOnRow,i=n.mainCode,c=n.formRef,u=t.state.loading,l=[];return e&&(l=e.groups),l.map((function(e){if("relation"!=e.type)return h.createElement(x.Z,{title:e.title,key:e.id,id:o+e.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:u,bodyStyle:{padding:"6px"}},h.createElement(w.Z,{formRef:c,mainCode:i,maxColsOnRow:a,fields:e?e.fields:void 0,valueMap:r?r.fieldMap:void 0}));if(e.fields){var n=void 0;return r&&(n=r.arrayMap[e.id]),h.createElement(E.Z,{mainCode:i||o,loading:u,parentId:o,key:e.id,fieldGroupConfig:e,value:n,viewOrEdit:"edit",onChange:t.onGroupChange})}}))})),(0,f.Z)((0,c.Z)(t),"onValuesChange",(function(e,r){var n=t.props,o=n.onValuesChange,a=n.formRef,i=t.state.appDtmplConfig;i.onValuesChange&&i.onValuesChange(e,r,a.current),o()})),t}return(0,i.Z)(j,[{key:"componentDidMount",value:(r=(0,o.Z)(O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadData();case 2:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,o.Z)(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.code,e==this.props){t.next=4;break}return t.next=4,this.loadData();case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.formRef,r=t.dtmplConfig,n=t.code,o=t.parentId,a=t.showHeader,i=this.state,c=i.dtmplData,u=i.appDtmplConfig;if(!r)return h.createElement(d.Z,{loading:!0},"加载中... ...");var l=u||{buttons:void 0,premises:void 0},s=l.buttons,f=l.premises;return h.createElement(h.Fragment,null,a?h.createElement(d.Z,{bordered:!1,key:"detailTitle",className:"hoverable pageHeader"},h.createElement("h3",null,n||c&&c.code?"[编辑]":"[新增]",h.createElement("div",{className:"fr"},s&&s.includes("fusionMode")?h.createElement(v.Z,{checkedChildren:"开",unCheckedChildren:"关",style:{marginRight:10},title:"融合模式",onChange:this.changeFuseMode}):"",h.createElement(y.ZP,{className:"hoverbig",title:"刷新",onClick:this.doRefresh},h.createElement(b.Z,null))))):null,h.createElement(m.Z,{scrollToFirstError:!0,labelWrap:!0,ref:e,name:"control-hooks",onValuesChange:this.onValuesChange,onFinish:this.onSubmit},h.createElement(m.Z.Item,{hidden:!0,name:"actionId"}),h.createElement(m.Z.Item,{hidden:!0,name:"mainCode"}),this.fieldGroupList(u,c)),f&&f.length>0?h.createElement(x.Z,{title:this.premisestitle,key:this.premisestitle,id:o+f[0].id,className:"hoverable",headStyle:{background:"#f2f4f5"}},h.createElement(Z.Z,{fields:f})):"")}}]),j}(h.PureComponent);(0,f.Z)(P,"defaultPorps",{maxCols:2,showHeader:!0})},69165:function(t,e,r){"use strict";r.d(e,{Z:function(){return g}});var n=r(32763),o=r(90237),a=r(65337),i=r(95225),c=r(39576),u=r(61378),l=r(69905),s=r(15274),f=r(67294),h=r(66847),p=r(15746),d=r(71230),v=r(67077),y=r(94716);var m=h.Z.Item,g=function(t){(0,c.Z)(g,t);var e,r,h=(e=g,r=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}}(),function(){var t,n=(0,l.Z)(e);if(r){var o=(0,l.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,u.Z)(this,t)});function g(t){var e;return(0,o.Z)(this,g),e=h.call(this,t),(0,s.Z)((0,i.Z)(e),"isPromise",(function(t){return!!t&&("object"===(0,n.Z)(t)||"function"==typeof t)&&"function"==typeof t.then})),(0,s.Z)((0,i.Z)(e),"getMainCode",(function(t,r){var n=e.props.formRef;return t.mainCode?"function"==typeof t.mainCode?t.mainCode(n.current):t.mainCode:r})),(0,s.Z)((0,i.Z)(e),"getFieldConfig",(function(t){var r=e.props.formRef;return t.updateSelf?t.updateSelf(r.current):t})),(0,s.Z)((0,i.Z)(e),"initFormItem",(function(t,r){var n=e.props,o=n.nameAttr,a=n.maxColsOnRow,i=n.mainCode,c=e.getFieldConfig(t),u=c.title;return f.createElement(m,{label:c.title,name:c[o],key:c.id,labelCol:1==a||1==c.colNum?{span:6}:{span:3},wrapperCol:1==a?{span:18}:1==c.colNum?{span:15}:{span:19},tooltip:c.tip,initialValue:r,style:{margin:4},rules:c.required?[{required:!0,message:"请选择".concat(u)}]:void 0},f.createElement(v.default,{mainCode:e.getMainCode(c,i),value:r,fieldConfig:c}))})),(0,s.Z)((0,i.Z)(e),"initFormList",(function(){var t=e.props,r=t.fields,n=t.valueMap,o=t.nameAttr,a=t.maxColsOnRow,i=t.mainCode,c=[];r&&r.length>0&&r.forEach((function(t,r){var a=n?n[t.id]:void 0;t.id,Math.random(),a=a||0==a?a:t.defaultValue?y.Z.configParamTrans(t.defaultValue):void 0;var u;u="hidden"==t.extControlType?f.createElement(m,{hidden:!0,initialValue:a,name:t[o],key:t.id},f.createElement(v.default,{mainCode:e.getMainCode(t,i),value:a,fieldConfig:t})):t.shouldUpdate?f.createElement(m,{noStyle:!0,shouldUpdate:t.shouldUpdate},(function(){return e.initFormItem(t,a)})):e.initFormItem(t,a),c.push(u)}));for(var u=[],l=0;l<c.length;l+=1){var s=r[l].colNum;"hidden"==r[l].extControlType?s=0:a&&1==a&&(s=2);var h=f.createElement(p.Z,{key:l,span:12*s},c[l]);u.push(h)}return f.createElement(d.Z,{gutter:[16,8],key:1},u)})),e.state={fileList:[]},e}return(0,a.Z)(g,[{key:"render",value:function(){return this.initFormList()}}]),g}(f.PureComponent);(0,s.Z)(g,"defaultProps",{nameAttr:"id",maxColsOnRow:2})},55105:function(t,e,r){"use strict";r.d(e,{B$:function(){return m},Bf:function(){return v},C0:function(){return y},H5:function(){return p},QC:function(){return o.Z},UL:function(){return h},cB:function(){return n.Z},cS:function(){return d},hE:function(){return a.Z},xe:function(){return f},zM:function(){return i.default}});var n=r(94716),o=r(49811),a=(r(25455),r(6313),r(97038),r(49073),r(38763),r(45273)),i=r(28714),c=(r(17955),r(40684)),u=r(36646),l=r(67294),s=(r(89626),r(38616),r(75459),l.createElement(u.Z,{tip:"Loading..."})),f=((0,c.ZP)({resolved:{},chunkName:function(){return"table-act-table"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,34363))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 34363}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"table-select-table"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,55707))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 55707}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"login-login"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(592),r.e(413)]).then(r.bind(r,71650))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 71650}},{fallback:s})),h=(0,c.ZP)({resolved:{},chunkName:function(){return"login-context-setter"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return r.e(592).then(r.bind(r,67228))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 67228}},{fallback:s}),p=(0,c.ZP)({resolved:{},chunkName:function(){return"routable-dtmpl-route"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(537),r.e(288),r.e(74),r.e(10),r.e(592),r.e(377)]).then(r.bind(r,23007))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 23007}},{fallback:s}),d=((0,c.ZP)({resolved:{},chunkName:function(){return"routable-import-route"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,28714))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 28714}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"routable-ltmpl-route"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return r.e(592).then(r.bind(r,24406))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 24406}},{fallback:s})),v=((0,c.ZP)({resolved:{},chunkName:function(){return"module-dtmpl-view-card"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,26112))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 26112}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"module-dtmpl-edit-drawer"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return r.e(592).then(r.bind(r,8207))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 8207}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"module-dtmpl-edit-modal"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,28520))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 28520}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"module-dtmpl-edit-card"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return r.e(592).then(r.bind(r,22525))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 22525}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"detail-edit-dtmpl-edit"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(537),r.e(288),r.e(74),r.e(10),r.e(592),r.e(317)]).then(r.bind(r,22381))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 22381}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"module-ltmpl-table"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,70832))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 70832}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"module-ltmpl-drawer"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return r.e(592).then(r.bind(r,9126))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 9126}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"module-ltmpl-modal"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return r.e(592).then(r.bind(r,96170))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 96170}},{fallback:s})),y=((0,c.ZP)({resolved:{},chunkName:function(){return"module-dtmpl-edit-page"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,85932))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 85932}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"layout-menu-menu-2layers"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,35944))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 35944}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"layout-menu-block"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,80455))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 80455}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"layout-menu-user-bar"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,96277))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 96277}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"layout-menu-reset-password"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,66701))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 66701}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"layout-footer"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,6425))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 6425}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"controls-entry-control"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,67077))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 67077}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"controls-view-control"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,25291))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 25291}},{fallback:s}),(0,c.ZP)({resolved:{},chunkName:function(){return"custom-page-custom-page-router"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.resolve().then(r.bind(r,17955))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 17955}},{fallback:s})),m=(0,c.ZP)({resolved:{},chunkName:function(){return"welcome-HCWelcome"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(537),r.e(288),r.e(74),r.e(10),r.e(592),r.e(434)]).then(r.bind(r,20754))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 20754}},{fallback:s});(0,c.ZP)({resolved:{},chunkName:function(){return"controls-date-picker"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(537),r.e(288),r.e(74),r.e(10),r.e(592),r.e(189)]).then(r.bind(r,97182))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 97182}},{fallback:s})},45273:function(t,e,r){"use strict";r.d(e,{Z:function(){return V}});var n=r(32763),o=r(30698),a=r(59755),i=r(90237),c=r(65337),u=r(95225),l=r(39576),s=r(61378),f=r(69905),h=r(15274),p=r(67294),d=r(97183),v=r(6425),y=r(71230),m=r(15746),g=r(1351),w=r(76629),b=r(80455),Z=r(89626),E=r(38616),x=r(96277);var k=d.Z.Header,L=function(t){(0,l.Z)(o,t);var e,r,n=(e=o,r=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}}(),function(){var t,n=(0,f.Z)(e);if(r){var o=(0,f.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function o(){var t;(0,i.Z)(this,o);for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return t=n.call.apply(n,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"toggle",(function(){t.props.toggle()})),t}return(0,c.Z)(o,[{key:"render",value:function(){var t=this.props.collapsed;return p.createElement(k,{style:{padding:0,height:"auto"}},p.createElement(y.Z,{className:"header-top",wrap:!1},p.createElement(m.Z,{span:20,className:"header-col"},p.createElement("div",{style:{float:"left"}},p.createElement(t?g.Z:w.Z,{className:"trigger",onClick:this.toggle})),p.createElement(b.default,this.props)),p.createElement(m.Z,{span:1,style:{width:"100%"}},p.createElement(E.Z,null)),p.createElement(m.Z,{span:1,style:{width:"100%"}},p.createElement(Z.Z,null)),p.createElement(m.Z,{span:2},p.createElement(x.default,null))))}}]),o}(p.PureComponent),C=L,S=r(94716),O=r(35944),P=r(31298),j=r(48769);var R=function(t){(0,l.Z)(a,t);var e,r,n=(e=a,r=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}}(),function(){var t,n=(0,f.Z)(e);if(r){var o=(0,f.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function a(){return(0,i.Z)(this,a),n.apply(this,arguments)}return(0,c.Z)(a,[{key:"render",value:function(){var t=this.props.collapsed;return p.createElement("div",null,p.createElement(P.ZP,{style:{height:"calc(100vh)"},autoHide:!0,autoHideTimeout:1e3},p.createElement("div",{className:t?"logonly":"logo-blue"},p.createElement("a",{href:"#/home"},t?p.createElement(j.Z,{src:S.Z.programName_Logo()}):p.createElement("h1",null,S.Z.programName_NavLeft()))),p.createElement(O.default,(0,o.Z)({mode:"inline",theme:"light"},this.props))))}}]),a}(p.PureComponent),N=R,I=r(49073),_=r(49611),T=r.n(_),A=r(75459);function D(){D=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function F(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return G(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)?G(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function G(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}var M=d.Z.Content,q=d.Z.Sider,B=function(t){(0,l.Z)(g,t);var e,r,n,y,m=(n=g,y=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}}(),function(){var t,e=(0,f.Z)(n);if(y){var r=(0,f.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function g(){var t;(0,i.Z)(this,g);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=m.call.apply(m,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"scrollbarRef",p.createRef()),(0,h.Z)((0,u.Z)(t),"state",{collapsed:!1,blocks:[],currentL2MenuId:void 0,currentBlockId:void 0,isImporter:!1}),(0,h.Z)((0,u.Z)(t),"findBlockTitle",(function(e){var r,n=t.state.blocks;if(e){var o,a=F(n);try{for(a.s();!(o=a.n()).done;){var i=o.value;if(i.id==e){r=i.title;break}}}catch(t){a.e(t)}finally{a.f()}}return(r?r+"-":"")+(S.Z.programName()?S.Z.programName():"111HYDROCARBON1")})),(0,h.Z)((0,u.Z)(t),"findBlockIdOfL2Menu",(function(e){var r=void 0,n=t.state.blocks;if(e){var o,a=F(n);try{for(a.s();!(o=a.n()).done;){var i,c=o.value,u=F(c.l1Menus);try{for(u.s();!(i=u.n()).done;){var l,s=F(i.value.l2Menus);try{for(s.s();!(l=s.n()).done;)if(l.value.id==e){r=c.id;break}}catch(t){s.e(t)}finally{s.f()}}}catch(t){u.e(t)}finally{u.f()}}}catch(t){a.e(t)}finally{a.f()}}return r})),(0,h.Z)((0,u.Z)(t),"findCurrentBlock",(function(){var e=t.state,r=e.blocks,n=e.currentL2MenuId,o=e.currentBlockId,a=void 0;if(n){var i,c=F(r);try{for(c.s();!(i=c.n()).done;){var u,l=i.value,s=F(l.l1Menus);try{for(s.s();!(u=s.n()).done;){var f,h=F(u.value.l2Menus);try{for(h.s();!(f=h.n()).done;)if(f.value.id==n){a=l;break}}catch(t){h.e(t)}finally{h.f()}}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}}if(o&&!a){var p,d=F(r);try{for(d.s();!(p=d.n()).done;){var v=p.value;if(v.id===o){a=v;break}}}catch(t){d.e(t)}finally{d.f()}}return a||(a=r.at(0)),a})),(0,h.Z)((0,u.Z)(t),"toggle",(function(){t.setState((function(e){return{collapsed:!t.state.collapsed}}))})),t}return(0,c.Z)(g,[{key:"componentDidMount",value:(r=(0,a.Z)(D().mark((function t(){var e,r,n,o,a,i,c,u;return D().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new URL(window.location.href),r=window.location.href.split("?")[1],n=new URLSearchParams("?"+r),o=n.get("blockId"),(a=n.get("menuId"))||(i=e.hash.match(/[\w]+\-[\d]+/))&&"menu"===(c=i[0].split("-"))[0]&&(a=c[1]),t.next=8,I.Z.requestBlocks(a||void 0,o||void 0);case 8:u=t.sent,this.setState((function(t){return{isImporter:e.hash.indexOf("/importer")>0,blocks:u.blocks,currentL2MenuId:u.l2MenuId,currentBlockId:u.blockId}}));case 10:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,a.Z)(D().mark((function t(e,r){var n,o,a,i,c,u,l,s,f,h,p;return D().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new URL(window.location.href),o=window.location.href.split("?")[1],a=new URLSearchParams("?"+o),i=a.get("blockId"),c=a.get("menuId"),u=n.hash.indexOf("/importer")>0,r.isImporter!=u&&this.setState((function(t){return{isImporter:u}})),c||(l=n.hash.match(/[\w]+\-[\d]+/))&&"menu"===(s=l[0].split("-"))[0]&&(c=s[1]),f=this.state,h=f.currentL2MenuId,p=f.currentBlockId,c&&h!=c&&this.setState((function(t){return{currentL2MenuId:c}})),i||(i=this.findBlockIdOfL2Menu(c)),i&&p!=i&&this.setState((function(t){return{currentBlockId:i}}));case 12:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"render",value:function(){var t,e,r=this.state,n=r.collapsed,a=r.currentL2MenuId,i=r.currentBlockId,c=r.isImporter;return null===(t=this.scrollbarRef)||void 0===t||null===(e=t.current)||void 0===e||e.scrollToTop(),p.createElement(P.ZP,{ref:this.scrollbarRef,style:{height:"calc(100vh)"},autoHide:!0,autoHideTimeout:1e3},p.createElement(T(),{title:(c?"导入-":"")+this.findBlockTitle(i)},p.createElement(d.Z,null,p.createElement(q,{theme:"light",style:{overflow:"auto",height:"100vh",position:"fixed",left:0,top:0,bottom:0},collapsed:n},p.createElement(N,{blockMenu:this.findCurrentBlock(),currentL2MenuId:a,collapsed:n})),p.createElement(d.Z,{style:n?{background:"#fff",marginLeft:80}:{background:"#fff",marginLeft:200}},p.createElement(C,(0,o.Z)({toggle:this.toggle},this.state)),p.createElement(M,{style:{margin:"24px 16px 0",overflow:"initial",minHeight:"calc(100vh)",minWidth:760,maxWidth:1960,paddingBottom:"8px"}},this.props.children),p.createElement(v.default,null)))))}}]),g}(p.PureComponent),V=(0,A.Z)(B)},6425:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return s}});var n=r(90237),o=r(65337),a=r(39576),i=r(61378),c=r(69905),u=r(67294);var l=r(97183).Z.Footer,s=function(t){(0,a.Z)(f,t);var e,r,s=(e=f,r=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}}(),function(){var t,n=(0,c.Z)(e);if(r){var o=(0,c.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,i.Z)(this,t)});function f(){return(0,n.Z)(this,f),s.apply(this,arguments)}return(0,o.Z)(f,[{key:"render",value:function(){return u.createElement(l,{style:{textAlign:"center"}},u.createElement("div",{className:"footer"},"Enterprise Applications ©2022 Created by 旷识科技"))}}]),f}(u.Component)},80455:function(t,e,r){"use strict";r.r(e);var n=r(90237),o=r(65337),a=r(95225),i=r(39576),c=r(61378),u=r(69905),l=r(15274),s=r(67294),f=r(8505),h=r(30826),p=r(73213);function d(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return v(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)?v(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function v(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}var y=function(t){(0,i.Z)(y,t);var e,r,v=(e=y,r=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}}(),function(){var t,n=(0,u.Z)(e);if(r){var o=(0,u.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,c.Z)(this,t)});function y(t){var e;return(0,n.Z)(this,y),e=v.call(this,t),(0,l.Z)((0,a.Z)(e),"renderBlockMenu",(function(t){return s.createElement(f.Z,null,p.Z.renderL1Menu(t.l1Menus,null))})),(0,l.Z)((0,a.Z)(e),"findBlockId",(function(t,e){var r,n=void 0,o=d(t);try{for(o.s();!(r=o.n()).done;){var a,i=r.value,c=d(i.l1Menus);try{for(c.s();!(a=c.n()).done;){var u,l=d(a.value.l2Menus);try{for(l.s();!(u=l.n()).done;)if(u.value.id===e)return n=i.id}catch(t){l.e(t)}finally{l.f()}}}catch(t){c.e(t)}finally{c.f()}}}catch(t){o.e(t)}finally{o.f()}return n})),e}return(0,o.Z)(y,[{key:"render",value:function(){var t=this,e=this.props,r=e.currentBlockId,n=e.blocks,o=e.currentL2MenuId;if(!n||n.length<1)return s.createElement(s.Fragment,null);var a=r;return o&&!a&&(a=this.findBlockId(n,o)),a||(a=n.at(0).id),n.map((function(e,r){return s.createElement("div",{key:r,className:"".concat(e.id==a?"active":""," header-block")},s.createElement(h.Z,{overlay:t.renderBlockMenu(e)},s.createElement("a",{className:"dropdown-link",rel:"noopener noreferrer"},e.title)))}))}}]),y}(s.PureComponent);e.default=y},89626:function(t,e,r){"use strict";var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(8505),d=r(44644),v=r(30826),y=r(89317),m=(r(32733),r(49811)),g=r(79655),w=r(49073),b=r(94716);function Z(){Z=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:x(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,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=f(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 k(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,k(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new E(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function E(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return x(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)?x(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function x(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}var k=function(t){(0,u.Z)(k,t);var e,r,n,x=(r=k,n=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}}(),function(){var t,e=(0,s.Z)(r);if(n){var o=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function k(){var t;(0,a.Z)(this,k);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=x.call.apply(x,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{messageBars:void 0,anyState:!1}),(0,f.Z)((0,c.Z)(t),"renderMessageBar",(function(t){var e=0,r=h.createElement(p.Z,{key:1},t.map((function(t,r){t.count&&(e+=t.count);var n="";return t.l2Menu.defaultCriteriaValue&&(n="&"+b.Z.transQueryParamsToStr(t.l2Menu.defaultCriteriaValue)),h.createElement(p.Z.Item,{key:r},h.createElement(g.OL,{to:"/".concat(t.l2Menu.id,"/act-table?menuId=").concat(t.l2Menu.id).concat(n)},t.l2Menu.title,h.createElement(d.Z,{count:t.count,overflowCount:99,offset:[2,-2],size:"small"})))})));if(t&&0!=t.length){if(1==t.length){var n=t[0],o=n.l2Menu,a="";return o.defaultCriteriaValue&&(a="&"+b.Z.transQueryParamsToStr(o.defaultCriteriaValue)),h.createElement("div",{className:"message-bar"},h.createElement("a",{href:o.customPath?"/page/".concat(o.id).concat(o.customPath,"?menuId=").concat(o.id):"#/".concat(o.id,"/act-table?menuId=").concat(o.id).concat(a),className:"head-example"},h.createElement(d.Z,{count:n.count,overflowCount:99,offset:[8,-2]},h.createElement("span",{style:{fontSize:"20px",color:"#08c"}},h.createElement(y.Z,null)))))}return h.createElement(v.Z,{overlay:r,placement:"bottomCenter"},h.createElement("div",{className:"message-bar"},h.createElement(d.Z,{count:e,overflowCount:99,offset:[8,-2]},h.createElement("span",{style:{fontSize:"20px",color:"#08c"}},h.createElement(y.Z,null)))))}})),t}return(0,i.Z)(k,[{key:"componentDidMount",value:(e=(0,o.Z)(Z().mark((function t(){var e,r,n,a,i,c=this;return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.Z.messageMenus();case 2:e=t.sent,r=[],n=E(e),t.prev=5,i=Z().mark((function t(){var e,n,i;return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.value,n={l2Menu:e,count:0},setInterval((0,o.Z)(Z().mark((function t(){var r;return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m.Z.requestLtmplCount(e.id);case 2:r=t.sent,n.count=r,c.setState({anyState:!c.state.anyState});case 5:case"end":return t.stop()}}),t)}))),18e4),t.next=6,m.Z.requestLtmplCount(e.id);case 6:i=t.sent,n.count=i,r.push(n);case 9:case"end":return t.stop()}}),t)})),n.s();case 8:if((a=n.n()).done){t.next=12;break}return t.delegateYield(i(),"t0",10);case 10:t.next=8;break;case 12:t.next=17;break;case 14:t.prev=14,t.t1=t.catch(5),n.e(t.t1);case 17:return t.prev=17,n.f(),t.finish(17);case 20:this.setState({messageBars:r});case 21:case"end":return t.stop()}}),t,this,[[5,14,17,20]])}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.messageBars;return h.createElement(h.Fragment,null,t?this.renderMessageBar(t):"")}}]),k}(h.PureComponent);e.Z=k},38616:function(t,e,r){"use strict";var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(8505),d=r(30826),v=r(99160),y=r(19650),m=r(71577),g=r(5405),w=(r(32733),r(49073)),b=r(70832);function Z(){Z=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:x(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,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=f(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 k(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,k(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new E(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function E(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return x(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)?x(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function x(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}var k=function(t){(0,u.Z)(k,t);var e,r,n,x=(r=k,n=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}}(),function(){var t,e=(0,s.Z)(r);if(n){var o=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function k(){var t;(0,a.Z)(this,k);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=x.call.apply(x,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{quickBars:void 0,anyState:!1,currentId:void 0,showDraw:!1}),(0,f.Z)((0,c.Z)(t),"showDraw",(function(e){t.setState({currentId:e,showDraw:!0})})),(0,f.Z)((0,c.Z)(t),"closeDrawer",(function(){t.setState({showDraw:!1})})),(0,f.Z)((0,c.Z)(t),"renderQuickBar",(function(e){var r=h.createElement(p.Z,{key:1},e.map((function(e,r){return e.count&&e.count,h.createElement(p.Z.Item,{key:r},h.createElement("span",{onClick:function(){return t.showDraw(e.l2Menu.id)}},e.l2Menu.title))})));if(e&&0!=e.length){if(1==e.length){var n=e[0];return n.l2Menu,h.createElement("div",{className:"message-bar",onClick:function(){return t.showDraw(n.l2Menu.id)}},h.createElement("span",{style:{fontSize:"20px",color:"#08c"}},h.createElement(g.Z,null)))}return h.createElement(d.Z,{overlay:r,placement:"bottomCenter"},h.createElement("div",{className:"message-bar"},h.createElement("span",{style:{fontSize:"20px",color:"#08c"}},h.createElement(g.Z,null))))}})),t}return(0,i.Z)(k,[{key:"componentDidMount",value:(e=(0,o.Z)(Z().mark((function t(){var e,r,n,o,a,i;return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.Z.quickEntranceMenus();case 2:e=t.sent,r=[],n=E(e);try{for(n.s();!(o=n.n()).done;)a=o.value,i={l2Menu:a,count:0},r.push(i)}catch(t){n.e(t)}finally{n.f()}this.setState({quickBars:r});case 7:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.state,e=t.quickBars,r=t.showDraw,n=t.currentId;return h.createElement(h.Fragment,null,e?this.renderQuickBar(e):"",h.createElement(v.Z,{placement:"left",title:"快捷查询",closable:!0,mask:!1,onClose:this.closeDrawer,open:r,width:"calc(100% - 280px)",style:{maxWidth:1960},extra:h.createElement(y.Z,null,h.createElement(m.ZP,{onClick:this.closeDrawer},"关闭"))},h.createElement(b.default,{sourceId:n})))}}]),k}(h.PureComponent);e.Z=k},35944:function(t,e,r){"use strict";r.r(e);var n=r(30698),o=r(20511),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(8505),d=r(73213),v=["blockMenu","collapsed","currentL2MenuId","basePath"];var y=function(t){(0,u.Z)(m,t);var e,r,y=(e=m,r=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}}(),function(){var t,n=(0,s.Z)(e);if(r){var o=(0,s.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,l.Z)(this,t)});function m(t){var e;return(0,a.Z)(this,m),e=y.call(this,t),(0,f.Z)((0,c.Z)(e),"handleOpen",(function(t){t&&t.length>1&&t.splice(0,1),e.setState({openKeys:t})})),e.state={openKeys:[]},e}return(0,i.Z)(m,[{key:"componentDidMount",value:function(){var t=this.props,e=t.currentL2MenuId,r=t.blockMenu,n=(t.collapsed,this.state.openKeys),o=r?d.Z.findOpenId(r.l1Menus,e):void 0;o&&n.length<1&&this.setState({openKeys:[o.toString()]})}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.currentL2MenuId,n=e.blockMenu,o=(e.collapsed,t.currentL2MenuId),a=t.blockMenu;if(this.state.openKeys,a&&n&&n.id==a.id){var i=n?d.Z.findOpenId(n.l1Menus,r):void 0,c=n?d.Z.findOpenId(a.l1Menus,o):void 0;(!c&&i||i&&i!=c)&&this.setState({openKeys:[i]})}else{var u=n?d.Z.findOpenId(n.l1Menus,r):void 0;u&&this.setState({openKeys:[u]})}}},{key:"render",value:function(){var t=this.props,e=t.blockMenu,r=t.collapsed,a=t.currentL2MenuId,i=t.basePath,c=(0,o.Z)(t,v),u=this.state.openKeys;return h.createElement(p.Z,(0,n.Z)({},c,{onOpenChange:this.handleOpen,selectedKeys:a?[a.toString()]:void 0,openKeys:r?void 0:u}),e?d.Z.renderL1Menu(e.l1Menus,void 0,i):"")}}]),m}(h.PureComponent);e.default=y},73213:function(t,e,r){"use strict";var n=r(8505),o=r(67294),a=r(79655),i=r(94716);function c(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u(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)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function u(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}var l=n.Z.SubMenu;e.Z={renderL1Menu:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.map((function(t){if(t.l2Menus)return o.createElement(l,{title:t.title,key:t.id},r.renderL2Menu(t.l2Menus,e,n))}))},getRoutePath:function(t,e,r){if(t){var n="act-table",o="";switch(t.pageType){case"列表":n="act-table";break;case"添加":n="detail-edit",o="&codeSource=new";break;case"编辑":n="detail-edit",o="&codeSource=listop";break;case"编辑或添加":n="detail-edit",o="&codeSource=listop-new";break;case"详情":n="detail-view",o="&codeSource=listop"}return"".concat(e,"/").concat(t.id,"/").concat(n,"?menuId=").concat(t.id).concat(o).concat(r)}return null},renderL2Menu:function(t,e){var r=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.map((function(t){var u="/",l=t.customPath;l&&(l.startsWith("/")||l.startsWith("\\"))&&(u="");var s="";t.defaultCriteriaValue&&(s="&"+i.Z.transQueryParamsToStr(t.defaultCriteriaValue));var f=l?"".concat(c,"/page/").concat(t.id).concat(u).concat(l,"?menuId=").concat(t.id):r.getRoutePath(t,c,s);return o.createElement(n.Z.Item,{key:t.id},o.createElement(a.OL,{to:f,target:e},t.title))}))},findOpenId:function(t,e){var r,n=void 0,o=c(t);try{for(o.s();!(r=o.n()).done;){var a,i=r.value,u=c(i.l2Menus);try{for(u.s();!(a=u.n()).done;)if(a.value.id==e)return n=i.id}catch(t){u.e(t)}finally{u.f()}}}catch(t){o.e(t)}finally{o.f()}return n}}},66701:function(t,e,r){"use strict";r.r(e);var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(32823),d=r(71230),v=r(15746),y=r(66847),m=r(4107),g=r(71577),w=r(55241),b=r(2603),Z=r(22693),E=(r(32733),r(49811));function x(){x=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,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=f(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 k(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,k(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var k=function(t){(0,u.Z)(L,t);var e,r,n,k=(r=L,n=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}}(),function(){var t,e=(0,s.Z)(r);if(n){var o=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function L(){var t;(0,a.Z)(this,L);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=k.call.apply(k,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{showPopover:!1,pubkey:void 0,loading:!1}),(0,f.Z)((0,c.Z)(t),"formRef",h.createRef()),(0,f.Z)((0,c.Z)(t),"handleSubmit",function(){var e=(0,o.Z)(x().mark((function e(r){var n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({loading:!0}),n=t.state.pubkey,e.next=4,E.Z.resetPassword(r.oldPassword,r.newPassword,n);case 4:"success"==e.sent.status&&(p.ZP.info("密码已重置,请重新登录"),E.Z.logout()),t.setState({loading:!1});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.Z)((0,c.Z)(t),"handleBlurCapture",(function(){var e=t.formRef.current.getFieldValue("newPassword"),r=t.formRef.current.getFieldValue("reNewPassword");e&&r&&e!=r?t.formRef.current.setFields([{name:"reNewPassword",value:r,errors:["两次密码输入不一致!"]}]):t.formRef.current.setFields([{name:"reNewPassword",value:r,errors:[]}])})),(0,f.Z)((0,c.Z)(t),"getForm",(function(){var e=t.state.loading;return h.createElement(d.Z,{justify:"center",align:"middle"},h.createElement(v.Z,null,h.createElement(y.Z,{style:{width:350},ref:t.formRef,name:"normal_login",className:"login-form",onFinish:t.handleSubmit},h.createElement(y.Z.Item,{label:"原密码",name:"oldPassword",rules:[{required:!0,message:"请输入原密码!"}]},h.createElement(m.Z.Password,{placeholder:"密码",prefix:h.createElement(b.Z,{className:"site-form-item-icon"})})),h.createElement(y.Z.Item,{label:"新设密码",name:"newPassword",rules:[{required:!0,message:"请输入新密码!"}]},h.createElement(m.Z.Password,{placeholder:"新设密码",onBlurCapture:t.handleBlurCapture,prefix:h.createElement(b.Z,{className:"site-form-item-icon"})})),h.createElement(y.Z.Item,{label:"确认密码",name:"reNewPassword",rules:[{required:!0,message:"请输入确认密码!"},function(t){var e=t.getFieldValue;return{validator:function(t,r){return r&&e("newPassword")!==r?Promise.reject(new Error("两次密码输入不一致!")):Promise.resolve()}}}]},h.createElement(m.Z.Password,{placeholder:"确认密码",prefix:h.createElement(b.Z,{className:"site-form-item-icon"})})),h.createElement(y.Z.Item,null,h.createElement(d.Z,{align:"middle",gutter:32},h.createElement(v.Z,{span:12},h.createElement(g.ZP,{style:{width:"100%"},type:"primary",loading:e,onClick:function(){return t.formRef.current.submit()}},"确定")),h.createElement(v.Z,{span:12},h.createElement(g.ZP,{style:{width:"100%"},onClick:function(){t.setState({showPopover:!1})}},"取消")))))))})),t}return(0,i.Z)(L,[{key:"componentDidMount",value:(e=(0,o.Z)(x().mark((function t(){var e;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,E.Z.getRasPubkey();case 2:e=t.sent,this.setState({pubkey:e});case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this,e=this.state,r=e.showPopover;return e.loading,h.createElement(h.Fragment,null,h.createElement(w.Z,{destroyTooltipOnHide:!0,open:r,overlayStyle:{maxWidth:"400px"},title:"修改密码",placement:"leftBottom",trigger:"click",content:this.getForm()},h.createElement("span",{onClick:function(){t.setState({showPopover:!r})}}," ",h.createElement(Z.Z,null),"修改密码")))}}]),L}(h.PureComponent);e.default=k},96277:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return A}});var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(71230),d=r(15746),v=r(8505),y=r(30826),m=r(53807),g=r(47759),w=r(26271),b=r(72850),Z=r(55035),E=r(94e3),x=r(89366),k=r(49811),L=r(49073),C=r(27053),S=r(42638);function O(){O=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var P=function(t){(0,u.Z)(d,t);var e,r,n,p=(r=d,n=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}}(),function(){var t,e=(0,s.Z)(r);if(n){var o=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function d(){var t;(0,a.Z)(this,d);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=p.call.apply(p,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{showDraw:!1}),(0,f.Z)((0,c.Z)(t),"showDraw",(function(){t.setState({showDraw:!0})})),(0,f.Z)((0,c.Z)(t),"closeDrawer",(function(){t.setState({showDraw:!1})})),t}return(0,i.Z)(d,[{key:"componentDidMount",value:(e=(0,o.Z)(O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.showDraw;return h.createElement(h.Fragment,null,h.createElement("span",{onClick:this.showDraw},h.createElement(C.Z,null),"个人信息"),t?h.createElement(S.Z,{title:"个人信息",width:"calc(100% - 280px)",sourceId:"0",open:t,code:"userCode",onClose:this.closeDrawer}):null)}}]),d}(h.PureComponent),j=P,R=r(66701);function N(){N=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function I(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 _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I(Object(r),!0).forEach((function(e){(0,f.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var T=function(t){(0,u.Z)(S,t);var e,r,n,C=(r=S,n=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}}(),function(){var t,e=(0,s.Z)(r);if(n){var o=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function S(){var t;(0,a.Z)(this,S);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=C.call.apply(C,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{id:void 0,name:void 0,roles:[],context:void 0}),(0,f.Z)((0,c.Z)(t),"cleanCache",(function(){var e=t.state.roles,r=document.getElementById("ajaxLoading");r.style.display="block",L.Z.reload(e),r.style.display="none"})),(0,f.Z)((0,c.Z)(t),"getContext",(function(){var e=t.state.context;return e?(console.log("context",e),h.createElement(h.Fragment,null,e.map((function(t){return h.createElement(p.Z,null,h.createElement(d.Z,null,t.label," : ",t.content))})))):"无"})),(0,f.Z)((0,c.Z)(t),"toSetContext",(function(){window.location.hash="#/context-setter"})),(0,f.Z)((0,c.Z)(t),"getTitle",(function(){var e=t.state,r=e.name,n=e.context;return h.createElement(h.Fragment,null,h.createElement("p",null,r),n?n.map((function(t){return h.createElement("p",null,t.label," : ",t.content)})):null)})),t}return(0,i.Z)(S,[{key:"componentDidMount",value:(e=(0,o.Z)(N().mark((function t(){var e,r;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,k.Z.getUser();case 2:return e=t.sent,t.next=5,k.Z.getContextSourceValue();case 5:r=t.sent,this.setState(_({context:r},e));case 7:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.state,e=t.name,r=t.context,n=t.roles,o=e?h.createElement(v.Z,{style:{minWidth:"100px"}},h.createElement(v.Z.Item,null,h.createElement(j,null)),r&&r.length>0?h.createElement(v.Z.Item,null,h.createElement("span",{onClick:this.toSetContext},h.createElement(w.Z,null),"全局配置")):null,h.createElement(v.Z.Item,null,h.createElement(R.default,null)),n&&n.indexOf("admin")>=0?h.createElement(v.Z.Item,null,h.createElement("span",{onClick:this.cleanCache},h.createElement(b.Z,null),"清空缓存")):null,h.createElement(v.Z.Item,null,h.createElement("span",{onClick:k.Z.logout},h.createElement(Z.Z,null),"退出登录"))):h.createElement(v.Z,null,h.createElement(v.Z.Item,null,h.createElement("span",{onClick:k.Z.logout},h.createElement(E.Z,null),"登录"))," ");return h.createElement(h.Fragment,null,h.createElement(y.Z,{overlay:o,placement:"bottomRight",trigger:["click"]},h.createElement("div",{className:"userLogin"},h.createElement(m.Z,{placement:"left",title:this.getTitle()},h.createElement(g.C,{className:"loginAvatar",icon:h.createElement(x.Z,null),size:"large"})))))}}]),S}(h.PureComponent),A=T},28520:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return s}});var n=r(90237),o=r(65337),a=r(39576),i=r(61378),c=r(69905),u=r(67294),l=r(85932);var s=function(t){(0,a.Z)(f,t);var e,r,s=(e=f,r=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}}(),function(){var t,n=(0,c.Z)(e);if(r){var o=(0,c.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,i.Z)(this,t)});function f(){return(0,n.Z)(this,f),s.apply(this,arguments)}return(0,o.Z)(f,[{key:"render",value:function(){return u.createElement(l.default,this.props)}}]),f}(u.PureComponent)},85932:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return L}});var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(71577),d=r(57564),v=r(98053),y=r(99160),m=r(19650),g=r(35137),w=r(53984),b=r(49073),Z=r(94716),E=r(49811),x=r(62508);function k(){k=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var L=function(t){(0,u.Z)(S,t);var e,r,n,L,C=(n=S,L=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}}(),function(){var t,e=(0,s.Z)(n);if(L){var r=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function S(){var t;(0,a.Z)(this,S);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=C.call.apply(C,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"formRef",h.createRef()),(0,f.Z)((0,c.Z)(t),"autoSaveTimer",-1e15),(0,f.Z)((0,c.Z)(t),"autoSaveInterval",void 0),(0,f.Z)((0,c.Z)(t),"onClickBody",(function(e){t.autoSaveTimer=0})),(0,f.Z)((0,c.Z)(t),"state",{id:"modelDtmplEdit"+Z.Z.getRandomNum(6),dtmplConfig:void 0,loading:!0,serial:1,dtmplData:void 0}),(0,f.Z)((0,c.Z)(t),"loadConfigData",(0,o.Z)(k().mark((function e(){var r,n,o,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.sourceId,r.open,o=r.code,t.setState({loading:!0}),a=void 0,!o){e.next=9;break}return e.next=6,b.Z.requestDtmplConfig(n);case 6:a=e.sent,e.next=12;break;case 9:return e.next=11,b.Z.requestAddDtmplConfig(n);case 11:a=e.sent;case 12:return a.authSaveInterval&&a.authSaveInterval>0&&(t.autoSaveInterval&&clearInterval(t.autoSaveInterval),t.autoSaveInterval=setInterval((function(){t.autoSaveTimer>=a.authSaveInterval?(t.autoSaveTimer=-1e15,t.doSubmit(void 0)):t.autoSaveTimer=t.autoSaveTimer+1}),1e3)),e.next=15,t.loadData(a);case 15:t.setState({dtmplConfig:a,loading:!1});case 16:case"end":return e.stop()}}),e)})))),(0,f.Z)((0,c.Z)(t),"loadData",function(){var e=(0,o.Z)(k().mark((function e(r){var n,o,a,i,c;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props,o=n.sourceId,a=n.code,i=n.defaultDtmplData,n.open){e.next=3;break}return e.abrupt("return");case 3:if(!a){e.next=11;break}return t.setState({loading:!0}),e.next=7,E.Z.requestDtmplData(o,a,null);case 7:c=e.sent,t.setState({dtmplData:c,id:a,loading:!1}),e.next=12;break;case 11:i?t.setState({dtmplData:i,loading:!1}):t.setState({dtmplData:{code:void 0,title:void 0,fieldMap:{},arrayMap:{}},loading:!1});case 12:setTimeout((function(){return t.onValuesChange()}),300);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.Z)((0,c.Z)(t),"onValuesChange",(function(){t.setState({serial:t.state.serial+1})})),(0,f.Z)((0,c.Z)(t),"doSubmit",(function(e,r,n){var o=t.props.mainCode;e&&t.formRef.current.setFieldsValue({actionId:e}),o&&t.formRef.current.setFieldsValue({mainCode:o}),n&&t.formRef.current.setFieldsValue(n),t.formRef.current.submit()})),(0,f.Z)((0,c.Z)(t),"getFooter",(function(){var e=t.props.onCancel,r=t.state,n=(r.dtmplData,r.serial),o=[];o.unshift(h.createElement(p.ZP,{type:"primary",onClick:function(){return t.doSubmit()}},"保 存"));var a=t.state.dtmplConfig;return a&&a.actions.forEach((function(e,r){o.unshift(h.createElement(x.Z,{iconType:"icon-title",hiddenType:"disabled",serial:n,key:e.id,formRef:t.formRef,actionConfig:e,doAction:t.doSubmit}))})),o.unshift(h.createElement(d.Z,{key:"back",placement:"topLeft",title:"确定要取消本次修改内容吗?",onConfirm:e,okText:"确定",cancelText:"取消"},h.createElement(p.ZP,null,"取 消"))),o})),t}return(0,i.Z)(S,[{key:"componentDidMount",value:(r=(0,o.Z)(k().mark((function t(){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.props.open){t.next=3;break}return t.next=3,this.loadConfigData();case 3:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,o.Z)(k().mark((function t(e){var r;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.state.dtmplConfig,!e||e==this.props){t.next=9;break}if(e.sourceId==this.props.sourceId&&null!=r){t.next=7;break}return t.next=5,this.loadConfigData();case 5:t.next=9;break;case 7:return t.next=9,this.loadData(r);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.autoSaveInterval&&clearInterval(this.autoSaveInterval)}},{key:"render",value:function(){var t=this.props,e=t.height,r=t.onOk,n=t.onCancel,o=(t.code,t.bodyWidth),a=t.sourceId,i=t.open,c=t.mainCode,u=t.width,l=t.pageType,s=t.placement,f=t.maxColsOnRow,p=t.title,d=this.state,b=d.dtmplConfig,Z=d.id,E=d.dtmplData,x=p||(b?b.title:"");return h.createElement(h.Fragment,null," ","modal"==l?h.createElement(v.Z,{open:i,width:u,title:x,closable:!1,bodyStyle:{height:e,width:o,overflow:"auto"},destroyOnClose:!0,centered:!0,onCancel:n,footer:this.getFooter()},i," ",h.createElement("div",{onClick:this.onClickBody},h.createElement(w.Z,{mainCode:c,parentId:Z,dtmplConfig:b,formRef:this.formRef,sourceId:a,onFinish:r,maxColsOnRow:f,showConfirm:!1,dtmplData:E,onValuesChange:this.onValuesChange}))):"drawer"==l?h.createElement(y.Z,{title:x,placement:s,closable:!0,mask:!1,onClose:n,open:i,width:u,style:{maxWidth:1960},extra:h.createElement(m.Z,null,this.getFooter())},h.createElement(w.Z,{mainCode:c,parentId:Z,dtmplConfig:b,formRef:this.formRef,sourceId:a,onFinish:r,maxColsOnRow:f,showConfirm:!1,dtmplData:E,onValuesChange:this.onValuesChange})):h.createElement(g.Z,{title:x},h.createElement(w.Z,{mainCode:c,parentId:Z,dtmplConfig:b,formRef:this.formRef,sourceId:a,onFinish:r,maxColsOnRow:f,showConfirm:!1,dtmplData:E,onValuesChange:this.onValuesChange})))}}]),S}(h.PureComponent);(0,f.Z)(L,"defaultProps",{showConfirm:!0,height:500,width:1250,bodyWidth:"100%",forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},okText:"确定",cancelText:"取消",pageType:"modal",placement:"left"})},26112:function(t,e,r){"use strict";r.r(e);var n=r(90237),o=r(65337),a=r(95225),i=r(39576),c=r(61378),u=r(69905),l=r(15274),s=r(67294),f=r(28202),h=r(28520);var p=function(t){(0,i.Z)(d,t);var e,r,p=(e=d,r=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}}(),function(){var t,n=(0,u.Z)(e);if(r){var o=(0,u.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,c.Z)(this,t)});function d(){var t;(0,n.Z)(this,d);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t=p.call.apply(p,[this].concat(r)),(0,l.Z)((0,a.Z)(t),"state",{showDtmplEdit:!1}),(0,l.Z)((0,a.Z)(t),"goDtmpl",(function(){t.setState({showDtmplEdit:!0})})),(0,l.Z)((0,a.Z)(t),"handleDtmplEdit",(function(e){t.setState({showDtmplEdit:!1})})),t}return(0,o.Z)(d,[{key:"render",value:function(){var t=this,e=this.state.showDtmplEdit,r=this.props,n=r.sourceId,o=r.code,a=r.mainCode;return s.createElement(s.Fragment,null,s.createElement(f.Z,{goDtmpl:this.goDtmpl,sourceId:n,code:o,mainCode:a}),e?s.createElement(h.default,{open:e,onCancel:function(){t.setState({showDtmplEdit:!1})},sourceId:n,code:o,onOk:this.handleDtmplEdit}):null)}}]),d}(s.PureComponent);e.default=p},42638:function(t,e,r){"use strict";var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(99160),d=r(19650),v=r(71577),y=r(26112);function m(){m=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:x(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(O([])));w&&w!==e&&r.call(w,i)&&(y=w);var b=v.prototype=p.prototype=Object.create(y);function Z(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,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=f(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 k(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,k(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(b,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},Z(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new E(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},Z(b),l(b,u,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var g=function(t){(0,u.Z)(w,t);var e,r,n,g=(r=w,n=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}}(),function(){var t,e=(0,s.Z)(r);if(n){var o=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function w(){var t;(0,a.Z)(this,w);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=g.call.apply(g,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{}),t}return(0,i.Z)(w,[{key:"componentDidMount",value:(e=(0,o.Z)(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.title,r=t.sourceId,n=t.code,o=t.placement,a=t.open,i=t.onClose,c=t.width,u=t.cancelText;return h.createElement(p.Z,{placement:o,title:e,closable:!0,mask:!1,onClose:i,open:a,width:c,style:{maxWidth:1960},extra:h.createElement(d.Z,null,h.createElement(v.ZP,{onClick:function(){return i()}},u))},h.createElement(y.default,{sourceId:r,code:n}))}}]),w}(h.PureComponent);(0,f.Z)(g,"defaultProps",{height:500,width:1250,forceRender:!0,cancelText:"关闭",placement:"left",open:!1}),e.Z=g},70832:function(t,e,r){"use strict";r.r(e);var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(94716),d=r(34363),v=r(49073),y=r(24019),m=r(85932),g=r(99160),w=r(19650),b=r(71577),Z=r(7935);function E(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 x(){x=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,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=f(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 k(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,k(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var k=function(t){(0,u.Z)(C,t);var e,r,n,k,L=(n=C,k=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}}(),function(){var t,e=(0,s.Z)(n);if(k){var r=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function C(){var t;(0,a.Z)(this,C);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=L.call.apply(L,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{ltmplConfigRes:void 0,pageNo:void 0,pageSize:void 0,criteriaData:void 0,showDtmplView:!1,showDtmplEdit:!1,showDtmplCustomEdit:!1,selectedCode:void 0,showDraw:!1,ractionId:void 0,collapse:!1}),(0,f.Z)((0,c.Z)(t),"loadLtmplConfig",(0,o.Z)(x().mark((function e(){var r,n,o,a;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.sourceId,e.next=3,v.Z.requestLtmplConfig(r);case 3:(n=e.sent)&&(a=n.ltmplConfig.defaultCriteriaValue)&&(o=t.toCriteriaData(a)),t.setState({ltmplConfigRes:n,criteriaData:o});case 6:case"end":return e.stop()}}),e)})))),(0,f.Z)((0,c.Z)(t),"toCriteriaData",(function(t){var e={};if(t)for(var r in t)e[r]=p.Z.configParamTrans(t[r]);return e.sequence=p.Z.getRandomNum(6),e})),(0,f.Z)((0,c.Z)(t),"showView",(function(e){t.setState({selectedCode:e,showDtmplView:!0})})),(0,f.Z)((0,c.Z)(t),"doEdit",(function(e,r,n){var o=t.props.doCustomEdit;n?o?o(e,r,(function(){t.doSearch(t.state.criteriaData)})):t.setState({selectedCode:e,showDtmplCustomEdit:!0}):t.setState({selectedCode:e,showDtmplEdit:!0})})),(0,f.Z)((0,c.Z)(t),"doRAction",(function(e,r){t.setState({selectedCode:r,showDraw:!0,ractionId:e})})),(0,f.Z)((0,c.Z)(t),"doCreate",(function(e){var r=t.props.doCustomCreate;e?r?r((function(){t.doSearch(t.state.criteriaData)})):t.setState({selectedCode:null,showDtmplCustomEdit:!0}):t.setState({selectedCode:null,showDtmplEdit:!0})})),(0,f.Z)((0,c.Z)(t),"closeDrawer",(function(){t.setState({showDraw:!1})})),(0,f.Z)((0,c.Z)(t),"doSearch",(function(e){var r=t.props,n=r.sourceId,o=r.mainCode,a=r.collapsible,i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach((function(e){(0,f.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e);o&&(i.mainCode=o),i.sourceId=n,a&&t.setState({collapse:!1}),t.setState({criteriaData:t.toCriteriaData(i)})})),(0,f.Z)((0,c.Z)(t),"onChangePage",(function(e,r){t.setState({pageNo:e,pageSize:r})})),(0,f.Z)((0,c.Z)(t),"handleDtmplEdit",(function(e){t.doSearch(t.state.criteriaData),t.setState({showDtmplEdit:!1})})),t}return(0,i.Z)(C,[{key:"componentDidMount",value:(r=(0,o.Z)(x().mark((function t(){var e,r,n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.loadLtmplConfig(),e=this.props,r=e.collapsible,n=e.initCollapse,r&&this.setState({collapse:n});case 3:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,o.Z)(x().mark((function t(e){var r,n,o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this.props,n=r.sourceId,o=r.mainCode,e&&e.sourceId==n?o&&e.mainCode!=o&&this.loadLtmplConfig():this.loadLtmplConfig();case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this,e=this.state,r=e.ltmplConfigRes,n=e.criteriaData,o=e.pageSize,a=e.pageNo,i=e.showDtmplView,c=e.selectedCode,u=e.showDtmplEdit,l=e.showDtmplCustomEdit,s=e.ractionId,f=e.showDraw,p=e.collapse,v=this.props,E=v.sourceId,x=v.mainCode,k=v.showView,L=v.doSearch,S=v.doRAction,O=v.funcMode,P=v.title,j=v.collapsible,R=v.initCollapse,N=v.doCustomEdit,I=v.doCustomCreate;if(r){var _=r.ltmplConfig,T=_.buttons,A=_.customEditPagePath;return h.createElement(h.Fragment,null,h.createElement(d.default,{pageSize:o,pageNo:a,onChangePage:this.onChangePage,collapsible:j,initCollapse:R&&p,title:P,funcMode:O,mainCode:x,showView:k||this.showView,doRAction:S||this.doRAction,doSearch:L||this.doSearch,doEdit:this.doEdit,doCreate:this.doCreate,sourceId:E,criteriaData:n,customEditable:!!N,customCreatable:!!I,ltmplConfig:r.ltmplConfig}),T.includes("detail")&&i?h.createElement(y.Z,{open:i,onCancel:function(){t.setState({showDtmplView:!1})},mainCode:x,sourceId:E,code:c}," "):"",(T.includes("dtmplEdit")||T.includes("dtmplAdd"))&&u?h.createElement(m.default,{open:u,onCancel:function(){t.setState({showDtmplEdit:!1})},sourceId:E,mainCode:x,code:c,onOk:this.handleDtmplEdit}):"",l?h.createElement(Z.Z,{open:l,onOk:function(){t.doSearch(t.state.criteriaData),t.setState({showDtmplCustomEdit:!1})},customPath:A,sourceId:E,mainCode:x,code:c}):"",h.createElement(g.Z,{placement:"left",title:"关联查询",closable:!0,mask:!1,onClose:this.closeDrawer,open:f,width:"calc(100% - 280px)",style:{maxWidth:1960},extra:h.createElement(w.Z,null,h.createElement(b.ZP,{onClick:this.closeDrawer},"关闭"))},h.createElement(C,{sourceId:s,mainCode:c})))}return h.createElement(h.Fragment,null)}}]),C}(h.PureComponent);(0,f.Z)(k,"defaultProps",{collapsible:!1,initCollapse:!1}),e.default=k},28714:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return q}});var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),l=r(61378),s=r(69905),f=r(15274),h=r(67294),p=r(9676),d=r(16321),v=r(32823),y=r(35697),m=r(71577),g=r(71230),w=r(15746),b=r(35137),Z=r(63807),E=r(98879),x=r(58900),k=r(55241),L=r(59879),C=r(84391),S=r(24616),O=r(38763),P=r(94716),j=r(49073);function R(){R=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function N(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return I(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)?I(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function I(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}var _=p.Z.Group,T=["INFO","SUC","ERROR","WARN"],A=d.Z.Text,D=function(t){(0,u.Z)(I,t);var e,r,n,d=(r=I,n=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}}(),function(){var t,e=(0,s.Z)(r);if(n){var o=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function I(){var t;(0,a.Z)(this,I);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=d.call.apply(d,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{maxMsgCount:100,inputMaxMsgCount:100,importStatus:"waitingFile",importFile:void 0,logs:[],percent:0,statusMsg:void 0,logSetterOpen:!1,showLogLevelList:[].concat(T),logSerialId:void 0,ltmplConfig:void 0}),(0,f.Z)((0,c.Z)(t),"timerId",void 0),(0,f.Z)((0,c.Z)(t),"handleUpload",(function(){var e=t.props.sourceId,r=t.state.importFile,n=new FormData;n.append("file",r),n.append("sourceId",e.toString()),O.Z.super({url:"/v3/ltmpl/importer",method:"POST",data:n},"formdata").then((function(e){"success"===e.status?(t.setState({importStatus:"importing"}),t.timerId=setInterval((function(){return t.handleStatus(e.importId)}),500)):(v.ZP.error("失败!"),t.setState({importStatus:"fail"}))}))})),(0,f.Z)((0,c.Z)(t),"handleStopImport",(function(){t.setState({importStatus:"stop"})})),(0,f.Z)((0,c.Z)(t),"handleStatus",(function(e){var r=t.state,n=r.maxMsgCount,o=r.importStatus;O.Z.super({url:"/v3/importer/status",method:"GET",query:{importId:e,msgIndex:0,maxMsgCount:n,interrupted:"stop"==o}},"","none").then((function(e){var r,n=[],a=N(e.messageSequence.messages);try{for(a.s();!(r=a.n()).done;){var i=r.value,c="",u="",l=P.Z.formateDate(i.createTime);"SUC"===i.type?(c="green",u="成功"):"INFO"===i.type?(c="black",u="常规"):"ERROR"===i.type?(c="red",u="错误"):"WARN"===i.type&&(c="rgb(250, 225, 4)",u="警告");var s=h.createElement("div",null,h.createElement("p",null,l),h.createElement("p",{style:{color:c}},"【".concat(u,"】")+i.text));n.push({level:i.type,msg:s})}}catch(t){a.e(t)}finally{a.f()}t.setState({statusMsg:e.message,percent:Math.floor(e.current/e.totalCount*100),logs:n}),!0===e.completed&&(clearInterval(t.timerId),v.ZP.success("导入完成!"),t.setState({importStatus:"success"})),"stop"==o&&clearInterval(t.timerId)}))})),(0,f.Z)((0,c.Z)(t),"onChangeShowLogLevelList",(function(e){t.setState({showLogLevelList:e})})),(0,f.Z)((0,c.Z)(t),"fresh",(function(){})),(0,f.Z)((0,c.Z)(t),"handleLogSetter",(function(){var e=t.state.inputMaxMsgCount;t.setState({maxMsgCount:e,logSetterOpen:!1}),v.ZP.success("设置成功!")})),(0,f.Z)((0,c.Z)(t),"changeLogSetterOpen",(function(e){t.setState({logSetterOpen:e})})),t}return(0,i.Z)(I,[{key:"componentDidMount",value:(e=(0,o.Z)(R().mark((function t(){var e,r;return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props.sourceId,t.next=3,j.Z.requestLtmplConfig(e);case 3:r=t.sent,this.setState({ltmplConfig:r.ltmplConfig});case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.timerId&&clearInterval(this.timerId)}},{key:"render",value:function(){var t,e=this,r=this.state,n=r.ltmplConfig,o=r.importFile,a=r.maxMsgCount,i=r.percent,c=r.importStatus,u=r.showLogLevelList,l=r.logSetterOpen,s=[],f=N(r.logs);try{for(f.s();!(t=f.n()).done;){var d=t.value;u.includes(d.level)&&s.push(d.msg)}}catch(t){f.e(t)}finally{f.f()}var v={accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/vnd.ms-excel",onChange:function(){},onRemove:function(t){e.setState({importFile:void 0,importStatus:"waitingFile",percent:0})},beforeUpload:function(t){return e.setState({percent:0,importFile:t,importStatus:"fileSelected"}),!1},fileList:o?[o]:void 0},O=h.createElement("div",null,h.createElement("label",null,"日志消息数上限:"),h.createElement(y.Z,{defaultValue:a,onChange:function(t){return e.setState({inputMaxMsgCount:t})}}),h.createElement(m.ZP,{type:"primary",style:{marginLeft:"10px"},onClick:this.handleLogSetter},"确定"));return h.createElement("div",{className:"importData"},h.createElement("h3",null,"导入 -> ",n?n.title:"",h.createElement("p",{className:"fr"},h.createElement(m.ZP,{className:"hoverbig",title:"刷新",onClick:this.fresh},h.createElement(L.Z,null)))),h.createElement(g.Z,null,h.createElement(w.Z,{span:14,offset:5},h.createElement(b.Z,{size:"small",style:{minWidth:600}},h.createElement(Z.Z,v,h.createElement(m.ZP,null,h.createElement(C.Z,null),"选择导入文件")),h.createElement(E.Z,{percent:i,size:"small",status:"active"}),h.createElement("div",{className:"importBtns"},h.createElement(m.ZP,{type:"primary",onClick:this.handleUpload,disabled:!["fileSelected","stop"].includes(c),loading:"importing"==c},"importing"==c?"正在导入":"stop"==c?"重新导入":"开始导入"),h.createElement(m.ZP,{onClick:this.handleStopImport,disabled:"importing"!=c},"停止导入")),h.createElement(x.ZP,{header:h.createElement("div",{className:"listHeader"},h.createElement("h4",null,"导入日志"),h.createElement("div",{className:"checks"},h.createElement(_,{value:u,onChange:this.onChangeShowLogLevelList},h.createElement(p.Z,{value:"INFO",className:"infoColor"},"常规"),h.createElement(p.Z,{value:"SUC",className:"sucColor"},"成功"),h.createElement(p.Z,{value:"ERROR",className:"errorColor"},"错误"),h.createElement(p.Z,{value:"WARN",className:"warnColor"},"警告")),h.createElement("div",{className:"btns"},h.createElement(k.Z,{content:O,title:"日志设置",trigger:"click",placement:"top",open:l,overlayStyle:{width:350},onOpenChange:this.changeLogSetterOpen},h.createElement(m.ZP,{title:"日志设置",type:"primary",size:"small"},h.createElement(S.Z,null)))))),footer:h.createElement(A,{type:"fail"==c||"stop"==c?"danger":"success"},c),bordered:!0,dataSource:s,renderItem:function(t){return h.createElement(x.ZP.Item,null,t)},className:"importList"})))))}}]),I}(h.PureComponent),F=r(75459);function G(){G=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var M=function(t){(0,u.Z)(d,t);var e,r,n,p=(r=d,n=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}}(),function(){var t,e=(0,s.Z)(r);if(n){var o=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,l.Z)(this,t)});function d(){var t;(0,a.Z)(this,d);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=p.call.apply(p,[this].concat(r)),(0,f.Z)((0,c.Z)(t),"state",{}),t}return(0,i.Z)(d,[{key:"componentDidMount",value:(e=(0,o.Z)(G().mark((function t(){return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props.params.sourceId;return h.createElement(D,{sourceId:t})}}]),d}(h.PureComponent),q=(0,F.Z)(M)},75459:function(t,e,r){"use strict";var n=r(30698),o=r(48418),a=r(67294),i=r(89250),c=r(79655);e.Z=function(t){return function(e){var r=(0,i.TH)(),u=(0,i.s0)(),l=(0,i.UO)(),s=(0,c.lr)(),f=(0,o.Z)(s,2),h=f[0];return f[1],a.createElement(t,(0,n.Z)({},e,{location:r,navigate:u,params:l,searchParams:h}))}}},34363:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return Ft}});var n=r(32763),o=r(1252),a=r(59755),i=r(90237),c=r(65337),u=r(95225),l=r(39576),s=r(61378),f=r(69905),h=r(15274),p=r(67294),d=r(18430),v=r(53807),y=r(71577),m=r(19650),g=r(57564),w=r(55241),b=r(9676),Z=r(71230),E=r(15746),x=r(35137),k=r(74024),L=r(65460),C=r(42762),S=r(55287),O=r(10038),P=r(76880),j=r(68145),R=r(47389),N=r(54977),I=r(85175),_=r(82061),T=r(40110),A=r(51042),D=r(1977),F=r(84391),G=r(69753),M=r(3682),q=r(25240),B=r(20574),V=r(92570),H=r(59879),Y=r(49192),z=r(15128),U=r(49811),W=r(16739),K=r(87200),Q=r(25291),$=r(94716),J=r(95742),X=r(62748);function tt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return et(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)?et(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function et(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}var rt=(0,J.W8)((function(t){var e=t.value,r=t.index,n=t.disabledColIds;return p.createElement(E.Z,{key:r,span:24},p.createElement(b.Z,{disabled:n.includes(e.id),value:e.id},p.createElement(nt,null)," ",e.title))})),nt=(0,J.W6)((function(){return p.createElement(C.Z,{style:{cursor:"grab",color:"#999"}})})),ot=(0,J.JN)((function(t){var e=t.items,r=t.selected,n=t.onChange,o=t.disabledColIds;return p.createElement(b.Z.Group,{value:r,onChange:n},p.createElement(Z.Z,{style:{width:"148px"}},e.map((function(t,e){return p.createElement(rt,{key:"item-".concat(t.id),index:e,value:t,disabledColIds:o})}))))})),at=function(t){(0,l.Z)(o,t);var e,r,n=(e=o,r=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}}(),function(){var t,n=(0,f.Z)(e);if(r){var o=(0,f.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function o(){var t;(0,i.Z)(this,o);for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return t=n.call.apply(n,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"onChange",(function(e){var r,n=t.props,o=n.onChangeHiddenCols,a=n.columns,i=n.ignoredColIds,c=[],u=tt(a);try{for(u.s();!(r=u.n()).done;){var l=r.value;0==e.length||e.includes(l.id)||i.includes(l.id)||c.push(l.id)}}catch(t){u.e(t)}finally{u.f()}o(c)})),(0,h.Z)((0,u.Z)(t),"onSortEnd",(function(e){var r=e.oldIndex,n=e.newIndex,o=t.props,a=o.columns,i=o.onChangeColSort;r!==n&&i((0,X.q)([].concat(a),r,n).filter((function(t){return!!t})))})),t}return(0,c.Z)(o,[{key:"render",value:function(){var t=this.props,e=t.hiddenColIds,r=t.columns,n=t.disabledColIds,o=[];if(r){var a,i=tt(r);try{for(i.s();!(a=i.n()).done;){var c=a.value;e&&e.includes(c.id)||o.push(c.id)}}catch(t){i.e(t)}finally{i.f()}}return p.createElement(ot,{disabledColIds:n,helperClass:"row-dragging",items:r,selected:o,onChange:this.onChange,onSortEnd:this.onSortEnd})}}]),o}(p.PureComponent);(0,h.Z)(at,"defaultProps",{ignoredColIds:[]});var it=at,ct=r(16117),ut=r(35697),lt=r(98879),st=r(38763);var ft=ct.ZP.Group,ht=function(t){(0,l.Z)(o,t);var e,r,n=(e=o,r=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}}(),function(){var t,n=(0,f.Z)(e);if(r){var o=(0,f.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function o(){var t;(0,i.Z)(this,o);for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return t=n.call.apply(n,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"state",{interrupted:!1,disabledPageNoInput:!1,disabledCurrentPageRadio:!1,disabledAllPageRadio:!1,exportId:void 0,startPageNo:1,endPageNo:10,exportMode:"all",percent:0,exportStatus:"ready",exportingMsg:""}),(0,h.Z)((0,u.Z)(t),"onChangeRadio",(function(e){t.setState({exportMode:e.target.value,startPageNo:1,endPageNo:10})})),(0,h.Z)((0,u.Z)(t),"timerID",void 0),(0,h.Z)((0,u.Z)(t),"handleStart",(function(){var e=t.props,r=e.queryKey,n=e.currentPage,o=(e.title,t.state),a=o.startPageNo,i=o.endPageNo,c=o.exportMode;st.Z.super({url:"/v3/ltmp/data/exporter",method:"GET",query:{scope:c,withDetail:!1,queryKey:r.key,startPageNo:"all"==c?a:n.pageNo,endPageNo:"all"==c?i:n.pageNo}}).then((function(e){e.exportId?(t.setState({exportId:e.exportId,exportStatus:"exporting"}),t.statusOut(e.exportId),t.timerID=setInterval((function(){return t.statusOut(e.exportId)}),2e3)):t.setState({exportStatus:"fail"})}))})),(0,h.Z)((0,u.Z)(t),"statusOut",(function(e){var r=t.state.exportStatus;st.Z.super({url:"/v3/exporter/status",query:{interrupted:"stop"==r,exportId:e},method:"GET"},"","none").then((function(e){e.breaked?(clearInterval(t.timerID),t.setState({exportingMsg:"已终止",exportStatus:"stop",percent:0})):t.setState({exportingMsg:e.statusMsg,percent:Math.floor(e.current/e.totalCount*100)}),"stop"==r&&clearInterval(t.timerID),!0===e.completed&&(clearInterval(t.timerID),t.setState({exportStatus:"success",exportingMsg:e.statusMsg,percent:Math.floor(e.current/e.totalCount*100)}))}))})),(0,h.Z)((0,u.Z)(t),"download",(function(){var e=t.props.title,r=t.state.exportId,n=$.Z.hydrocarbonToken();$.Z.downloadFile($.Z.joinPath($.Z.api(),"/v3/exporter/excel?exportId=".concat(r,"&@token=").concat(n,"&@programToken=").concat($.Z.programCode())),e)})),(0,h.Z)((0,u.Z)(t),"handleCancel",(function(){t.setState({percent:0,exportStatus:"stop"})})),t}return(0,c.Z)(o,[{key:"componentWillUnmount",value:function(){console.log("销毁")}},{key:"render",value:function(){var t=this,e=this.props,r=e.defaultExportMode,n=e.currentPage,o=this.state,a=o.startPageNo,i=o.endPageNo,c=o.disabledPageNoInput,u=o.exportMode,l=o.exportStatus,s=o.percent,f=o.exportingMsg;return p.createElement("div",{style:{width:"400px"},className:"exportFrame"},n?p.createElement(p.Fragment,null,p.createElement(ft,{onChange:this.onChangeRadio,value:u,defaultValue:r},p.createElement(ct.ZP,{value:"current",disabled:"exporting"==l},"导出当前页"),p.createElement(ct.ZP,{value:"all",disabled:"exporting"==l},"导出所有")),p.createElement(L.Z,null)):"","all"==u?p.createElement("div",null,"页号:",p.createElement(ut.Z,{min:1,value:a,placeholder:"开始页号",onChange:function(e){return t.setState({startPageNo:e})},disabled:c}),"-",p.createElement(ut.Z,{min:1,value:i,placeholder:"结束页号",onChange:function(e){return t.setState({endPageNo:e})},disabled:c}),p.createElement(L.Z,null)):"",p.createElement("div",null,"ready"==l?p.createElement(y.ZP,{type:"primary",onClick:this.handleStart},"开始导出"):"exporting"==l?p.createElement(y.ZP,{onClick:this.handleCancel},"取消导出"):p.createElement(y.ZP,{onClick:this.handleStart},"重新导出"),"success"==l?p.createElement(y.ZP,{type:"primary",style:{marginLeft:10},disabled:"success"!=l,onClick:this.download},"下载文件"):"",s>0?p.createElement(lt.Z,{percent:s,size:"small",status:"active"}):"",p.createElement("p",null,f)))}}]),o}(p.PureComponent);(0,h.Z)(ht,"defaultProps",{defaultExportMode:"all"});var pt=r(92801),dt=r(49073);function vt(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 yt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vt(Object(r),!0).forEach((function(e){(0,h.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mt(){mt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var gt=function(t){(0,l.Z)(v,t);var e,r,n,o,d=(n=v,o=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}}(),function(){var t,e=(0,f.Z)(n);if(o){var r=(0,f.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function v(){var t;(0,i.Z)(this,v);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=d.call.apply(d,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"state",{pageNo:void 0,pageSize:void 0,ltmplConfigRes:void 0,criteriaData:{}}),(0,h.Z)((0,u.Z)(t),"loadData",function(){var e=(0,a.Z)(mt().mark((function e(r){var n,o;return mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props.sourceId,e.next=3,dt.Z.requestL2LtmplConfig(n);case 3:o=e.sent,t.setState({ltmplConfigRes:o,criteriaData:r});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"doSearch",(function(e){var r=t.props,n=r.sourceId,o=r.innerQueryKey,a=yt({},e);(0,pt.Z)(t.state),a.innerQueryKey=o,a.sourceId=n,t.setState({criteriaData:a})})),(0,h.Z)((0,u.Z)(t),"onChangePage",(function(e,r){t.setState({pageNo:e,pageSize:r})})),t}return(0,c.Z)(v,[{key:"componentDidMount",value:(r=(0,a.Z)(mt().mark((function t(){var e,r,n,o;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.state.criteriaData,r=this.props,n=r.sourceId,o=r.innerQueryKey,e.innerQueryKey=o,e.sourceId=n,this.loadData(e);case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,a.Z)(mt().mark((function t(e){var r,n,o,a,i,c,u,l;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this.props,n=r.sourceId,o=r.innerQueryKey,a=e.sourceId,i=e.innerQueryKey,c=this.state.criteriaData,n&&n!=a?((u={}).innerQueryKey=o,u.sourceId=n,this.loadData(u)):o!=i&&((l=yt({},c)).innerQueryKey=o,this.setState({criteriaData:l}));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.state,e=t.ltmplConfigRes,r=t.criteriaData,n=t.pageNo,o=t.pageSize,a=this.props.sourceId;return e?p.createElement(Ft,{pageSize:o,pageNo:n,onChangePage:this.onChangePage,doSearch:this.doSearch,level:"l2",criteriaData:r,sourceId:a,ltmplConfig:e.ltmplConfig}):""}}]),v}(p.PureComponent),wt=gt,bt=r(62508),Zt=r(66847),Et=r(28508),xt=r(85369),kt=r(69165);function Lt(){Lt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var Ct=function(t){(0,l.Z)(o,t);var e,r,n=(e=o,r=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}}(),function(){var t,n=(0,f.Z)(e);if(r){var o=(0,f.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function o(){var t;(0,i.Z)(this,o);for(var e=arguments.length,r=new Array(e),c=0;c<e;c++)r[c]=arguments[c];return t=n.call.apply(n,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"state",{popoverOpen:!1,loading:!1}),(0,h.Z)((0,u.Z)(t),"formRef",p.createRef()),(0,h.Z)((0,u.Z)(t),"onRestat",function(){var e=(0,a.Z)(Lt().mark((function e(r){var n,o,a;return Lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props,o=n.sourceId,a=n.onfinish,t.setState({loading:!0}),e.next=4,U.Z.increCalc(o,r);case 4:t.setState({loading:!1}),a();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t}return(0,c.Z)(o,[{key:"render",value:function(){var t=this,e=this.state,r=e.popoverOpen,n=e.loading,o=this.props,a=o.fields,i=o.value;return p.createElement(w.Z,{open:r,content:p.createElement(x.Z,{loading:n,style:{width:1e3},title:"重新统计",bodyStyle:{overflow:"auto"},extra:p.createElement(p.Fragment,null,p.createElement(m.Z,{size:[8,0]},p.createElement(y.ZP,{type:"primary",onClick:function(){t.formRef.current.submit()}},"确定"),p.createElement(y.ZP,{onClick:function(){t.setState({popoverOpen:!1})}},p.createElement(Et.Z,null))))},p.createElement(Zt.Z,{labelWrap:!0,ref:this.formRef,name:"control-hooks",onFinish:this.onRestat},p.createElement(kt.Z,{nameAttr:"id",fields:a,valueMap:i}))),placement:"bottomLeft",trigger:"click"},p.createElement(v.Z,{title:"重新统计"},p.createElement(y.ZP,{onClick:function(){t.setState({popoverOpen:!r})}},p.createElement(xt.Z,null))))}}]),o}(p.PureComponent);(0,h.Z)(Ct,"defaultProps",{});var St=Ct,Ot=r(93378),Pt=r(74499),jt=r(41307);function Rt(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 Nt(){Nt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function It(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 _t(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?It(Object(r),!0).forEach((function(e){(0,h.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Tt=(0,J.W6)((function(){return p.createElement(C.Z,{style:{cursor:"grab",color:"#999"}})})),At=(d.Z.Panel,["20000","10000"]),Dt=function(t){(0,l.Z)(J,t);var e,r,n,d,C=(n=J,d=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}}(),function(){var t,e=(0,f.Z)(n);if(d){var r=(0,f.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function J(){var t;(0,i.Z)(this,J);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=C.call.apply(C,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"state",{tableColumns:void 0,sortedColConfigs:void 0,queryKey:void 0,loading:!0,disableCols:void 0,hiddenColIds:At,selectedRows:[],selectedDatas:[],hiddenRowCodes:[],viewModels:[],drillingColIds:void 0,disabledColIds:void 0,showL2ActTable:!1,showL2Chart:!1}),(0,h.Z)((0,u.Z)(t),"loadData",function(){var e=(0,a.Z)(Nt().mark((function e(r,n,a){var i,c,u,l,s,f,h,p,d,v,y,m,g,w,b;return Nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.props,c=i.sourceId,u=i.criteriaData,l=i.ltmplConfig,s=i.mainCode,f=i.level,h=i.pageNo,p=i.pageSize,l){e.next=3;break}return e.abrupt("return");case 3:if(t.setState({loading:!0}),d=[],v=(0,o.Z)(r),u&&u.drillingColIds&&(y=(0,o.Z)(u.drillingColIds),l.columns.forEach((function(t){"dimension"!=t.statColType||y.includes(t.id)||v.includes(t.id)||(v.push(t.id),d.push(t.id)),"dimension"!=t.statColType||y.includes(t.id)||d.includes(t.id)||d.push(t.id)})),v=v.filter((function(t){return!y.includes(t)}))),m=t.buildTableColumns(l,v,n,a),g=l.defaultPageSize,w={pageNo:h||1,pageSize:p||g||10,virtualEndPageNo:void 0},!f||"l2"!=f){e.next=16;break}return e.next=13,U.Z.requestL2LtmplQueryKey(c,_t(_t(_t({},u),w),{},{mainCode:s}));case 13:b=e.sent,e.next=19;break;case 16:return e.next=18,U.Z.requestLtmplQueryKey(c,_t(_t(_t({},u),w),{},{mainCode:s}));case 18:b=e.sent;case 19:t.setState({disabledColIds:d,hiddenColIds:v,hiddenRowCodes:n,sortedColConfigs:a,tableColumns:m,queryKey:b,loading:!1,showL2Chart:!1,selectedRows:[],selectedDatas:[],viewModels:t.state.viewModels.length>0?t.state.viewModels:["table"]});case 20:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"buildTableColumns",(function(e,r,n,o){var a=t.props,i=a.showView,c=a.doEdit,u=a.doRAction,l=a.customEditable,s=e.buttons,f=[],h=0;return(o||e.columns).forEach((function(o){var a={};r&&r.includes(o.id)||f.push(a),a.title=o.title,a.dataIndex=o.id,h++;var d=z.Z.getSupportControlType(o);h<10&&"操作"!=o.title&&"序号"!=o.title&&r.includes("10000")&&Y.Z.sort(a,d),"序号"===o.title?(a.render=function(t,e,r){return p.createElement("label",null,r+1)},o.sorter=void 0):"10000"==o.id?(a.title=p.createElement(v.Z,{title:"拖拽排序"},o.title),a.width=30,a.dataIndex=o.id,a.className="drag-visible",a.render=function(){return p.createElement(Tt,null)}):"20000"==o.id?(a.align="center",a.width=14,a.title=p.createElement(p.Fragment,null,n.length>0?p.createElement(v.Z,{title:"取消隐藏"},p.createElement(y.ZP,{style:{marginRight:"0px"},size:"small",shape:"circle",icon:p.createElement(S.Z,null),type:"text",onClick:function(){return t.unHiden()}})):""),a.render=function(e,r){return p.createElement(v.Z,{title:"隐藏"}," ",p.createElement(y.ZP,{style:{marginRight:"0px"},icon:p.createElement(O.Z,null),type:"dashed",size:"small",onClick:function(){return t.onHide(r.code)}}))}):"操作"===o.title?(a.fixed="right",a.align="center",a.className="opsColumn",a.title=p.createElement(p.Fragment,null,"操 作"),a.render=function(r,n){return p.createElement(m.Z,{size:[0,4],wrap:!0},s.includes("detail")&&i?p.createElement(y.ZP,{size:"small",type:"primary",icon:p.createElement(P.Z,null),onClick:function(){return i(n.code)}}):"",s.includes("customDetail")&&i?p.createElement(y.ZP,{size:"small",type:"primary",icon:p.createElement(j.Z,null),onClick:function(){return i(n.code,!0)}}):"",s.includes("dtmplEdit")&&c&&(!e.editAction||Ot.Z.isShow(e.editAction,[n],void 0))?p.createElement(y.ZP,{size:"small",type:"dashed",icon:p.createElement(R.Z,null),onClick:function(){return c(n.code,"update")}}):"",!s.includes("dtmplCustomEdit")&&!l||!c||e.editAction&&!Ot.Z.isShow(e.editAction,[n],void 0)?"":p.createElement(y.ZP,{size:"small",type:"dashed",icon:p.createElement(N.Z,null),onClick:function(){return c(n.code,"update",!0)}}),s.includes("copy")&&c?p.createElement(v.Z,{title:"复制"},p.createElement(y.ZP,{size:"small",type:"dashed",icon:p.createElement(I.Z,null),onClick:function(){return c(n.code,"copy")}})):"",e.ractions?e.ractions.map((function(t){return p.createElement(y.ZP,{key:t.id,size:"small",type:"dashed",onClick:function(){return u(t.id,n.code)}},t.title)})):"",e.rowActions&&e.rowActions.length>0?e.rowActions.map((function(e){return p.createElement(bt.Z,{iconType:"icon",key:e.id,data:[n],actionConfig:e,doAction:t.doRowAction,buttonSize:"small",serial:1})})):"",e.jumps&&e.jumps.length>0?e.jumps.map((function(e){return p.createElement(y.ZP,{key:e.id,size:"small",type:"dashed",onClick:function(){return t.doRowJump(e.id,n.code)}},e.title)})):"",e.rowCQuerys&&e.rowCQuerys.length>0?e.rowCQuerys.map((function(t){return p.createElement(Pt.Z,{key:t.id,size:"small",pageType:"drawer",cQueryConfig:t,mainCode:t.mainCodeColId?n[t.mainCodeColId]:n.code})})):"",!s.includes("singleDelete")||e.deleteAction&&!Ot.Z.isShow(e.deleteAction,[n],void 0)?"":p.createElement(g.Z,{placement:"rightBottom",title:"确定要【删除】此数据吗?",onConfirm:function(){t.doDeleteByCode(n.code)},okText:"确定",cancelText:"取消",okType:"danger"},p.createElement(y.ZP,{size:"small",type:"dashed",danger:!0},p.createElement(_.Z,null))))}):(a.className="opsColumn",a.render=function(t,e){return p.createElement(Q.default,{fieldConfig:o,value:e[o.id],holderType:"table"})})})),f})),(0,h.Z)((0,u.Z)(t),"handleShowChart",(function(){t.setState({showL2Chart:!t.state.showL2Chart})})),(0,h.Z)((0,u.Z)(t),"handleDataAnalysis",(function(){t.setState({showL2ActTable:!t.state.showL2ActTable})})),(0,h.Z)((0,u.Z)(t),"unHiden",(function(){var e=t.props.ltmplConfig,r=t.state,n=r.hiddenColIds,o=r.sortedColConfigs;t.setState({hiddenRowCodes:[],tableColumns:t.buildTableColumns(e,n,[],o)})})),(0,h.Z)((0,u.Z)(t),"onHide",(function(e){var r=t.props.ltmplConfig,n=t.state,a=n.hiddenRowCodes,i=n.hiddenColIds,c=n.sortedColConfigs,u=[].concat((0,o.Z)(a),[e]);t.setState({hiddenRowCodes:u,tableColumns:t.buildTableColumns(r,i,u,c)})})),(0,h.Z)((0,u.Z)(t),"changeViewModel",(function(e){t.setState({viewModels:e})})),(0,h.Z)((0,u.Z)(t),"changeHiddenColumns",(function(e){var r=t.props.ltmplConfig,n=t.state,o=n.hiddenRowCodes,a=n.sortedColConfigs;t.setState({showL2Chart:!1,hiddenColIds:e,tableColumns:t.buildTableColumns(r,e,o,a)})})),(0,h.Z)((0,u.Z)(t),"doSelectedAction",function(){var e=(0,a.Z)(Nt().mark((function e(r,n,o){var a;return Nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t.state.selectedRows,t.doAction(r,a,o);case 2:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"doAction",function(){var e=(0,a.Z)(Nt().mark((function e(r,n,o){var a,i,c,u;return Nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.props.sourceId,a=t.state,i=a.hiddenColIds,c=a.hiddenRowCodes,u=a.sortedColConfigs,t.setState({loading:!0}),e.next=5,U.Z.postActions(r,n,o);case 5:e.sent?t.loadData(i,c,u):t.setState({loading:!1});case 7:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"doRowAction",function(){var e=(0,a.Z)(Nt().mark((function e(r,n,o){return Nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.doAction(r,[{title:void 0,code:n[0]}],o);case 1:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"doDelete",(0,a.Z)(Nt().mark((function e(){var r,n,o,a,i,c;return Nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.sourceId,n=t.state,o=n.selectedRows,a=n.hiddenColIds,i=n.hiddenRowCodes,c=n.sortedColConfigs,t.setState({loading:!0}),e.next=5,U.Z.deleteData(r,o);case 5:e.sent?t.loadData(a,i,c):t.setState({loading:!1});case 7:case"end":return e.stop()}}),e)})))),(0,h.Z)((0,u.Z)(t),"doDeleteByCode",function(){var e=(0,a.Z)(Nt().mark((function e(r){var n,o,a,i,c;return Nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props.sourceId,o=t.state,a=o.hiddenColIds,i=o.hiddenRowCodes,c=o.sortedColConfigs,t.setState({loading:!0}),e.next=5,U.Z.deleteByCode(n,[r]);case 5:e.sent?t.loadData(a,i,c):t.setState({loading:!1});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"doSelectedCQuery",function(){var t=(0,a.Z)(Nt().mark((function t(e){return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"doJump",function(){var t=(0,a.Z)(Nt().mark((function t(e,r){var n,o;return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U.Z.postJumps(e,r);case 2:"success"===(n=t.sent).status&&($.Z.hydrocarbonToken(),o=n.url+"hydrocarbon_token="+$.Z.hydrocarbonToken(),window.open(o));case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"doRowJump",function(){var e=(0,a.Z)(Nt().mark((function e(r,n){return Nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.doJump(r,n);case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"doSelectedJump",function(){var e=(0,a.Z)(Nt().mark((function e(r){var n;return Nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:1==(n=t.state.selectedRows).length&&t.doJump(r,n[0].code);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"changeRowSelection",(function(e,r){t.setState({selectedRows:e,selectedDatas:r})})),(0,h.Z)((0,u.Z)(t),"onChangeColSort",(function(e){var r=t.props.ltmplConfig,n=t.state,o=n.hiddenRowCodes,a=n.hiddenColIds;t.setState({sortedColConfigs:e,tableColumns:t.buildTableColumns(r,a,o,e)})})),(0,h.Z)((0,u.Z)(t),"renderHeaderButtons",(function(){var e=t.state,r=e.hiddenColIds,n=e.queryKey,o=e.viewModels,a=e.sortedColConfigs,i=e.disabledColIds,c=e.showL2Chart,u=e.showL2ActTable,l=t.props,s=l.ltmplConfig,f=l.sourceId,h=l.doCreate,d=l.doSearch,m=l.menuId,g=l.funcMode,x=l.customCreatable,k=s.buttons;return p.createElement(p.Fragment,null,"common"==g&&t.criteriaFormUseful()?p.createElement(w.Z,{trigger:"click",content:t.renderCriteriaForm()},p.createElement(y.ZP,null,p.createElement(T.Z,null))):null,k.includes("dtmplAdd")&&h?p.createElement(v.Z,{title:"创建"},p.createElement(y.ZP,{onClick:function(){return h()}},p.createElement(A.Z,null))," "):"",(k.includes("dtmplCustomAdd")||x)&&h?p.createElement(v.Z,{title:"创建"},p.createElement(y.ZP,{onClick:function(){return h(!0)}},p.createElement(D.Z,null))," "):"",k.includes("importLtmplExcel")?p.createElement(v.Z,{title:"导入"}," ",p.createElement(y.ZP,{href:"#/".concat(f,"/importer?menuId=").concat(m),target:"_blank"},p.createElement(F.Z,null))):"",p.createElement(w.Z,{content:p.createElement(ht,{queryKey:n,title:s.title}),title:"导出",placement:"bottomRight",trigger:"click"},p.createElement(v.Z,{title:"导出"},p.createElement(y.ZP,{style:{display:k.includes("exportLtmplExcel")?"inline":"none",marginLeft:"5px"}},p.createElement(G.Z,null)))),k.includes("showChart")?p.createElement(v.Z,{title:c?"隐藏图表":"展示图表"},p.createElement(y.ZP,{onClick:t.handleShowChart},p.createElement(M.Z,null))):"",k.includes("analysis")?p.createElement(v.Z,{title:u?"隐藏数据分析":"展示数据分析"},p.createElement(y.ZP,{onClick:t.handleDataAnalysis},p.createElement(q.Z,null))):"",k.includes("reStat")?p.createElement(St,{fields:s.reStatParams,sourceId:f,onfinish:function(){return d(null)}}):"",p.createElement(w.Z,{content:p.createElement(b.Z.Group,{value:o,onChange:t.changeViewModel},p.createElement(Z.Z,{style:{width:"120px"}},p.createElement(E.Z,{span:24},p.createElement(b.Z,{value:"table"},"表格")),p.createElement(E.Z,{span:24},p.createElement(b.Z,{value:"verticalList"},"纵向列表")))),title:"视图",placement:"bottomRight",trigger:"click"},p.createElement(v.Z,{title:"选择视图"},p.createElement(y.ZP,null,p.createElement(B.Z,null)))),p.createElement(w.Z,{content:p.createElement(it,{columns:a,disabledColIds:i,hiddenColIds:r,onChangeColSort:t.onChangeColSort,onChangeHiddenCols:t.changeHiddenColumns}),title:"排序和选择列",placement:"bottomRight",trigger:"click"},p.createElement(v.Z,{title:"点击排序和选择列"},p.createElement(y.ZP,null,p.createElement(V.Z,null)))),d?p.createElement(y.ZP,{className:"hoverbig",title:"刷新",onClick:function(){d(null)}},p.createElement(H.Z,null)):"")})),(0,h.Z)((0,u.Z)(t),"criteriaFormUseful",(function(){var e=t.props.ltmplConfig,r=e.buttons,n=e.criterias;return!!(r.includes("query")&&(n&&n.length>0||r.includes("drilling"))||t.checkBoxUseful())})),(0,h.Z)((0,u.Z)(t),"checkBoxUseful",(function(){var e=t.props.ltmplConfig,r=e.buttons,n=e.jumps,o=e.actions;return!!(r.includes("batchDelete")||o&&o.length>0||n&&n.length>0)})),(0,h.Z)((0,u.Z)(t),"renderCriteriaForm",(function(){var e=t.state,r=e.loading,n=e.selectedRows,o=e.selectedDatas,a=t.props,i=a.ltmplConfig,c=a.doSearch,u=a.criteriaData;return p.createElement(K.Z,{loading:r,selectedDatas:o,selectedRows:n,ltmplConfig:i,data:u,doCQuery:t.doSelectedCQuery,doAction:t.doSelectedAction,doDelete:t.doDelete,doJump:t.doSelectedJump,doSearch:c})})),(0,h.Z)((0,u.Z)(t),"renderContent",(function(){var e=t.state,r=e.queryKey,n=e.tableColumns,o=e.loading,a=e.selectedRows,i=e.hiddenRowCodes,c=e.viewModels,u=e.sortedColConfigs,l=e.hiddenColIds,s=e.showL2ActTable,f=t.props,h=f.sourceId,d=f.ltmplConfig,v=f.funcMode,y=f.title,m=f.collapsible,g=f.pageSize,w=f.pageNo,b=f.onChangePage;if(!d||!h)return p.createElement(p.Fragment,null,p.createElement(x.Z,{loading:o}),p.createElement(k.Z,{loading:o}));var Z=d.buttons,E=!1;"simple"==v||"common"==v?E=!1:t.criteriaFormUseful()&&(E=!0);var C=[];if(u){var S,O=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Rt(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)?Rt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(u);try{for(O.s();!(S=O.n()).done;){var P=S.value;l.includes(P.id)||C.push(P)}}catch(t){O.e(t)}finally{O.f()}}return p.createElement(p.Fragment,null,Z.includes("analysis")&&s?p.createElement("div",null,p.createElement(wt,{innerQueryKey:r.key,sourceId:h}),p.createElement(L.Z,{dashed:!0,style:{borderTopColor:"#40a9ff"},plain:!0})):"",p.createElement("div",{className:"actTable"},"complete"==v||"common"==v?m?null:p.createElement("h3",null,y||d.title,p.createElement("p",{className:"fr"},t.renderHeaderButtons())):null,E?t.renderCriteriaForm():null,o?"":p.createElement(W.Z,{onChangePage:b,viewModels:c,columnConfigs:C,maxSelectedRows:t.checkBoxUseful()?1e4:-1,selectedRows:a,columns:n,hiddenRowCodes:i,pageInfo:{pageNo:w||1,pageSize:g||d.defaultPageSize},queryKey:r,onChangeRowSelection:t.changeRowSelection})))})),t}return(0,c.Z)(J,[{key:"componentDidMount",value:(r=(0,a.Z)(Nt().mark((function t(){var e,r;return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.props.ltmplConfig,r=void 0,e&&(r=[{id:"10000",title:"排序"}].concat((0,o.Z)(e.columns),[{id:"20000",title:"隐藏"}])),this.loadData(At,[],r);case 4:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,a.Z)(Nt().mark((function t(e){var r,n,a,i,c,u,l,s,f,h,p;return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this.props,n=r.sourceId,a=r.criteriaData,i=r.ltmplConfig,c=e.ltmplConfig,u=e.criteriaData,l=e.sourceId,s=this.state,f=s.hiddenColIds,h=s.sortedColConfigs,(n&&l!=n||i&&(!c||i.id!=c.id)||$.Z.transQueryParamsToStr(a,!1,["pageSize","pageNo"])!=$.Z.transQueryParamsToStr(u,!1,["pageSize","pageNo"]))&&(i.id==c.id?this.loadData(f,[],h):(p=void 0,i&&(p=[{id:"10000",title:"排序"}].concat((0,o.Z)(i.columns),[{id:"20000",title:"隐藏"}])),this.setState({viewModels:["table"]}),this.loadData(At,[],p)));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.state,e=t.queryKey,r=t.loading,n=this.props,o=n.sourceId,a=n.ltmplConfig,i=n.title,c=n.collapsible,u=n.initCollapse;return a&&o?p.createElement(p.Fragment,null," ",c?p.createElement(jt.Z,{initCollapse:u,title:i||a.title,id:e+a.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:r,bodyStyle:{padding:"6px"},extra:this.renderHeaderButtons()},this.renderContent()):p.createElement(p.Fragment,null,this.renderContent())):p.createElement(p.Fragment,null,p.createElement(x.Z,{loading:r}),p.createElement(k.Z,{loading:r}))}}]),J}(p.PureComponent);(0,h.Z)(Dt,"defaultProps",{criteriaData:{},funcMode:"complete",collapsible:!1,initCollapse:!1});var Ft=Dt},16739:function(t,e,r){"use strict";r.d(e,{Z:function(){return A}});var n=r(32763),o=r(59755),a=r(20511),i=r(30698),c=r(90237),u=r(65337),l=r(95225),s=r(39576),f=r(61378),h=r(69905),p=r(15274),d=r(67294),v=r(18430),y=r(57995),m=r(74024),g=r(35137),w=r(58900),b=r(49811),Z=r(60452);var E=function(t){(0,s.Z)(o,t);var e,r,n=(e=o,r=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}}(),function(){var t,n=(0,h.Z)(e);if(r){var o=(0,h.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,f.Z)(this,t)});function o(){return(0,c.Z)(this,o),n.apply(this,arguments)}return(0,u.Z)(o,[{key:"render",value:function(){var t,e=this.props,r=e.queryTotal,n=e.pageInfo,o=e.total,a=e.pageTo;if(e.touchEnd,!n)return d.createElement(d.Fragment,null);var i=!0,c="";return o&&o>=0?(t=o,i=!0,o>0&&(c="共".concat(o,"条"))):(i=!1,t=n.virtualEndPageNo*n.pageSize+1,c="点击查看总数"),!t||t<n.pageSize?"":d.createElement("div",{className:"Pagination"},d.createElement("span",{className:i?"sewTotal":"seeTotal",onClick:r},c),d.createElement(Z.Z,{style:{display:"inline-block"},showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100","500"],defaultCurrent:1,current:parseInt(n.pageNo.toString()),pageSize:n.pageSize,onChange:function(t,e){return a(t,e)},onShowSizeChange:function(t,e){return a(t,e)},hideOnSinglePage:0===o,total:t}))}}]),o}(d.PureComponent),x=E,k=r(95742),L=r(62748),C=r(25291),S=["className","style"];function O(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return P(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)?P(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function P(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 j(){j=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}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 r=null!=arguments[e]?arguments[e]:{};e%2?R(Object(r),!0).forEach((function(e){(0,p.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}v.Z.Panel;var I=(0,k.W8)((function(t){return d.createElement("tr",t)})),_=(0,k.JN)((function(t){return d.createElement("tbody",t)})),T=function(t){(0,s.Z)(E,t);var e,r,n,v,Z=(n=E,v=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}}(),function(){var t,e=(0,h.Z)(n);if(v){var r=(0,h.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,f.Z)(this,t)});function E(){var t;(0,c.Z)(this,E);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=Z.call.apply(Z,[this].concat(r)),(0,p.Z)((0,l.Z)(t),"state",{queryDataCache:void 0,virtualEndPageNo:void 0,dataSource:void 0,loading:!0,touchEnd:void 0,total:void 0}),(0,p.Z)((0,l.Z)(t),"DraggableContainer",(function(e){return d.createElement(_,(0,i.Z)({useDragHandle:!0,disableAutoscroll:!0,helperClass:"row-dragging",onSortEnd:t.onSortEnd},e))})),(0,p.Z)((0,l.Z)(t),"DraggableBodyRow",(function(e){e.className,e.style;var r=(0,a.Z)(e,S),n=t.state.dataSource;if(n){var o=n.findIndex((function(t){return t.key===r["data-row-key"]}));return d.createElement(I,(0,i.Z)({key:o,index:o},r))}return d.createElement(d.Fragment,null)})),(0,p.Z)((0,l.Z)(t),"onSortEnd",(function(e){var r=e.oldIndex,n=e.newIndex,o=t.state.dataSource;if(r!==n){var a=(0,L.q)([].concat(o),r,n).filter((function(t){return!!t}));t.setState({dataSource:a})}})),(0,p.Z)((0,l.Z)(t),"loadData",function(){var e=(0,o.Z)(j().mark((function e(r,n,o){var a,i,c,u,l,s;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.setState({loading:!0}),a=t.state.queryDataCache,o||!a?(i=new Map,t.setState({total:void 0})):i=a,!i.has(n.pageNo+"_"+n.pageSize)){e.next=8;break}c=i.get(n.pageNo+"_"+n.pageSize),t.setState({dataSource:c.dataSource,virtualEndPageNo:c.pageInfo.virtualEndPageNo,loading:!1}),e.next=17;break;case 8:return e.next=10,b.Z.requestQueryData(r,n);case 10:u=e.sent,l=[],n=u.pageInfo,u.entities.forEach((function(t,e){var r=N(N({key:t.code,code:t.code},t.fieldMap),{},{index:e});l.push(r)})),s=u.touchEnd,i.set(n.pageNo+"_"+n.pageSize,{dataSource:l,pageInfo:n}),t.setState({dataSource:l,virtualEndPageNo:n.virtualEndPageNo,queryDataCache:i,touchEnd:s,loading:!1});case 17:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,p.Z)((0,l.Z)(t),"pageTo",function(){var e=(0,o.Z)(j().mark((function e(r,n){var o,a,i,c;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.props.onChangePage,a=t.state.virtualEndPageNo,i={pageNo:r,pageSize:n||10,virtualEndPageNo:a},c=t.props.queryKey,e.next=6,t.loadData(c.key,i);case 6:o(r,n);case 7:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),(0,p.Z)((0,l.Z)(t),"queryTotal",(0,o.Z)(j().mark((function e(){var r,n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.queryKey,e.next=3,b.Z.requestQueryCount(r.key);case 3:n=e.sent,t.setState({total:n});case 5:case"end":return e.stop()}}),e)})))),(0,p.Z)((0,l.Z)(t),"getRowSelection",(function(){var e,r=t.props,n=r.columns,o=r.onChangeRowSelection,a=r.selectedRows,i=r.maxSelectedRows,c=t.state.dataSource,u=[],l=O(a);try{for(l.s();!(e=l.n()).done;){var s=e.value;u.push(s.code)}}catch(t){l.e(t)}finally{l.f()}var f=[];if(c){var h,p=O(c);try{for(p.s();!(h=p.n()).done;){var d=h.value;f.push(d.code)}}catch(t){p.e(t)}finally{p.f()}}if(-1==i)return null;var v={fixed:!0,type:1==i?"radio":"checkbox",selectedRowKeys:u,onChange:function(t,e){var r=[],a=[],i=null;n.forEach((function(t){"序号"==t.title||null!=i||(i=t.dataIndex)})),e.forEach((function(t){r.push({code:t.code,title:t[i]}),a.push(t)})),o&&o(r,a,f)}};return v})),(0,p.Z)((0,l.Z)(t),"getUnHidenDataSource",(function(){var e=t.state.dataSource,r=t.props.hiddenRowCodes,n=[];if(e){var o,a=O(e);try{for(a.s();!(o=a.n()).done;){var i=o.value;r.includes(i.code)||n.push(i)}}catch(t){a.e(t)}finally{a.f()}}return n})),(0,p.Z)((0,l.Z)(t),"initViewList",(function(e){var r=t.props,n=(r.columns,r.columnConfigs),o=[];return n.length>0&&n.forEach((function(t,r){if("10000"!=t.id&&"操作"!=t.title&&"20000"!=t.id){var n=t.title,a=e?e[t.id]:void 0;"序号"==n&&(a=e.index),a=a||(t.defaultValue?t.defaultValue:void 0),t.id,Math.random();var i=d.createElement(y.Z.Item,{label:t.title,key:r,className:"labelcss"},d.createElement(C.default,{holderType:"table",value:a,fieldConfig:t}));o.push(i)}})),o})),t}return(0,u.Z)(E,[{key:"componentDidMount",value:(r=(0,o.Z)(j().mark((function t(){var e,r,n;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.props,r=e.queryKey,n=e.pageInfo,!r){t.next=4;break}return t.next=4,this.loadData(r.key,n);case 4:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.setState=function(){return!1}}},{key:"componentDidUpdate",value:(e=(0,o.Z)(j().mark((function t(e){var r,n,o,a,i;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.queryKey,n=e.pageInfo,o=this.props,a=o.queryKey,i=o.pageInfo,this.state.total,!a){t.next=12;break}if((null==r?void 0:r.key)==a.key){t.next=9;break}return t.next=7,this.loadData(a.key,i,!0);case 7:t.next=12;break;case 9:if((null==n?void 0:n.pageNo)==i.pageNo&&(null==n?void 0:n.pageSize)==i.pageSize){t.next=12;break}return t.next=12,this.loadData(a.key,i,!1);case 12:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this,e=this.props,r=e.pageInfo,n=e.columns,o=e.viewModels,a=this.state,i=a.touchEnd,c=a.total,u=a.loading,l=a.virtualEndPageNo;return d.createElement(d.Fragment,null,o.includes("table")?d.createElement(m.Z,{size:"middle",rowSelection:this.getRowSelection(),columns:n||[],dataSource:this.getUnHidenDataSource(),bordered:!0,pagination:!1,style:{display:n?"block":"none"},loading:u,components:{body:{wrapper:this.DraggableContainer,row:this.DraggableBodyRow}}}):"",d.createElement(x,{touchEnd:i,pageInfo:N(N({},r),{},{virtualEndPageNo:l}),pageTo:this.pageTo,queryTotal:this.queryTotal,total:c}),o.includes("verticalList")?d.createElement(g.Z,{style:{marginTop:"10px"}},d.createElement(w.ZP,{dataSource:this.getUnHidenDataSource(),renderItem:function(e){return d.createElement(w.ZP.Item,{key:e.id},d.createElement(g.Z,{size:"small",bodyStyle:{padding:"4px"}},d.createElement(y.Z,{column:4},t.initViewList(e))))}})):"")}}]),E}(d.PureComponent);(0,p.Z)(T,"defaultProps",{pageInfo:{pageNo:1,pageSize:10,virtualEndPageNo:void 0},hiddenRowCodes:[],selectedRows:[],viewModels:["table"]});var A=T},29336:function(t,e,r){"use strict";r.d(e,{Z:function(){return bt}});var n=r(32763),o=r(1252),a=r(59755),i=r(90237),c=r(65337),u=r(95225),l=r(39576),s=r(61378),f=r(69905),h=r(15274),p=r(67294),d=r(66847),v=r(16321),y=r(71577),m=r(53807),g=r(32823),w=r(71230),b=r(15746),Z=r(19650),E=r(74024),x=r(76880),k=r(54977),L=r(47389),C=r(82061),S=r(30723),O=r(13105),P=r(15128),j=r(49192),R=r(25291),N=r(24019),I=r(85932),_=r(98053),T=r(49073),A=r(49811),D=r(16739),F=r(87200),G=r(12513);function M(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}var q=function(t){(0,l.Z)(o,t);var e,r,n=(e=o,r=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}}(),function(){var t,n=(0,f.Z)(e);if(r){var o=(0,f.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function o(){var t;(0,i.Z)(this,o);for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return t=n.call.apply(n,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"handleClose",(function(e){var r=t.props,n=r.onChange,o=r.value;if(n){var a,i=[],c=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return M(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)?M(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(o);try{for(c.s();!(a=c.n()).done;){var u=a.value;u.code!=e.code&&i.push(u)}}catch(t){c.e(t)}finally{c.f()}n(i)}})),(0,h.Z)((0,u.Z)(t),"renderTag",(function(){var e=t.props.value,r=[];return e?(e.forEach((function(e,n){var o=e.title instanceof Array?e.title[0]:e.title;r.push(p.createElement(G.Z,{key:n,style:{fontSize:14},color:"geekblue",closable:!0,onClose:function(r){r.preventDefault(),t.handleClose(e)}},o&&o.includes("@R@")?o.split("@R@")[1]:e.title))})),r):""})),t}return(0,c.Z)(o,[{key:"render",value:function(){return p.createElement("div",null,p.createElement("h3",null,"查询点选:",this.renderTag()))}}]),o}(p.PureComponent),B=q;function V(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return H(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)?H(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function H(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 Y(){Y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function z(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 U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z(Object(r),!0).forEach((function(e){(0,h.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var W=function(t){(0,l.Z)(y,t);var e,r,n,d,v=(n=y,d=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}}(),function(){var t,e=(0,f.Z)(n);if(d){var r=(0,f.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function y(){var t;(0,i.Z)(this,y);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=v.call.apply(v,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"state",{selectConfig:void 0,columns:void 0,queryKey:void 0,loading:!0,criteriaData:void 0,pageNo:void 0,pageSize:void 0,disableCols:void 0,selectedRows:[]}),(0,h.Z)((0,u.Z)(t),"loadData",function(){var e=(0,a.Z)(Y().mark((function e(r,n){var o,a,i,c,u,l,s,f,h,p;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({loading:!0}),o=t.state,a=o.pageNo,i=o.pageSize,c=r.defaultPageSize,u={pageNo:a,pageSize:i||c,virtualEndPageNo:void 0},l=t.props,s=l.sourceId,f=l.exceptCodes,h=l.mainCode,e.next=7,A.Z.requestLtmplQueryKey(s,U(U(U({exceptCodes:f},n),u),{},{mainCode:h}));case 7:p=e.sent,t.setState({queryKey:p,criteriaData:n,loading:!1});case 9:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"loadConfig",(0,a.Z)(Y().mark((function e(){var r,n,o,a,i;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props,n=r.sourceId,r.exceptCodes,t.setState({loading:!0}),e.next=4,T.Z.requestSelectConfig(n);case 4:return o=e.sent,a=[],i=0,o.columns.forEach((function(t){var e={};"操作"!=t.title&&a.push(e),e.title=t.title,e.dataIndex=t.id,i++;var r=P.Z.getSupportControlType(t);i<10&&j.Z.sort(e,r),"序号"===t.title?(e.render=function(t,e,r){return p.createElement("label",null,r+1)},t.sorter=void 0):e.render=function(e,r){return p.createElement(R.default,{fieldConfig:t,value:r[t.id],holderType:"table"})}})),t.setState({columns:a,selectConfig:o,loading:!1}),e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})))),(0,h.Z)((0,u.Z)(t),"doSearch",function(){var e=(0,a.Z)(Y().mark((function e(r){var n,o;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.state.selectConfig,o=U({},r),e.next=4,t.loadData(n,o);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"onChangePage",(function(e,r){t.setState({pageNo:e,pageSize:r})})),(0,h.Z)((0,u.Z)(t),"handleOk",(function(){t.props.onOK(t.state.selectedRows),t.setState({selectedRows:[],queryKey:void 0})})),(0,h.Z)((0,u.Z)(t),"handleCancel",(function(){t.setState({queryKey:void 0}),t.props.onCancel()})),(0,h.Z)((0,u.Z)(t),"changeRowSelection",(function(e,r,n){var a=t.props.maxSelectedRows;if(n){var i=t.state.selectedRows,c=[],u=[];1!=a&&u.push.apply(u,(0,o.Z)(i));var l,s=!1,f=V(e);try{for(f.s();!(l=f.n()).done;){var h=l.value;s=!1;var p,d=V(u);try{for(d.s();!(p=d.n()).done;){var v=p.value;h.code==v.code&&(s=!0)}}catch(t){d.e(t)}finally{d.f()}s||u.push(h),c.push(h.code)}}catch(t){f.e(t)}finally{f.f()}var y=[];y.push.apply(y,u);for(var m=0,g=u;m<g.length;m++){var w=g[m];if(n.includes(w.code)&&!c.includes(w.code))for(var b in y)y[b].code==w.code&&y.splice(Number(b),1)}t.setState({selectedRows:y})}else t.setState({selectedRows:e})})),t}return(0,c.Z)(y,[{key:"componentDidMount",value:(r=(0,a.Z)(Y().mark((function t(){var e,r,n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.props,r=e.sourceId,n=e.open,!r||!n){t.next=9;break}return t.t0=this,t.next=5,this.loadConfig();case 5:return t.t1=t.sent,t.t2={},t.next=9,t.t0.loadData.call(t.t0,t.t1,t.t2);case 9:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,a.Z)(Y().mark((function t(e){var r,n,o,a,i,c,u,l;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=this.props).exceptCodes,n=r.open,o=this.state,a=o.selectConfig,i=o.criteriaData,c=o.queryKey,u=o.loading,e.exceptCodes,e.open,l=a,!n){t.next=12;break}if(l){t.next=9;break}return t.next=8,this.loadConfig();case 8:l=t.sent;case 9:if(c||u){t.next=12;break}return t.next=12,this.loadData(l,i);case 12:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.open,r=t.maxSelectedRows,n=this.state,o=n.queryKey,a=n.columns,i=n.selectConfig,c=n.criteriaData,u=n.loading,l=n.selectedRows,s=n.pageSize,f=n.pageNo;if(!i)return p.createElement(p.Fragment,null);var h=i.buttons,d=i.criterias,v=i.jumps,y=i.actions;return h.includes("batchDelete")||h.includes("query")&&d&&d.length>0||y&&y.length>0||v&&v.length,p.createElement(_.Z,{open:e,title:p.createElement(B,{value:l,onChange:this.changeRowSelection}),style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},width:"1250px",destroyOnClose:!0,centered:!0,bodyStyle:{height:500,overflow:"auto"},onCancel:this.handleCancel,onOk:this.handleOk},p.createElement("div",{className:"actTable"},p.createElement(F.Z,{selectedRows:l,ltmplConfig:i,data:c,doSearch:this.doSearch,loading:u}),p.createElement(D.Z,{pageInfo:{pageNo:f||1,pageSize:s||i.defaultPageSize},onChangePage:this.onChangePage,maxSelectedRows:r,selectedRows:l,columns:a,queryKey:o,onChangeRowSelection:this.changeRowSelection})))}}]),y}(p.PureComponent),K=W,Q=r(41307),$=r(55241),J=r(57564),X=r(35137),tt=r(28508),et=r(16117),rt=r(69165),nt=r(94716);function ot(){ot=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var at=function(t){(0,l.Z)(v,t);var e,r,n,o=(r=v,n=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}}(),function(){var t,e=(0,f.Z)(r);if(n){var o=(0,f.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function v(){var t;(0,i.Z)(this,v);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=o.call.apply(o,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"state",{}),(0,h.Z)((0,u.Z)(t),"onSubmit",(function(e){var r=t.props,n=r.dtmplData,o=r.fieldGroupConfig,a={code:n?n.code:"new"+nt.Z.getRandomNum(6),editStatus:n&&n.code&&!n.code.startsWith("new")?"changed":"new",relationLabel:e.relationLabel?e.relationLabel:o.relationNames[0],fieldMap:e};t.props.onFinish(a)})),(0,h.Z)((0,u.Z)(t),"selectRelation",(function(){var e=t.props,r=e.fieldGroupConfig,n=e.dtmplData;return r.relationNames.length>1?p.createElement(d.Z.Item,{name:"relationLabel",initialValue:n?n.relationLabel:void 0,rules:[{required:!0,message:"请选择关系"}],label:"关系"},p.createElement(et.ZP.Group,null,r.relationNames.map((function(t){return p.createElement(et.ZP,{value:"item"},t)})))):""})),t}return(0,c.Z)(v,[{key:"componentDidMount",value:(e=(0,a.Z)(ot().mark((function t(){return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.formRef,r=t.fieldGroupConfig,n=t.dtmplData;return p.createElement(p.Fragment,null,p.createElement(d.Z,{labelWrap:!0,ref:e,name:"control-hooks",onFinish:this.onSubmit},this.selectRelation(),p.createElement(rt.Z,{formRef:e,nameAttr:"id",fields:r?r.fields:void 0,valueMap:n?n.fieldMap:{}})))}}]),v}(p.PureComponent);function it(){it=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var ct=function(t){(0,l.Z)(v,t);var e,r,n,o,d=(n=v,o=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}}(),function(){var t,e=(0,f.Z)(n);if(o){var r=(0,f.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function v(){var t;(0,i.Z)(this,v);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=d.call.apply(d,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"formRef",p.createRef()),(0,h.Z)((0,u.Z)(t),"state",{isAdded:!1}),(0,h.Z)((0,u.Z)(t),"reset",(function(){})),(0,h.Z)((0,u.Z)(t),"onOk",(function(){t.setState({isAdded:!1}),t.formRef.current.submit()})),(0,h.Z)((0,u.Z)(t),"add",(function(){t.setState({isAdded:!0}),t.formRef.current.submit()})),(0,h.Z)((0,u.Z)(t),"getTitle",(function(){var e=t.props,r=e.fieldGroupConfig,n=e.dtmplData;return r.title+(n?"【行编辑】":"【新建一行】")})),t}return(0,c.Z)(v,[{key:"componentDidMount",value:(r=(0,a.Z)(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,a.Z)(it().mark((function t(){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=(t.height,t.onOk),r=t.fieldGroupConfig,n=t.dtmplData,o=t.onCancel,a=t.okButtonType,i=t.needConfirm,c=t.okDanger,u=this.state.isAdded;return p.createElement(X.Z,{style:{width:1e3},title:this.getTitle(),bodyStyle:{overflow:"auto"},extra:p.createElement(p.Fragment,null,p.createElement(Z.Z,{size:[8,0]},function(t){return i?c?p.createElement(J.Z,{placement:"rightBottom",title:"确定要执行提交吗?",onConfirm:t,okText:"确定",cancelText:"取消",okType:"danger"},p.createElement(y.ZP,{type:a,danger:!0,size:"small"},"确定")):p.createElement(J.Z,{placement:"rightBottom",title:"确定要执行提交吗?",onConfirm:t,okText:"确定",cancelText:"取消"},p.createElement(y.ZP,{size:"small",type:a},"确定")):p.createElement(y.ZP,{type:a,size:"small",onClick:t},"确定")}(this.onOk),n?"":p.createElement(m.Z,{placement:"top",title:"可连续添加"},p.createElement(y.ZP,{type:"primary",size:"small",onClick:this.add},"添加")),o?p.createElement(y.ZP,{onClick:o},p.createElement(tt.Z,null)):""))},p.createElement(at,{fieldGroupConfig:r,formRef:this.formRef,onFinish:function(t){return e(t,!u)},dtmplData:n}))}}]),v}(p.PureComponent);function ut(){ut=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}(0,h.Z)(ct,"defaultProps",{forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},needConfirm:!1,okButtonType:"primary",okDanger:!1});var lt=function(t){(0,l.Z)(v,t);var e,r,n,o,d=(n=v,o=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}}(),function(){var t,e=(0,f.Z)(n);if(o){var r=(0,f.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function v(){var t;(0,i.Z)(this,v);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=d.call.apply(d,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"formRef",p.createRef()),(0,h.Z)((0,u.Z)(t),"state",{popoverOpen:!1}),(0,h.Z)((0,u.Z)(t),"onOk",(function(e){(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&t.setState({popoverOpen:!1}),t.props.onOk(e)})),t}return(0,c.Z)(v,[{key:"componentDidMount",value:(r=(0,a.Z)(ut().mark((function t(){return ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,a.Z)(ut().mark((function t(){return ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this,e=this.state.popoverOpen,r=this.props,n=r.disabled,o=r.buttonIcon,a=r.buttonTitle,i=r.tooltipTitle,c=r.fieldGroupConfig,u=r.dtmplData,l=r.buttonStyle;return p.createElement($.Z,{destroyTooltipOnHide:!0,placement:"leftBottom",open:e,content:p.createElement(ct,{fieldGroupConfig:c,dtmplData:u,onCancel:function(){t.setState({popoverOpen:!1})},onOk:this.onOk}),trigger:"click"},p.createElement(m.Z,{placement:"left",title:i},p.createElement(y.ZP,{disabled:n,style:l,type:"primary",icon:o,size:"small",onClick:function(){t.setState({popoverOpen:!e})}},a||"")))}}]),v}(p.PureComponent);(0,h.Z)(lt,"defaultProps",{buttonIcon:void 0,disabled:!1});var st=r(62508),ft=r(92801);var ht=function(t){(0,l.Z)(o,t);var e,r,n=(e=o,r=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}}(),function(){var t,n=(0,f.Z)(e);if(r){var o=(0,f.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,s.Z)(this,t)});function o(){var t;(0,i.Z)(this,o);for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return t=n.call.apply(n,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"onChange",(function(){var e=t.props,r=e.count,n=e.onChange,o=e.min;console.log("关系 this.props 修改",t.props),n((r||0==r)&&r>=Number(o)?1:null)})),t}return(0,c.Z)(o,[{key:"componentDidMount",value:function(){(0,ft.Z)(this.props),this.onChange()}},{key:"componentDidUpdate",value:function(t){var e=this.props.count;!e&&0!=e||t.count==e||this.onChange()}},{key:"render",value:function(){var t=this.props,e=(t.count,t.min,t.value);return console.log("关系 this.props",e),p.createElement(p.Fragment,null)}}]),o}(p.PureComponent);function pt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return dt(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)?dt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function dt(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 vt(){vt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=S,C.prototype={constructor:C,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(L),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),L(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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function yt(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}(0,h.Z)(ht,"defaultProps",{min:0});var mt=d.Z.Item,gt=v.Z.Text,wt=function(t){(0,l.Z)(_,t);var e,r,n,d,v=(n=_,d=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}}(),function(){var t,e=(0,f.Z)(n);if(d){var r=(0,f.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function _(){var t;(0,i.Z)(this,_);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=v.call.apply(v,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"state",{showDtmplView:!1,selectedCode:void 0,showSelectTable:!1,showDtmplEdit:!1,tableLoading:!1,showRowEdit:!1,selectedDtmplData:void 0,filterStr:void 0,pageSize:10}),(0,h.Z)((0,u.Z)(t),"buildDataSource",(function(){var e=t.state.filterStr,r=t.props.value,n=void 0;return r&&(n=[],r.forEach((function(t,r){var o=!0;if(e){o=!1;for(var a=0,i=Object.values(t.fieldMap);a<i.length;a++){var c=i[a];c&&c.toString().indexOf(e)>=0&&(o=!0)}}if(o){var u=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(r),!0).forEach((function(e){(0,h.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({key:r,relationLabel:t.relationLabel,code:t.code},t.fieldMap);n.push(u)}}))),n})),(0,h.Z)((0,u.Z)(t),"buildColumns",(function(){var e=t.props,r=e.viewOrEdit,n=(e.value,e.fieldGroupConfig),o=(n.title,n.buttons),a=n.fields,i=n.showRelationName,c=n.relationNames,u=(n.showRowNum,n.disabled),l=[],s=0;if(a.forEach((function(t){var e={};l.push(e),e.title=t.title,e.dataIndex=t.id,s++;var r=P.Z.getControlType(t,null);1==s?j.Z.sort(e,r,"ascend"):s<10&&j.Z.sort(e,r),e.render=function(e,r){return p.createElement(R.default,{holderType:"table",fieldConfig:t,value:r[t.id]})}})),i){var f={dataIndex:"relationLabel",name:"relation",title:"关系",type:"relation",editable:!0,fieldAvailable:!0,id:"10000",options:c};l.unshift(f)}var h=o.includes("detail"),d=o.includes("rowEdit"),v=o.includes("dtmplEdit"),g=o.includes("singleDelete");if("edit"==r&&(h||d||v||g)){var w={};l.push(w),w.title="操作",w.fixed="right",w.key="action",w.render=function(e){return p.createElement("div",{className:"actionbtn"},h?p.createElement(y.ZP,{disabled:u,title:"当前实体",type:"primary",icon:p.createElement(x.Z,null),size:"small",onClick:function(){return t.showEntityView(e)}}):"",v?p.createElement(y.ZP,{disabled:u,title:"编辑当实体",type:"primary",icon:p.createElement(k.Z,null),size:"small",onClick:function(){return t.showEditDtmplModel(e)}}):"",n.rowActions&&n.rowActions.length>0?n.rowActions.map((function(r){return p.createElement(st.Z,{disabled:u,key:r.id,data:[e],actionConfig:r,doAction:t.doRowAction,buttonSize:"small"})})):"",d?p.createElement(lt,{disabled:u,buttonIcon:p.createElement(L.Z,null),dtmplData:t.getRowEditData(e.code),fieldGroupConfig:n,onOk:t.handleRowEdit,tooltipTitle:"编辑当前行"}):"",g?p.createElement(m.Z,{placement:"right",title:"删除当前行"},p.createElement(y.ZP,{disabled:u,danger:!0,type:"primary",icon:p.createElement(C.Z,null),size:"small",onClick:function(){return t.delete(e)}})):"")}}else if("view"==r&&h){var b={};l.push(b),b.title="操作",b.fixed="right",b.key="action",b.render=function(e){return p.createElement("div",{className:"actionbtn"},h?p.createElement(y.ZP,{disabled:u,title:"当前实体",type:"primary",icon:p.createElement(x.Z,null),size:"small",onClick:function(){return t.showEntityView(e)}}):"")}}return l})),(0,h.Z)((0,u.Z)(t),"doRowAction",function(){var e=(0,a.Z)(vt().mark((function e(r,n,o){return vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.doAction(r,[{title:void 0,code:n[0]}],o);case 2:t.handleDtmplEdit(n[0]);case 3:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"doAction",function(){var e=(0,a.Z)(vt().mark((function e(r,n,o){return vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({tableLoading:!0}),e.next=3,A.Z.postActions(r,n,o);case 3:e.sent,t.setState({tableLoading:!1});case 5:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"showEntityView",(function(e){t.setState({selectedCode:e.code,showDtmplView:!0})})),(0,h.Z)((0,u.Z)(t),"hiddenEntityView",(function(){t.setState({showDtmplView:!1})})),(0,h.Z)((0,u.Z)(t),"hiddenEntityEdit",(function(){t.setState({showDtmplEdit:!1})})),(0,h.Z)((0,u.Z)(t),"editRow",(function(t){})),(0,h.Z)((0,u.Z)(t),"delete",(function(e){var r=t.props,n=r.value,o=r.fieldGroupConfig,a=r.onChange,i=[];if(n){var c,u=pt(n);try{for(u.s();!(c=u.n()).done;){var l=c.value;l.code!=e.code&&i.push(l)}}catch(t){u.e(t)}finally{u.f()}}a(o,i)})),(0,h.Z)((0,u.Z)(t),"searchValue",(function(e){t.setState({filterStr:e})})),(0,h.Z)((0,u.Z)(t),"tabChange",(function(e){t.setState({pageSize:e.pageSize})})),(0,h.Z)((0,u.Z)(t),"showSelect",(function(){t.setState({showSelectTable:!0})})),(0,h.Z)((0,u.Z)(t),"select",function(){var e=(0,a.Z)(vt().mark((function e(r){var n,o,a,i;return vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.setState({showSelectTable:!1}),r&&!(r.length<=0)){e.next=3;break}return e.abrupt("return");case 3:n=[],o=pt(r);try{for(o.s();!(a=o.n()).done;)i=a.value,n.push(i.code)}catch(t){o.e(t)}finally{o.f()}return e.next=8,t.add(n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"add",function(){var e=(0,a.Z)(vt().mark((function e(r){var n,a,i,c,u,l,s,f;return vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props,a=n.value,i=n.fieldGroupConfig,c=n.onChange,i.title,i.fields,i.showRelationName,u=i.relationNames,i.showRowNum,t.setState({tableLoading:!0}),e.next=5,A.Z.requestSelectedData(i.id,r);case 5:if(l=e.sent){s=pt(l);try{for(s.s();!(f=s.n()).done;)f.value.relationLabel=u[0]}catch(t){s.e(t)}finally{s.f()}}a&&l.unshift.apply(l,(0,o.Z)(a)),c(i,l),t.setState({tableLoading:!1});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"getRowEditData",(function(e){var r=t.props.value,n=void 0;if(e){var o,a=pt(r);try{for(a.s();!(o=a.n()).done;){var i=o.value;if(e==i.code){n=i;break}}}catch(t){a.e(t)}finally{a.f()}}return n})),(0,h.Z)((0,u.Z)(t),"handleDtmplAdd",function(){var e=(0,a.Z)(vt().mark((function e(r){return vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({showDtmplEdit:!1}),e.next=3,t.add([r]);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"handleDtmplEdit",function(){var e=(0,a.Z)(vt().mark((function e(r){var n,a,i,c,u,l,s,f,h;return vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props,a=n.value,i=n.fieldGroupConfig,c=n.onChange,i.title,i.fields,i.showRelationName,i.relationNames,i.showRowNum,t.setState({tableLoading:!0,showDtmplEdit:!1}),e.next=5,A.Z.requestSelectedData(i.id,[r]);case 5:if(u=e.sent[0],(l=(0,o.Z)(a))&&u){s=pt(l);try{for(s.s();!(f=s.n()).done;)(h=f.value).code==u.code&&(h.fieldMap=u.fieldMap)}catch(t){s.e(t)}finally{s.f()}}c(i,l),t.setState({tableLoading:!1});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.Z)((0,u.Z)(t),"handleRowEdit",(function(e){var r=t.props,n=r.value,a=r.fieldGroupConfig,i=r.onChange,c=[];n&&(c=(0,o.Z)(n));var u,l=!0,s=pt(c);try{for(s.s();!(u=s.n()).done;){var f=u.value;if(f.code==e.code){l=!1,f.editStatus=e.editStatus,f.fieldMap=e.fieldMap,f.relationLabel=e.relationLabel;break}}}catch(t){s.e(t)}finally{s.f()}l&&c.unshift(e),i(a,c),l?g.ZP.success("已添加"):g.ZP.success("已修改")})),(0,h.Z)((0,u.Z)(t),"showAddDtmplModel",(function(){t.setState({showDtmplEdit:!0,selectedCode:void 0})})),(0,h.Z)((0,u.Z)(t),"showEditDtmplModel",(function(e){t.setState({showDtmplEdit:!0,selectedCode:e.code})})),(0,h.Z)((0,u.Z)(t),"buildButtons",(function(){var e=t.props,r=e.fieldGroupConfig,n=e.viewOrEdit,o=e.value,a=r.buttons,i=r.disabled,c=(t.state.showRowEdit,i||!!r.max&&r.max<=(o?o.length:0));return"edit"==n?p.createElement(w.Z,null,p.createElement(b.Z,{span:20},p.createElement(Z.Z,null,a.includes("rowAdd")?p.createElement(lt,{disabled:c,buttonStyle:{marginBottom:10},buttonTitle:"新建一行",fieldGroupConfig:r,onOk:t.handleRowEdit}):"",a.includes("dtmplAdd")?p.createElement(y.ZP,{disabled:c,type:"primary",icon:p.createElement(S.Z,null),size:"small",onClick:t.showAddDtmplModel,style:{marginBottom:10}},"新增"):"",a.includes("selectAdd")?p.createElement(y.ZP,{disabled:c,type:"primary",icon:p.createElement(O.Z,null),size:"small",onClick:t.showSelect,style:{marginBottom:10}},"选择"):"",r.min&&(!o||o.length<=0)?p.createElement(gt,{style:{color:"red"}},"请选择或添加",r.title):null,p.createElement(mt,{name:"$virtual"+r.id,style:{margin:0,maxHeight:"32px"},rules:r.min?[{required:!0,message:""}]:null},p.createElement(ht,{min:r.min+"",style:{marginBottom:10},count:o?o.length:0}))))):""})),t}return(0,c.Z)(_,[{key:"componentDidMount",value:(r=(0,a.Z)(vt().mark((function t(){return vt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,a.Z)(vt().mark((function t(e){var r,n;return vt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this.props.fieldGroupConfig,n=e.fieldGroupConfig,r.disabled==n.disabled&&r.mainCode==n.mainCode||this.setState({filterStr:""});case 3:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this,e=this.props,r=e.fieldGroupConfig,n=e.value,o=e.parentId,a=e.loading,i=e.initCollapse,c=e.mainCode,u=this.state,l=u.pageSize,s=u.selectedCode,f=u.showDtmplView,h=u.showSelectTable,d=u.showDtmplEdit,v=u.tableLoading,y=(u.showRowEdit,u.selectedDtmplData,r.buttons),m=r.mainCode?r.mainCode:c||o,g={pageSize:l,hideOnSinglePage:!0,defaultCurrent:1,total:n?n.length:void 0,showTotal:function(t){return"总共有".concat(t,"条")}},w=[];if(n){var b,Z=pt(n);try{for(Z.s();!(b=Z.n()).done;){var x=b.value;w.push(x.code)}}catch(t){Z.e(t)}finally{Z.f()}}return r.displayConfig.includes("nonDataNonDisplayed")&&(!n||n.length<=0)?"":p.createElement(p.Fragment,null,p.createElement(Q.Z,{initCollapse:i||r.displayConfig.includes("folded"),title:r.title,id:o+r.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:a,bodyStyle:{padding:"6px"}},p.createElement("div",{className:"editTableList"},this.buildButtons(),p.createElement(E.Z,{size:"small",scroll:{scrollToFirstRowOnChange:!1},locale:{emptyText:p.createElement("div",{style:{textAlign:"center",width:"100%"}},p.createElement(gt,{disabled:!0},"暂无数据..."))},bordered:!0,loading:v,dataSource:this.buildDataSource(),columns:this.buildColumns(),pagination:g,onChange:this.tabChange}))),y.includes("detail")?p.createElement(N.Z,{mainCode:m,open:f,onCancel:this.hiddenEntityView,sourceId:r.id,code:s}," "):"",y.includes("dtmplEdit")||y.includes("dtmplAdd")?p.createElement(I.default,{mainCode:m,open:d,onCancel:this.hiddenEntityEdit,sourceId:r.id,code:s,onOk:s?this.handleDtmplEdit:this.handleDtmplAdd}):"",y.includes("selectAdd")?p.createElement(K,{maxSelectedRows:r.max,open:h,onOK:this.select,onCancel:function(){t.setState({showSelectTable:!1})},exceptCodes:w,mainCode:m,sourceId:r.id}):"")}}]),_}(p.PureComponent);(0,h.Z)(wt,"defaultProps",{});var bt=wt},55707:function(t,e,r){"use strict";r.r(e);var n=r(32763),o=r(92801),a=r(1252),i=r(59755),c=r(90237),u=r(65337),l=r(95225),s=r(39576),f=r(61378),h=r(69905),p=r(15274),d=r(67294),v=r(49192),y=r(15128),m=r(49073),g=r(49811),w=r(16739),b=r(87200),Z=r(25291);function E(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return x(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)?x(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function x(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 k(){k=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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=f(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 x(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,x(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function L(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 C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach((function(e){(0,p.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var S=function(t){(0,s.Z)(S,t);var e,r,n,x,L=(n=S,x=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}}(),function(){var t,e=(0,h.Z)(n);if(x){var r=(0,h.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,f.Z)(this,t)});function S(){var t;(0,c.Z)(this,S);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=L.call.apply(L,[this].concat(r)),(0,p.Z)((0,l.Z)(t),"state",{selectConfig:void 0,columns:void 0,queryKey:void 0,loading:!0,criteriaData:void 0,disableCols:void 0,pageNo:1,pageSize:void 0}),(0,p.Z)((0,l.Z)(t),"loadData",function(){var e=(0,i.Z)(k().mark((function e(r,n){var o,a,i,c,u,l,s,f;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({loading:!0}),o=t.props.mainCode,a=t.state,i=a.pageNo,c=a.pageSize,u=r.defaultPageSize,l={pageNo:i,pageSize:c||u||10,virtualEndPageNo:void 0},s=t.props.sourceId,e.next=8,g.Z.requestLtmplQueryKey(s,C(C(C({},n),l),{},{mainCode:o}));case 8:f=e.sent,t.setState({queryKey:f,criteriaData:n,loading:!1});case 10:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),(0,p.Z)((0,l.Z)(t),"loadConfig",(0,i.Z)(k().mark((function e(){var r,n,o,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.sourceId,t.setState({loading:!0}),e.next=4,m.Z.requestSelectConfig(r);case 4:return n=e.sent,o=[],a=0,n.columns.forEach((function(t){var e={};"操作"!=t.title&&o.push(e),e.title=t.title,e.dataIndex=t.id,a++;var r=y.Z.getSupportControlType(t);a<10&&v.Z.sort(e,r),"序号"===t.title?(e.render=function(t,e,r){return d.createElement("label",null,r+1)},t.sorter=void 0):e.render=function(e,r){return d.createElement(Z.default,{holderType:"table",fieldConfig:t,value:r[t.id]})}})),t.setState({columns:o,selectConfig:n,loading:!1}),e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)})))),(0,p.Z)((0,l.Z)(t),"doSearch",function(){var e=(0,i.Z)(k().mark((function e(r){var n,o;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.state.selectConfig,o=C({},r),e.next=4,t.loadData(n,o);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,p.Z)((0,l.Z)(t),"changeRowSelection",(function(e,r,n){var o,i=[],c=t.props,u=c.selectedRows,l=c.selectedDatas,s=c.onChange,f=c.maxSelectedRows;if(n){var h=[],p=[];1!=f&&p.push.apply(p,(0,a.Z)(u));var d,v=!1,y=E(e);try{for(y.s();!(d=y.n()).done;){var m=d.value;v=!1;var g,w=E(p);try{for(w.s();!(g=w.n()).done;){var b=g.value;m.code==b.code&&(v=!0)}}catch(t){w.e(t)}finally{w.f()}v||p.push(m),h.push(m.code)}}catch(t){y.e(t)}finally{y.f()}var Z=[];Z.push.apply(Z,p);for(var x=0,k=p;x<k.length;x++){var L=k[x];if(n.includes(L.code)&&!h.includes(L.code))for(var C in Z)Z[C].code==L.code&&Z.splice(Number(C),1)}o=Z}else o=e;var S,O=[].concat((0,a.Z)(l),(0,a.Z)(r)),P=E(o);try{for(P.s();!(S=P.n()).done;){var j,R=S.value,N=E(O);try{for(N.s();!(j=N.n()).done;){var I=j.value;I.code==R.code&&i.push(I)}}catch(t){N.e(t)}finally{N.f()}}}catch(t){P.e(t)}finally{P.f()}s(o,i)})),(0,p.Z)((0,l.Z)(t),"onChangePage",(function(e,r){t.setState({pageNo:e,pageSize:r})})),t}return(0,u.Z)(S,[{key:"componentDidMount",value:(r=(0,i.Z)(k().mark((function t(){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=this,t.next=3,this.loadConfig();case 3:return t.t1=t.sent,t.t2={},t.next=7,t.t0.loadData.call(t.t0,t.t1,t.t2);case 7:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,i.Z)(k().mark((function t(e){var r,n,a,i,c,u;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((0,o.Z)(this.props),r=this.state,n=r.selectConfig,a=r.criteriaData,i=r.queryKey,c=r.loading,e.exceptCodes,e.open,u=n){t.next=8;break}return t.next=7,this.loadConfig();case 7:u=t.sent;case 8:if(i||c){t.next=11;break}return t.next=11,this.loadData(u,a);case 11:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.maxSelectedRows,r=t.selectedRows,n=t.selectedDatas,o=this.state,a=o.queryKey,i=o.columns,c=o.selectConfig,u=o.criteriaData,l=o.loading,s=o.pageNo,f=o.pageSize;if(!c)return d.createElement(d.Fragment,null);var h=c.buttons,p=c.criterias,v=c.jumps,y=c.actions;return h.includes("batchDelete")||h.includes("query")&&p&&p.length>0||y&&y.length>0||v&&v.length,d.createElement("div",{className:"actTable"},d.createElement(b.Z,{selectedRows:r,selectedDatas:n,ltmplConfig:c,data:u,doSearch:this.doSearch,loading:l}),d.createElement(w.Z,{maxSelectedRows:e,selectedRows:r,columns:i,pageInfo:{pageNo:s,pageSize:f||c.defaultPageSize},onChangePage:this.onChangePage,queryKey:a,onChangeRowSelection:this.changeRowSelection}))}}]),S}(d.PureComponent);(0,p.Z)(S,"defaultProps",{maxSelectedRows:1e3,selectedDatas:[]}),e.default=S},49192:function(t,e){"use strict";e.Z={sort:function(t,e,r){var n=t.dataIndex;t.sorter="decimal"==e||"int"==e||"float"==e||"double"==e?function(t,e){return t[n]-e[n]}:"text"==e||"textarea"==e||"date"==e||"datetime"==e?function(t,e){return t[n]?t[n].localeCompare(e[n],"zh-CN"):-1}:function(t,e){return t[n]&&e[n]&&t[n].localeCompare?t[n]?t[n].localeCompare(e[n],"zh-CN"):-1:1},r&&(t.defaultSortOrder=r),t.showSorterTooltip=!1}}},15128:function(t,e,r){"use strict";var n=r(55105),o=new Set;function a(){}o.add("date-YY"),o.add("daterange-YY"),o.add("date-M1"),o.add("daterange-M1"),o.add("date"),o.add("daterange"),o.add("datetime-HH"),o.add("datetimerange-HH"),o.add("datetime-mm"),o.add("datetimerange-mm"),o.add("datetime"),o.add("datetimerange"),o.add("timestamp"),o.add("time-HH"),o.add("timerange-HH"),o.add("time-mm"),o.add("timerange-mm"),o.add("time"),o.add("timerange"),o.add("text"),o.add("textarea"),o.add("html"),o.add("steps"),o.add("progress"),o.add("password"),o.add("preselect"),o.add("select"),o.add("multiselect"),o.add("checkbox"),o.add("radio"),o.add("yes-no-radio"),o.add("yes-no-switch"),o.add("caselect"),o.add("relation"),o.add("file"),o.add("picture"),o.add("chemstruc"),o.add("sql-code-editor"),o.add("video"),o.add("takeVideo"),o.add("signature"),o.add("non-download-file"),o.add("decimal"),o.add("float"),o.add("double"),o.add("int"),o.add("relselect"),o.add("refselect"),o.add("range"),o.add("intrange"),o.add("decimalrange"),o.add("texttags"),o.add("entity-select"),o.add("table-entity-select"),o.add("modal-entity-select"),o.add("color"),o.add("url"),o.add("hidden"),o.add("lab-tree-select"),a.isSupport=function(t){return!!t&&(!!n.cB.getCustomViewControl(t)||o.has(t))},a.getSupportControlType=function(t){return this.isSupport(t.extControlType)?t.extControlType:this.isSupport(t.controlType)?t.controlType:"text"},a.getControlType=function(t,e){var r;return r=this.getSupportControlType(t),e&&"string"==typeof e&&-1===e.indexOf("@R@")&&"relselect"===r&&-1!=e.indexOf("download-files/")&&(r="file"),r},e.Z=a},49073:function(t,e,r){"use strict";var n=r(32763),o=r(1252),a=r(59755),i=r(49811),c=r(15128),u=r(32823);function l(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return s(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)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function s(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 f(){f=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:x(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p={};function d(){}function v(){}function y(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(O([])));w&&w!==e&&r.call(w,i)&&(m=w);var b=y.prototype=d.prototype=Object.create(m);function Z(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function a(o,i,c,u){var l=h(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==(0,n.Z)(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,r);if(c){if(c===p)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=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function k(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,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(b,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},Z(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new E(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},Z(b),l(b,u,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},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),p},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),C(r),p}},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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}var h=[],p=[],d=[],v=[],y=new Map,m=new Map,g=new Map,w=new Map,b=new Map,Z=new Map,E=new Map,x=new Map;function k(t){var e=[];return t&&t.forEach((function(t){var r=c.Z.getSupportControlType(t);"caselect"!=r&&"select"!=r&&"multiselect"!=r&&"steps"!=r&&"preselect"!=r&&"checkbox"!=r&&"radio"!=r||y.has(t.mstrucId)||e.push(t.mstrucId)})),e}function L(t){var e=[];return t&&t.forEach((function(t){var r=k(t.writes);O(e,r),r=k(t.preposes),O(e,r)})),e}function C(t){return S.apply(this,arguments)}function S(){return(S=(0,a.Z)(f().mark((function t(e){var r,n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],e.groups&&e.groups.forEach((function(t){var e=k(t.fields);O(r,e)})),n=L(e.actions),O(r,n),t.next=6,I(r);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function O(t,e){return e&&e.forEach((function(e){t.includes(e)||t.push(e)})),t}function P(t){return j.apply(this,arguments)}function j(){return(j=(0,a.Z)(f().mark((function t(e){var r,n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],n=k(e.columns),O(r,n),n=k(e.criterias),O(r,n),t.next=7,I(r);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function R(t){return N.apply(this,arguments)}function N(){return(N=(0,a.Z)(f().mark((function t(e){var r,n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],n=k(e.columns),O(r,n),n=k(e.criterias),O(r,n),n=k(e.drillingParams),O(r,n),n=k(e.reStatParams),O(r,n),n=L(e.actions),O(r,n),n=L(e.rowActions),O(r,n),t.next=15,I(r);case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function I(t,e){return _.apply(this,arguments)}function _(){return(_=(0,a.Z)(f().mark((function t(e,r){var n,o,a,c,u,s;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e&&e.length>0)){t.next=5;break}return t.next=3,i.Z.requestEnum(e,r);case 3:for(o in n=t.sent){a=n[o],c=l(a);try{for(c.s();!(u=c.n()).done;)(s=u.value).css&&(s.color=s.css.color)}catch(t){c.e(t)}finally{c.f()}y.set(o,a)}case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(){}T.loadEnumOfFields=function(){var t=(0,a.Z)(f().mark((function t(e){var r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=k(e),t.next=3,I(r);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),T.loadEnumOfFieldsWithPath=function(){var t=(0,a.Z)(f().mark((function t(e,r){var n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=k(e),t.next=3,I(n,r);case 3:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),T.getOptions=function(){var t=(0,a.Z)(f().mark((function t(e){var r,n,o,a;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",null);case 2:if(y.has(e)){t.next=7;break}return t.next=5,i.Z.requestOptions(e)[e];case 5:if(null!=(r=t.sent)){n=l(r);try{for(n.s();!(o=n.n()).done;)(a=o.value).css&&(a.color=a.css.color)}catch(t){n.e(t)}finally{n.f()}y.set(e,r)}case 7:return t.abrupt("return",y.get(e));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),T.requestLtmplConfig=function(){var t=(0,a.Z)(f().mark((function t(e){var r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(g.has(e)){t.next=10;break}return t.t0=g,t.t1=e,t.next=5,i.Z.requestLtmplConfig(e);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),r=g.get(e),t.next=10,R(r.ltmplConfig);case 10:return t.abrupt("return",g.get(e));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),T.requestL2LtmplConfig=function(){var t=(0,a.Z)(f().mark((function t(e){var r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(w.has(e)){t.next=10;break}return t.t0=w,t.t1=e,t.next=5,i.Z.requestL2LtmplConfig(e);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),r=w.get(e),t.next=10,R(r.ltmplConfig);case 10:return t.abrupt("return",w.get(e));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),T.requestSelectConfig=function(){var t=(0,a.Z)(f().mark((function t(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m.has(e)){t.next=9;break}return t.t0=m,t.t1=e,t.next=5,i.Z.requestSelectConfig(e);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),t.next=9,P(m.get(e));case 9:return t.abrupt("return",m.get(e));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),T.requestDtmplConfig=function(){var t=(0,a.Z)(f().mark((function t(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(b.has(e)){t.next=9;break}return t.t0=b,t.t1=e,t.next=5,i.Z.requestDtmplConfig(e);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),t.next=9,C(b.get(e));case 9:return t.abrupt("return",b.get(e));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),T.requestViewDtmplConfig=function(){var t=(0,a.Z)(f().mark((function t(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Z.has(e)){t.next=9;break}return t.t0=Z,t.t1=e,t.next=5,i.Z.requestViewDtmplConfig(e);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),t.next=9,C(Z.get(e));case 9:return t.abrupt("return",Z.get(e));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),T.requestAddDtmplConfig=function(){var t=(0,a.Z)(f().mark((function t(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(E.has(e)){t.next=9;break}return t.t0=E,t.t1=e,t.next=5,i.Z.requestAddDtmplConfig(e);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),t.next=9,C(E.get(e));case 9:return t.abrupt("return",E.get(e));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),T.getEnums=function(t){return y.get(t)},T.getEnumOption=function(t,e){if(!e)return null;var r=this.getEnums(t),n=void 0;return r&&r.forEach((function(t){t.value!==e||(n=t)})),n},T.getEnumValueColor=function(t,e){var r=T.getEnumOption(t,e);return r?r.color:void 0},T.requestBlocks=function(){var t=(0,a.Z)(f().mark((function t(e,r){var n,o,a,c,u;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(h.length<1)){t.next=9;break}return t.next=3,i.Z.requestBlocks(e||void 0,r||void 0);case 3:o=t.sent,a=l(o.blocks);try{for(a.s();!(c=a.n()).done;)u=c.value,h.push(u)}catch(t){a.e(t)}finally{a.f()}n={blocks:o.blocks,l2MenuId:o.l2MenuId,blockId:o.blockId},t.next=10;break;case 9:n={blocks:h,blockId:r,l2MenuId:e};case 10:return t.abrupt("return",n);case 11:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),T.quickEntranceMenus=(0,a.Z)(f().mark((function t(){var e;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(p.length<1)){t.next=5;break}return t.next=3,i.Z.requestFaceplate_menu();case 3:(e=t.sent)&&(p.splice(0,p.length),p.push.apply(p,(0,o.Z)(e)));case 5:return t.abrupt("return",[].concat(p));case 6:case"end":return t.stop()}}),t)}))),T.messageMenus=(0,a.Z)(f().mark((function t(){var e;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(d.length<1)){t.next=5;break}return t.next=3,i.Z.requestMessagebar();case 3:(e=t.sent)&&d.push.apply(d,(0,o.Z)(e));case 5:return t.abrupt("return",[].concat(d));case 6:case"end":return t.stop()}}),t)}))),T.workbenchMenus=(0,a.Z)(f().mark((function t(){var e;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(v.length<1)){t.next=5;break}return t.next=3,i.Z.requestFaceplateStatistic_menu();case 3:(e=t.sent)&&v.push.apply(v,(0,o.Z)(e));case 5:return t.abrupt("return",[].concat(v));case 6:case"end":return t.stop()}}),t)}))),T.reload=function(){var t=(0,a.Z)(f().mark((function t(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.Z.reload();case 2:if("success"==t.sent.status){t.next=5;break}return t.abrupt("return");case 5:this.clear(),u.ZP.success("执行成功");case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),T.cache=function(t){t&&x.set(t.code,t)},T.getFromCache=function(t){return x.get(t)},T.clear=(0,a.Z)(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:y.clear(),g.clear(),b.clear(),Z.clear(),E.clear(),m.clear(),w.clear(),h.splice(0,h.length),p.splice(0,p.length),d.splice(0,p.length),v.splice(0,v.length),x.clear();case 12:case"end":return t.stop()}}),t)}))),e.Z=T},49811:function(t,e,r){"use strict";r.d(e,{Z:function(){return x}});var n=r(32763),o=r(15274),a=r(59755),i=r(90237),c=r(65337),u=r(94716),l=r(38763),s=r(32823),f=(r(67294),r(81354)),h=r.n(f),p=r(56084),d=function(){function t(){(0,i.Z)(this,t)}return(0,c.Z)(t,null,[{key:"aesEncrypt",value:function(t,e){e=e||"kuangkie";var r=h().enc.Utf8.parse(e),n=h().enc.Utf8.parse(t);return h().AES.encrypt(n,r,{mode:h().mode.ECB,padding:h().pad.Pkcs7}).toString()}},{key:"aesDecrypt",value:function(t,e){var r=e||"kuangkie",n=h().enc.Utf8.parse(r),o=h().AES.decrypt(t,n,{mode:h().mode.ECB,padding:h().pad.Pkcs7});return h().enc.Utf8.stringify(o).toString()}},{key:"rsaEncrypt",value:function(t,e){var r=new p.Z;return r.setPublicKey(e),r.encrypt(t)}},{key:"rsaDecrypt",value:function(t,e){var r=new p.Z;return r.setPrivateKey(e),r.decrypt(t)}}]),t}(),v=r(27484),y=r.n(v),m=r(49073),g=r(55105);function w(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 b(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 Z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){(0,o.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function E(){E=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:x(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,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=f(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 k(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,k(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var x=function(){function t(){(0,i.Z)(this,t)}var e,r,n,o,f,h,p,v,b,x,k,L,C,S,O,P,j,R,N,I,_,T,A,D,F,G,M,q,B,V,H,Y,z,U,W,K,Q,$,J,X,tt,et,rt,nt,ot,at,it,ct,ut,lt,st,ft,ht,pt,dt,vt;return(0,c.Z)(t,null,[{key:"requestEnum",value:(vt=(0,a.Z)(E().mark((function t(e,r){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=6;break}return t.next=3,this.requestEnumWithPath(e,"/enum");case 3:case 8:return t.abrupt("return",t.sent);case 6:return t.next=8,this.requestEnumWithPath(e,r);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return vt.apply(this,arguments)})},{key:"requestEnumWithPath",value:(dt=(0,a.Z)(E().mark((function t(e,r){var n;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.length>0)){t.next=7;break}return t.next=3,l.Z.super({url:"/v3".concat(r),query:{mstrucIds:e}});case 3:return n=t.sent,t.abrupt("return",n.enumMap);case 7:return t.abrupt("return",{});case 8:case"end":return t.stop()}}),t)}))),function(t,e){return dt.apply(this,arguments)})},{key:"requestOptions",value:(pt=(0,a.Z)(E().mark((function t(e){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestEnum([e]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return pt.apply(this,arguments)})},{key:"requestDtmplConfig",value:(ht=(0,a.Z)(E().mark((function t(e){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/dtmpl/config",method:"GET",query:{sourceId:e}});case 3:return r=t.sent,t.abrupt("return",r.dtmplConfig);case 5:case"end":return t.stop()}}),t)}))),function(t){return ht.apply(this,arguments)})},{key:"requestViewDtmplConfig",value:(ft=(0,a.Z)(E().mark((function t(e){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/view-dtmpl/config",method:"GET",query:{sourceId:e}});case 3:return r=t.sent,t.abrupt("return",r.dtmplConfig);case 5:case"end":return t.stop()}}),t)}))),function(t){return ft.apply(this,arguments)})},{key:"requestAddDtmplConfig",value:(st=(0,a.Z)(E().mark((function t(e){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/add-dtmpl/config",method:"GET",query:{sourceId:e}});case 3:return r=t.sent,t.abrupt("return",r.dtmplConfig);case 5:case"end":return t.stop()}}),t)}))),function(t){return st.apply(this,arguments)})},{key:"requestSelectConfig",value:(lt=(0,a.Z)(E().mark((function t(e){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/select/config",method:"GET",query:{sourceId:e}});case 3:return r=t.sent,t.abrupt("return",r.selectConfig);case 5:case"end":return t.stop()}}),t)}))),function(t){return lt.apply(this,arguments)})},{key:"requestLtmplConfig",value:(ut=(0,a.Z)(E().mark((function t(e){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/ltmpl/config",method:"GET",query:{sourceId:e}});case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)}))),function(t){return ut.apply(this,arguments)})},{key:"requestL2LtmplConfig",value:(ct=(0,a.Z)(E().mark((function t(e){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/l2/ltmpl/config",method:"GET",query:{sourceId:e}});case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)}))),function(t){return ct.apply(this,arguments)})},{key:"requestLtmplQueryKey",value:(it=(0,a.Z)(E().mark((function t(e,r){var n;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/ltmpl/query/key",method:"GET",query:Z(Z({},r),{},{sourceId:e})});case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return it.apply(this,arguments)})},{key:"requestLtmplQueryTop",value:(at=(0,a.Z)(E().mark((function t(e,r){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonLtmplQueryTop(e,r,"/v3/ltmpl/top-data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return at.apply(this,arguments)})},{key:"requestMstrucLtmplQueryTop",value:(ot=(0,a.Z)(E().mark((function t(e,r){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonLtmplQueryTop(e,r,"/v3/mstruc/ltmpl/top-data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return ot.apply(this,arguments)})},{key:"queryTop1",value:(nt=(0,a.Z)(E().mark((function e(r){var n,o;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.requestMstrucLtmplQueryTop(r,{top:1});case 2:return n=e.sent,o=null,n&&n.entities&&n.entities[0]&&(o=n.entities[0].code),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)}))),function(t){return nt.apply(this,arguments)})},{key:"requestCommonLtmplQueryTop",value:(rt=(0,a.Z)(E().mark((function t(e,r,n){var o;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:n,method:"GET",query:Z(Z({},r),{},{sourceId:e})});case 2:return o=t.sent,t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(t,e,r){return rt.apply(this,arguments)})},{key:"requestSelectedData",value:(et=(0,a.Z)(E().mark((function t(e,r){var n;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=3;break}return s.ZP.warning("没有选择实体"),t.abrupt("return",null);case 3:return t.next=6,l.Z.super({url:"/v3/field-group/data/selected",query:{codes:r,sourceId:e},method:"GET"});case 6:if("success"!==(n=t.sent).status){t.next=11;break}return t.abrupt("return",n.entities);case 11:return s.ZP.error("没有找到实体!"),t.abrupt("return",null);case 13:case"end":return t.stop()}}),t)}))),function(t,e){return et.apply(this,arguments)})},{key:"requestVersionList",value:(tt=(0,a.Z)(E().mark((function t(e,r){var n;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/dtmpl/data/versions",query:{pageNo:1,sourceId:e,code:r},method:"GET"});case 2:return n=t.sent,t.abrupt("return",n.versions);case 4:case"end":return t.stop()}}),t)}))),function(t,e){return tt.apply(this,arguments)})},{key:"requestCommonDtmplData",value:(X=(0,a.Z)(E().mark((function t(e,r,n,o){var a;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:o,query:{code:r,versionId:n,sourceId:e},method:"GET"});case 2:if("success"!==(a=t.sent).status){t.next=7;break}return t.abrupt("return",a.entity);case 7:return s.ZP.error("实体不存在!"),t.abrupt("return",null);case 9:case"end":return t.stop()}}),t)}))),function(t,e,r,n){return X.apply(this,arguments)})},{key:"requestDtmplData",value:(J=(0,a.Z)(E().mark((function t(e,r,n){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,"/v3/dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return J.apply(this,arguments)})},{key:"requestMstrucDtmplData",value:($=(0,a.Z)(E().mark((function t(e,r,n){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,"/v3/mstruc/dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return $.apply(this,arguments)})},{key:"requestViewDtmplData",value:(Q=(0,a.Z)(E().mark((function t(e,r,n){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,"/v3/view-dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return Q.apply(this,arguments)})},{key:"requestMstrucViewDtmplData",value:(K=(0,a.Z)(E().mark((function t(e,r,n){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,"/v3/mstruc/view-dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return K.apply(this,arguments)})},{key:"postCommonDtmplData",value:(W=(0,a.Z)(E().mark((function t(e,r,n,o){var a,i,c,u,s;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i in a=new FormData,r)i.startsWith("$virtual")||a.append(i,r[i]||0==r[i]?r[i]:"");return a.append("sourceId",e.toString()),t.next=5,l.Z.super({url:o,data:a,method:"POST"},"formdata");case 5:return c=t.sent,u=null,c?"success"===c.status?(s="",c.message&&(s=c.message),n&&n.success("保存成功! "+s),u=c.entityCode?c.entityCode:c.code):n&&n.error("保存失败"):n&&n.error("保存成功"),t.abrupt("return",{code:u,status:c.status});case 9:case"end":return t.stop()}}),t)}))),function(t,e,r,n){return W.apply(this,arguments)})},{key:"postDtmplData",value:(U=(0,a.Z)(E().mark((function t(e,r,n){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.postCommonDtmplData(e,r,n,"/v3/dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return U.apply(this,arguments)})},{key:"postMstrucDtmplData",value:(z=(0,a.Z)(E().mark((function t(e,r,n){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.postCommonDtmplData(e,r,n,"/v3/mstruc/dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return z.apply(this,arguments)})},{key:"postFileAction",value:function(t){return u.Z.api()+"/v3/upload"}},{key:"postFile",value:(Y=(0,a.Z)(E().mark((function t(e,r){var n,o;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/upload",data:e,method:"POST"},"formdata");case 2:return n=t.sent,o=null,n?"success"===n.status&&(r&&r.success("上传成功! "),o=n.fileKey):r&&r.error("上传失败!"),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)}))),function(t,e){return Y.apply(this,arguments)})},{key:"requestL2LtmplQueryKey",value:(H=(0,a.Z)(E().mark((function t(e,r){var n;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"v3/l2/ltmpl/query/key",method:"GET",query:Z(Z({},r),{},{sourceId:e})});case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return H.apply(this,arguments)})},{key:"requestLtmplCount",value:(V=(0,a.Z)(E().mark((function t(e){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/ltmpl/data/count",query:{sourceId:e},method:"GET"});case 3:return r=t.sent,t.abrupt("return",r.count);case 5:case"end":return t.stop()}}),t)}))),function(t){return V.apply(this,arguments)})},{key:"requestQueryData",value:(B=(0,a.Z)(E().mark((function t(e,r){var n;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/ltmpl/query/data",method:"GET",query:Z({queryKey:e},r)});case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)}))),function(t,e){return B.apply(this,arguments)})},{key:"getCodesOfSelectedRows",value:function(t){var e=[];if(t&&!(t.length<1)){var r,n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return w(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)?w(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(t);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.code?e.push(o.code):s.ZP.error("没找到所选数据的Code!!")}}catch(t){n.e(t)}finally{n.f()}return e.length<1&&s.ZP.error("没找到所选数据的Code!!"),e}}},{key:"deleteData",value:(q=(0,a.Z)(E().mark((function t(e,r){var n;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.getCodesOfSelectedRows(r),t.next=3,this.deleteByCode(e,n);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return q.apply(this,arguments)})},{key:"deleteByCode",value:(M=(0,a.Z)(E().mark((function t(e,r){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/ltmpl/data",data:{codes:r,sourceId:e},method:"DELETE"});case 2:if("success"!=t.sent.status){t.next=8;break}return s.ZP.success("删除成功"),t.abrupt("return",!0);case 8:return s.ZP.error("删除失败"),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t)}))),function(t,e){return M.apply(this,arguments)})},{key:"requestQueryCount",value:(G=(0,a.Z)(E().mark((function t(e){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/ltmpl/query/count",method:"GET",query:{queryKey:e}});case 2:return r=t.sent,t.abrupt("return",r.count);case 4:case"end":return t.stop()}}),t)}))),function(t){return G.apply(this,arguments)})},{key:"requestFile",value:(F=(0,a.Z)(E().mark((function t(e){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/files/"+e,method:"GET"});case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),function(t){return F.apply(this,arguments)})},{key:"postActions",value:(D=(0,a.Z)(E().mark((function t(e,r,n){var o,a,i,c;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i in o=this.getCodesOfSelectedRows(r),a=new FormData,n)a.append(i,n[i]?n[i]:"");return a.append("sourceId",e.toString()),a.append("codes",o.join(",")),t.next=7,l.Z.super({url:"/v3/action",data:a,method:"POST"},"formdata");case 7:return c=t.sent,t.abrupt("return",c);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return D.apply(this,arguments)})},{key:"postJumps",value:(A=(0,a.Z)(E().mark((function t(e,r){var n;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/jump",query:{code:r,sourceId:e},method:"GET"});case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)}))),function(t,e){return A.apply(this,arguments)})},{key:"increCalc",value:(T=(0,a.Z)(E().mark((function t(e){var r,n,o=arguments;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},t.next=3,l.Z.super({url:"/v3/stat/increcalc",method:"POST",data:Z(Z({},r),{},{sourceId:e})});case 3:return"success"===(n=t.sent).status?s.ZP.success("统计成功"):s.ZP.error("统计失败"),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)}))),function(t){return T.apply(this,arguments)})},{key:"downloadDetailExcel",value:function(t,e){var r=u.Z.hydrocarbonToken(),n=u.Z.api()+"/v3/dtmpl/excel?sourceId=".concat(t,"&code=").concat(e,"&@token=").concat(r,"&@programToken=").concat(u.Z.programCode());u.Z.downloadFile(n,"详情")}},{key:"download",value:function(t){var e=t.split("/"),r=e[e.length-1];u.Z.downloadFile(this.getFileUrl(t)+"&disposition=attachment",r)}},{key:"openfile",value:function(t,e){var r=t.split("/"),n=r[r.length-1];u.Z.openFile(this.getFileUrl(t),n,e)}},{key:"getFileUrl",value:function(t){var e=u.Z.hydrocarbonToken();return u.Z.api()+u.Z.joinPath("/v3/files",t)+"?@token=".concat(e,"&@programToken=").concat(u.Z.programCode())}},{key:"getFileTxtUrl",value:function(t){var e=u.Z.hydrocarbonToken();return u.Z.api()+"/v3/files/text"+t+"?@token=".concat(e,"&@programToken=").concat(u.Z.programCode())}},{key:"loadFileTxt",value:(_=(0,a.Z)(E().mark((function t(e){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/files/text"+e,method:"GET"});case 2:return r=t.sent,t.abrupt("return",r.text);case 4:case"end":return t.stop()}}),t)}))),function(t){return _.apply(this,arguments)})},{key:"requestFaceplate_menu",value:(I=(0,a.Z)(E().mark((function t(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/menu/faceplate",method:"GET"});case 3:return e=t.sent,t.abrupt("return",e.l2Menus);case 5:case"end":return t.stop()}}),t)}))),function(){return I.apply(this,arguments)})},{key:"requestFaceplateStatistic_menu",value:(N=(0,a.Z)(E().mark((function t(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/menu/faceplate-statistic",method:"GET"});case 3:return e=t.sent,t.abrupt("return",e.l2Menus);case 5:case"end":return t.stop()}}),t)}))),function(){return N.apply(this,arguments)})},{key:"requestBlocks",value:(R=(0,a.Z)(E().mark((function t(e,r){var n;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/menu/blocks",method:"GET",query:{l2MenuId:e,blockId:r}});case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return R.apply(this,arguments)})},{key:"logout",value:(j=(0,a.Z)(E().mark((function t(){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:l.Z.super({url:"/v3/auth/token",method:"DELETE"}).then((function(t){u.Z.toLogin()}));case 1:case"end":return t.stop()}}),t)}))),function(){return j.apply(this,arguments)})},{key:"resetPassword",value:(P=(0,a.Z)(E().mark((function t(e,r,n){var o,a,i;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=d.rsaEncrypt(e,n),a=d.rsaEncrypt(r,n),t.next=4,l.Z.super({url:"/v3/auth/password",query:{oldPassword:o,newPassword:a},method:"POST"});case 4:return i=t.sent,t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)}))),function(t,e,r){return P.apply(this,arguments)})},{key:"getContextSourceConfig",value:(O=(0,a.Z)(E().mark((function t(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/context-source-config",method:"GET"});case 2:if(!(e=t.sent)){t.next=7;break}return t.abrupt("return",e.config);case 7:return t.abrupt("return",null);case 8:case"end":return t.stop()}}),t)}))),function(){return O.apply(this,arguments)})},{key:"getContextSourceValue",value:(S=(0,a.Z)(E().mark((function t(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/auth/context-source-value",method:"GET"});case 2:return e=t.sent,t.abrupt("return",e.value);case 4:case"end":return t.stop()}}),t)}))),function(){return S.apply(this,arguments)})},{key:"login",value:(C=(0,a.Z)(E().mark((function t(e,r,n,o){var a,i,c;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=y()(new Date).format("YYYY-MM-DD HH:mm:ss"),e.datetime=a,i=d.rsaEncrypt(JSON.stringify(e),o),t.next=5,l.Z.super({url:"/v3/auth/hctoken",query:{userInfo:i,kaptchaToken:r,kaptchaText:n},method:"GET"});case 5:return"success"===(c=t.sent).status&&(m.Z.clear(),window.location.hash="#/context-setter",u.Z.setHydrocarbonToken(c.token)),t.abrupt("return",c);case 8:case"end":return t.stop()}}),t)}))),function(t,e,r,n){return C.apply(this,arguments)})},{key:"setContext",value:(L=(0,a.Z)(E().mark((function t(e){var r,n;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new FormData).append("context",JSON.stringify(e)),t.next=4,l.Z.super({url:"/v3/auth/context",data:r,method:"POST"},"formdata");case 4:return"success"===(n=t.sent).status&&(window.location.hash="#/home"),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)}))),function(t){return L.apply(this,arguments)})},{key:"getKaptchaToken",value:(k=(0,a.Z)(E().mark((function t(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/auth/kaptcha",method:"POST"});case 2:if("success"!==(e=t.sent).status){t.next=7;break}return t.abrupt("return",e);case 7:return t.abrupt("return",null);case 8:case"end":return t.stop()}}),t)}))),function(){return k.apply(this,arguments)})},{key:"getRasPubkey",value:(x=(0,a.Z)(E().mark((function t(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/auth/ras-pubkey",method:"GET"});case 2:if("success"!==(e=t.sent).status){t.next=7;break}return t.abrupt("return",e.rasPubkey);case 7:return t.abrupt("return",null);case 8:case"end":return t.stop()}}),t)}))),function(){return x.apply(this,arguments)})},{key:"getUser",value:(b=(0,a.Z)(E().mark((function t(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/current-user"});case 2:return e=t.sent,t.abrupt("return",e.user);case 4:case"end":return t.stop()}}),t)}))),function(){return b.apply(this,arguments)})},{key:"requestMessagebar",value:(v=(0,a.Z)(E().mark((function t(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/menu/messagebar",method:"GET"});case 3:return e=t.sent,t.abrupt("return",e.l2Menus);case 5:case"end":return t.stop()}}),t)}))),function(){return v.apply(this,arguments)})},{key:"requestSimpleCharts",value:(p=(0,a.Z)(E().mark((function t(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/menu/simple-charts",method:"GET"});case 3:return e=t.sent,t.abrupt("return",e.l2Menus);case 5:case"end":return t.stop()}}),t)}))),function(){return p.apply(this,arguments)})},{key:"requestKsList",value:(h=(0,a.Z)(E().mark((function t(e,r){var n,o,a,i,c=arguments;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:1,o=c.length>3&&void 0!==c[3]?c[3]:{pageNo:1,pageSize:100},a=u.Z.joinPath("/v3/ks/list",e),t.next=5,l.Z.super({url:a,method:"GET",query:Z(Z({depth:n},r),{},{pageNo:o.pageNo,pageSize:o.pageSize})});case 5:if("error"!=(i=t.sent).status){t.next=10;break}return t.abrupt("return",null);case 10:return t.abrupt("return",i.result);case 11:case"end":return t.stop()}}),t)}))),function(t,e){return h.apply(this,arguments)})},{key:"requestKsListTopPage",value:(f=(0,a.Z)(E().mark((function t(e,r,n){var o;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/ks/query/data",method:"GET",query:{pageNo:r,pageSize:n,queryKey:e}});case 3:return o=t.sent,t.abrupt("return",o.result);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r){return f.apply(this,arguments)})},{key:"requestKsUnique",value:(o=(0,a.Z)(E().mark((function t(e){var r,n,o,a=arguments;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:1,n=u.Z.joinPath("/v3/ks/unique",e),t.next=4,l.Z.super({url:n,depth:r,method:"GET"});case 4:return o=t.sent,t.abrupt("return",o.result);case 6:case"end":return t.stop()}}),t)}))),function(t){return o.apply(this,arguments)})},{key:"reload",value:(n=(0,a.Z)(E().mark((function t(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,l.Z.super({url:"/v3/tmpl/reload",method:"GET"});case 3:return e=t.sent,t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"doCopy",value:(r=(0,a.Z)(E().mark((function t(e,r,n,o){var a;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.Z.super({url:"/v3/mstruc/copy-data",method:"POST",query:{sourceId:e,code:r,copyRelation:n,copyOpp2One:o}},null,null);case 2:return"success"!=(a=t.sent).status&&s.ZP.error("错误消息:"+a.message),t.abrupt("return",a);case 5:case"end":return t.stop()}}),t)}))),function(t,e,n,o){return r.apply(this,arguments)})},{key:"initProgramConfig",value:(e=(0,a.Z)(E().mark((function t(e){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.programCode&&g.cB.setProgramCode(e.programCode),e.hydrocarbonServer&&g.cB.setHydrocarbonServer(e.hydrocarbonServer),g.cB.setProgramName(e.programName),g.cB.setProgramName_sub(e.programName_sub),g.cB.setProgramName_NavLeft(e.programName_NavLeft),g.cB.setProgramName_Logo(e.programName_Logo),t.next=8,l.Z.getProramConfig();case 8:(r=t.sent)&&(console.log("result",r),g.cB.setProgramCode(r.programCode),g.cB.setHydrocarbonServer(r.hydrocarbonServer),g.cB.setProgramName(r.programName),g.cB.setProgramName_sub(r.programName_NavLeft),g.cB.setProgramName_NavLeft(r.programName_NavLeft),g.cB.setProgramName_Logo(r.programName_Logo));case 10:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})}]),t}()},38763:function(t,e,r){"use strict";r.d(e,{Z:function(){return l}});var n=r(90237),o=r(65337),a=r(80569),i=r.n(a),c=r(32823),u=r(94716),l=(r(67294),function(){function t(){(0,n.Z)(this,t)}return(0,o.Z)(t,null,[{key:"super",value:function(t,e,r){var n=u.Z.hydrocarbonToken()?u.Z.hydrocarbonToken():t.header&&t.header.hydrocarbonToken?t.header.hydrocarbonToken:u.Z.getAnoHydrocarbonToken(),o=u.Z.programCode();t.data&&!1!==t.data.isShowLoading&&(document.getElementById("ajaxLoading").style.display=r||"block");var a="form";"formdata"===e?a=null:"json"===e&&(a="application/json");var l=t.method?t.method:"POST";return new Promise((function(e,r){var s=t.hydrocarbonServer?t.hydrocarbonServer:u.Z.api();i()(l,u.Z.joinPath(s,t.url)).type(a).set("hydrocarbon-token",n).set("hydrocarbon-program-token",o).query(t.query||"").send(t.data).end((function(n,o){if(o)if(t.data&&!1!==t.data.isShowLoading&&(document.getElementById("ajaxLoading").style.display="none"),200===o.status){var a=o.body;a&&"error"===a.status&&c.ZP.error("错误消息:"+a.message),e(a)}else 201===o.status?e(o):403===o.status?u.Z.toLogin():405===o.status||406===o.status?(c.ZP.error("权限不足"),e(o)):404===o.status||504===o.status?(console.log("没找到服务("+t.url+")"),e(o)):500===o.status?(c.ZP.error("后台处理错误("+o.text+")"),e(o)):(c.ZP.error("请求服务失败!("+t.url+")"),r(o.body));else c.ZP.error("服务器连接失败"),e(null)}))}))}},{key:"get",value:function(t){var e=t.hydrocarbonServer?t.hydrocarbonServer:u.Z.api();return new Promise((function(r,n){i().get(u.Z.joinPath(e,t.url)).query(t.query||"").end((function(t,e){e?200===e.status?r(e.body):403===e.status?u.Z.toLogin():404===e.status||504===e.status?(c.ZP.error("服务资源未找到("+e.status+")"),r(e)):500===e.status?(c.ZP.error("后台处理错误("+e.text+")"),r(e)):(c.ZP.error("服务资源请求失败!"),n(e.body)):(c.ZP.error("服务器连接失败"),n(e.body))}))}))}},{key:"getProramConfig",value:function(){return new Promise((function(t,e){i().get("programConfig.json").end((function(r,n){n?200===n.status?t(n.body):e(n.body):e()}))})).catch((function(t){console.log(t)}))}},{key:"getHeaderObj",value:function(){return{"hydrocarbon-token":u.Z.hydrocarbonToken()?u.Z.hydrocarbonToken():u.Z.getAnoHydrocarbonToken(),"hydrocarbon-program-token":u.Z.programCode()}}}]),t}())},94716:function(t,e,r){"use strict";r.d(e,{Z:function(){return g}});var n=r(32763),o=r(67294),a=r(34041),i=r(16117),c=r(49073),u=r(27484),l=r.n(u);function s(){}s.current=function(t,e){var r=e;if(r||(r="YYYY-MM-DD HH:mm:ss SSS"),!t)return null;var n=[t];t.includes("~")&&(n=t.split("~"));var o=[];for(var a in n){var i=this.currentL1(n[a],r);o[a]=i||""}return 1==n.length?o[0]:o[0]+"~"+o[1]},s.currentL1=function(t,e){if(!t)return null;var r=new RegExp("current:?([-,+]?)([0-9]*)([D,M,Y,m,s,h]?)").exec(t);if(r){var n=r[3];if(""==n)return l()().format(e);var o=r[1];""==o&&(o="+");var a=r[2];""==a&&(a="1");var i=parseInt(a),c="days";switch(n){case"D":c="days";break;case"M":c="months";break;case"Y":c="years";break;case"W":c="weeks";break;case"h":c="hours";break;case"m":c="minutes";break;case"s":c="seconds"}return"-"==o?l()().subtract(i,c).format(e):l()().add(i,c).format(e)}return null};var f=s,h=a.Z.Option,p=void 0,d={},v={},y={},m={},g={setAppDtmplConfigFunc:function(t,e){y[t]=e},getAppDtmplConfig:function(t,e){return t&&y[t.id]?y[t.id](t,e):t},isDynamicDtmplConfig:function(t){return!(!t||!y[t.id])},setCustomPage:function(t,e){var r=t;r.startsWith("/")||(r="/"+r),d[r]=e},setCustomControl:function(t,e,r){var n=t;n.startsWith("/")||(n="/"+n),v[n]=e,m[n]=r},getCustomViewControl:function(t){return t?t.startsWith("/")?v[t]:v["/"+t]:null},getCustomEditControl:function(t){return t?t.startsWith("/")?m[t]:m["/"+t]:null},getCustomPage:function(t){return t?t.startsWith("/")?d[t]:d["/"+t]:null},setProgramCode:function(t){t&&(window.localStorage.setItem("programCode",t),window.sessionStorage.setItem("programCode",t))},setSessionProgramCode:function(t){t&&window.sessionStorage.setItem("programCode",t)},programCode:function(){var t=window.sessionStorage.getItem("programCode");return t||(t=window.localStorage.getItem("programCode"),this.setSessionProgramCode(t)),t},setHydrocarbonServer:function(t){this.programCode()?window.localStorage.setItem(this.programCode()+"hydrocarbonServer",t):window.localStorage.setItem("hydrocarbonServer",t)},setProgramName_Logo:function(t){this.programCode()?window.localStorage.setItem(this.programCode()+"programName_Logo",t):window.localStorage.setItem("programName_Logo",t)},api:function(){var t=window.localStorage.getItem(this.programCode()+"hydrocarbonServer");if(t||(t=window.localStorage.getItem("hydrocarbonServer")),t)if("/"==t){var e=new URL(window.location.href),r=e.pathname.split("/kuangkie")[0];t=this.joinPath(e.origin,r)}else t.startsWith("http")||(t=this.joinPath(new URL(window.location.href).origin,t));else t=new URL(window.location.href).origin;return t},hydrocarbonToken:function(){var t=window.sessionStorage.getItem(this.programCode()+"hydrocarbonToken");return t||(t=window.sessionStorage.getItem("hydrocarbonToken")),t||((t=window.localStorage.getItem(this.programCode()+"hydrocarbonToken"))||(t=window.sessionStorage.getItem("hydrocarbonToken")),this.setSessionHydrocarbonToken(t)),t},setHydrocarbonToken:function(t){this.programCode()?(window.sessionStorage.setItem(this.programCode()+"hydrocarbonToken",t),window.localStorage.setItem(this.programCode()+"hydrocarbonToken",t)):(window.sessionStorage.setItem("hydrocarbonToken",t),window.localStorage.setItem("hydrocarbonToken",t))},setSessionHydrocarbonToken:function(t){this.programCode()?window.sessionStorage.setItem(this.programCode()+"hydrocarbonToken",t):window.sessionStorage.setItem("hydrocarbonToken",t)},setProgramName:function(t){this.programCode()?window.localStorage.setItem(this.programCode()+"programName",t):window.localStorage.setItem("programName",t)},programName:function(){return this.programCode()?window.localStorage.getItem(this.programCode()+"programName"):window.localStorage.getItem("programName")},setProgramName_sub:function(t){this.programCode()?window.localStorage.setItem(this.programCode()+"programName_sub",t):window.localStorage.setItem("programName_sub",t)},programName_sub:function(){return this.programCode()?window.localStorage.getItem(this.programCode()+"programName_sub"):window.localStorage.getItem("programName_sub")},setProgramName_NavLeft:function(t){this.programCode()?window.localStorage.setItem(this.programCode()+"programName_NavLeft",t):window.localStorage.setItem("programName_NavLeft",t)},programName_NavLeft:function(){return(this.programCode()?window.localStorage.getItem(this.programCode()+"programName_NavLeft"):window.localStorage.getItem("programName_NavLeft"))||"旷识科技"},programName_Logo:function(){return this.programCode()?window.localStorage.getItem(this.programCode()+"programName_Logo"):window.localStorage.getItem("programName_Logo")},formateDate:function(t){return t?l()(new Date(t)).format("YYYY-MM-DD HH:mm:ss"):""},dateToString:function(t){var e=t.getFullYear(),r=(t.getMonth()+1).toString(),n=t.getDate().toString();return 1===r.length&&(r="0"+r),1===n.length&&(n="0"+n),e+"-"+r+"-"+n},pagination:function(t,e){return{onchange:function(t){e(t)},current:t.pageInfo.pageNo,pageSize:t.pageInfo.pageSize,total:t.pageInfo.count,showTotal:function(){return"共".concat(t.pageInfo.count,"条")},showQuickIumper:!0}},getRadioList:function(t){if(!t)return[];var e=[];return t.map((function(t){return e.push(o.createElement(i.ZP,{value:t.id,key:t.id},t.name)),!1})),e},openFile:function(t,e,r){try{var n=document.createElement("a");n.href=t+r,n.target="_blank",document.body.appendChild(n),n.click(),document.body.removeChild(n)}catch(t){console.log(t)}},toLogin:function(){var t=this.programCode();window.location.hash=t&&"null"!=t&&"undefined"!=t?"#/login/"+t:"#/login"},downloadFile:function(t,e){try{var r=document.createElement("a");r.download=e,r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}catch(t){console.log(t)}},downloadFile_old:function(t){try{var e=document.createElement("form");e.action=t,document.body.appendChild(e),e.submit(),document.body.removeChild(e)}catch(t){console.log(t)}},getRandomNum:function(t){for(var e="",r=0;r<t;r++)e+=Math.floor(10*Math.random());return e},getStorageKeyPrefix:function(){return void 0===p&&(p=window.location.pathname||""),p},getLongTextStyle:function(t){if(!t)return{};var e={minWidth:"normal",maxWidth:"1000px",display:"block",textAlign:"left",whiteSpace:"normal",lineHeight:"20px"},r=t.length>200?"350px":t.length>150?"300px":t.length>100?"250px":t.length>50?"200px":t.length>=20?"160px":"80px";return e.minWidth=r,e},setLocalStorge:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60;if(t&&(t=this.getStorageKeyPrefix()+t),e){var n=r||60,o=new Date,a=60*n*1e3;localStorage.setItem(t,JSON.stringify({value:e,expireAddTime:a,expires:o.getTime()+a}))}else localStorage.removeItem(t)},getLocalStorge:function(t){t&&(t=this.getStorageKeyPrefix()+t);try{var e=JSON.parse(localStorage[t]);return!e||e.expires<Date.now()?null:(e.expires=Date.now()+e.expireAddTime,localStorage.setItem(t,JSON.stringify(e)),e.value)}catch(e){return localStorage[t]}},getAnoHydrocarbonToken:function(){var t=this.getLocalStorge("anoHydrocarbonToken");return t||(t="tmpl"+this.getRandomNum(6),this.setLocalStorge("anoHydrocarbonToken",t)),t},transQueryParamsToStr:function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"?":"",n=[],o=[];for(var a in t)if(!(e.indexOf(a)>=0)){var i=t[a];[void 0,null].includes(i)?i="":o.push(a)}o.sort();for(var c=function(){var e=l[u],r=t[e],o=encodeURI(e);r&&(r&&r.constructor===Array?r.forEach((function(t){n.push(o+"[]="+encodeURI(t))})):n.push(o+"="+encodeURI(r)))},u=0,l=o;u<l.length;u++)c();return n.length?r+n.join("&"):""},transQueryStrToParams:function(t){var e={},r=t.split("?");if(r&&2==r.length)for(var n=r[1].split("&"),o=0;o<n.length;o++)if(n[o].indexOf("[]=")>0){var a=n[o].split("[]="),i=a[0];e[i]||(e[i]=[]),e[i].push(decodeURI(this.configParamTrans(a[1])))}else{var c=n[o].split("="),u=c[0];u&&(e[u]=decodeURI(this.configParamTrans(c[1])))}return e},isConfigDefaultValue:function(t){return!!t&&t.startsWith("$$current")},configParamTrans:function(t){return t&&t.startsWith&&t.startsWith("$$current")?f.current(t):t},uniq:function(t,e){var r=[];return t.map((function(t){var n=!0;return r.map((function(r){return t[e]===r[e]&&(n=!1),!1})),n&&r.push(t),!1})),r},deepCopy:function(t){var e=Array.isArray(t)?[]:{};for(var r in t)t.hasOwnProperty(r)&&("object"===(0,n.Z)(t[r])?e[r]=this.deepCopy(t[r]):e[r]=t[r]);return e},forPic:function(t){for(var e in t)if(t[e]&&t[e].includes("download-files")){var r=this.api()+t[e];t[e]=o.createElement("img",{style:{width:55},src:r,alt:""})}return t},getFileUrl:function(t){return t?t.constructor===String?t:t.constructor===Object?t.props.children.props?t.props.children.props.href:t.props.owlner?t.props.owlner:t:t:t},getOptionColor:function(t,e){return e?(t&&t.forEach((function(t){t.value!==e||t.color&&(r=t.color)})),r):null;var r},getFieldItemType:function(t){return t.extType?t.extType:t.msExtType?t.msExtType:t.msType?t.msType:t.type},isEmpty:function(t){if(!t)return!0;for(var e in t)return!1;return!0},getDayjsFormat:function(t){var e="YYYY-MM-DD HH:mm:ss";switch(t){case"daterange-YY":case"date-YY":e="YYYY";break;case"date-M1":case"daterange-M1":e="YYYY-MM";break;case"date":case"daterange":e="YYYY-MM-DD";break;case"datetime-HH":case"datetimerange-HH":e="YYYY-MM-DD HH";break;case"datetime-mm":case"datetimerange-mm":e="YYYY-MM-DD HH:mm";break;case"datetime":case"datetimerange":e="YYYY-MM-DD HH:mm:ss";break;case"timestamp":e="YYYY-MM-DD HH:mm:ss SSS";break;case"time-HH":case"timerange-HH":e="HH";break;case"time-mm":case"timerange-mm":e="HH:mm";break;case"time":case"timerange":e="HH:mm:ss"}return e},getDateTimeFormat:function(t){switch(t){case"time-HH":case"timerange-HH":case"datetime-HH":case"datetimerange-HH":return"HH";case"time-mm":case"timerange-mm":case"datetime-mm":case"datetimerange-mm":return"HH:mm";case"timestamp":case"time":case"timerange":case"datetime":case"datetimerange":return"HH:mm:ss";default:return""}return""},getSelectOptions:function(t){if(!t)return[];var e=[];return t.map((function(t){return e.push(o.createElement(h,{value:t.value,key:t.title},t.title)),!1})),e},getSelectListOfStrList:function(t){if(!t)return[];var e=[];return t.map((function(t){return e.push(o.createElement(h,{value:t,key:t},t)),!1})),e},getSelectOptionsOfMstrucId:function(t){return this.getSelectOptions(c.Z.getEnums(t))},concatValue:function(t,e){var r=void 0;return r=t?t+"~":"~",e&&(r+=e),r},splitValue:function(t){var e,r;if(t)if(t.toString().indexOf("~")>=0){var n=t.split("~");e=n[0]?n[0]:void 0,r=n[1]?n[1]:void 0}else e=t;return{valueBegin:e,valueEnd:r}},str2UTF8:function(t){var e,r,n=new Array;e=t.length;for(var o=0;o<e;o++)(r=t.charCodeAt(o))>=65536&&r<=1114111?(n.push(r>>18&7|240),n.push(r>>12&63|128),n.push(r>>6&63|128),n.push(63&r|128)):r>=2048&&r<=65535?(n.push(r>>12&15|224),n.push(r>>6&63|128),n.push(63&r|128)):r>=128&&r<=2047?(n.push(r>>6&31|192),n.push(63&r|128)):n.push(255&r);return n},joinPath:function(t,e){var r=t;return r.endsWith("/")||r.endsWith("\\")||(r+="/"),e.startsWith("/")||r.startsWith("\\")?r+=e.slice(1):r+=e,r},setProgramCode4RoutePath:function(t){var e=t.programCode;this.setProgramCode(e)},setSessionProgramCode4RoutePath:function(t){var e=t.programCode;this.setSessionProgramCode(e)}}},25455:function(t,e,r){"use strict";var n=r(32763),o=r(20511),a=r(59755),i=r(90237),c=r(65337),u=r(95225),l=r(39576),s=r(61378),f=r(69905),h=r(15274),p=r(67294),d=r(44644),v=r(71577),y=r(35137),m=r(19650),g=r(94627),w=(r(32733),r(49811)),b=r(49073),Z=["title"];function E(){E=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:x(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,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=f(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 k(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,k(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function x(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return k(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)?k(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function k(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}var L=function(t){(0,l.Z)(L,t);var e,r,n,k=(r=L,n=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}}(),function(){var t,e=(0,f.Z)(r);if(n){var o=(0,f.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function L(){var t;(0,i.Z)(this,L);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=k.call.apply(k,[this].concat(r)),(0,h.Z)((0,u.Z)(t),"state",{l2Menus:void 0}),(0,h.Z)((0,u.Z)(t),"intervals",[]),t}return(0,c.Z)(L,[{key:"componentDidMount",value:(e=(0,a.Z)(E().mark((function t(){var e,r,n,o,i=this;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b.Z.quickEntranceMenus();case 2:e=t.sent,r=x(e),t.prev=4,o=E().mark((function t(){var e,r,o;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(1!=(e=n.value).displayTotal){t.next=9;break}return r=setInterval((0,a.Z)(E().mark((function t(){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.Z.requestLtmplCount(e.id);case 2:r=t.sent,e.count=r,i.setState({});case 5:case"end":return t.stop()}}),t)}))),18e4),i.intervals.push(r),t.next=6,w.Z.requestLtmplCount(e.id);case 6:o=t.sent,e.count=o,i.setState({});case 9:case"end":return t.stop()}}),t)})),r.s();case 7:if((n=r.n()).done){t.next=11;break}return t.delegateYield(o(),"t0",9);case 9:t.next=7;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(4),r.e(t.t1);case 16:return t.prev=16,r.f(),t.finish(16);case 19:this.setState({l2Menus:e});case 20:case"end":return t.stop()}}),t,this,[[4,13,16,19]])}))),function(){return e.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){if(this.intervals.length>0){var t,e=x(this.intervals);try{for(e.s();!(t=e.n()).done;){var r=t.value;clearInterval(r)}}catch(t){e.e(t)}finally{e.f()}}this.intervals=[]}},{key:"render",value:function(){var t=this.props,e=(t.title,(0,o.Z)(t,Z)),r=this.state.l2Menus,n=[];return r&&r.forEach((function(t){var e=p.createElement(d.Z,{key:t.id,count:t.count},p.createElement(v.ZP,{shape:"round",icon:p.createElement(g.Z,null),href:"#/".concat(t.id,"/act-table?menuId=").concat(t.id),size:"large"},t.title));n.push(e)})),p.createElement(y.Z,e,p.createElement(m.Z,{size:[16,16],wrap:!0},n))}}]),L}(p.PureComponent);e.Z=L},6313:function(t,e,r){"use strict";var n=r(32763),o=r(30698),a=r(20511),i=r(59755),c=r(90237),u=r(65337),l=r(95225),s=r(39576),f=r(61378),h=r(69905),p=r(15274),d=r(67294),v=r(35137),y=r(44524),m=r(71577),g=r(19650),w=r(86623),b=(r(32733),r(49811)),Z=r(49073),E=["title"];function x(){x=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:E(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};l(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(O([])));g&&g!==e&&r.call(g,i)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(t,e){function a(o,i,c,u){var l=f(t[o],t,i);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==(0,n.Z)(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,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=f(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 k(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,k(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=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:d,configurable:!0}),d.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),l(Z.prototype,c,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new Z(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),l(w,u,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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),C(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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function k(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return L(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)?L(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function L(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}var C=function(t){(0,s.Z)(C,t);var e,r,n,L=(r=C,n=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}}(),function(){var t,e=(0,h.Z)(r);if(n){var o=(0,h.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,f.Z)(this,t)});function C(){var t;(0,c.Z)(this,C);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t=L.call.apply(L,[this].concat(r)),(0,p.Z)((0,l.Z)(t),"state",{l2Menus:void 0}),(0,p.Z)((0,l.Z)(t),"intervals",[]),t}return(0,u.Z)(C,[{key:"componentDidMount",value:(e=(0,i.Z)(x().mark((function t(){var e,r,n,o,a=this;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Z.Z.workbenchMenus();case 2:e=t.sent,r=k(e),t.prev=4,o=x().mark((function t(){var e,r,o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.value,r=setInterval((0,i.Z)(x().mark((function t(){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b.Z.requestLtmplCount(e.id);case 2:r=t.sent,e.count=r,a.setState({});case 5:case"end":return t.stop()}}),t)}))),18e4),a.intervals.push(r),t.next=5,b.Z.requestLtmplCount(e.id);case 5:o=t.sent,e.count=o,a.setState({});case 8:case"end":return t.stop()}}),t)})),r.s();case 7:if((n=r.n()).done){t.next=11;break}return t.delegateYield(o(),"t0",9);case 9:t.next=7;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(4),r.e(t.t1);case 16:return t.prev=16,r.f(),t.finish(16);case 19:this.setState({l2Menus:e});case 20:case"end":return t.stop()}}),t,this,[[4,13,16,19]])}))),function(){return e.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){if(this.intervals.length>0){var t,e=k(this.intervals);try{for(e.s();!(t=e.n()).done;){var r=t.value;console.log("workbanch移除定时任务"),clearInterval(r)}}catch(t){e.e(t)}finally{e.f()}}this.intervals=[]}},{key:"render",value:function(){var t=this.props,e=t.title,r=(0,a.Z)(t,E),n=this.state.l2Menus,i=[];return n&&n.forEach((function(t){var e=d.createElement(v.Z,{size:"small",key:t.id},d.createElement(y.Z,{prefix:d.createElement(w.Z,null),title:t.title,value:t.count}),d.createElement(m.ZP,{style:{marginTop:12},href:"#/".concat(t.id,"/act-table?menuId=").concat(t.id)},"查看"));i.push(e)})),d.createElement(v.Z,(0,o.Z)({size:"small"},r,{title:e||"工作台"}),d.createElement(g.Z,{size:[16,16],wrap:!0},i))}}]),C}(d.PureComponent);e.Z=C},50056:function(t,e,r){"use strict";var n=r(32763),o=r(59755),a=(r(21926),r(67294)),i=r(20745),c=r(57764),u=(r(32733),r(40684)),l=r(55105),s=JSON.parse('{"hydrocarbonServer1":"/hydrogen","hydrocarbonServer":"http://localhost:8383/hydrogen","programName_NavLeft1":"HYDROCARBON","programName1":"旷识企业应用","programName_sub":"CARBON","programName_Logo":"./logo.png","programCode1":"253564453860974594","programName":"旷识开发平台","programName_NavLeft":"旷识开发平台"}');function f(){f=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),c=new S(n||[]);return o(i,"_invoke",{value:x(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p={};function d(){}function v(){}function y(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(O([])));w&&w!==e&&r.call(w,i)&&(m=w);var b=y.prototype=d.prototype=Object.create(m);function Z(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function a(o,i,c,u){var l=h(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==(0,n.Z)(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){a("next",t,c,u)}),(function(t){a("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return a("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=k(i,r);if(c){if(c===p)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=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function k(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,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function L(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=y,o(b,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},Z(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new E(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},Z(b),l(b,u,"Generator"),l(b,i,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.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}},t.values=O,S.prototype={constructor:S,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(C),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},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),p},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),C(r),p}},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;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function h(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return p(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)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function p(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}(0,u.TA)((0,o.Z)(f().mark((function t(){var e;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.s)(document.getElementById("root")),l.cB.setAppDtmplConfigFunc("229650889220097",(function(t,e){var r=t.groups[0].fields[0];return r.shouldUpdate=function(t,e){return!0},r.mainCode=function(t){return console.log("调用了 update",r.title),t.getFieldValue(r.id),t.getFieldInstance(r.id),r.id},r.updateSelf=function(t){return"11"==t.getFieldValue(0xd0ddc3aca007)?r.required=!0:r.required=!1,r},t.onValuesChange=function(t,e,r){"22"==t[0xd0ddc3aca007]&&r.setFieldValue("229650889220101",e[0xd0ddc3aca005]+23)},t})),l.cB.setAppDtmplConfigFunc("281357880958977",(function(t,e){var r,n=t.groups[0],o=t.groups[1],a=e?e.fieldMap[0xffe4d9aca005]:void 0,i=h(n.fields);try{for(i.s();!(r=i.n()).done;){var c=r.value;if("bf3977ff49f1946ff35366e6b3e9bd16"==c.mstrucId)if(c.shouldUpdate=function(t,e){return!0},a&&a.length>0){var u=a.split("@R@")[0];c.disabled=!1,c.mainCode=u,o.disabled=!1,o.mainCode=u}else c.disabled=!0,o.disabled=!0;else"281358369595397"==c.id&&(c.shouldUpdate=function(t,e){return!0})}}catch(t){i.e(t)}finally{i.f()}return t.onValuesChange=function(e,r,n){var o="281358369595397",a="281358369595399",i=e[o],c=t.groups[0],u=t.groups[1];if(null!=i){var l,s=h(c.fields);try{for(s.s();!(l=s.n()).done;){var f=l.value;if(f.id==a)if(n.isFieldTouched(a),n.setFieldValue(a,[]),n.setFieldValue("$virtual281358369595402",1),i&&i.length>0){var p=i[0].split("@R@")[0];f.disabled=!1,f.mainCode=p,u.disabled=!1,u.mainCode=p}else f.disabled=!0,u.disabled=!0}}catch(t){s.e(t)}finally{s.f()}}else if(e.hasOwnProperty("$virtual281358369595402"))if(e.$virtual281358369595402>0){var d,v=h(c.fields);try{for(v.s();!(d=v.n()).done;){var y=d.value;y.id==o&&(y.disabled=!0)}}catch(t){v.e(t)}finally{v.f()}}else{var m,g=h(c.fields);try{for(g.s();!(m=g.n()).done;){var w=m.value;w.id==o&&(w.disabled=!1)}}catch(t){g.e(t)}finally{g.f()}}},t})),t.next=5,l.QC.initProgramConfig(s);case 5:e.render(a.createElement(c.Z,null));case 6:case"end":return t.stop()}}),t)}))))},57764:function(t,e,r){"use strict";r.d(e,{Z:function(){return m}});var n=r(90237),o=r(65337),a=r(39576),i=r(61378),c=r(69905),u=r(67294),l=r(79655),s=r(89250),f=r(40684),h=r(36646),p=r(55105);function d(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=(0,c.Z)(t);if(e){var o=(0,c.Z)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,i.Z)(this,r)}}var v=u.createElement(h.Z,{tip:"Loading..."}),y=(0,f.ZP)({resolved:{},chunkName:function(){return"App"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(537),r.e(288),r.e(74),r.e(10),r.e(592),r.e(768)]).then(r.bind(r,48187))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 48187}},{fallback:v}),m=function(t){(0,a.Z)(r,t);var e=d(r);function r(){return(0,n.Z)(this,r),e.apply(this,arguments)}return(0,o.Z)(r,[{key:"render",value:function(){return u.createElement(l.UT,null,u.createElement(y,null,u.createElement(s.Z5,null,u.createElement(s.AW,{path:"login",element:u.createElement(p.xe,null)}),u.createElement(s.AW,{path:"login/:programCode",element:u.createElement(p.xe,null)}),u.createElement(s.AW,{path:"context-setter",element:u.createElement(p.UL,null)}),u.createElement(s.AW,{path:"*",element:u.createElement(p.hE,null,u.createElement(s.Z5,null,u.createElement(s.AW,{path:"/home/:programCode",element:p.cB.getCustomPage(p.cB.programCode())?u.createElement(p.cB.getCustomPage(p.cB.programCode())):u.createElement(p.B$,null)}," "),u.createElement(s.AW,{path:"/home",element:p.cB.getCustomPage(p.cB.programCode())?u.createElement(p.cB.getCustomPage(p.cB.programCode())):u.createElement(p.B$,null)}," "),u.createElement(s.AW,{path:"/page/:sourceId/:pageName",element:u.createElement(p.C0,null),exact:!0}),u.createElement(s.AW,{path:"/:sourceId/act-table",element:u.createElement(p.cS,null),exact:!0}),u.createElement(s.AW,{path:"/:sourceId/detail-view",element:u.createElement(p.H5,null),exact:!0}),u.createElement(s.AW,{path:"/:sourceId/detail-edit",element:u.createElement(p.H5,null),exact:!0}),u.createElement(s.AW,{path:"/:sourceId/importer",element:u.createElement(p.zM,null),exact:!0})))}))))}}]),r}(u.Component)},42480:function(){}},i={};function c(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={id:t,loaded:!1,exports:{}};return a[t].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}c.m=a,c.amdO={},t=[],c.O=function(e,r,n,o){if(!r){var a=1/0;for(s=0;s<t.length;s++){r=t[s][0],n=t[s][1],o=t[s][2];for(var i=!0,u=0;u<r.length;u++)(!1&o||a>=o)&&Object.keys(c.O).every((function(t){return c.O[t](r[u])}))?r.splice(u--,1):(i=!1,o<a&&(a=o));if(i){t.splice(s--,1);var l=n();void 0!==l&&(e=l)}}return e}o=o||0;for(var s=t.length;s>0&&t[s-1][2]>o;s--)t[s]=t[s-1];t[s]=[r,n,o]},c.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(e,{a:e}),e},r=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},c.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);c.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((function(e){a[e]=function(){return t[e]}}));return a.default=function(){return t},c.d(o,a),o},c.d=function(t,e){for(var r in e)c.o(e,r)&&!c.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},c.f={},c.e=function(t){return Promise.all(Object.keys(c.f).reduce((function(e,r){return c.f[r](t,e),e}),[]))},c.u=function(t){return"bundle."+{66:"022b9d9e54b55ad6267e",76:"dbb253f3029c97475380",189:"9d12b63336a9c8d44a9d",211:"6bf28a6aa5ba025b9cbe",317:"9a888a685a8dc8795cb1",377:"5c631f42a0bc32bcee42",413:"03c8826fed3306e7bca7",432:"e9b7939a81971b04ce61",434:"4e6573855d62c2c61293",441:"3b47a72a98819ce207b4",466:"d8256eaa6fe575fb9d01",486:"17695fcdfc4d8b13d695",510:"a7dfe1231cfa8ef5b0d3",556:"f4f8e071565f4dff4698",590:"102bb311c88fb43228b4",591:"4d91709f680596b4b0ac",592:"c560447b006cce1238b6",623:"1bc3fad9b6dda01db2dc",636:"cad48ecfb6c9304f8477",679:"e1ac7a74c5a25a07424c",700:"59446aa1a6e81028b0f3",743:"26e8ea213610dd77dfc5",768:"c31ad04e1e30564fea70",836:"7fe4c9d6d1fad1b785b4",862:"51344a730efffedb67a3",867:"79c75972bdb84e2526a0",886:"6c63d1f8fd32a2e9ca6c",958:"7e85c36e04f1428d40ae"}[t]+".js"},c.miniCssF=function(t){return"css/"+{510:"html-editor-draft",590:"chemstruc-graph",592:"common"}[t]+"-"+{510:"5e8e152675ab7d201c00",590:"15d5053934e613f20d2b",592:"131a1a93b3a3dde25f8f"}[t]+".css"},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n={},o="aldehyde:",c.l=function(t,e,r,a){if(n[t])n[t].push(e);else{var i,u;if(void 0!==r)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==o+r){i=f;break}}i||(u=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.setAttribute("data-webpack",o+r),i.src=t),n[t]=[e];var h=function(e,r){i.onerror=i.onload=null,clearTimeout(p);var o=n[t];if(delete n[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((function(t){return t(r)})),e)return e(r)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=h.bind(null,i.onerror),i.onload=h.bind(null,i.onload),u&&document.head.appendChild(i)}},c.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t;c.g.importScripts&&(t=c.g.location+"");var e=c.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=t}(),function(){if("undefined"!=typeof document){var t={179:0};c.f.miniCss=function(e,r){t[e]?r.push(t[e]):0!==t[e]&&{510:1,590:1,592:1}[e]&&r.push(t[e]=function(t){return new Promise((function(e,r){var n=c.miniCssF(t),o=c.p+n;if(function(t,e){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(i=r[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===t||o===e))return i}var a=document.getElementsByTagName("style");for(n=0;n<a.length;n++){var i;if((o=(i=a[n]).getAttribute("data-href"))===t||o===e)return i}}(n,o))return e();!function(t,e,r,n,o){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.onerror=a.onload=function(r){if(a.onerror=a.onload=null,"load"===r.type)n();else{var i=r&&("load"===r.type?"missing":r.type),c=r&&r.target&&r.target.href||e,u=new Error("Loading CSS chunk "+t+" failed.\n("+c+")");u.code="CSS_CHUNK_LOAD_FAILED",u.type=i,u.request=c,a.parentNode&&a.parentNode.removeChild(a),o(u)}},a.href=e,document.head.appendChild(a)}(t,o,0,e,r)}))}(e).then((function(){t[e]=0}),(function(r){throw delete t[e],r})))}}}(),function(){var t={179:0};c.f.j=function(e,r){var n=c.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else if(590!=e){var o=new Promise((function(r,o){n=t[e]=[r,o]}));r.push(n[2]=o);var a=c.p+c.u(e),i=new Error;c.l(a,(function(r){if(c.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;i.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+e,e)}else t[e]=0},c.O.j=function(e){return 0===t[e]};var e=function(e,r){var n,o,a=r[0],i=r[1],u=r[2],l=0;if(a.some((function(e){return 0!==t[e]}))){for(n in i)c.o(i,n)&&(c.m[n]=i[n]);if(u)var s=u(c)}for(e&&e(r);l<a.length;l++)o=a[l],c.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return c.O(s)},r=self.webpackChunkaldehyde=self.webpackChunkaldehyde||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}(),c.nc=void 0;var u=c.O(void 0,[537,288,74,10,48,327,423,894,309,948,725,330],(function(){return c(50056)}));u=c.O(u)}();
|