All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.kuangkie.pc.bundle.b4f2ccf5c862376fc229.js Maven / Gradle / Ivy

The newest version!
/*! For license information please see bundle.b4f2ccf5c862376fc229.js.LICENSE.txt */
!function(){var t,e,r,n,o,a={62508:function(t,e,r){"use strict";r.d(e,{Z:function(){return F}});var n=r(92801),o=r(90237),a=r(65337),i=r(95225),c=r(39576),u=r(61378),s=r(69905),l=r(15274),f=r(67294),h=r(55241),p=r(63568),d=r(53807),v=r(57564),y=r(32763),m=r(59755),g=r(35137),w=r(18230),Z=r(54549),b=r(48093),x=r(69165),k=r(70917);function L(){L=function(){return e};var t,e={},r=Object.prototype,n=r.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 s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new R(n||[]);return o(i,"_invoke",{value:S(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}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function g(){}function w(){}function Z(){}var b={};s(b,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(T([])));k&&k!==r&&n.call(k,i)&&(b=k);var C=Z.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==(0,y.Z)(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,r,n){var o=h;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?v:p,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var C=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,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,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=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var O=function(t){(0,c.Z)(b,t);var e,r,h,d,y=(h=b,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,s.Z)(h);if(d){var r=(0,s.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.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=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);r0?this.formButton():this.withoutFormButton())}}]),m}(f.PureComponent);(0,l.Z)(F,"defaultProps",{hiddenType:"hidden",buttonSize:void 0,iconType:"icon-title"})},93378:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var n=r(90237),o=r(65337),a=r(32823),i=r(14807);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);r0&&(o=this.matchDtmplData(u,e))}else o=!!e&&this.matchDtmplData(t,e);return o}},{key:"matchDtmplData",value:function(t,e){var r=!0;if(!e)return!1;var n,o=c(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(!a){r=!1;break}var i,u=c(t);try{for(u.s();!(i=u.n()).done;){var s=i.value;if(a.fieldMap){if(!this.comparator(s.comparator,a.fieldMap[s.id],s.defaultValue)){r=!1;break}}else if(!this.comparator(s.comparator,a[s.id],s.defaultValue)){r=!1;break}}}catch(t){u.e(t)}finally{u.f()}}}catch(t){o.e(t)}finally{o.f()}return r}},{key:"comparator",value:function(t,e,r){if(t||(t="equals"),!r)return!0;if(!e&&"0"!=e)return!1;switch(t){case"contain":return e.includes(r);case"equal":case"equals":return e==r;case"exclude":return!("string"==typeof r?r.split(","):r).includes(e);case"includeOne":case"include_anyone":return("string"==typeof r?r.split(","):r).includes(e);case"noGreater":case"nogreater":return e<=r;case"noLess":case"noless":return e>=r;case"unequal":case"unequals":return e!=r;default:return void a.ZP.error("暂不支持的比较关系:"+t+";请联系管理员添加。")}}},{key:"getFormRefValue",value:function(t,e){return!!t&&t.getFieldValue(e)}},{key:"containsField",value:function(t,e){return!!t&&!!t.getFieldInstance(e)}}]),t}()},28101:function(t,e,r){"use strict";var n=r(30698),o=(r(67294),r(4107)),a=r(49288),i=r(49073),c=r(70917),u=o.Z.TextArea;e.Z=function(t){var e=t.id,r=t.value,o=(t.itemType,t.fieldConfig),s=t.onChange,l={id:e,placeholder:o.disabled?"无需输入":"请输入".concat(o.title),disabled:o.disabled};return(0,c.tZ)(a.Z,{allowClear:!0,dropdownMatchSelectWidth:!0,options:function(){var t=i.Z.getEnums(o.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(s){var e;if(void 0===t)return"";e=t.startsWith("@@")?(r||"")+t.substring(2,t.length):t,s(e)}},value:r},(0,c.tZ)(u,(0,n.Z)({style:{height:150}},l)))}},22364:function(t,e,r){"use strict";r.d(e,{Z:function(){return L}});var n=r(32763),o=r(30698),a=r(20511),i=r(59755),c=r(90237),u=r(65337),s=r(95225),l=r(39576),f=r(61378),h=r(69905),p=r(15274),d=r(67294),v=r(95045),y=r(49073),m=r(70917),g=["fieldConfig","onChange","value"];function w(){w=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new R(n||[]);return a(i,"_invoke",{value:S(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function Z(){}function b(){}var x={};l(x,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(x=L);var C=b.prototype=g.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}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 b(t){for(var e=1;e=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")),r&&r(n)})),(0,p.Z)((0,s.Z)(t),"getOptions",(0,i.Z)(w().mark((function e(){var r,n,o,a,i,c,u,s,l;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props,n=r.fieldConfig,o=r.baseValue,a=r.serverKey,e.next=3,y.Z.getOptions(a,n.mstrucId);case 3:return i=e.sent,c=[],s=i,l=u=[],o.length>0?o.map((function(t,e){if(e>0&&(l[0].subOptions=[],l=l[0].subOptions),s){var r,n=x(s);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.title==t&&(l.push(b({},o)),s=o.subOptions)}}catch(t){n.e(t)}finally{n.f()}}})):u=i,t.buildOptions(u,c),e.abrupt("return",c);case 11:case"end":return e.stop()}}),e)})))),(0,p.Z)((0,s.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)(Z,[{key:"componentDidMount",value:(e=(0,i.Z)(w().mark((function t(){var e;return w().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,g);return(0,m.tZ)(v.Z,(0,o.Z)({displayRender:function(t){return t.join("->")},options:t,value:r?r.split("->"):void 0,onChange:this.handleChange},n))}}]),Z}(d.PureComponent);(0,p.Z)(L,"defaultProps",{baseValue:[]})},7238:function(t,e,r){"use strict";r.d(e,{Z:function(){return Z}});var n=r(30698),o=r(20511),a=r(90237),i=r(65337),c=r(95225),u=r(39576),s=r(61378),l=r(69905),f=r(15274),h=r(67294),p=r(63568),d=r(35137),v=r(8812),y=r(57254),m=r(45136),g=r(70917),w=["extra","title","className","initCollapse","showRightNav"];var Z=function(t){(0,u.Z)(b,t);var e,r,Z=(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,s.Z)(this,t)});function b(){var t;(0,a.Z)(this,b);for(var e=arguments.length,r=new Array(e),n=0;n0?a.split("@R@")[0]:a;return(0,Z.tZ)(h.Fragment,null,"text"==i?(0,Z.tZ)("span",{className:"cquickTextButton",onClick:function(){t.setState({showDraw:!l})}},r.title):(0,Z.tZ)(p.ZP,(0,n.Z)({},s,{onClick:function(){t.setState({showDraw:!l})}}),x[r.title]?x[r.title]:r.title),l?"edit"==r.type?(0,Z.tZ)(w.Z,{serverKey:u,pageType:c,open:l,onCancel:function(){t.setState({showDraw:!1})},sourceId:r.id,code:f,onOk:this.closeDrawer}):(0,Z.tZ)(d.Z,{placement:"left",title:"关联查询",closable:!0,mask:!1,onClose:this.closeDrawer,open:l,width:"calc(100% - 280px)",style:{maxWidth:1960},extra:(0,Z.tZ)(v.Z,null,(0,Z.tZ)(p.ZP,{onClick:this.closeDrawer},"关闭"))},r.path?h.createElement(g.Z.getCustomPage(r.path)):(0,Z.tZ)(y.Z,{serverKey:u,sourceId:r.id,mainCode:f})):null)}}]),k}(h.PureComponent);(0,f.Z)(k,"defaultProps",{pageType:"modal"}),e.Z=k},97182:function(t,e,r){"use strict";var n=r(15274),o=(r(67294),r(73022)),a=r(68351),i=r(27484),c=r.n(i),u=r(94752),s=r(70917);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 f(t){for(var e=1;ec()(y,g)||v&&c()(t.format(g),g)0?m.split("~")[0]:void 0,C=m&&m.indexOf("~")>0?m.split("~")[1]:void 0;e=[L?c()(L,g):void 0,C?c()(C,g):void 0],k="daterange-YY"==i?"year":"daterange-M1"==i?"month":"date",x=(0,s.tZ)(h,{id:r,picker:k,style:f({},d),format:g,disabledDate:b,value:e,disabled:l.disabled,onChange:Z});break;case"datetimerange-HH":case"datetimerange-mm":case"datetimerange":var E=m&&m.indexOf("~")>0?m.split("~")[0]:void 0,O=m&&m.indexOf("~")>0?m.split("~")[1]:void 0;e=[E?c()(E,g):void 0,O?c()(O,g):void 0],x=(0,s.tZ)(h,{id:r,showTime:{format:u.Z.getDateTimeFormat(i)},format:g,style:f({},d),value:e,disabledDate:b,disabled:l.disabled,onChange:Z});break;case"time-HH":case"time-mm":case"time":e=m?c()(m,g):void 0,x=(0,s.tZ)(a.Z,{id:r,value:e,style:f({},d),disabled:l.disabled,onChange:w,format:g});break;case"timerange-HH":case"timerange-mm":case"timerange":var S=m&&m.indexOf("~")>0?m.split("~")[0]:void 0,P=m&&m.indexOf("~")>0?m.split("~")[1]:void 0;e=[S?c()(S,g):void 0,P?c()(P,g):void 0],x=(0,s.tZ)(a.Z.RangePicker,{id:r,value:e,style:f({},d),disabled:l.disabled,onChange:Z,format:g})}return x}},13575:function(t,e,r){"use strict";r.d(e,{Z:function(){return K}});var n=r(32763),o=r(1252),a=r(59755),i=r(90237),c=r(65337),u=r(95225),s=r(39576),l=r(61378),f=r(69905),h=r(15274),p=r(67294),d=r(65460),v=r(71230),y=r(15746),m=r(63568),g=r(32823),w=r(39620),Z=r(34041),b=r(36646),x=r(92570),k=r(49101),L=r(32779),C=r(76880),E=r(8212),O=r(76570),S=r(23279),P=r.n(S),j=r(49811),I=r(49073),R=r(42638),T=r(85932),N=r(7935),_=r(86375),D=r(70917);function A(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 F(t){for(var e=1;e=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 M(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var K=function(t){(0,s.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,l.Z)(this,t)});function S(){var t;(0,i.Z)(this,S);for(var e=arguments.length,r=new Array(e),c=0;c=0?(0,D.tZ)(y.Z,null,(0,D.tZ)(m.ZP,{type:"text",icon:(0,D.tZ)(x.Z,{style:{color:"#0958d9"}}),onClick:function(){return t.showTable()}})):null,r&&r.indexOf("add")>=0?(0,D.tZ)(y.Z,null,(0,D.tZ)(m.ZP,{type:"text",icon:(0,D.tZ)(k.Z,{style:{color:"#0958d9"}}),onClick:function(){return t.editItem()}})):null,(0,D.tZ)(y.Z,null,(0,D.tZ)(m.ZP,{type:"text",icon:(0,D.tZ)(L.Z,{style:{color:"#0958d9"}}),onClick:function(){return t.initCache()}})))))})),(0,h.Z)((0,u.Z)(t),"editItem",function(){var e=(0,a.Z)(B().mark((function e(r){var n;return B().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)(B().mark((function e(){return B().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)(B().mark((function e(){var r,n,o,a,i;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.fieldConfig,o=r.serverKey,a=t.state.ltmplConfig,i=a){e.next=7;break}return e.next=6,I.Z.requestLtmplConfig(n.serverKey?n.serverKey:o,n.sourceId?n.sourceId:n.id);case 6:i=e.sent.ltmplConfig;case 7:return t.setState({ltmplConfig:i}),e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)})))),(0,h.Z)((0,u.Z)(t),"showItem",function(){var e=(0,a.Z)(B().mark((function e(r){var n;return B().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:(0,D.tZ)(p.Fragment,null,r,o&&o.indexOf("detail")>=0?(0,D.tZ)(m.ZP,{size:"small",type:"text",onClick:function(r){r.stopPropagation(),t.showItem(e)}},(0,D.tZ)(C.Z,{style:{color:"#0958d9"}})):null,o&&o.indexOf("edit")>=0?(0,D.tZ)(m.ZP,{size:"small",type:"text",onClick:function(r){r.stopPropagation(),t.editItem(e)}},(0,D.tZ)(E.Z,{style:{color:"#0958d9"}})):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=G(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=G(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)(B().mark((function e(){var r,n,a,i,c,u,s;return B().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,F({},u),a);case 7:(s=e.sent)&&(c.options=[].concat((0,o.Z)(c.options),(0,o.Z)(s.options)),c.touchEnd=s.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)(B().mark((function e(r){var n,o,a,i,c,u,s,l,f,h,p,d,v,y,m,w,Z,b,x,k,L;return B().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=n.serverKey,u=t.state,s=u.optionsCache,l=u.ltmplConfig,f=u.preMainCode,h=a||o.mainCode,f!=h&&(t.setState({preMainCode:h.toString()}),t.initCache()),p="withoutValue",r&&(p=r),d=t.state.titleId,v=s[p]){e.next=39;break}if(t.setState({loading:!0}),y=l){e.next=15;break}return e.next=14,t.loadLtmplConfig();case 14:y=e.sent;case 15:if(y){e.next=18;break}return g.ZP.error("请配置正确查询页面"),e.abrupt("return");case 18:return m={pageNo:1,pageSize:6,virtualEndPageNo:void 0},d=y.primaryColumn.id,w=y.primaryCriteria,Z="undefinedCriteria",w&&(Z="c_"+w.id),(b=y.defaultPageSize)&&(m.pageSize=b),x={},i&&(x=F({},i)),x[Z]=r,e.next=30,j.Z.requestLtmplQueryKey(o.serverKey?o.serverKey:c,o.sourceId?o.sourceId:o.id,F(F(F({},x),m),{},{mainCode:h}));case 30:return k=e.sent,e.next=33,t.loadData(k.key,m,d);case 33:L=e.sent,v={options:L.options,pageInfo:m,queryKey:k,searchValue:r,touchEnd:L.touchEnd},s[p]=v,t.setState({optionCacheKey:p,titleId:d,optionsCache:F({},s),loading:!1}),e.next=40;break;case 39:t.state.optionCacheKey==p&&"withoutValue"==p?t.setState({loading:!1,optionCacheKey:p}):P()((function(){t.setState({loading:!1,optionCacheKey:p})}),500)();case 40: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(0,D.tZ)(w.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)(B().mark((function e(r,n,o){var a,i,c,u,s,l;return B().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.props,i=a.onEntityClick,a.baseCriteria,c=a.serverKey,u=a.fieldConfig,e.next=3,j.Z.requestQueryData(u.serverKey?u.serverKey:c,r,n);case 3:return s=e.sent,l=[],n=s.pageInfo,s.entities.forEach((function(e,r){var n=e.fieldMap[o];if(I.Z.cache(e),n){var a=n.split("@R@"),c=a&&a.length>0?a[a.length-1]:n;if("null"!=c){var u=t.toOption(e.code,c,i);l.push(u)}}})),e.abrupt("return",{options:l,touchEnd:s.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 P()((function(e){t.fetchOptions(e)}),800)})),(0,h.Z)((0,u.Z)(t),"debounceFetchNextPage",(function(){P()(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,s=(r.maxSelected,r.onEntityClick),l=r.mainCode,f=r.serverKey,h=i.actions,d=this.state,v=d.optionCacheKey,y=d.loading,m=d.optionsCache,g=d.drawCode,w=d.showEdit,x=d.showView,k=d.showTable,L=d.ltmplConfig,C=i.serverKey?i.serverKey:f,E=i.sourceId?i.sourceId:i.id,S=this.toOptions(a,s),j=(0,o.Z)(S),I=256;if(v&&m[v]){var A=m[v];A.pageInfo&&A.pageInfo.pageSize<8&&(I=32*A.pageInfo.pageSize-10);var M,B=G(A.options);try{for(B.s();!(M=B.n()).done;){var K=M.value;t=!1;var q,V=G(S);try{for(V.s();!(q=V.n()).done;){var H=q.value;H.value==K.value&&(t=!0,H.label=K.label)}}catch(t){V.e(t)}finally{V.f()}t||j.push(K)}}catch(t){B.e(t)}finally{B.f()}}return(0,D.tZ)(p.Fragment,null,(0,D.tZ)(Z.default,{disabled:c,id:n,listHeight:I,style:F({},u),onChange:this.onChange,value:this.toValueArray(a),mode:"multiple",placeholder:"请选择".concat(i.title),notFoundContent:y?(0,D.tZ)(b.Z,{size:"small"}):"无数据",allowClear:!0,showArrow:!0,suffixIcon:(0,D.tZ)(O.Z,null),filterOption:!1,dropdownRender:this.dropdownRender,tagRender:h&&(h.indexOf("detail")>=0||h.indexOf("edit")>=0)?this.tagRender:void 0,onSearch:this.debounceFetcher(),onClick:c?null:function(){P()(e.fetchOptions,100)(void 0)},options:y?[]:j,onPopupScroll:function(t){var r=t.target;r.scrollTop+r.offsetHeight+1>=r.scrollHeight&&e.debounceFetchNextPage()}}),x&&g?(0,D.tZ)(R.Z,{serverKey:C,placement:"left",onClose:this.doClose,open:x,sourceId:E,code:g}):null,w&&L?L.customEditPagePath?(0,D.tZ)(N.Z,{open:w,onOk:function(){e.drawSubmited()},customPath:L.customEditPagePath,sourceId:E,mainCode:l,code:g}):(0,D.tZ)(T.Z,{serverKey:C,pageType:"modal",open:w,onCancel:this.doClose,mainCode:l,sourceId:E,code:g,onOk:this.drawSubmited}):null,k?(0,D.tZ)(_.Bf,{serverKey:C,open:k,height:"76vh",onCancel:this.closeTable,sourceId:E,mainCode:l}):null)}}]),S}(p.PureComponent);(0,h.Z)(K,"defaultProps",{maxSelected:100})},39481:function(t,e,r){"use strict";r.d(e,{Z:function(){return g}});var n=r(32763),o=r(1252),a=r(59755),i=r(90237),c=r(65337),u=r(95225),s=r(39576),l=r(61378),f=r(69905),h=r(15274),p=r(67294),d=r(61239),v=r(49811),y=r(70917);function m(){m=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),c=new R(n||[]);return a(i,"_invoke",{value:S(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",g={};function w(){}function Z(){}function b(){}var x={};l(x,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(x=L);var C=b.prototype=w.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),g}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var g=function(t){(0,s.Z)(g,t);var e,r,n,p=(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,l.Z)(this,t)});function g(){var t;(0,i.Z)(this,g);for(var e=arguments.length,r=new Array(e),n=0;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 b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0){var e=t.split("@R@");g.push({code:e[0],title:e[1]}),Z.push({value:e[0],label:u?(0,m.tZ)(h.ZP,{size:"small",style:{padding:"0px"},type:"link",title:"",onClick:function(t){t.stopPropagation(),u(e[0])}},e[1]):e[1]})}})),(0,m.tZ)(f.Fragment,null,(0,m.tZ)(p.Z,{overlayClassName:"-popover",placement:"bottom",color:"#f0f0f0",overlayStyle:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},overlayInnerStyle:{padding:"0px"},content:(0,m.tZ)("div",{style:{height:300,backgroundColor:"#fafafa",overflow:"auto",borderStyle:"solid",borderRadius:"6px",borderWidth:"0px",borderColor:"#8c8c8c"}},(0,m.tZ)(y.Z,{serverKey:l,mainCode:s,maxSelectedRows:c,selectedRows:g,sourceId:o.sourceId,onChange:this.onSelect})),trigger:"click"},(0,m.tZ)(d.default,{id:e,style:w({},i),value:this.toValueArray(b),mode:"multiple",placeholder:"请选择".concat(o.title),notFoundContent:"请选择",allowClear:!0,showArrow:!0,suffixIcon:(0,m.tZ)(v.Z,null),dropdownStyle:{display:"none"},onChange:function(t){a(t)},options:Z})))}}]),b}(f.PureComponent);(0,l.Z)(x,"defaultProps",{maxSelected:100})},67077:function(t,e,r){"use strict";var n=r(20511),o=r(30698),a=r(15274),i=r(67294),c=r(73610),u=r(16117),s=r(36646),l=r(27784),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),Z=r(49073),b=r(2131),x=r(840),k=r(22364),L=r(13575),C=r(97038),E=r(39481),O=r(94752),S=r(86375),P=r(2603),j=r(97182),I=r(70917),R=["value","onChange","style"],T=["value"],N=["fieldConfig","value","onChange","id","mainCode"];function _(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 D(t){for(var e=1;e0&&parseInt(t.order)<1e4?t.order+".":"")+t.title,value:t.value})})),e}e.Z=function(t){var e=t.fieldConfig,r=t.value,a=t.onChange;return function(t,e,r,a,c,s,l){var w=d.Z.getControlType(r,a),Z=void 0,N=r.disabled?"无需输入":"请输入".concat(r.title),_=r.disabled,G=r.min,z=G||"0"==G?O.Z.configParamTrans(G):void 0,U=(G=r.max)||"0"==G?O.Z.configParamTrans(G):void 0,W=D({id:t,mainCode:e,fieldConfig:r,min:z,max:U,itemType:w,viewOrEdit:"edit",onChange:c,disabled:_,value:a,style:{minWidth:220,width:"100%"}},l),Q=D({id:t,placeholder:N,disabled:_,value:a,onChange:c,style:{minWidth:220,width:"100%"}},l),$=(0,I.tZ)(f.Z,{type:"text",placeholder:"暂未实现-".concat(w),disabled:!0});if(S.cB.getCustomEditControl(w))return i.createElement(S.cB.getCustomEditControl(w),W);switch(w){case"int":case"decimal":case"float":case"double":case"intrange":case"decimalrange":Z=(0,I.tZ)(y.Z,W);break;case"text":Z=(0,I.tZ)(f.Z,(0,o.Z)({allowClear:!0,type:"text"},Q));break;case"range":Z=(0,I.tZ)(m.Z,W);break;case"select":Z=(0,I.tZ)(h.default,(0,o.Z)({},Q,{notFoundContent:"暂无选项",allowClear:!0,showSearch:!0,optionLabelProp:"value",optionFilterProp:"label",options:Y(r.mstrucId)}));break;case"multiselect":case"texttags":Z=(0,I.tZ)(h.default,(0,o.Z)({mode:"multiple"},Q,{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":Z=(0,I.tZ)(A,(0,o.Z)({},Q,{options:Y(r.mstrucId),value:"string"==typeof a?a.split(","):a}));break;case"radio":Z=(0,I.tZ)(F,(0,o.Z)({},Q,{options:Y(r.mstrucId),value:"string"==typeof a?a.split(",")[0]:a}));break;case"yes-no-switch":var J=Q.value,X=Q.onChange,tt=(Q.style,(0,n.Z)(Q,R));Z=(0,I.tZ)(p.Z,(0,o.Z)({style:{width:"60px"},checkedChildren:"是",unCheckedChildren:"否",checked:"是"==J,onChange:function(t){X(t?"是":"否")}},tt));break;case"yes-no-radio":var et=Q.value,rt=(0,n.Z)(Q,T);Z=(0,I.tZ)(F,(0,o.Z)({value:et?"是"==et?"是":"否":null},rt),(0,I.tZ)(u.ZP,{value:"是"},"是"),(0,I.tZ)(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":Z=(0,I.tZ)(j.Z,W);break;case"textarea":case"url":Z=(0,I.tZ)(H,(0,o.Z)({rows:3,allowClear:!0},Q));break;case"html":Z=(0,I.tZ)(K,(0,o.Z)({viewOrEdit:"edit"},W));break;case"steps":Z=(0,I.tZ)(v.Z,(0,o.Z)({},W,{options:Y(r.mstrucId)}));break;case"password":Z=(0,I.tZ)(f.Z.Password,(0,o.Z)({},Q,{autoComplete:"new-password",prefix:(0,I.tZ)(P.Z,{className:"site-form-item-icon"})}));break;case"preselect":Z=(0,I.tZ)(g.Z,W);break;case"caselect":Z=(0,I.tZ)(k.Z,W);break;case"relation":default:Z=$;break;case"file":case"video":case"picture":case"non-download-file":Z=(0,I.tZ)(b.Z,W);break;case"chemstruc":Z=(0,I.tZ)(B,(0,o.Z)({viewOrEdit:"edit"},W));break;case"sql-code-editor":Z=(0,I.tZ)(q,(0,o.Z)({viewOrEdit:"edit"},W));break;case"relselect":case"refselect":case"entity-select":Z=(0,I.tZ)(L.Z,(0,o.Z)({maxSelected:U?parseInt(U):void 0},W));break;case"table-entity-select":Z=(0,I.tZ)(C.Z,(0,o.Z)({maxSelected:U?parseInt(U):void 0},W));break;case"lab-tree-select":Z=(0,I.tZ)(E.Z,(0,o.Z)({maxSelected:U?parseInt(U):void 0},W));break;case"progress":Z=(0,I.tZ)(x.Z,W);break;case"signature":Z=(0,I.tZ)(M,W);break;case"color":Z=(0,I.tZ)(V,W);break;case"hidden":Z=(0,I.tZ)(f.Z,{type:"hidden",value:a,disabled:!0})}return Z}(t.id,t.mainCode,e,r,a,0,(0,n.Z)(t,N))}},15989:function(t,e,r){"use strict";r(67294);var n=r(77434),o=r(49073),a=r(70917);e.Z=function(t){var e=t.value,r=(t.itemType,t.fieldConfig),i=o.Z.getEnumValueColor(r.mstrucId,e);return(0,a.tZ)("span",{className:"infoStyle"},e?(0,a.tZ)(n.Z,{color:i||"green",text:e}):null)}},75645:function(t,e,r){"use strict";r(67294);var n=r(39620),o=r(49073),a=r(70917);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=o.Z.getEnumValueColor(r.mstrucId,e);i.push((0,a.tZ)(n.Z,{key:t,color:c||"blue"},t))}))}return(0,a.tZ)("span",{className:"infoStyle"},i)}},74809:function(t,e,r){"use strict";var n=r(30698),o=r(15274),a=(r(67294),r(35697)),i=r(18230),c=r(94752),u=r(70917);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 l(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=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,s.Z)((0,a.Z)(t),"needMore",(function(){var e=t.props.value,r=t.showCount();return(e instanceof Array?e.length:1)>r})),(0,s.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")?(0,v.tZ)(f.Z,{key:e?e+1:1,size:[8,8],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?(0,v.tZ)(h.ZP,{key:r,style:{padding:"0px 0px",height:"100%"},type:"link",title:"",onClick:function(){t.showRfieldDtmplView(a)}},o):(0,v.tZ)("span",{key:r},o)}))):(0,v.tZ)(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],(0,v.tZ)("span",{key:e},r)})))})),t}return(0,o.Z)(g,[{key:"render",value:function(){var t=this.props,e=t.fieldConfig,r=(t.value,t.itemType,t.serverKey),n=this.state,o=n.showDtmplView,a=n.openCode,i=e.buttons,c=this.getValue(this.showCount());return(0,v.tZ)(l.Fragment,null,(0,v.tZ)(f.Z,{key:3,size:[8,16],wrap:!0,style:{minWidth:"80px"}},c,this.needMore()?(0,v.tZ)(p.Z,{overlayStyle:{maxWidth:"400px"},placement:"leftBottom",trigger:"click",content:this.getValue()},(0,v.tZ)(h.ZP,{key:"more",type:"link",size:"small"},"更多...")):null,i&&i.includes("detail")?(0,v.tZ)(d.Z,{serverKey:r,key:"mdv",open:o,onCancel:this.hiddenDtmplView,sourceId:e.sourceId,code:a}," "):""))}}]),g}(l.PureComponent)},91118:function(t,e,r){"use strict";var n=r(20511),o=(r(67294),r(91718)),a=r(34041),i=r(49073),c=r(70917),u=["viewOrEdit"];e.Z=function(t){var e,r=t.viewOrEdit,s=void 0===r?"view":r,l=(0,n.Z)(t,u),f=l.value,h=l.fieldConfig,p=l.onChange,d=l.options,v=i.Z.getEnums(h.mstrucId),y=void 0;for(var m in v)f==v[m].value&&(y=parseInt(m));var g=[];return v.map((function(t){return g.push({title:t.title})})),e=h.disabled||"view"==s?(0,c.tZ)(o.Z,{items:g,current:y,size:"small"}):(0,c.tZ)(a.default,{placeholder:"请选择".concat(h.title),notFoundContent:"暂无选项",allowClear:!0,showSearch:!0,value:f,onChange:function(t){p&&p(t)},options:d}),e}},95026: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),s=r(15274),l=r(67294),f=r(94752),h=r(55241),p=r(63568),d=r(70917);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]+>","g");o=e.replace(a,"")}var i=f.Z.getLongTextStyle(o.substring(0,n));return(0,d.tZ)(l.Fragment,null,o.length<=n||n<=0?(0,d.tZ)("span",{className:"infoStyle",style:i},o):(0,d.tZ)("span",{className:"infoStyle",style:i},o.substring(0,n),"...",this.viewButton()))}}]),y}(l.PureComponent);(0,s.Z)(v,"defaultProps",{isHtml:!1,showMax:30,maxWidth:"1024px"})},2131:function(t,e,r){"use strict";r.d(e,{Z:function(){return x}});var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),s=r(61378),l=r(69905),f=r(15274),h=r(67294),p=r(32823),d=r(57065),v=r(63568),y=r(84391),m=r(49811),g=r(38763),w=r(94752),Z=r(70917);function b(){b=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new R(n||[]);return a(i,"_invoke",{value:S(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var x={};l(x,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(x=L);var C=Z.prototype=g.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var x=function(t){(0,u.Z)(h,t);var e,r,n=(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,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,s.Z)(this,t)});function h(){var t;(0,a.Z)(this,h);for(var e=arguments.length,r=new Array(e),i=0;i=1?"":(0,Z.tZ)(v.ZP,{disabled:n},(0,Z.tZ)(y.Z,null)," ",n?"无需上传":"点击上传")))}}]),h}(h.PureComponent)},25291:function(t,e,r){"use strict";var n=r(20511),o=r(30698),a=r(15274),i=r(67294),c=r(36646),u=r(27784),s=r(77434),l=r(53807),f=r(4107),h=r(40684),p=r(15128),d=r(75645),v=r(15989),y=r(91118),m=r(94752),g=r(84680),w=r(27484),Z=r.n(w),b=r(840),x=r(95026),k=r(86375),L=r(70917),C=["fieldConfig","value","holderType"];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}var O=(0,L.tZ)(c.Z,{tip:"Loading..."},(0,L.tZ)(u.Z,{message:"正在加载数据。。。",description:"初次访问加载数据较多,可能需要几秒或几分钟,请耐心等待!!",type:"info"})),S=(0,h.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:O}),P=(0,h.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(782),r.e(66),r.e(385),r.e(836),r.e(204),r.e(486),r.e(373),r.e(41),r.e(162),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:O}),j=(0,h.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:O}),I=(0,h.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:O}),R=(0,h.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:O});function T(t,e,r,n,c){var u=p.Z.getControlType(t,e),h=r;h||(h="descriptions");t.colNum;var w=void 0,C=(t.disabled||"请输入".concat(t.title),t.disabled,e||(t.defaultValue&&!m.Z.isConfigDefaultValue(t.defaultValue)?t.defaultValue:"")),O=function(t){for(var e=1;e=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,o=t.serverKey;if(!e)return null;e.buttons;var a,i=e.cQuerys;return i&&i.length>3&&(a=(0,g.tZ)("div",{style:{width:"100px"},className:"btns"},(0,g.tZ)(h.Z,{direction:"vertical"},i.map((function(t,e){if(e>2)return(0,g.tZ)(m.Z,{serverKey:o,block:!0,key:t.id,mainCode:r,cQueryConfig:t})}))))),i&&i.length>0&&r?(0,g.tZ)(p.Z,{style:{position:"absolute",top:180,right:10,maxHeight:90},offsetTop:300},(0,g.tZ)("div",{className:"submitButtonBar"},(0,g.tZ)("ul",null,i?i.map((function(t,e){if(e<3)return(0,g.tZ)("li",{key:e},(0,g.tZ)(m.Z,{serverKey:o,type:"text",block:!0,key:t.id,mainCode:r,cQueryConfig:t}))})):"",i&&i.length>2?(0,g.tZ)(d.Z,{placement:"leftTop",content:a,trigger:"hover"},(0,g.tZ)(v.ZP,{block:!0},(0,g.tZ)(y.Z,null),"更多")):""))):""}}]),w}(f.PureComponent);e.Z=w},1233: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),s=r(15274),l=r(67294),f=r(22217),h=r(70917);var p=function(t){(0,i.Z)(p,t);var e,r,l=(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;o0&&o.push({id:r.premises[0].id,title:"默认字段"}),o&&o.length>3?(0,h.tZ)(f.Z,{style:{position:"absolute",top:60,right:n},offsetTop:80},(0,h.tZ)("div",{className:"rightBar",onScroll:this.scroll},(0,h.tZ)("ul",null,o?o.map((function(e,r){return(0,h.tZ)("li",{onClick:function(){return t.scrollToAnchor(e)},key:r},e.title)})):""))):""}}]),p}(l.PureComponent);(0,s.Z)(p,"defaultProps",{positionRight:15})},45136:function(t,e,r){"use strict";r.d(e,{Z:function(){return m}});var n=r(30698),o=r(20511),a=r(90237),i=r(65337),c=r(39576),u=r(61378),s=r(69905),l=r(15274),f=r(67294),h=r(1870),p=r(55241),d=r(63568),v=r(70917),y=["placement","icon","content"];var m=function(t){(0,c.Z)(f,t);var e,r,l=(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,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,u.Z)(this,t)});function f(){return(0,a.Z)(this,f),l.apply(this,arguments)}return(0,i.Z)(f,[{key:"render",value:function(){var t=this.props,e=t.placement,r=t.icon,a=t.content,i=(0,o.Z)(t,y);return a?(0,v.tZ)(p.Z,{placement:e,content:(0,v.tZ)("div",{dangerouslySetInnerHTML:{__html:a}})},(0,v.tZ)(d.ZP,(0,n.Z)({},i,{icon:r||(0,v.tZ)(h.Z,null)}))):null}}]),f}(f.PureComponent);(0,l.Z)(m,"defaultProps",{placement:"right",size:"small",type:"text"})},28202:function(t,e,r){"use strict";r.d(e,{Z:function(){return K}});var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),s=r(61378),l=r(69905),f=r(15274),h=r(67294),p=r(35137),d=r(63568),v=r(53807),y=r(8212),m=r(53191),g=r(59879),w=r(49073),Z=r(56440),b=r(99160),x=r(49811),k=r(94752),L=r(29336),C=r(82362),E=r(1233),O=r(7238),S=r(72670),P=r(14807),j=r(70832),I=r(26112),R=r(70917);function T(){T=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==r&&o.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var N=function(t){(0,u.Z)(v,t);var e,r,n,h,d=(n=v,h=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)(n);if(h){var r=(0,l.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,a.Z)(this,v);for(var e=arguments.length,r=new Array(e),n=0;n0?(0,R.tZ)(O.Z,{title:c,key:c,id:s+l[0].id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:u},(0,R.tZ)(C.Z,{serverKey:a,fields:l})):"",e?(0,R.tZ)(E.Z,{parentId:s,positionRight:r,dtmplConfig:o}):"",(0,R.tZ)(S.Z,{serverKey:a,dtmplConfig:o,mainCode:n}))}}]),v}(h.PureComponent);(0,f.Z)(N,"defaultProps",{showRightNav:!0});var _=N;function D(){D=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==r&&o.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var A=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,l.Z)(n);if(p){var r=(0,l.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,a.Z)(this,y);for(var e=arguments.length,r=new Array(e),n=0;n0?c[0].code:i,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(0,R.tZ)(Z.Z.Item,{color:a,key:r},k.Z.formateDate(e.time),(0,R.tZ)("br",null),""+e.userName,o?"":(0,R.tZ)(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)(D().mark((function t(){return D().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)(D().mark((function t(e){var r,n;return D().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=t.serverKey,c=this.state,u=c.list,s=c.current;return(0,R.tZ)(h.Fragment,null,(0,R.tZ)(b.Z,{title:"快照列表",closable:!0,onClose:r,open:e,width:350},u&&u.length>0?(0,R.tZ)(Z.Z,{mode:"alternate"},this.detailHistory()):"暂无历史记录"),(0,R.tZ)(b.Z,{placement:"left",title:"快照查看",closable:!0,mask:!1,onClose:r,open:e,width:"calc(100% - 380px)",style:{maxWidth:1960}},(0,R.tZ)(_,{serverKey:i,showRightNav:!1,dtmplConfig:n,sourceId:o,code:a,versionId:s})))}}]),y}(h.PureComponent);(0,f.Z)(A,"defaultProps",{});var F=A,G=r(45136);function M(){M=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==r&&o.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var B=function(t){(0,u.Z)(Z,t);var e,r,n,h=(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,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,s.Z)(this,t)});function Z(){var t;(0,a.Z)(this,Z);for(var e=arguments.length,r=new Array(e),n=0;n0&&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&&!t.hidden){var i=(0,p.tZ)(f.Z.Item,{label:t.title,span:t.colNum,key:e,className:"labelcss"},(0,p.tZ)(h.Z,{serverKey:o,holderType:"descriptions",value:r,fieldConfig:t}));a.push(i)}})),a})),e.state={fileList:[]},e}return(0,o.Z)(d,[{key:"render",value:function(){return(0,p.tZ)(f.Z,{column:2},this.initViewList())}}]),d}(l.PureComponent)},24019:function(t,e,r){"use strict";r.d(e,{Z:function(){return y}});var n=r(90237),o=r(65337),a=r(39576),i=r(61378),c=r(69905),u=r(15274),s=r(67294),l=r(8022),f=r(63568),h=r(48093),p=r(28202),d=r(31298),v=r(70917);var y=function(t){(0,a.Z)(s,t);var e,r,u=(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,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 s(){return(0,n.Z)(this,s),u.apply(this,arguments)}return(0,o.Z)(s,[{key:"render",value:function(){var t=this.props,e=t.code,r=t.sourceId,n=t.serverKey,o=t.open,a=t.onCancel,i=t.height;return(0,v.tZ)(l.Z,{open:o,title:"查看",width:"82vw",centered:!0,wrapClassName:"aaa",bodyStyle:{height:i,overflow:"auto"},onCancel:a,footer:[(0,v.tZ)(f.ZP,{key:"back",onClick:a},"取 消")]},(0,v.tZ)(d.ZP,{autoHide:!0,autoHideTimeout:1e3},e?(0,v.tZ)(p.Z,{serverKey:n,showRightNav:!1,sourceId:r,code:e}):""))}}]),s}(s.PureComponent);(0,u.Z)(y,"defaultProps",{showConfirm:!0,height:500,forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},cancelText:"取消",form:h.Z.useForm}),(0,u.Z)(y,"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(48093),u=r(63568),s=r(34041),l=r(71230),f=r(15746),h=r(18230),p=r(35137),d=r(57564),v=r(67077),y=r(62508),m=r(74499),g=r(70917),w=i.Z.Panel,Z=c.Z.Item,b=function(t){var e=t.ltmplConfig,r=t.doSearch,b=t.doAction,x=t.doJump,k=t.doDelete,L=t.selectedRows,C=t.data,E=t.open,O=(t.loading,t.selectedDatas),S=t.doCQuery,P=t.serverKey,j=c.Z.useForm(),I=(0,o.Z)(j,1)[0],R=e.buttons,T=e.actions,N=e.jumps,_=e.cQuerys,D=e.criterias,A=e.drillingParams,F=e.columns,G={};(0,a.useEffect)((function(){I.resetFields()}));var M=R.includes("query")&&r,B=R.includes("batchDelete")&&k,K=!(L&&L.length>0),q=function(e){if(e){var n=t.hiddenCriteriaIds,o=t.serverKey;return e.map((function(t){var e="c_"+t.id,r=C?C[e]:void 0;G[e]=r})),r?e.map((function(e){var r="c_"+e.id,a=C?C[r]:void 0;if(!n.includes(e.id))return(0,g.tZ)(Z,{label:e.title,name:r,key:e.id,tooltip:e.tip,rules:e.required?[{required:!0,message:"请选择".concat(e.title)}]:void 0},(0,g.tZ)(v.Z,{serverKey:o,mainCode:t.mainCode,value:a,fieldConfig:e}))})):void 0}};return(0,g.tZ)(c.Z,{form:I,name:"control-hooks",initialValues:G,layout:"inline",onFinish:function(t){r&&r(t)},style:{width:"100%"}},R.includes("drilling")&&E&&(A.length>0||(F.forEach((function(t){if("dimension"==t.statColType)return!0})),0))?(0,g.tZ)(i.Z,{style:{width:"100%"},defaultActiveKey:["1"]},(0,g.tZ)(w,{header:"设置-数据上钻",key:"1"},(0,g.tZ)(l.Z,null,(0,g.tZ)(f.Z,null,(0,g.tZ)(h.Z,{size:"small",wrap:!0},q(A),function(){var t="drillingColIds",e=[],r=[];F.forEach((function(t){"dimension"==t.statColType&&(r.push({label:t.title,value:t.id}),e.push(t.id))})),r.push({label:"无",value:"5"}),G[t]=C&&C[t]?C[t]:e;var o={placeholder:"请选择维度",disabled:!1,value:C?C[t]:e,style:{minWidth:220,width:"100%"}};return(0,g.tZ)(Z,{label:"维度",name:t,key:t,rules:[{required:!0,message:"请选择维度,上钻到顶层请只选【无】"}]},(0,g.tZ)(s.default,(0,n.Z)({mode:"multiple"},o,{notFoundContent:"暂无选项",allowClear:!0,showSearch:!0,showArrow:!0,options:r})))}()))))):"",(0,g.tZ)(p.Z,{className:"hoverable",style:{display:E?"block":"none",width:"100%"},headStyle:{background:"#f2f4f5"}},(0,g.tZ)(l.Z,null,(0,g.tZ)(f.Z,null,(0,g.tZ)(h.Z,{size:"small",wrap:!0},M?q(D):null,(0,g.tZ)(h.Z,{className:"btns"},M?(0,g.tZ)(u.ZP,{type:"primary",htmlType:"submit"},"查询"):"",B?(0,g.tZ)(d.Z,{placement:"rightBottom",title:"确定要【删除】选中数据吗?",onConfirm:function(){k()},okText:"确定",cancelText:"取消",okType:"danger"},(0,g.tZ)(u.ZP,{danger:!0,disabled:K},"删除选中")):"",function(){if(b&&T&&T.length>0)return T.map((function(t){var e=!0;return L&&(L.length>0&&t.multible||1==L.length)&&(e=!1),(0,g.tZ)(y.Z,{serverKey:P,hiddenType:"disabled",key:t.id,disabled:e,data:O,actionConfig:t,doAction:b,serial:1})}))}(),function(){if(x&&N&&N.length>0)return N.map((function(t){var e=!0;return L&&1==L.length&&(e=!1),(0,g.tZ)(u.ZP,{key:t.id,onClick:function(){return x(t)},disabled:e},t.title)}))}(),function(){var e=t.serverKey;if(S&&_&&_.length>0)return _.map((function(t){var r=!0;return L&&1==L.length&&(r=!1),(0,g.tZ)(m.Z,{serverKey:e,key:t.id,disabled:r,cQueryConfig:t,mainCode:r?void 0:L[0].code})}))}()))))))};b.defaultProps={hiddenCriteriaIds:[],open:!0},e.Z=b},89041:function(t,e,r){"use strict";r.d(e,{Z:function(){return F}});var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),s=r(61378),l=r(69905),f=r(15274),h=r(67294),p=r(32823),d=r(48093),v=r(35137),y=r(72985),m=r(63568),g=r(49811),w=r(69165),Z=r(59879),b=r(82362),x=r(29336),k=r(7238),L=r(86375),C=r(45136),E=r(49073),O=r(94752),S=r(70917);function P(){P=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new R(n||[]);return a(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(T([])));k&&k!==r&&o.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var j=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,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,s.Z)(this,t)});function d(){var t;(0,a.Z)(this,d);for(var e=arguments.length,r=new Array(e),n=0;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 _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var F=function(t){(0,u.Z)(P,t);var e,r,n,E,O=(n=P,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}}(),function(){var t,e=(0,l.Z)(n);if(E){var r=(0,l.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function P(){var t;(0,a.Z)(this,P);for(var e=arguments.length,r=new Array(e),n=0;n0?(0,S.tZ)(k.Z,{title:this.premisestitle,key:this.premisestitle,id:o+p[0].id,className:"hoverable",headStyle:{background:"#f2f4f5"}},(0,S.tZ)(b.Z,{serverKey:i,fields:p})):"")}}]),P}(h.PureComponent);(0,f.Z)(F,"defaultPorps",{maxCols:2,showHeader:!0,showRightNav:!1})},69165:function(t,e,r){"use strict";r.d(e,{Z:function(){return w}});var n=r(32763),o=r(90237),a=r(65337),i=r(95225),c=r(39576),u=r(61378),s=r(69905),l=r(15274),f=r(67294),h=r(48093),p=r(15746),d=r(71230),v=r(67077),y=r(94752),m=r(70917);var g=h.Z.Item,w=function(t){(0,c.Z)(h,t);var e,r,f=(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,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,u.Z)(this,t)});function h(t){var e;return(0,o.Z)(this,h),e=f.call(this,t),(0,l.Z)((0,i.Z)(e),"isPromise",(function(t){return!!t&&("object"===(0,n.Z)(t)||"function"==typeof t)&&"function"==typeof t.then})),(0,l.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,l.Z)((0,i.Z)(e),"getFieldConfig",(function(t){var r=e.props.formRef;return t.updateSelf?t.updateSelf(r.current):t})),(0,l.Z)((0,i.Z)(e),"initFormItem",(function(t,r){var n=e.props,o=n.nameAttr,a=n.maxColsOnRow,i=n.mainCode,c=n.serverKey,u=e.getFieldConfig(t),s=u.title;return(0,m.tZ)(g,{label:u.title,hidden:u.hidden,name:u[o],key:u.id,labelCol:1==a||1==u.colNum?{span:6}:{span:3},wrapperCol:1==a?{span:18}:1==u.colNum?{span:15}:{span:19},tooltip:u.tip,initialValue:r,style:{margin:4},rules:u.required?[{required:!0,message:"请输入".concat(s)}]:void 0},(0,m.tZ)(v.Z,{serverKey:c,mainCode:e.getMainCode(u,i),value:r,fieldConfig:u}))})),(0,l.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=t.serverKey,u=[];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 s;s="hidden"==t.extControlType?(0,m.tZ)(g,{hidden:!0,initialValue:a,name:t[o],key:t.id},(0,m.tZ)(v.Z,{serverKey:c,mainCode:e.getMainCode(t,i),value:a,fieldConfig:t})):t.shouldUpdate?(0,m.tZ)(g,{noStyle:!0,shouldUpdate:t.shouldUpdate},(function(){return e.initFormItem(t,a)})):e.initFormItem(t,a),u.push(s)}));for(var s=[],l=0;l=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}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 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);r0){var t,e=C(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,i.Z)(t,k)),r=this.state.l2Menus,n=[];return r&&r.forEach((function(t){if(t.disabled)return null;var e=(0,x.tZ)(y.Z,{key:t.id,count:t.count},(0,x.tZ)(m.ZP,{shape:"round",icon:(0,x.tZ)(Z.Z,null),href:"#/".concat(t.id,"/act-table?menuId=").concat(t.id),size:"large"},t.title));n.push(e)})),(0,x.tZ)(g.Z,e,(0,x.tZ)(w.Z,{size:[16,16],wrap:!0},n))}}]),v}(v.PureComponent),S=O,P=r(30698),j=r(44524),I=r(86623),R=["title"];function T(){T=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==r&&n.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.Z)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}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 _(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)?_(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 _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0){var t,e=N(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,i.Z)(t,R),n=this.state.l2Menus,o=[];return n&&n.forEach((function(t){if(t.disabled)return null;var e=(0,x.tZ)(g.Z,{size:"small",key:t.id},(0,x.tZ)(j.Z,{prefix:(0,x.tZ)(I.Z,null),title:t.title,value:t.count}),(0,x.tZ)(m.ZP,{style:{marginTop:12},href:"#/".concat(t.id,"/act-table?menuId=").concat(t.id)},"查看"));o.push(e)})),(0,x.tZ)(g.Z,(0,P.Z)({size:"small"},r,{title:e||"工作台"}),(0,x.tZ)(w.Z,{size:[16,16],wrap:!0},o))}}]),v}(v.PureComponent),A=D,F=(r(97038),r(38763)),G=r(50712);var M=G.Z.Footer,B=function(t){(0,f.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,p.Z)(e);if(r){var o=(0,p.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(){return(0,u.Z)(this,o),n.apply(this,arguments)}return(0,s.Z)(o,[{key:"render",value:function(){var t=this.props.content;return(0,x.tZ)(M,{style:{textAlign:"center"}},(0,x.tZ)("div",{className:"footer"},t||"Enterprise Applications ©2022 Created by  旷识科技"))}}]),o}(v.Component),K=r(39372),q=r(71230),V=r(15746),H=r(1351),Y=r(76629),z=r(30826),U=r(53807),W=r(79655);function Q(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 $(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)?$(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 $(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==arguments[2]?arguments[2]:"",a=[];return t&&t.map((function(t){r={key:t.id};var i=t.l2Menus;i&&(r.label=t.title,r.children=n.toSubMenu(i,e,o)),a.push(r)})),a},toSubMenu:function(t,e){var r,n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=[];return t&&t.map((function(t){r={key:t.id};var i=t.items;if(i)r.label=t.title,r.children=n.toSubMenu(i,e,o);else{var c=t;c.disabled?c.hiddenOnDisabled?r=null:(r.disabled=c.disabled,c.tip?r.label=(0,x.tZ)(U.Z,{placement:"top",title:c.tip},c.title):r.label=c.title):r.label=n.toL2MenuTitle(c,e,o)}r&&a.push(r)})),a},getRoutePath:function(t,e,r){if(t){var n="act-table",o="";switch(t.pageType){case"列表":n="act-table";break;case"树":n="act-tree";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},toL2MenuTitle:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t)return null;var o="/",a=t.customPath;a&&(a.startsWith("/")||a.startsWith("\\"))&&(o="");var i="";t.defaultCriteriaValue&&(i="&"+n.Z.transQueryParamsToStr(t.defaultCriteriaValue));var c=a?"".concat(r,"/page/").concat(t.id).concat(o).concat(a,"?menuId=").concat(t.id):this.getRoutePath(t,r,i);return(0,x.tZ)(W.OL,{to:c,target:e},t.title)},findOpenId:function(t,e){var r=void 0;if(t.l1Menus){var n,o=Q(t.l1Menus);try{for(o.s();!(n=o.n()).done;){var a,i=n.value,c=Q(i.l2Menus);try{for(c.s();!(a=c.n()).done;)if(a.value.id==e)return r=i.id}catch(t){c.e(t)}finally{c.f()}}}catch(t){o.e(t)}finally{o.f()}}else{var u,s=Q(t.items);try{for(s.s();!(u=s.n()).done;){var l=u.value;if(l.items){var f,h=Q(l.items);try{for(h.s();!(f=h.n()).done;)if(f.value.id==e)return r=l.id}catch(t){h.e(t)}finally{h.f()}}else if(l.id==e)return r=l.id}}catch(t){s.e(t)}finally{s.f()}}return r}};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 tt(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)?tt(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 tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function it(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 ct(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)?ct(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 ct(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function dt(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 vt(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)?vt(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 vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var Lt=function(t){(0,f.Z)(a,t);var e,r,n,o=(r=a,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,p.Z)(r);if(n){var o=(0,p.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function a(){var t;(0,u.Z)(this,a);for(var e=arguments.length,r=new Array(e),n=0;n=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var Rt=function(t){(0,f.Z)(i,t);var e,r,n,a=(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,p.Z)(r);if(n){var o=(0,p.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function i(){var t;(0,u.Z)(this,i);for(var e=arguments.length,r=new Array(e),n=0;n=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}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 Dt(t){for(var e=1;e0&&m.push({key:"2",label:(0,x.tZ)("span",{onClick:this.toSetContext},"全局配置")}),n&&f&&m.push({key:"3",label:(0,x.tZ)(Tt,null)}),s&&m.push({key:"4",label:(0,x.tZ)("span",{onClick:this.cleanCache},"清空缓存")}),m.push({key:"5",label:(0,x.tZ)("span",{onClick:o.Z.logout},(0,x.tZ)(wt.Z,null)," 退出")})):m.push({key:"2",label:(0,x.tZ)("span",{onClick:o.Z.logout},(0,x.tZ)(Zt.Z,null)," 登 录")}),(0,x.tZ)(v.Fragment,null,(0,x.tZ)(z.Z,{menu:a||{items:m},placement:"bottom",trigger:["click"]},(0,x.tZ)("div",{className:"userLogin",style:y},(0,x.tZ)(U.Z,{placement:"left",title:this.getTitle()},(0,x.tZ)(gt.C,{className:"loginAvatar",icon:(0,x.tZ)(bt.Z,null),size:"large"})))))}}]),i}(v.PureComponent);(0,d.Z)(At,"defaultProps",{backgroudColor:"#4a5f74",showUserInfo:!0,showChangePassword:!0});var Ft=At,Gt=G.Z.Header,Mt=K.Z.useToken,Bt=function(t){var e=Mt().token,r=t.collapsed,n={"--antd-color-primary":e.colorPrimary};return(0,x.tZ)(Gt,{style:{padding:0,height:"auto"}},(0,x.tZ)(q.Z,{className:"header-top",style:n,wrap:!1},(0,x.tZ)(V.Z,{span:20,className:"header-col"},(0,x.tZ)("div",{style:{float:"left"}},v.createElement(r?H.Z:Y.Z,{className:"trigger",onClick:function(){t.toggle()}})),(0,x.tZ)(rt,(0,P.Z)({},t,{activeColor:e.colorPrimary}))),(0,x.tZ)(V.Z,{span:1,style:{width:"100%"}},(0,x.tZ)(mt,{backgroudColor:e.colorPrimary})),(0,x.tZ)(V.Z,{span:1,style:{width:"100%"}},(0,x.tZ)(st,{backgroudColor:e.colorPrimary})),(0,x.tZ)(V.Z,{span:2},(0,x.tZ)(Ft,{backgroudColor:e.colorPrimary}))))},Kt=["blockMenu","collapsed","currentL2MenuId","basePath"];var qt=function(t){(0,f.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,p.Z)(e);if(r){var o=(0,p.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(t){var e;return(0,u.Z)(this,o),e=n.call(this,t),(0,d.Z)((0,l.Z)(e),"handleOpen",(function(t){t&&t.length>1&&t.splice(0,1),e.setState({openKeys:t})})),e.state={openKeys:[]},e}return(0,s.Z)(o,[{key:"componentDidMount",value:function(){var t=this.props,e=t.currentL2MenuId,r=t.blockMenu,n=(t.collapsed,this.state.openKeys),o=r?J.findOpenId(r,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?J.findOpenId(n,r):void 0,c=n?J.findOpenId(a,o):void 0;(!c&&i||i&&i!=c)&&this.setState({openKeys:[i]})}else{var u=n?J.findOpenId(n,r):void 0;u&&this.setState({openKeys:[u]})}}},{key:"render",value:function(){var t=this.props,e=t.blockMenu,r=t.collapsed,n=t.currentL2MenuId,o=t.basePath,a=(0,i.Z)(t,Kt),c=this.state.openKeys;return(0,x.tZ)(nt.Z,(0,P.Z)({},a,{onOpenChange:this.handleOpen,selectedKeys:n?[n.toString()]:void 0,openKeys:r?void 0:c,items:e?J.getMenu(e,void 0,o):[]}))}}]),o}(v.PureComponent),Vt=r(31298),Ht=r(48769),Yt=r.p+"images/logo-06f6a5d8.png",zt=K.Z.useToken,Ut=function(t){var e={"--logo-blue-background":zt().token.colorPrimary},r=t.collapsed;return(0,x.tZ)("div",null,(0,x.tZ)(Vt.ZP,{style:{height:"calc(100vh)"},autoHide:!0,autoHideTimeout:1e3},(0,x.tZ)("div",{className:r?"logonly":"logo-blue",style:e},(0,x.tZ)("a",{href:"#/home"},r?(0,x.tZ)(Ht.Z,{src:t.logo?t.logo:n.Z.programName_Logo()?n.Z.programName_Logo():Yt}):(0,x.tZ)(v.Fragment,null,(0,x.tZ)("h1",{style:{overflow:"hidden",height:"58px",paddingLeft:"-20px"}},(0,x.tZ)(v.Fragment,null,(0,x.tZ)(Ht.Z,{width:"30px",src:t.logo?t.logo:n.Z.programName_Logo()?n.Z.programName_Logo():Yt})," ",t.title?t.title:n.Z.programName_NavLeft()))))),(0,x.tZ)(qt,(0,P.Z)({mode:"inline",theme:"light"},t))))},Wt=r(49611),Qt=r.n(Wt),$t=r(48418),Jt=r(89250),Xt=function(t){return function(e){var r=(0,Jt.TH)(),n=(0,Jt.s0)(),o=(0,Jt.UO)(),a=(0,W.lr)(),i=(0,$t.Z)(a,2),c=i[0];return i[1],(0,x.tZ)(t,(0,P.Z)({},e,{location:r,navigate:n,params:o,searchParams:c}))}};function te(){te=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==r&&n.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.Z)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function ee(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 re(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)?re(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 re(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0,blocks:s&&s.blocks?s.blocks:[],currentL2MenuId:s?s.l2MenuId:null,currentBlockId:s?s.blockId:null,sideBartitle:u||(s?s.programName:null)}}));case 11:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,c.Z)(te().mark((function t(e,r){var n,o,a,i,c,u,s,l,f,h,p;return te().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||(s=n.hash.match(/[\w]+\-[\d]+/))&&"menu"===(l=s[0].split("-"))[0]&&(c=l[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=this.props,r=e.footer,n=e.sideBarLogo,o=this.state,a=o.collapsed,i=o.currentL2MenuId,c=o.currentBlockId,u=o.isImporter,s=o.sideBartitle;return null===(t=this.scrollbarRef)||void 0===t||null===(t=t.current)||void 0===t||t.scrollToTop(),(0,x.tZ)(Vt.ZP,{ref:this.scrollbarRef,style:{height:"calc(100vh)"},autoHide:!0,autoHideTimeout:1e3},(0,x.tZ)(Qt(),{title:(u?"导入-":"")+this.findBlockTitle(c)},(0,x.tZ)(G.Z,null,(0,x.tZ)(oe,{theme:"light",style:{overflow:"auto",height:"100vh",position:"fixed",left:0,top:0,bottom:0},collapsed:a},(0,x.tZ)(Ut,{title:s,logo:n,blockMenu:this.findCurrentBlock(),currentL2MenuId:i,collapsed:a})),(0,x.tZ)(G.Z,{style:a?{background:"#fff",marginLeft:80}:{background:"#fff",marginLeft:200}},(0,x.tZ)(Bt,(0,P.Z)({toggle:this.toggle},this.state)),(0,x.tZ)(ne,{style:{margin:"24px 16px 0",overflow:"initial",minHeight:"calc(100vh)",minWidth:760,maxWidth:1960,paddingBottom:"8px"}},this.props.children),(0,x.tZ)(B,{content:r})))))}}]),y}(v.PureComponent),ie=Xt(ae),ce=r(1252),ue=r(73610),se=r(72374),le=r(35697),fe=r(57065),he=r(98879),pe=r(20890),de=r(59879),ve=r(84391),ye=r(90631),me=r(24616);function ge(){ge=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==r&&n.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.Z)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function we(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 Ze(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)?Ze(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 Ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);ra?v.slice(c.length-a):v,t.setState({statusMsg:e.message,percent:d,importStatus:100==d?"success":"importing",logs:v})}}))})),(0,d.Z)((0,l.Z)(t),"onChangeShowLogLevelList",(function(e){t.setState({showLogLevelList:e})})),(0,d.Z)((0,l.Z)(t),"fresh",(function(){})),(0,d.Z)((0,l.Z)(t),"handleLogSetter",(function(){var e=t.state.inputMaxMsgCount;t.setState({maxMsgCount:e,logSetterOpen:!1}),Et.ZP.success("设置成功!")})),(0,d.Z)((0,l.Z)(t),"changeLogSetterOpen",(function(e){t.setState({logSetterOpen:e})})),(0,d.Z)((0,l.Z)(t),"download",(function(){var e=t.props,r=e.sourceId,o=e.serverKey,a=n.Z.hydrocarbonToken();n.Z.downloadFile(n.Z.joinPath(n.Z.api(o),"/v3/ltmpl/importer/template?sourceId=".concat(r,"&@token=").concat(a,"&@programToken=").concat(n.Z.programCode(o))),"导入模板")})),t}return(0,s.Z)(i,[{key:"componentDidMount",value:(e=(0,c.Z)(ge().mark((function t(){var e,r,n,o;return ge().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props,r=e.sourceId,n=e.serverKey,t.next=3,b.Z.requestLtmplConfig(n,r);case 3:o=t.sent,this.setState({ltmplConfig:o.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,s=r.logSetterOpen,l=[],f=we(r.logs);try{for(f.s();!(t=f.n()).done;){var h=t.value;u.includes(h.level)&&l.push(h.msg)}}catch(t){f.e(t)}finally{f.f()}var p={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},d=(0,x.tZ)("div",null,(0,x.tZ)("label",null,"日志消息数上限:"),(0,x.tZ)(le.Z,{defaultValue:a,onChange:function(t){return e.setState({inputMaxMsgCount:t})}}),(0,x.tZ)(m.ZP,{type:"primary",style:{marginLeft:"10px"},onClick:this.handleLogSetter},"确定"));return(0,x.tZ)("div",{className:"importData"},(0,x.tZ)("h3",null,"导入 -> ",n?n.title:"",(0,x.tZ)("p",{className:"fr"},(0,x.tZ)(m.ZP,{className:"hoverbig",title:"刷新",onClick:this.fresh},(0,x.tZ)(de.Z,null)))),(0,x.tZ)(q.Z,null,(0,x.tZ)(V.Z,{span:14,offset:5},(0,x.tZ)(g.Z,{size:"small",style:{minWidth:600}},(0,x.tZ)(w.Z,null,(0,x.tZ)(fe.Z,p,(0,x.tZ)(m.ZP,{type:"primary"},(0,x.tZ)(ve.Z,null),"选择导入文件")),(0,x.tZ)(m.ZP,{onClick:this.download},(0,x.tZ)(ye.Z,null),"下载导入模板")),(0,x.tZ)(he.Z,{percent:i,size:"small",status:"active"}),(0,x.tZ)("div",{className:"importBtns"},(0,x.tZ)(w.Z,null,(0,x.tZ)(m.ZP,{type:"primary",onClick:this.handleUpload,disabled:!["fileSelected","stop"].includes(c),loading:"importing"==c},"importing"==c?"正在导入":"stop"==c?"重新导入":"开始导入"),(0,x.tZ)(m.ZP,{onClick:this.handleStopImport,disabled:"importing"!=c},"停止导入"))),(0,x.tZ)(pe.Z,{header:(0,x.tZ)("div",{className:"listHeader"},(0,x.tZ)("h4",null,"导入日志"),(0,x.tZ)("div",{className:"checks"},(0,x.tZ)(be,{value:u,onChange:this.onChangeShowLogLevelList},(0,x.tZ)(ue.Z,{value:"INFO",className:"infoColor"},"常规"),(0,x.tZ)(ue.Z,{value:"SUC",className:"sucColor"},"成功"),(0,x.tZ)(ue.Z,{value:"ERROR",className:"errorColor"},"错误"),(0,x.tZ)(ue.Z,{value:"WARN",className:"warnColor"},"警告")),(0,x.tZ)("div",{className:"btns"},(0,x.tZ)(Pt.Z,{content:d,title:"日志设置",trigger:"click",placement:"top",open:s,overlayStyle:{width:350},onOpenChange:this.changeLogSetterOpen},(0,x.tZ)(m.ZP,{title:"日志设置",type:"primary",size:"small"},(0,x.tZ)(me.Z,null)))))),footer:(0,x.tZ)(ke,{type:"fail"==c||"stop"==c?"danger":"success"},c),bordered:!0,dataSource:l,renderItem:function(t){return(0,x.tZ)(pe.Z.Item,null,t)},className:"importList"})))))}}]),i}(v.PureComponent);function Ce(){Ce=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==r&&n.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.Z)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var Ee=function(t){(0,f.Z)(a,t);var e,r,n,o=(r=a,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,p.Z)(r);if(n){var o=(0,p.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function a(){var t;(0,u.Z)(this,a);for(var e=arguments.length,r=new Array(e),n=0;n=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var De=function(t){(0,f.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,p.Z)(e);if(r){var o=(0,p.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function a(){var t;(0,u.Z)(this,a);for(var e=arguments.length,r=new Array(e),i=0;i=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var qe=function(t){(0,f.Z)(y,t);var e,r,n,a,i=(n=y,a=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,p.Z)(n);if(a){var r=(0,p.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function y(){var t;(0,u.Z)(this,y);for(var e=arguments.length,r=new Array(e),n=0;n=3?120:2==r?86:80})),t}return(0,s.Z)(o,[{key:"render",value:function(){(0,$e.Z)(this.state);var t,e=this.props,r=e.dtmplConfig,n=e.doSubmit,o=e.formRef,a=e.serial,i=e.serverKey,c=e.dtmplData,u=r.buttons,s=r.actions,l=[];return r.premises&&r.premises.length>0&&l.push({id:"1",title:"默认字段"}),r.groups.forEach((function(t){l.push({title:t.title,id:t.id})})),s&&s.length>1&&(t=(0,x.tZ)("div",{className:"btns"},s.map((function(t,e){if(e>1)return(0,x.tZ)(er.Z,{serverKey:i,data:[c],iconType:"icon-title",hiddenType:"disabled",buttonType:"primary",serial:a,key:t.id,formRef:o,actionConfig:t,doAction:n})})))),(0,x.tZ)(Je.Z,{style:{position:"absolute",bottom:60,right:15},offsetBottom:this.calcOffsetBottom(u,s)},(0,x.tZ)("div",{className:"submitButtonBar"},(0,x.tZ)("ul",null,u.includes("dtmplSave")?(0,x.tZ)("li",{key:100},(0,x.tZ)(m.ZP,{onClick:function(){return n()},type:"primary",icon:(0,x.tZ)(Xe.Z,null),key:"btn",block:!0},"保 存")):"",s?s.map((function(t,e){if(e<2)return(0,x.tZ)("li",{key:e},(0,x.tZ)(er.Z,{data:[c],serverKey:i,hiddenType:"disabled",buttonType:"primary-block",serial:a,key:t.id,formRef:o,actionConfig:t,doAction:n}))})):"",s&&s.length>2?(0,x.tZ)(Pt.Z,{placement:"leftTop",content:t,trigger:"hover"},(0,x.tZ)(m.ZP,{block:!0},(0,x.tZ)(tr.Z,null),"更多")):"")))}}]),o}(v.PureComponent),nr=rr;var or=function(t){(0,f.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,p.Z)(e);if(r){var o=(0,p.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(){var t;(0,u.Z)(this,o);for(var e=arguments.length,r=new Array(e),a=0;at.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var fr=function(t){(0,f.Z)(y,t);var e,r,a,i=(r=y,a=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,p.Z)(r);if(a){var n=(0,p.Z)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function y(){var t;(0,u.Z)(this,y);for(var e=arguments.length,r=new Array(e),a=0;a0&&(t.autoSaveInterval&&clearInterval(t.autoSaveInterval),t.autoSaveInterval=setInterval((function(){t.autoSaveTimer>=r.autoSaveInterval?(t.autoSaveTimer=-1e15,t.doSubmit(void 0)):t.autoSaveTimer=t.autoSaveTimer+1}),1e3)),!l){e.next=16;break}return t.setState({loading:!0}),e.next=11,o.Z.getDtmplData(r,u,a,l);case 11:f=e.sent,"copy"==c&&f&&(f.code=void 0),t.setState({dtmplData:f,id:l,loading:!1}),e.next=17;break;case 16:t.setState({dtmplData:{code:void 0,title:void 0,fieldMap:{},arrayMap:{}},loading:!1});case 17:setTimeout((function(){return t.onValuesChange()}),300);case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,d.Z)((0,l.Z)(t),"doSubmit",(function(e){var r=t.props.mainCode;t.formRef.current.setFieldsValue({actionId:e}),r&&t.formRef.current.setFieldsValue({mainCode:r}),t.formRef.current.submit()})),(0,d.Z)((0,l.Z)(t),"onFinish",(function(e){t.newCode=e;var r=t.state.dtmplConfig,n=r.saveJumpTo?r.saveJumpTo:[];n.length>1?t.setState({showPostResult:!0}):n.includes("edit")?t.goEdit():n.includes("add")?t.goAdd():n.includes("nothing")||t.goList()})),(0,d.Z)((0,l.Z)(t),"goList",(function(){t.newCode=void 0,t.props.goBackToLtmpl()})),(0,d.Z)((0,l.Z)(t),"goEdit",(function(){var e=t.newCode,r=t.props,n=r.goDtmpl;r.code,r.goBackToLtmpl,t.newCode=void 0,n(e),t.setState((function(t){return{showPostResult:!1}}))})),(0,d.Z)((0,l.Z)(t),"goAdd",(function(){t.newCode=void 0;var e=t.props,r=e.goDtmpl;e.code&&r(),t.setState((function(t){return{showPostResult:!1}}))})),t}return(0,s.Z)(y,[{key:"componentDidMount",value:function(){this.loadConfigData()}},{key:"componentDidUpdate",value:(e=(0,c.Z)(lr().mark((function t(e,r,n){return lr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&e==this.props){t.next=7;break}return t.t0=this,t.next=4,this.loadConfigData();case 4:return t.t1=t.sent,t.next=7,t.t0.loadData.call(t.t0,t.t1);case 7:case"end":return t.stop()}}),t,this)}))),function(t,r,n){return e.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.autoSaveInterval&&clearInterval(this.autoSaveInterval)}},{key:"render",value:function(){var t=this.state,e=t.dtmplConfig,r=t.showPostResult,n=t.loading,o=t.id,a=t.serial,i=t.dtmplData,c=this.props,u=c.sourceId,s=c.showRightNav,l=c.code,f=c.addOrUpdate,h=c.maxColsOnRow,p=c.mainCode,d=c.serverKey,v=[];if(!e)return(0,x.tZ)(g.Z,{loading:n});var y=e.actions;if(y){var m,w=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 sr(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)?sr(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}}}}(y);try{for(w.s();!(m=w.n()).done;){var Z=m.value;Z.writes&&Z.writes.forEach((function(t){v.push({id:t.id,value:t.value})}))}}catch(t){w.e(t)}finally{w.f()}e.hiddenFields=v}return(0,x.tZ)("div",{className:"detailPage ",onClick:this.onClickBody},(0,x.tZ)(Ye.Z,{showRightNav:s,serverKey:d,mainCode:p,parentId:o,dtmplConfig:e,formRef:this.formRef,sourceId:u,onFinish:this.onFinish,maxColsOnRow:h,showConfirm:!0,dtmplData:i,onValuesChange:this.onValuesChange}),s?(0,x.tZ)(Qe.Z,{parentId:o,dtmplConfig:e}):"",(0,x.tZ)(cr,{dtmplData:i,serverKey:d,serial:a,dtmplConfig:e,doSubmit:this.doSubmit,formRef:this.formRef}),(0,x.tZ)(ur.Z,{serverKey:d,dtmplConfig:e,mainCode:l}),(0,x.tZ)(We,{open:r,addOrUpdate:"copy"==f?"add":f,resultStatus:"success",goList:this.goList,goEdit:this.goEdit,goAdd:this.goAdd,jumpTypes:e.saveJumpTo}))}}]),y}(v.PureComponent);(0,d.Z)(fr,"defaultProps",{showRightNav:!0});var hr=r(28202);function pr(){pr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==r&&n.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.Z)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var dr=function(t){(0,f.Z)(y,t);var e,r,n,a,i=(n=y,a=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,p.Z)(n);if(a){var r=(0,p.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function y(){var t;(0,u.Z)(this,y);for(var e=arguments.length,r=new Array(e),n=0;n=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var wr=function(t){(0,f.Z)(y,t);var e,r,o,a,i=(o=y,a=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,p.Z)(o);if(a){var r=(0,p.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function y(){var t;(0,u.Z)(this,y);for(var e=arguments.length,r=new Array(e),o=0;o1&&void 0!==arguments[1]&&arguments[1],n=t.props.basePath,o=t.props.params.sourceId,a=t.state.ltmplConfigRes,i="".concat(n,"/").concat(o,"/detail-view?code=").concat(e,"&menuId=").concat(t.getMenuId());r&&a.ltmplConfig.customViewPagePath&&(i="".concat(n).concat(a.ltmplConfig.customViewPagePath,"?menuId=").concat(t.getMenuId(),"&sourceId=").concat(o)),t.onRoute(i)})),(0,d.Z)((0,l.Z)(t),"doEdit",(function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.props.basePath,a=t.props.params.sourceId,i=t.state.ltmplConfigRes,c=t.getMainCode(),u="".concat(o,"/").concat(a,"/detail-edit?code=").concat(e,"&menuId=").concat(t.getMenuId(),"&mode=").concat(r);n&&i.ltmplConfig.customEditPagePath&&(u="".concat(o,"/page/").concat(a).concat(i.ltmplConfig.customEditPagePath,"?code=").concat(e,"&menuId=").concat(t.getMenuId())),c&&(u+="&mainCode=".concat(c)),t.onRoute(u)})),(0,d.Z)((0,l.Z)(t),"getMainCode",(function(){var e=void 0,r=t.props.searchParams.get("mainCode");return r&&(e=r),e})),(0,d.Z)((0,l.Z)(t),"doCreate",(function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.props.basePath,o=t.props.params.sourceId,a=t.state.ltmplConfigRes,i="".concat(n,"/").concat(o,"/detail-edit?menuId=").concat(t.getMenuId(),"&addTmplId=").concat(e||"");r&&a.ltmplConfig.customEditPagePath&&(i="".concat(n,"/page/").concat(o).concat(a.ltmplConfig.customEditPagePath,"?menuId=").concat(t.getMenuId()));var c=t.getMainCode();c&&(i+="&mainCode=".concat(c)),t.onRoute(i)})),(0,d.Z)((0,l.Z)(t),"doRAction",(function(e,r){var n=t.props.basePath,o="".concat(n,"/").concat(e,"/act-table?mainCode=").concat(r,"&menuId=").concat(t.getMenuId());t.onRoute(o)})),(0,d.Z)((0,l.Z)(t),"doSearch",(function(e){var r=t.props.basePath,o=t.props.params.sourceId,a=mr({},e),i=n.Z.transQueryParamsToStr(a);t.props.navigate("".concat(r,"/").concat(o,"/act-table?").concat(i),{replace:!0})})),(0,d.Z)((0,l.Z)(t),"onChangeSearch",(function(e){var r=mr({},e),n=t.props.searchParams.get("mainCode");n&&(r.mainCode=n);var o=t.state,a=o.pageSize,i=o.pageNo;a&&(r.pageNo=i),i&&(r.pageSize=a),r.menuId=t.getMenuId(),r.sourceId=t.getMenuId(),t.doSearch(r)})),(0,d.Z)((0,l.Z)(t),"onChangePage",(function(e,r){var o=t.props.location.search,a=n.Z.transQueryStrToParams(o);a.pageNo=e,a.pageSize=r,t.doSearch(a)})),t}return(0,s.Z)(y,[{key:"componentDidMount",value:(r=(0,c.Z)(gr().mark((function t(){return gr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.loadData();case 1:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,c.Z)(gr().mark((function t(e){var r,n,o,a,i,c;return gr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.props,n=r.location,o=r.params,a=o.sourceId,i=e.params.sourceId,c=e.location,!(!a||!i&&this.state.ltmplConfigRes||n.pathname==c.pathname&&n.search==c.search)){t.next=6;break}return t.abrupt("return");case 6:this.loadData();case 7:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.ltmplConfigRes,e=this.props,r=e.location,o=e.params.sourceId,a=void 0,i=r.search,c=n.Z.transQueryStrToParams(i),u=c.pageSize,s=c.pageNo;return i.indexOf("mainCode")>0&&(a=c.mainCode),t?(0,x.tZ)(Te.Z,{serverKey:null,pageSize:u,pageNo:s,onChangePage:this.onChangePage,menuId:this.getMenuId(),mainCode:a,showView:this.showView,doSearch:this.onChangeSearch,doEdit:this.doEdit,doCreate:this.doCreate,sourceId:o,criteriaData:c,ltmplConfig:t?t.ltmplConfig:null,doRAction:this.doRAction}):(0,x.tZ)(v.Fragment,null)}}]),y}(v.PureComponent);(0,d.Z)(wr,"defaultProps",{basePath:""});var Zr,br=Xt(wr),xr=r(57564),kr=r(7573),Lr=r(73171),Cr=r(8212),Er=r(76880),Or=r(18267),Sr=r(49101);function Pr(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 jr(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)?jr(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 jr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Rr(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 Tr(t){for(var e=1;e=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 Dr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}Zr=Nr,(0,d.Z)(Nr,"initTtmplNodeConfig",function(){var t=(0,c.Z)(Ir().mark((function t(e){var r,n,o,a,i,c,u;return Ir().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(!(r=Tr({},e)).rootGtmplId){t.next=10;break}return t.next=6,b.Z.requestLtmplConfig(null,r.rootGtmplId);case 6:n=t.sent,o=n.ltmplConfig,r.rootLTmplConfig=o,r.rootTitleId=o.primaryColumn.id;case 10:if(!r.branchRatmplId){t.next=17;break}return t.next=13,b.Z.requestLtmplConfig(null,r.branchRatmplId);case 13:a=t.sent,i=a.ltmplConfig,r.branchLTmplConfig=i,r.branchTitleId=i.primaryColumn.id;case 17:if(!r.leafRatmplId){t.next=24;break}return t.next=20,b.Z.requestLtmplConfig(null,r.leafRatmplId);case 20:c=t.sent,u=c.ltmplConfig,r.leafLTmplConfig=u,r.leafTitleId=u.primaryColumn.id;case 24:return t.abrupt("return",r);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,d.Z)(Nr,"loadRootNodeData",function(){var t=(0,c.Z)(Ir().mark((function t(e){var r,n;return Ir().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.Z.requestTtmplRootData(null,e.id,{});case 2:return r=t.sent,n=[],r.entities&&r.entities.forEach((function(t,r){n.push(Zr.toTreeNodeData(t,e.rootTitleId,null,!1,"R"))})),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,d.Z)(Nr,"pushNodeData",(function(t,e,r,n){t.children.splice(0,t.children.length),r&&r.forEach((function(r,n){t.children.push(Zr.toBanchTreeNodeData(r,e,t))})),n&&n.forEach((function(r,n){t.children.push(Zr.toLeafTreeNodeData(r,e,t))}))})),(0,d.Z)(Nr,"pushSameCodeNodeData",function(){var t=(0,c.Z)(Ir().mark((function t(e,r){var n,a,i,c,u,s,l;return Ir().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.length>0)){t.next=13;break}if(!r.branchRatmplId){t.next=6;break}return t.next=4,o.Z.requestLtmplQueryTop(null,r.branchRatmplId,{mainCode:e[0].code});case 4:a=t.sent,n=a.entities;case 6:if(!r.leafRatmplId){t.next=11;break}return t.next=9,o.Z.requestLtmplQueryTop(null,r.leafRatmplId,{mainCode:e[0].code});case 9:c=t.sent,i=c.entities;case 11:u=Pr(e);try{for(u.s();!(s=u.n()).done;)l=s.value,Zr.pushNodeData(l,r,n,i)}catch(t){u.e(t)}finally{u.f()}case 13:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),(0,d.Z)(Nr,"toLeafTreeNodeData",(function(t,e,r){return Zr.toTreeNodeData(t,e.leafTitleId,r,!0,"B")})),(0,d.Z)(Nr,"toBanchTreeNodeData",(function(t,e,r){return Zr.toTreeNodeData(t,e.branchTitleId,r,!1,"L")})),(0,d.Z)(Nr,"toTreeNodeData",(function(t,e,r,n,o){var a=t.fieldMap[e];return{code:t.code,key:o+(null==r?void 0:r.code)+t.code,name:a,title:(0,x.tZ)(v.Fragment,null,(0,x.tZ)("span",null,a||t.code)),children:[],isLeaf:n,parent:r}})),(0,d.Z)(Nr,"filterNode",(function(t,e){var r=(0,ce.Z)(t.children),n=[],o=[];return r.forEach((function(t){var r=Tr({},t);if((r.searchValue?r.searchValue:r.name).indexOf(e)>=0&&n.push(r),r.children&&r.children.length>0){var a=Zr.filterNode(r,e);a.length>0?(r.children=a,(r.searchValue?r.searchValue:r.name).indexOf(e)<0&&n.push(r)):(r.children=[],o.push(r))}})),t.children=n,n})),(0,d.Z)(Nr,"filterTree",(function(t,e){var r={code:"",config:void 0,key:void 0,children:(0,ce.Z)(t)};return Zr.filterNode(r,e),r.children})),se.Z.Text,se.Z.Title;var Fr=function(t){(0,f.Z)(b,t);var e,r,n,a,i,y,Z=(i=b,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,p.Z)(i);if(y){var r=(0,p.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function b(){var t;(0,u.Z)(this,b);for(var e=arguments.length,r=new Array(e),n=0;n0?i(c.leafTitle,c.leafRatmplId,e.parent.code,e.code):c.leafLTmplConfig.buttons.indexOf("detail")>0&&a(c.leafTitle,c.leafRatmplId,e.parent.code,e.code):c.branchLTmplConfig.buttons.indexOf("dtmplEdit")>0?i(c.branchTitle,c.branchRatmplId,e.parent.code,e.code):c.branchLTmplConfig.buttons.indexOf("detail")>0&&a(c.branchTitle,c.branchRatmplId,e.parent.code,e.code):c.rootLTmplConfig.buttons.indexOf("dtmplEdit")>0?n(c.branchTitle,e.code):c.rootLTmplConfig.buttons.indexOf("detail")>0&&o(c.branchTitle,e.code)})),(0,d.Z)((0,l.Z)(t),"stopPropagation",(function(t){t.stopPropagation?t.stopPropagation():window.event.cancelBubble=!0})),(0,d.Z)((0,l.Z)(t),"reloadData",function(){var e=(0,c.Z)(Ar().mark((function e(r){var n,o,a,i,c,u,s,l,f,h;return Ar().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props.ttmplNodeConfig,o=t.state,a=o.data,i=o.expandedKeys,null!=r){e.next=10;break}return e.next=5,t.loadRootNodeData();case 5:c=e.sent,t.mergeRootData(a,c),t.setState({data:c}),e.next=17;break;case 10:return u=[],t.searchNode(a,r,u),e.next=14,Nr.pushSameCodeNodeData(u,n);case 14:for(s=[],l=0,f=u;l0&&t.searchNode(i.children,r,n)}}catch(t){a.e(t)}finally{a.f()}}})),(0,d.Z)((0,l.Z)(t),"getDeleteButton",(function(e,r){var n=t.props.doDelete;return(0,x.tZ)("div",{onClick:function(e){t.stopPropagation(e)}},(0,x.tZ)(xr.Z,{placement:"topLeft",title:"确定要删除吗?",onConfirm:function(){n(e,r)},okText:"确定",cancelText:"取消"},(0,x.tZ)(U.Z,null,(0,x.tZ)(m.ZP,{size:"small",danger:!0},(0,x.tZ)(Lr.Z,null)))))})),(0,d.Z)((0,l.Z)(t),"getAddButton",(function(e,r,n,o){var a=t.props.doAddSub;return(0,x.tZ)(m.ZP,{onClick:function(r){t.stopPropagation(r),a(e,n,o,null)},size:"small"},r,e)})),(0,d.Z)((0,l.Z)(t),"packageTitle",(function(e){var r,n,o,a,i=t.props,c=i.doEditRoot,u=i.doViewRoot,s=i.doViewSub,l=i.doEditSub,f=i.ttmplNodeConfig,h=[];if(e.parent){if(e.isLeaf)(null===(r=f.leafLTmplConfig)||void 0===r?void 0:r.buttons.indexOf("dtmplEdit"))>0&&h.push((0,x.tZ)(m.ZP,{onClick:function(r){t.stopPropagation(r),l(f.leafTitle,f.leafRatmplId,e.parent.code,e.code)},size:"small"},(0,x.tZ)(Cr.Z,null),"编辑")),(null===(n=f.leafLTmplConfig)||void 0===n?void 0:n.buttons.indexOf("detail"))>0&&h.push((0,x.tZ)(m.ZP,{onClick:function(r){t.stopPropagation(r),s(f.leafTitle,f.leafRatmplId,e.parent.code,e.code)},size:"small"},(0,x.tZ)(Er.Z,null),"查看")),(null===(o=f.leafLTmplConfig)||void 0===o?void 0:o.buttons.indexOf("singleDelete"))>0&&h.push(t.getDeleteButton(f.leafRatmplId,e.code));else if(f.branchLTmplConfig){var p,d,y,g;f.branchLTmplConfig.buttons.indexOf("dtmplEdit")>0&&h.push((0,x.tZ)(m.ZP,{onClick:function(r){t.stopPropagation(r),l(f.branchTitle,f.branchRatmplId,e.parent.code,e.code)},size:"small"},(0,x.tZ)(Cr.Z,null),"编辑")),(null===(p=f.branchLTmplConfig)||void 0===p?void 0:p.buttons.indexOf("detail"))>0&&h.push((0,x.tZ)(m.ZP,{onClick:function(r){t.stopPropagation(r),s(f.branchTitle,f.branchRatmplId,e.parent.code,e.code)},size:"small"},(0,x.tZ)(Er.Z,null),"查看")),(null===(d=f.branchLTmplConfig)||void 0===d?void 0:d.buttons.indexOf("dtmplAdd"))>0&&h.push(t.getAddButton(f.branchTitle,(0,x.tZ)(Or.Z,null),f.branchRatmplId,e.code)),(null===(y=f.leafLTmplConfig)||void 0===y?void 0:y.buttons.indexOf("dtmplAdd"))>0&&h.push(t.getAddButton(f.leafTitle,(0,x.tZ)(Sr.Z,null),f.leafRatmplId,e.code)),(null===(g=f.branchLTmplConfig)||void 0===g?void 0:g.buttons.indexOf("singleDelete"))>0&&h.push(t.getDeleteButton(f.branchRatmplId,e.code))}}else f.rootLTmplConfig.buttons.indexOf("dtmplEdit")>0&&h.push((0,x.tZ)(m.ZP,{onClick:function(r){t.stopPropagation(r),c(f.branchTitle,e.code)},size:"small"},(0,x.tZ)(Cr.Z,{style:{color:"blue"}}),"编辑")),f.rootLTmplConfig.buttons.indexOf("detail")>0&&h.push((0,x.tZ)(m.ZP,{onClick:function(r){t.stopPropagation(r),u(f.branchTitle,e.code)},size:"small"},(0,x.tZ)(Er.Z,null),"查看")),f.branchLTmplConfig&&f.rootLTmplConfig.buttons.indexOf("dtmplAdd")>0&&h.push(t.getAddButton(f.branchTitle,(0,x.tZ)(Or.Z,null),f.branchRatmplId,e.code)),(null===(a=f.leafLTmplConfig)||void 0===a?void 0:a.buttons.indexOf("dtmplAdd"))>0&&h.push(t.getAddButton(f.leafTitle,(0,x.tZ)(Sr.Z,null),f.leafRatmplId,e.code)),f.rootLTmplConfig.buttons.indexOf("singleDelete")>0&&h.push(t.getDeleteButton(f.branchRatmplId,e.code));return 0==h.length?e.title:(0,x.tZ)(Pt.Z,{zIndex:100,content:(0,x.tZ)(v.Fragment,null,(0,x.tZ)(w.Z,null,h)),arrow:!1},e.title)})),t}return(0,s.Z)(b,[{key:"componentDidMount",value:(a=(0,c.Z)(Ar().mark((function t(){return Ar().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.refresh();case 2:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"componentDidUpdate",value:(n=(0,c.Z)(Ar().mark((function t(e){var r,n;return Ar().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.ttmplNodeConfig,(n=this.props.ttmplNodeConfig)&&(!r||n.id!=r.id)){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,this.refresh();case 6:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"refresh",value:(r=(0,c.Z)(Ar().mark((function t(){var e,r;return Ar().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.props.ttmplNodeConfig){t.next=3;break}return t.abrupt("return");case 3:return this.setState({loading:!0}),t.next=6,this.loadRootNodeData();case 6:r=t.sent,this.setState({searchValue:null,data:r,rootAddable:e.rootLTmplConfig.buttons.indexOf("dtmplAdd")>0,loading:!1});case 8:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentWillUnmount",value:(e=(0,c.Z)(Ar().mark((function t(){return Ar().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.props,r=e.doEditRoot,n=e.ttmplNodeConfig,o=this.state,a=o.data,i=o.loading,c=o.expandedKeys,u=o.rootAddable,s=o.searchValue,l=a;return s&&(l=Nr.filterTree(a,s)),(0,x.tZ)(v.Fragment,null,(0,x.tZ)(q.Z,null,(0,x.tZ)(V.Z,{span:24},(0,x.tZ)(g.Z,{style:{marginBottom:0,width:"100%"},bordered:!1,bodyStyle:{padding:"4px 2px 4px 8px"}},(0,x.tZ)(q.Z,{align:"middle"},(0,x.tZ)(V.Z,{span:8},u&&r?(0,x.tZ)(m.ZP,{type:"link",onClick:function(){return r(n.branchTitle)}},"添加"):null),(0,x.tZ)(V.Z,{span:16},(0,x.tZ)(St.Z.Search,{value:s,allowClear:!0,placeholder:"输入查找内容",onChange:function(e){t.setState({searchValue:e.target.value})},onSearch:function(e){t.refresh()},enterButton:(0,x.tZ)(de.Z,null)})))))),(0,x.tZ)(q.Z,null,(0,x.tZ)(V.Z,{span:24},(0,x.tZ)(g.Z,{bodyStyle:{padding:"4px 4px 4px 16px",height:"80vh",minWidth:"292px"},loading:i},0==l.length?"没有找到数据":(0,x.tZ)(Vt.ZP,{style:{height:"80vh"},autoHide:!0,autoHideTimeout:1e3},(0,x.tZ)(kr.Z,{blockNode:!0,showLine:n.showLine,checkable:!1,expandedKeys:c,onExpand:this.onExpand,titleRender:function(e){return(0,x.tZ)("div",{onClick:function(){return t.onClickNode(e)}},t.packageTitle(e))},treeData:l}))))))}}]),b}(v.PureComponent);(0,d.Z)(Fr,"defaultProps",{draggable:!1,readOnly:!1});var Gr=Fr;function Mr(){Mr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==r&&n.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.Z)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var Br=G.Z.Content,Kr=G.Z.Sider,qr=(se.Z.Text,se.Z.Title,function(t){(0,f.Z)(y,t);var e,r,n,a,i=(n=y,a=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,p.Z)(n);if(a){var r=(0,p.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function y(){var t;(0,u.Z)(this,y);for(var e=arguments.length,r=new Array(e),n=0;n=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Hr(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 Yr(t){for(var e=1;e=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}v.PureComponent,r(28520);var Xr=function(t){(0,f.Z)(Z,t);var e,r,a,i,y=(a=Z,i=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,p.Z)(a);if(i){var r=(0,p.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function Z(){var t;(0,u.Z)(this,Z);for(var e=arguments.length,r=new Array(e),a=0;a0&&(t.autoSaveInterval&&clearInterval(t.autoSaveInterval),t.autoSaveInterval=setInterval((function(){t.autoSaveTimer>=r.autoSaveInterval?(t.autoSaveTimer=-1e15,t.doSubmit(void 0)):t.autoSaveTimer=t.autoSaveTimer+1}),1e3)),!l){e.next=15;break}return t.setState({loading:!0}),e.next=11,o.Z.getDtmplData(r,u,a,l);case 11:f=e.sent,t.setState({dtmplData:f,id:l,loading:!1}),e.next=16;break;case 15:c?t.setState({dtmplData:c,loading:!1}):t.setState({dtmplData:{code:void 0,title:void 0,fieldMap:{},arrayMap:{}},loading:!1});case 16:setTimeout((function(){return t.onValuesChange()}),300);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,d.Z)((0,l.Z)(t),"onValuesChange",(function(){t.setState({serial:t.state.serial+1})})),(0,d.Z)((0,l.Z)(t),"doSubmit",(function(e,r,n){var o=t.props.mainCode;t.formRef.current.setFieldsValue({actionId:e}),o&&t.formRef.current.setFieldsValue({mainCode:o}),n&&t.formRef.current.setFieldsValue(n),t.formRef.current.submit()})),(0,d.Z)((0,l.Z)(t),"getFooter",(function(){var e=t.props.serverKey,r=t.state,n=(r.dtmplData,r.serial),o=[];o.unshift((0,x.tZ)(m.ZP,{onClick:function(){return t.doSubmit()},type:"primary"},"保 存"));var a=t.state.dtmplConfig;return a&&a.actions.forEach((function(r,a){o.unshift((0,x.tZ)(er.Z,{serverKey:e,iconType:"icon-title",hiddenType:"disabled",serial:n,key:r.id,formRef:t.formRef,actionConfig:r,doAction:t.doSubmit}))})),o})),t}return(0,s.Z)(Z,[{key:"componentDidMount",value:(r=(0,c.Z)(Jr().mark((function t(){return Jr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadConfigData();case 2:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,c.Z)(Jr().mark((function t(e){var r;return Jr().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.onOk,r=t.sourceId,n=t.mainCode,o=t.style,a=t.maxColsOnRow,i=t.title,c=t.serverKey,u=this.state,s=u.dtmplConfig,l=u.id,f=u.dtmplData;return(0,x.tZ)(v.Fragment,null,(0,x.tZ)(g.Z,{onClick:this.onClickBody,headStyle:{alignItems:"center"},title:i,style:$r({minWidth:1==a?"360px":"720px"},o),bodyStyle:{padding:"6px"},extra:(0,x.tZ)(w.Z,null,this.getFooter())},(0,x.tZ)(Ye.Z,{serverKey:c,showHeader:!1,mainCode:n,parentId:l,dtmplConfig:s,formRef:this.formRef,sourceId:r,onFinish:e||function(t){},maxColsOnRow:a,showConfirm:!1,dtmplData:f,onValuesChange:this.onValuesChange})))}}]),Z}(v.PureComponent);(0,d.Z)(Xr,"defaultProps",{showConfirm:!1,okText:"确定"});var tn=["title","placement","width","onCancel","open"];var en=function(t){(0,f.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,p.Z)(e);if(r){var o=(0,p.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(){var t;(0,u.Z)(this,o);for(var e=arguments.length,r=new Array(e),a=0;at.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var pn=function(t){(0,f.Z)(a,t);var e,r,o=(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,p.Z)(e);if(r){var o=(0,p.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function a(){var t;(0,u.Z)(this,a);for(var e=arguments.length,r=new Array(e),n=0;n0){var t,e=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 fn(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)?fn(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}}}}(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.params;return n.Z.setProgramCode4RoutePath(t),(0,x.tZ)(v.Fragment,null,(0,x.tZ)(q.Z,{className:"home-page",gutter:{xs:8,sm:16,md:24,lg:32}},(0,x.tZ)(V.Z,{span:24},(0,x.tZ)(g.Z,{className:"hovercard"},(0,x.tZ)(q.Z,{gutter:{xs:8,sm:16,md:24,lg:32}},(0,x.tZ)(V.Z,{span:12},(0,x.tZ)(Ht.Z,{src:un})),(0,x.tZ)(V.Z,{span:12}," ",(0,x.tZ)(Ht.Z,{src:sn}))))),(0,x.tZ)(V.Z,{span:24},(0,x.tZ)(q.Z,{style:{minHeight:"100px"},gutter:{xs:8,sm:16,md:24,lg:32}},(0,x.tZ)(V.Z,{span:12,style:{width:"100%"}},(0,x.tZ)(A,{className:"hovercard"}),(0,x.tZ)(S,{className:"hovercard"})),(0,x.tZ)(V.Z,{span:12,style:{height:"410px"}},(0,x.tZ)(g.Z,{className:"hovercard",style:this.cardStyle,bodyStyle:{padding:"2px"}},(0,x.tZ)(on.Z,{autoplay:!0},(0,x.tZ)("div",null,(0,x.tZ)(Ht.Z,{src:cn})),(0,x.tZ)("div",null,(0,x.tZ)(Ht.Z,{src:ln})),(0,x.tZ)("div",null,(0,x.tZ)(Ht.Z,{src:an}))))))),(0,x.tZ)(V.Z,{span:24},(0,x.tZ)(q.Z,{gutter:{xs:8,sm:16,md:24,lg:32}},(0,x.tZ)(V.Z,{style:{width:"100%"}},(0,x.tZ)(g.Z,{className:"hovercard",title:"统计视图"},(0,x.tZ)(q.Z,{gutter:[{xs:8,sm:16,md:24,lg:32},{xs:8,sm:16,md:24,lg:32}]},(0,x.tZ)(V.Z,{span:16,style:{height:"400px"},id:"echart1"}),(0,x.tZ)(V.Z,{span:8,style:{height:"400px"},id:"echart2"}))))))))}}]),a}(v.Component),dn=Xt(pn);function vn(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 yn(t){for(var e=1;e=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}r(97182);var gn=function(){function t(){(0,u.Z)(this,t)}var e,r,n;return(0,s.Z)(t,null,[{key:"post",value:(n=(0,c.Z)(mn().mark((function t(e,r,n){var o,a,i;return mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(o=new FormData).append("sourceId",e),o.append("jsonEntity",JSON.stringify(r)),t.next=5,F.Z.super({url:this.url,serverKey:n,data:o,method:"POST"},"formdata",null);case 5:return a=t.sent,i=null,a?"success"===a.status&&(Et.ZP&&(a.message?Et.ZP.warning("保存成功! "+a.message,4):Et.ZP.success("保存成功! ",1)),i=a.entityCode?a.entityCode:a.code):Et.ZP&&Et.ZP.error("保存失败"),t.abrupt("return",{code:i,status:a?a.status:"error"});case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:"get",value:(r=(0,c.Z)(mn().mark((function t(e,r,n){var o;return mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,F.Z.super({url:this.url,serverKey:n,query:yn({pageSize:1e3,sourceId:e},r),method:"GET"},null,null);case 2:return(o=t.sent)?"success"===o.status?(Et.ZP&&o.message&&Et.ZP.warning("查询成功! "+o.message,4),o.entityCode?o.entityCode:o.code):o.message&&Et.ZP.error("查询失败! "+o.message,6):Et.ZP&&Et.ZP.error("查询失败"),t.abrupt("return",o||{status:"error"});case 6:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"delete",value:(e=(0,c.Z)(mn().mark((function t(e,r,n){var o;return mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,F.Z.super({url:this.url,serverKey:n,query:{sourceId:e,codes:r},method:"DELETE"},null,null);case 2:return(o=t.sent)?"success"===o.status?(Et.ZP&&o.message&&Et.ZP.warning("删除成功! "+o.message,4),o.entityCode?o.entityCode:o.code):o.message&&Et.ZP.error("删除失败! "+o.message,6):Et.ZP&&Et.ZP.error("删除失败"),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t,this)}))),function(t,r,n){return e.apply(this,arguments)})}]),t}();(0,d.Z)(gn,"url","/v3/mstruc/data")},28520:function(t,e,r){"use strict";r.d(e,{Z:function(){return f}});var n=r(90237),o=r(65337),a=r(39576),i=r(61378),c=r(69905),u=r(67294),s=r(85932),l=r(70917);var f=function(t){(0,a.Z)(f,t);var e,r,u=(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),u.apply(this,arguments)}return(0,o.Z)(f,[{key:"render",value:function(){return(0,l.tZ)(s.Z,this.props)}}]),f}(u.PureComponent)},85932:function(t,e,r){"use strict";r.d(e,{Z:function(){return O}});var n=r(32763),o=r(59755),a=r(90237),i=r(65337),c=r(95225),u=r(39576),s=r(61378),l=r(69905),f=r(15274),h=r(67294),p=r(63568),d=r(57564),v=r(8022),y=r(99160),m=r(18230),g=r(35137),w=r(89041),Z=r(49073),b=r(94752),x=r(49811),k=r(62508),L=r(31298),C=r(70917);function E(){E=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new R(n||[]);return a(i,"_invoke",{value:S(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(T([])));k&&k!==r&&o.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var O=function(t){(0,u.Z)(P,t);var e,r,n,O,S=(n=P,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,l.Z)(n);if(O){var r=(0,l.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function P(){var t;(0,a.Z)(this,P);for(var e=arguments.length,r=new Array(e),n=0;n0&&(t.autoSaveInterval&&clearInterval(t.autoSaveInterval),t.autoSaveInterval=setInterval((function(){t.autoSaveTimer>=r.autoSaveInterval?(t.autoSaveTimer=-1e15,t.doSubmit(void 0)):t.autoSaveTimer=t.autoSaveTimer+1}),1e3)),(l=a)||!s){e.next=9;break}return e.next=8,x.Z.queryCode(o,s,u);case 8:l=e.sent;case 9:if(!l){e.next=17;break}return t.setState({loading:!0}),e.next=13,x.Z.getDtmplData(r,u,o,l);case 13:f=e.sent,t.setState({dtmplData:f,id:l,loading:!1}),e.next=18;break;case 17:i?t.setState({dtmplData:i,loading:!1}):t.setState({dtmplData:{code:void 0,title:void 0,fieldMap:{},arrayMap:{}},loading:!1});case 18:setTimeout((function(){return t.onValuesChange()}),300);case 19: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;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,r=e.onCancel,n=e.serverKey,o=t.state,a=(o.dtmplData,o.serial),i=[],c=t.state.dtmplConfig;return c&&c.buttons&&c.buttons.includes("dtmplSave")&&i.unshift((0,C.tZ)(p.ZP,{type:"primary",onClick:function(){return t.doSubmit()}},"保 存")),c&&c.actions.forEach((function(e,r){i.unshift((0,C.tZ)(k.Z,{serverKey:n,iconType:"icon-title",hiddenType:"disabled",serial:a,key:e.id,formRef:t.formRef,actionConfig:e,doAction:t.doSubmit}))})),i.unshift((0,C.tZ)(d.Z,{key:"back",placement:"topLeft",title:"确定要取消本次修改内容吗?",onConfirm:r,okText:"确定",cancelText:"取消"},(0,C.tZ)(p.ZP,null,"取 消"))),i})),t}return(0,i.Z)(P,[{key:"componentDidMount",value:(r=(0,o.Z)(E().mark((function t(){return E().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)(E().mark((function t(e){var r;return E().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&&e.code==this.props.code&&e.addTmplId==this.props.addTmplId&&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,t.sourceId),a=t.open,i=t.mainCode,c=t.width,u=t.pageType,s=t.placement,l=t.maxColsOnRow,f=t.title,p=t.serverKey,d=this.state,Z=d.dtmplConfig,b=d.id,x=d.dtmplData,k=f||(Z?Z.title:"");return(0,C.tZ)(h.Fragment,null," ","modal"==u?(0,C.tZ)(v.Z,{open:a,width:c,title:k,closable:!1,bodyStyle:{height:e,overflow:"auto"},destroyOnClose:!0,centered:!0,onCancel:n,footer:this.getFooter()},(0,C.tZ)(L.ZP,{autoHide:!0,autoHideTimeout:1e3},(0,C.tZ)("div",{onClick:this.onClickBody},(0,C.tZ)(w.Z,{serverKey:p,mainCode:i,parentId:b,dtmplConfig:Z,formRef:this.formRef,sourceId:o,onFinish:r,maxColsOnRow:l,showConfirm:!1,dtmplData:x,onValuesChange:this.onValuesChange})))):"drawer"==u?(0,C.tZ)(y.Z,{onClick:this.onClickBody,title:k,placement:s,closable:!0,mask:!1,onClose:n,open:a,width:c,style:{maxWidth:1960},extra:(0,C.tZ)(m.Z,null,this.getFooter())},(0,C.tZ)(w.Z,{serverKey:p,mainCode:i,parentId:b,dtmplConfig:Z,formRef:this.formRef,sourceId:o,onFinish:r,maxColsOnRow:l,showConfirm:!1,dtmplData:x,onValuesChange:this.onValuesChange})):(0,C.tZ)(g.Z,{title:k},(0,C.tZ)(w.Z,{serverKey:p,mainCode:i,parentId:b,dtmplConfig:Z,formRef:this.formRef,sourceId:o,onFinish:r,maxColsOnRow:l,showConfirm:!1,dtmplData:x,onValuesChange:this.onValuesChange})))}}]),P}(h.PureComponent);(0,f.Z)(O,"defaultProps",{showConfirm:!0,height:"76vh",width:"76vw",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";var n=r(90237),o=r(65337),a=r(95225),i=r(39576),c=r(61378),u=r(69905),s=r(15274),l=r(67294),f=r(28202),h=r(28520),p=r(70917);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=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var w=function(t){(0,u.Z)(Z,t);var e,r,n,w=(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,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,s.Z)(this,t)});function Z(){var t;(0,a.Z)(this,Z);for(var e=arguments.length,r=new Array(e),n=0;n=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var C=function(t){(0,u.Z)(O,t);var e,r,n,C,E=(n=O,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,l.Z)(n);if(C){var r=(0,l.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,s.Z)(this,t)});function O(){var t;(0,a.Z)(this,O);for(var e=arguments.length,r=new Array(e),n=0;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 nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?(0,et.tZ)(ft.Z,{percent:l,size:"small",status:"active"}):"",(0,et.tZ)("p",null,f)))}}]),o}(d.PureComponent);(0,p.Z)(dt,"defaultProps",{defaultExportMode:"all"});var vt=r(49073);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}function mt(t){for(var e=1;e=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var wt=function(t){(0,l.Z)(v,t);var e,r,n,a,d=(n=v,a=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(a){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 v(){var t;(0,c.Z)(this,v);for(var e=arguments.length,r=new Array(e),n=0;n=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var Ot=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,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(){var t;(0,c.Z)(this,o);for(var e=arguments.length,r=new Array(e),a=0;a=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 Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Dt(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 At(t){for(var e=1;e0?t.state.viewModels:["table"]});case 20:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,p.Z)((0,s.Z)(t),"buildTableColumns",(function(e,r,n,o){var a=t.props,c=a.showView,u=a.doEdit,s=a.doRAction,l=a.customEditable,f=a.serverKey,h=a.readOnly,p=a.sourceId,v=e.buttons,Z=[],b=0;return(o||e.columns).forEach((function(o){var a={};r&&r.includes(o.id)||Z.push(a),a.title=o.title,a.dataIndex=o.id,b++;var x=z.Z.getSupportControlType(o);b<10&&"操作"!=o.title&&"序号"!=o.title&&r.includes("10000")&&Y.Z.sort(a,x),"序号"===o.title?(a.render=function(t,e,r){return(0,et.tZ)("label",null,r+1)},o.sorter=void 0):"10000"==o.id?(a.title=(0,et.tZ)(y.Z,{title:"拖拽排序"},o.title),a.width=30,a.dataIndex=o.id,a.className="drag-visible",a.render=function(){return(0,et.tZ)(Ft,null)}):"20000"==o.id?(a.align="center",a.width=14,a.title=(0,et.tZ)(d.Fragment,null,n.length>0?(0,et.tZ)(y.Z,{title:"取消隐藏"},(0,et.tZ)(m.ZP,{style:{marginRight:"0px"},size:"small",shape:"circle",icon:(0,et.tZ)(S.Z,null),type:"text",onClick:function(){return t.unHiden()}})):""),a.render=function(e,r){return(0,et.tZ)(y.Z,{title:"隐藏"}," ",(0,et.tZ)(m.ZP,{style:{marginRight:"0px"},icon:(0,et.tZ)(P.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=(0,et.tZ)(d.Fragment,null,"操 作"),a.render=function(r,n){return(0,et.tZ)(g.Z,{size:[0,4],wrap:!0},v.includes("detail")&&c?(0,et.tZ)(m.ZP,{size:"small",type:"primary",icon:(0,et.tZ)(j.Z,null),onClick:function(){return c(n.code)}}):"",v.includes("customDetail")&&c?(0,et.tZ)(m.ZP,{size:"small",type:"primary",icon:(0,et.tZ)(I.Z,null),onClick:function(){return c(n.code,!0)}}):"",!v.includes("dtmplEdit")||!u||h||e.editAction&&!Pt.Z.isShow(e.editAction,[n],void 0)?"":(0,et.tZ)(m.ZP,{size:"small",type:"dashed",icon:(0,et.tZ)(R.Z,null),onClick:function(){return u(n.code,"update")}}),!v.includes("dtmplCustomEdit")&&!l||!u||h||e.editAction&&!Pt.Z.isShow(e.editAction,[n],void 0)?"":(0,et.tZ)(m.ZP,{size:"small",type:"dashed",icon:(0,et.tZ)(T.Z,null),onClick:function(){return u(n.code,"update",!0)}}),v.includes("copy")&&u&&!h?(0,et.tZ)(y.Z,{title:"复制"},(0,et.tZ)(m.ZP,{size:"small",type:"dashed",icon:(0,et.tZ)(N.Z,null),onClick:(0,i.Z)(_t().mark((function t(){var e,r;return _t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=!1,(v.includes("dtmplCustomEdit")||l)&&(e=!0),t.next=4,U.Z.doCopy(f,p,n.code);case 4:(r=t.sent)&&u(r,"update",e);case 6:case"end":return t.stop()}}),t)})))})):"",e.ractions&&!h?e.ractions.map((function(t){return(0,et.tZ)(m.ZP,{key:t.id,size:"small",type:"dashed",onClick:function(){return s(t.id,n.code)}},t.title)})):"",e.rowActions&&!h&&e.rowActions.length>0?e.rowActions.map((function(e){return(0,et.tZ)(bt.Z,{serverKey:f,iconType:"icon",key:e.id,data:[n],actionConfig:e,doAction:t.doRowAction,buttonSize:"small",serial:1})})):"",e.rowJumps&&e.rowJumps.length>0&&!h?e.rowJumps.map((function(e){return(0,et.tZ)(m.ZP,{key:e.id,size:"small",type:"dashed",onClick:function(){return t.doRowJump(e,n)}},e.title)})):"",e.rowCQuerys&&e.rowCQuerys.length>0&&!h?e.rowCQuerys.map((function(t){return(0,et.tZ)(jt.Z,{serverKey:f,key:t.id,size:"small",pageType:"drawer",cQueryConfig:t,mainCode:t.mainCodeColId?n[t.mainCodeColId]:n.code})})):"",!v.includes("singleDelete")||h||e.deleteAction&&!Pt.Z.isShow(e.deleteAction,[n],void 0)?"":(0,et.tZ)(w.Z,{placement:"rightBottom",title:"确定要【删除】此数据吗?",onConfirm:function(){t.doDeleteByCode(n.code)},okText:"确定",cancelText:"取消",okType:"danger"},(0,et.tZ)(m.ZP,{size:"small",type:"dashed",danger:!0},(0,et.tZ)(_.Z,null))))}):(a.className="opsColumn",a.render=function(t,e){return(0,et.tZ)($.Z,{serverKey:f,fieldConfig:o,value:e[o.id],holderType:"table"})})})),Z})),(0,p.Z)((0,s.Z)(t),"handleShowChart",(function(){t.setState({showL2Chart:!t.state.showL2Chart})})),(0,p.Z)((0,s.Z)(t),"handleDataAnalysis",(function(){t.setState({showL2ActTable:!t.state.showL2ActTable})})),(0,p.Z)((0,s.Z)(t),"unHiden",(function(){t.props.ltmplConfig;var e=t.state;e.hiddenColIds,e.sortedColConfigs,t.setState({hiddenRowCodes:[]})})),(0,p.Z)((0,s.Z)(t),"onHide",(function(e){t.props.ltmplConfig;var r=t.state,n=r.hiddenRowCodes,o=(r.hiddenColIds,r.sortedColConfigs,[].concat((0,a.Z)(n),[e]));t.setState({hiddenRowCodes:o})})),(0,p.Z)((0,s.Z)(t),"changeViewModel",(function(e){t.setState({viewModels:e})})),(0,p.Z)((0,s.Z)(t),"changeHiddenColumns",(function(e){(0,o.Z)(t.props),(0,o.Z)(t.state),t.setState({showL2Chart:!1,hiddenColIds:e})})),(0,p.Z)((0,s.Z)(t),"doSelectedAction",function(){var e=(0,i.Z)(_t().mark((function e(r,n,o){var a;return _t().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,p.Z)((0,s.Z)(t),"doAction",function(){var e=(0,i.Z)(_t().mark((function e(r,n,o){var a,i,c,u,s;return _t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.props.serverKey,i=t.state,c=i.hiddenColIds,u=i.hiddenRowCodes,s=i.sortedColConfigs,t.setState({loading:!0}),e.next=5,U.Z.postActions(a,r,n,o);case 5:e.sent?t.loadData(c,u,s):t.setState({loading:!1});case 7:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,p.Z)((0,s.Z)(t),"doRowAction",function(){var e=(0,i.Z)(_t().mark((function e(r,n,o){return _t().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,p.Z)((0,s.Z)(t),"doDelete",(0,i.Z)(_t().mark((function e(){var r,n,o,a,i,c,u,s;return _t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props,n=r.sourceId,o=r.serverKey,a=t.state,i=a.selectedRows,c=a.hiddenColIds,u=a.hiddenRowCodes,s=a.sortedColConfigs,t.setState({loading:!0}),e.next=5,U.Z.deleteData(o,n,i);case 5:e.sent?t.loadData(c,u,s):t.setState({loading:!1});case 7:case"end":return e.stop()}}),e)})))),(0,p.Z)((0,s.Z)(t),"doDeleteByCode",function(){var e=(0,i.Z)(_t().mark((function e(r){var n,o,a,i,c,u,s;return _t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props,o=n.sourceId,a=n.serverKey,i=t.state,c=i.hiddenColIds,u=i.hiddenRowCodes,s=i.sortedColConfigs,t.setState({loading:!0}),e.next=5,U.Z.deleteByCode(a,o,[r]);case 5:e.sent?t.loadData(c,u,s):t.setState({loading:!1});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,p.Z)((0,s.Z)(t),"doSelectedCQuery",function(){var t=(0,i.Z)(_t().mark((function t(e){return _t().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,p.Z)((0,s.Z)(t),"doJump",function(){var t=(0,i.Z)(_t().mark((function t(e,r){var n,o,a,i,c,u,s,l,f,h,p,d,v,y,m,g,w;return _t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.fieldMap?r.fieldMap:r,o=null,(a=e.path)||(a="/"),0==a.indexOf("#")||0==o.indexOf("/#")?o="":0==a.indexOf("http://")||0==a.indexOf("HTTP://")||0==a.indexOf("https://")||0==a.indexOf("HTTPS://")?(o=a.split("//")[0]+"//",a=a.split("//")[1]):o=new URL(window.location.href).pathname,i=a.split("/"),!(c=e.routeParams)){t.next=37;break}u=0;case 9:if(!(u0&&(o.indexOf("?")!=o.length-1&&(o+="?"),o+=v.join("&")),0==o.indexOf("#")||0==o.indexOf("/#")||0==o.indexOf("//#")?window.location.hash=o.substring(o.indexOf("#")+1):window.open(o);case 44:case"end":return t.stop()}}),t,null,[[13,25,28,31]])})));return function(e,r){return t.apply(this,arguments)}}()),(0,p.Z)((0,s.Z)(t),"doRowJump",function(){var e=(0,i.Z)(_t().mark((function e(r,n){return _t().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,p.Z)((0,s.Z)(t),"doSelectedJump",function(){var e=(0,i.Z)(_t().mark((function e(r){var n;return _t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:1==(n=t.state.selectedDatas).length&&t.doJump(r,n[0]);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,p.Z)((0,s.Z)(t),"changeRowSelection",(function(e,r){t.setState({selectedRows:e,selectedDatas:r})})),(0,p.Z)((0,s.Z)(t),"onChangeColSort",(function(e){t.props.ltmplConfig;var r=t.state;r.hiddenRowCodes,r.hiddenColIds,t.setState({sortedColConfigs:e})})),(0,p.Z)((0,s.Z)(t),"getAddTmplButton",(function(e){return e&&e.length<1?"没有分类添加按钮":e.map((function(e){return(0,et.tZ)("p",null,(0,et.tZ)(m.ZP,{size:"small",type:"text",onClick:function(){return t.props.doCreate(e.id,!1)}},e.title))}))})),(0,p.Z)((0,s.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,s=t.props,l=s.ltmplConfig,f=s.sourceId,h=s.doCreate,p=s.doSearch,v=s.menuId,w=s.funcMode,L=s.customCreatable,C=s.serverKey,E=s.readOnly,O=l.buttons;return(0,et.tZ)(d.Fragment,null,(0,et.tZ)(g.Z,null,"common"==w&&t.criteriaFormUseful()?(0,et.tZ)(Z.Z,{trigger:"click",content:t.renderCriteriaForm()},(0,et.tZ)(m.ZP,null,(0,et.tZ)(D.Z,null))):null,O.includes("dtmplAdd")&&h&&!E?l.classifiedAddConfigs&&l.classifiedAddConfigs.length>0?(0,et.tZ)(Z.Z,{arrow:!1,content:t.getAddTmplButton(l.classifiedAddConfigs),placement:"bottomRight"},(0,et.tZ)(y.Z,null,(0,et.tZ)(m.ZP,null,(0,et.tZ)(A.Z,null)))):(0,et.tZ)(y.Z,{title:"创建"},(0,et.tZ)(m.ZP,{onClick:function(){return h(null,!1)}},(0,et.tZ)(A.Z,null))," "):"",(O.includes("dtmplCustomAdd")||L)&&h&&!E?(0,et.tZ)(y.Z,{title:"创建"},(0,et.tZ)(m.ZP,{onClick:function(){return h(null,!0)}},(0,et.tZ)(F.Z,null))):"",O.includes("importLtmplExcel")&&!E?(0,et.tZ)(y.Z,{title:"导入"}," ",(0,et.tZ)(m.ZP,{href:"#/".concat(f,"/importer?menuId=").concat(v),target:"_blank"},(0,et.tZ)(G.Z,null))):"",O.includes("exportLtmplExcel")&&!E?(0,et.tZ)(Z.Z,{content:(0,et.tZ)(dt,{serverKey:C,queryKey:n,title:l.title}),title:"导出",placement:"bottomRight",trigger:"click"},(0,et.tZ)(y.Z,{title:"导出"},(0,et.tZ)(m.ZP,{style:{display:O.includes("exportLtmplExcel")&&!E?"inline":"none",marginLeft:"5px"}},(0,et.tZ)(M.Z,null)))):"",O.includes("showChart")?(0,et.tZ)(y.Z,{title:c?"隐藏图表":"展示图表"},(0,et.tZ)(m.ZP,{onClick:t.handleShowChart},(0,et.tZ)(B.Z,null))):"",O.includes("analysis")?(0,et.tZ)(y.Z,{title:u?"隐藏数据分析":"展示数据分析"},(0,et.tZ)(m.ZP,{onClick:t.handleDataAnalysis},(0,et.tZ)(K.Z,null))):"",O.includes("reStat")&&!E?(0,et.tZ)(St,{serverKey:C,fields:l.reStatParams,sourceId:f,onfinish:function(){return p(null)}}):"",(0,et.tZ)(Z.Z,{content:(0,et.tZ)(b.Z.Group,{value:o,onChange:t.changeViewModel},(0,et.tZ)(x.Z,{style:{width:"120px"}},(0,et.tZ)(k.Z,{span:24},(0,et.tZ)(b.Z,{value:"table"},"表格")),(0,et.tZ)(k.Z,{span:24},(0,et.tZ)(b.Z,{value:"verticalList"},"纵向列表")))),title:"视图",placement:"bottomRight",trigger:"click"},(0,et.tZ)(y.Z,{title:"选择视图"},(0,et.tZ)(m.ZP,null,(0,et.tZ)(q.Z,null)))),(0,et.tZ)(Z.Z,{content:(0,et.tZ)(ut,{columns:a,disabledColIds:i,hiddenColIds:r,onChangeColSort:t.onChangeColSort,onChangeHiddenCols:t.changeHiddenColumns}),title:"排序和选择列",placement:"bottomRight",trigger:"click"},(0,et.tZ)(y.Z,{title:"点击排序和选择列"},(0,et.tZ)(m.ZP,null,(0,et.tZ)(V.Z,null)))),p?(0,et.tZ)(m.ZP,{className:"hoverbig",title:"刷新",onClick:function(){p(null)}},(0,et.tZ)(H.Z,null)):""))})),(0,p.Z)((0,s.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,p.Z)((0,s.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,p.Z)((0,s.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,s=a.serverKey;return(0,et.tZ)(Q.Z,{serverKey:s,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,p.Z)((0,s.Z)(t),"renderContent",(function(){var e=t.state,r=e.queryKey,n=e.loading,o=e.selectedRows,a=e.hiddenRowCodes,i=e.viewModels,c=e.sortedColConfigs,u=e.hiddenColIds,s=e.showL2ActTable,l=t.props,f=l.sourceId,h=l.ltmplConfig,p=l.funcMode,v=l.title,y=l.collapsible,m=l.pageSize,g=l.pageNo,w=l.onChangePage,Z=l.serverKey;if(!h||!f)return(0,et.tZ)(d.Fragment,null,(0,et.tZ)(L.Z,{loading:n}),(0,et.tZ)(C.Z,{loading:n}));var b=t.buildTableColumns(h,u,a,c),x=h.buttons,k=!1;"simple"==p||"common"==p?k=!1:t.criteriaFormUseful()&&(k=!0);var O=[];if(c){var S,P=Tt(c);try{for(P.s();!(S=P.n()).done;){var j=S.value;u.includes(j.id)||O.push(j)}}catch(t){P.e(t)}finally{P.f()}}return(0,et.tZ)(d.Fragment,null,x.includes("analysis")&&s?(0,et.tZ)("div",null,(0,et.tZ)(Zt,{serverKey:Z,innerQueryKey:r.key,sourceId:f}),(0,et.tZ)(E.Z,{dashed:!0,style:{borderTopColor:"#40a9ff"},plain:!0})):"",(0,et.tZ)("div",{className:"actTable"},"complete"==p||"common"==p?y?null:(0,et.tZ)("span",null,h.header?(0,et.tZ)("div",{style:{padding:"6px"},dangerouslySetInnerHTML:{__html:h.header}}):null,(0,et.tZ)("h3",null,"  ",v||h.title,(0,et.tZ)("p",{className:"fr"},t.renderHeaderButtons()))):null,k?t.renderCriteriaForm():null,n?"":(0,et.tZ)(W.Z,{serverKey:Z,onChangePage:w,viewModels:i,primaryColumn:h.primaryColumn,columnConfigs:O,maxSelectedRows:t.checkBoxUseful()?1e4:-1,selectedRows:o,columns:b,hiddenRowCodes:a,pageInfo:{pageNo:g||1,pageSize:m||h.defaultPageSize},queryKey:r,onChangeRowSelection:t.changeRowSelection}),h.footer?(0,et.tZ)("div",{style:{padding:"6px"},dangerouslySetInnerHTML:{__html:h.footer}}):null))})),t}return(0,u.Z)(X,[{key:"componentDidMount",value:(r=(0,i.Z)(_t().mark((function t(){var e,r;return _t().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,a.Z)(e.columns),[{id:"20000",title:"隐藏"}])),this.loadData(Gt,[],r);case 4:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentDidUpdate",value:(e=(0,i.Z)(_t().mark((function t(e){var r,n,o,i,c,u,s,l,f,h,p;return _t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this.props,n=r.sourceId,o=r.criteriaData,i=r.ltmplConfig,c=e.ltmplConfig,u=e.criteriaData,s=e.sourceId,l=this.state,f=l.hiddenColIds,h=l.sortedColConfigs,(n&&s!=n||i&&(!c||i.id!=c.id)||J.Z.transQueryParamsToStr(o,!1,["pageSize","pageNo"])!=J.Z.transQueryParamsToStr(u,!1,["pageSize","pageNo"]))&&(i.id==c.id?this.loadData(f,[],h):(p=void 0,i&&(p=[{id:"10000",title:"排序"}].concat((0,a.Z)(i.columns),[{id:"20000",title:"隐藏"}])),this.setState({viewModels:["table"]}),this.loadData(Gt,[],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,s=n.tip;return a&&o?(0,et.tZ)(d.Fragment,null," ",c?(0,et.tZ)(It.Z,{initCollapse:u,title:(0,et.tZ)(d.Fragment,null,i||a.title,(0,et.tZ)(Rt.Z,{content:s||(a?a.tip:null)})),id:e+a.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:r,bodyStyle:{padding:"6px"},extra:this.renderHeaderButtons()},this.renderContent()):(0,et.tZ)(d.Fragment,null,this.renderContent())):(0,et.tZ)(d.Fragment,null,(0,et.tZ)(L.Z,{loading:r}),(0,et.tZ)(C.Z,{loading:r}))}}]),X}(d.PureComponent);(0,p.Z)(Mt,"defaultProps",{criteriaData:{},funcMode:"complete",collapsible:!1,initCollapse:!1,readOnly:!1});var Bt=Mt},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),s=r(95225),l=r(39576),f=r(61378),h=r(69905),p=r(15274),d=r(67294),v=r(18430),y=r(88715),m=r(473),g=r(35137),w=r(20890),Z=r(49811),b=r(26005),x=r(70917);var k=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,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(0,x.tZ)(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=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 j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}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 T(t){for(var e=1;e0&&n.forEach((function(t,r){if("10000"!=t.id&&"操作"!=t.title&&"20000"!=t.id){var n=t.title,i=e?e[t.id]:void 0;"序号"==n&&(i=e.index),i=i||(t.defaultValue?t.defaultValue:void 0),t.id,Math.random();var c=(0,x.tZ)(y.Z.Item,{label:t.title,key:r,className:"labelcss"},(0,x.tZ)(O.Z,{serverKey:o,holderType:"table",value:i,fieldConfig:t}));a.push(c)}})),a})),t}return(0,u.Z)(k,[{key:"componentDidMount",value:(r=(0,o.Z)(I().mark((function t(){var e,r,n;return I().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)(I().mark((function t(e){var r,n,o,a,i;return I().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,s=a.virtualEndPageNo;return(0,x.tZ)(d.Fragment,null,o.includes("table")?(0,x.tZ)(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}}}):"",(0,x.tZ)(L,{touchEnd:i,pageInfo:T(T({},r),{},{virtualEndPageNo:s}),pageTo:this.pageTo,queryTotal:this.queryTotal,total:c}),o.includes("verticalList")?(0,x.tZ)(g.Z,{style:{marginTop:"10px"}},(0,x.tZ)(w.Z,{dataSource:this.getUnHidenDataSource(),renderItem:function(e){return(0,x.tZ)(w.Z.Item,{key:e.id},(0,x.tZ)(g.Z,{size:"small",bodyStyle:{padding:"4px"}},(0,x.tZ)(y.Z,{column:4},t.initViewList(e))))}})):"")}}]),k}(d.PureComponent);(0,p.Z)(D,"defaultProps",{pageInfo:{pageNo:1,pageSize:10,virtualEndPageNo:void 0},hiddenRowCodes:[],selectedRows:[],viewModels:["table"]});var A=D},29336:function(t,e,r){"use strict";r.d(e,{Z:function(){return xt}});var n=r(32763),o=r(1252),a=r(59755),i=r(90237),c=r(65337),u=r(95225),s=r(39576),l=r(61378),f=r(69905),h=r(15274),p=r(67294),d=r(48093),v=r(72374),y=r(63568),m=r(53807),g=r(32823),w=r(71230),Z=r(15746),b=r(18230),x=r(55241),k=r(473),L=r(76880),C=r(54977),E=r(8212),O=r(73171),S=r(18267),P=r(13105),j=r(15128),I=r(49192),R=r(25291),T=r(24019),N=r(85932),_=r(8022),D=r(49073),A=r(49811),F=r(16739),G=r(87200),M=r(39620),B=r(70917);function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=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((0,B.tZ)(M.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(0,B.tZ)("div",null,(0,B.tZ)("h3",null,"查询点选:",this.renderTag()))}}]),o}(p.PureComponent),V=q,H=r(31298);function Y(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 z(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)?z(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 z(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}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 Q(t){for(var e=1;e0||m&&m.length>0||y&&y.length,(0,B.tZ)(_.Z,{open:e,title:(0,B.tZ)(V,{value:l,onChange:this.changeRowSelection}),width:1150,destroyOnClose:!0,centered:!0,bodyStyle:{height:"80vh",overflow:"auto"},onCancel:this.handleCancel,onOk:this.handleOk},(0,B.tZ)(H.ZP,{style:{height:"80vh"},autoHide:!0,autoHideTimeout:1e3},(0,B.tZ)("div",{className:"actTable"},(0,B.tZ)(G.Z,{serverKey:n,selectedRows:l,ltmplConfig:c,data:u,doSearch:this.doSearch,loading:s}),(0,B.tZ)(F.Z,{serverKey:n,pageInfo:{pageNo:h||1,pageSize:f||c.defaultPageSize},onChangePage:this.onChangePage,maxSelectedRows:r,selectedRows:l,primaryColumn:c.primaryColumn,columns:i,queryKey:a,onChangeRowSelection:this.changeRowSelection}))," "))}}]),y}(p.PureComponent),J=$,X=r(7238),tt=r(57564),et=r(35137),rt=r(54549),nt=r(16117),ot=r(69165),at=r(94752);function it(){it=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==r&&o.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var ct=function(t){(0,s.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,l.Z)(this,t)});function v(){var t;(0,i.Z)(this,v);for(var e=arguments.length,r=new Array(e),n=0;n1?(0,B.tZ)(d.Z.Item,{name:"relationLabel",initialValue:n?n.relationLabel:void 0,rules:[{required:!0,message:"请选择关系"}],label:"关系"},(0,B.tZ)(nt.ZP.Group,null,r.relationNames.map((function(t){return(0,B.tZ)(nt.ZP,{value:"item"},t)})))):""})),t}return(0,c.Z)(v,[{key:"componentDidMount",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.formRef,r=t.fieldGroupConfig,n=t.dtmplData,o=t.serverKey;return(0,B.tZ)(p.Fragment,null,(0,B.tZ)(d.Z,{labelWrap:!0,ref:e,name:"control-hooks",onFinish:this.onSubmit},this.selectRelation(),(0,B.tZ)(ot.Z,{serverKey:o,formRef:e,nameAttr:"id",fields:r?r.fields:void 0,valueMap:n?n.fieldMap:{}})))}}]),v}(p.PureComponent);function ut(){ut=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:O(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}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function Z(){}var b={};l(b,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==r&&o.call(k,c)&&(b=k);var L=Z.prototype=g.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var st=function(t){(0,s.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,l.Z)(this,t)});function v(){var t;(0,i.Z)(this,v);for(var e=arguments.length,r=new Array(e),n=0;n=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(0,h.Z)(st,"defaultProps",{forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},needConfirm:!1,okButtonType:"primary",okDanger:!1});var ft=function(t){(0,s.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,l.Z)(this,t)});function v(){var t;(0,i.Z)(this,v);for(var e=arguments.length,r=new Array(e),n=0;n1&&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)(lt().mark((function t(){return lt().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)(lt().mark((function t(){return lt().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,s=r.buttonStyle,l=r.serverKey;return(0,B.tZ)(x.Z,{destroyTooltipOnHide:!0,placement:"leftBottom",open:e,content:(0,B.tZ)(st,{serverKey:l,fieldGroupConfig:c,dtmplData:u,onCancel:function(){t.setState({popoverOpen:!1})},onOk:this.onOk}),trigger:"click"},(0,B.tZ)(m.Z,{placement:"left",title:i},(0,B.tZ)(y.ZP,{disabled:n,style:s,icon:o,size:"small",onClick:function(){t.setState({popoverOpen:!e})}},a||"")))}}]),v}(p.PureComponent);(0,h.Z)(ft,"defaultProps",{buttonIcon:void 0,disabled:!1});var ht=r(62508),pt=r(92801);var dt=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,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,l.Z)(this,t)});function o(){var t;(0,i.Z)(this,o);for(var e=arguments.length,r=new Array(e),a=0;a=Number(o)?1:null)})),t}return(0,c.Z)(o,[{key:"componentDidMount",value:function(){(0,pt.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),(0,B.tZ)(p.Fragment,null)}}]),o}(p.PureComponent);function vt(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 yt(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)?yt(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 yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},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;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function gt(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)(dt,"defaultProps",{min:0});var wt=d.Z.Item,Zt=v.Z.Text,bt=function(t){(0,s.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,l.Z)(this,t)});function _(){var t;(0,i.Z)(this,_);for(var e=arguments.length,r=new Array(e),n=0;n=0&&(o=!0)}}if(o){var u=function(t){for(var e=1;e0?n.rowActions.map((function(r){return(0,B.tZ)(ht.Z,{serverKey:o,disabled:s,key:r.id,data:[e],actionConfig:r,doAction:t.doRowAction,buttonSize:"small"})})):"",d?(0,B.tZ)(ft,{serverKey:o,disabled:s,buttonIcon:(0,B.tZ)(E.Z,null),dtmplData:t.getRowEditData(e.code),fieldGroupConfig:n,onOk:t.handleRowEdit,tooltipTitle:"编辑当前行"}):"",g?(0,B.tZ)(m.Z,{placement:"right",title:"删除当前行"},(0,B.tZ)(y.ZP,{disabled:s,danger:!0,type:"primary",icon:(0,B.tZ)(O.Z,null),size:"small",onClick:function(){return t.delete(e)}})):"")}}else if("view"==r&&p){var Z={};l.push(Z),Z.title="操作",Z.fixed="right",Z.key="action",Z.render=function(e){return(0,B.tZ)("div",{className:"actionbtn"},p?(0,B.tZ)(y.ZP,{disabled:s,title:"当前实体",type:"primary",icon:(0,B.tZ)(L.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)(mt().mark((function e(r,n,o){return mt().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)(mt().mark((function e(r,n,o){var a;return mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({tableLoading:!0}),a=t.props.serverKey,e.next=4,A.Z.postActions(a,r,n,o);case 4:e.sent,t.setState({tableLoading:!1});case 6: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=vt(n);try{for(u.s();!(c=u.n()).done;){var s=c.value;s.code!=e.code&&i.push(s)}}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)(mt().mark((function e(r){var n,o,a,i;return mt().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=vt(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)(mt().mark((function e(r){var n,a,i,c,u,s,l,f,h;return mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props,a=n.value,i=n.fieldGroupConfig,c=n.onChange,u=n.serverKey,s=i.relationNames,t.setState({tableLoading:!0}),e.next=5,A.Z.requestSelectedData(u,i.id,r);case 5:if(l=e.sent){f=vt(l);try{for(f.s();!(h=f.n()).done;)h.value.relationLabel=s[0]}catch(t){f.e(t)}finally{f.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=vt(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)(mt().mark((function e(r){return mt().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)(mt().mark((function e(r){var n,a,i,c,u,s,l,f,h,p;return mt().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,u=i.serverKey,t.setState({tableLoading:!0,showDtmplEdit:!1}),e.next=5,A.Z.requestSelectedData(u,i.id,[r]);case 5:if(s=e.sent[0],(l=(0,o.Z)(a))&&s){f=vt(l);try{for(f.s();!(h=f.n()).done;)(p=h.value).code==s.code&&(p.fieldMap=s.fieldMap)}catch(t){f.e(t)}finally{f.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,s=!0,l=vt(c);try{for(l.s();!(u=l.n()).done;){var f=u.value;if(f.code==e.code){s=!1,f.editStatus=e.editStatus,f.fieldMap=e.fieldMap,f.relationLabel=e.relationLabel;break}}}catch(t){l.e(t)}finally{l.f()}s&&c.unshift(e),i(a,c),s?g.ZP.success("已添加"):g.ZP.success("已修改")})),(0,h.Z)((0,u.Z)(t),"showAddDtmplModel",(function(e){t.setState({showDtmplEdit:!0,addTmplId:e,selectedCode:void 0})})),(0,h.Z)((0,u.Z)(t),"showEditDtmplModel",(function(e){t.setState({showDtmplEdit:!0,addTmplId:void 0,selectedCode:e.code})})),(0,h.Z)((0,u.Z)(t),"getAddTmplButton",(function(e){return e&&e.length<1?"没有分类添加按钮":e.map((function(e){return(0,B.tZ)("p",null,(0,B.tZ)(y.ZP,{size:"small",type:"text",onClick:function(){return t.showAddDtmplModel(e.id)}},e.title))}))})),(0,h.Z)((0,u.Z)(t),"buildButtons",(function(){var e=t.props,r=e.fieldGroupConfig,n=e.viewOrEdit,o=e.value,a=e.serverKey,i=r.buttons,c=r.disabled,u=(t.state.showRowEdit,c||!!r.max&&r.max<=(o?o.length:0));return"edit"==n?(0,B.tZ)(w.Z,null,(0,B.tZ)(Z.Z,{span:20},(0,B.tZ)(b.Z,null,i.includes("rowAdd")?(0,B.tZ)(ft,{serverKey:a,disabled:u,buttonStyle:{marginBottom:10},buttonTitle:"新建一行",fieldGroupConfig:r,onOk:t.handleRowEdit}):"",i.includes("dtmplAdd")?r.classifiedAddConfigs&&r.classifiedAddConfigs.length>0?(0,B.tZ)(x.Z,{arrow:!1,content:t.getAddTmplButton(r.classifiedAddConfigs),placement:"bottomRight"},(0,B.tZ)(m.Z,null,(0,B.tZ)(y.ZP,{icon:(0,B.tZ)(S.Z,null)},"新增"))):(0,B.tZ)(y.ZP,{disabled:u,icon:(0,B.tZ)(S.Z,null),size:"small",onClick:function(){return t.showAddDtmplModel()},style:{marginBottom:10}},"新增"):"",i.includes("selectAdd")?(0,B.tZ)(y.ZP,{disabled:u,type:"primary",icon:(0,B.tZ)(P.Z,null),size:"small",onClick:t.showSelect,style:{marginBottom:10}},"选择"):"",r.min&&(!o||o.length<=0)?(0,B.tZ)(Zt,{style:{color:"red"}},"请选择或添加",r.title):null,(0,B.tZ)(wt,{name:"$virtual"+r.id,style:{margin:0,maxHeight:"32px"},rules:r.min?[{required:!0,message:""}]:null},(0,B.tZ)(dt,{min:r.min+"",style:{marginBottom:10},count:o?o.length:0}))))):""})),t}return(0,c.Z)(_,[{key:"componentDidMount",value:(r=(0,a.Z)(mt().mark((function t(){return mt().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)(mt().mark((function t(e){var r,n;return mt().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=e.serverKey,s=e.showRightNav,l=this.state,f=l.pageSize,h=l.selectedCode,d=l.showDtmplView,v=l.showSelectTable,y=l.showDtmplEdit,m=l.addTmplId,g=l.tableLoading,w=(l.showRowEdit,l.selectedDtmplData,r.buttons),Z=r.mainCode?r.mainCode:c||o,b={pageSize:f,hideOnSinglePage:!0,defaultCurrent:1,total:n?n.length:void 0,showTotal:function(t){return"共".concat(t,"条")}},x=[];if(n){var L,C=vt(n);try{for(C.s();!(L=C.n()).done;){var E=L.value;x.push(E.code)}}catch(t){C.e(t)}finally{C.f()}}return r.displayConfig.includes("nonDataNonDisplayed")&&(!n||n.length<=0)?"":(0,B.tZ)(p.Fragment,null,(0,B.tZ)(X.Z,{showRightNav:s,initCollapse:i||r.displayConfig.includes("folded"),title:r.title,tip:r.tip,id:o+r.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:a,bodyStyle:{padding:"6px"}},(0,B.tZ)("div",{className:"editTableList"},this.buildButtons(),(0,B.tZ)(k.Z,{size:"small",locale:{emptyText:(0,B.tZ)("div",{style:{textAlign:"center",width:"100%"}},(0,B.tZ)(Zt,{disabled:!0},"暂无数据..."))},bordered:!0,loading:g,dataSource:this.buildDataSource(),columns:this.buildColumns(),pagination:b,onChange:this.tabChange}))),w.includes("detail")?(0,B.tZ)(T.Z,{serverKey:u,mainCode:Z,open:d,onCancel:this.hiddenEntityView,sourceId:r.id,code:h}," "):"",w.includes("dtmplEdit")||w.includes("dtmplAdd")?(0,B.tZ)(N.Z,{addTmplId:m,serverKey:u,mainCode:Z,open:y,onCancel:this.hiddenEntityEdit,sourceId:r.id,code:h,onOk:h?this.handleDtmplEdit:this.handleDtmplAdd}):"",w.includes("selectAdd")?(0,B.tZ)(J,{serverKey:u,maxSelectedRows:r.max,open:v,onOK:this.select,onCancel:function(){t.setState({showSelectTable:!1})},exceptCodes:x,mainCode:Z,sourceId:r.id}):"")}}]),_}(p.PureComponent);(0,h.Z)(bt,"defaultProps",{});var xt=bt},55707:function(t,e,r){"use strict";var n=r(32763),o=r(92801),a=r(1252),i=r(59755),c=r(90237),u=r(65337),s=r(95225),l=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),Z=r(87200),b=r(25291),x=r(70917);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=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}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 O(t){for(var e=1;e0||m&&m.length>0||y&&y.length,(0,x.tZ)("div",{className:"actTable"},(0,x.tZ)(Z.Z,{serverKey:o,selectedRows:r,selectedDatas:n,ltmplConfig:u,data:s,doSearch:this.doSearch,loading:l}),(0,x.tZ)(w.Z,{serverKey:o,maxSelectedRows:e,selectedRows:r,primaryColumn:u.primaryColumn,columns:c,pageInfo:{pageNo:f,pageSize:h||u.defaultPageSize},onChangePage:this.onChangePage,queryKey:i,onChangeRowSelection:this.changeRowSelection}))}}]),S}(d.PureComponent);(0,p.Z)(S,"defaultProps",{maxSelectedRows:1e3,selectedDatas:[]}),e.Z=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(86375),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(59755),a=r(49811),i=r(15128),c=r(32823);function u(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=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),g}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var f,h=[],p=new Map,d=new Map,v=new Map,y=new Map,m=new Map,g=new Map,w=new Map,Z=new Map,b=new Map,x=new Map;function k(t){var e=[];return t&&t.forEach((function(t){var r=i.Z.getSupportControlType(t);"caselect"!=r&&"select"!=r&&"multiselect"!=r&&"steps"!=r&&"preselect"!=r&&"checkbox"!=r&&"radio"!=r||d.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,e){return E.apply(this,arguments)}function E(){return(E=(0,o.Z)(l().mark((function t(e,r){var n,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=[],!r){t.next=7;break}return r.groups&&r.groups.forEach((function(t){var e=k(t.fields);O(n,e)})),o=L(r.actions),O(n,o),t.next=7,R(e,n);case 7: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 S(t,e){return P.apply(this,arguments)}function P(){return(P=(0,o.Z)(l().mark((function t(e,r){var n,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],o=k(r.columns),O(n,o),o=k(r.criterias),O(n,o),t.next=7,R(e,n);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function j(t,e){return I.apply(this,arguments)}function I(){return(I=(0,o.Z)(l().mark((function t(e,r){var n,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=[],r){t.next=3;break}return t.abrupt("return");case 3:return o=k(r.columns),O(n,o),o=k(r.criterias),O(n,o),o=k(r.drillingParams),O(n,o),o=k(r.reStatParams),O(n,o),o=L(r.actions),O(n,o),o=L(r.rowActions),O(n,o),t.next=17,R(e,n);case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function R(t,e,r){return T.apply(this,arguments)}function T(){return(T=(0,o.Z)(l().mark((function t(e,r,n){var o,i,c,s,f,h;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r&&r.length>0)){t.next=5;break}return t.next=3,a.Z.requestEnum(e,r,n);case 3:for(i in o=t.sent){c=o[i],s=u(c);try{for(s.s();!(f=s.n()).done;)(h=f.value).css&&(h.color=h.css.color)}catch(t){s.e(t)}finally{s.f()}d.set(i,c)}case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function N(){}N.loadEnumOfFields=function(){var t=(0,o.Z)(l().mark((function t(e,r){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=k(r),t.next=3,R(e,n);case 3:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),N.loadEnumOfFieldsWithPath=function(){var t=(0,o.Z)(l().mark((function t(e,r,n){var o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=k(r),t.next=3,R(e,o,n);case 3:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),N.getOptions=function(){var t=(0,o.Z)(l().mark((function t(e,r){var n,o,i,c;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return",null);case 2:if(d.has(r)){t.next=7;break}return t.next=5,a.Z.requestOptions(e,r)[r];case 5:if(null!=(n=t.sent)){o=u(n);try{for(o.s();!(i=o.n()).done;)(c=i.value).css&&(c.color=c.css.color)}catch(t){o.e(t)}finally{o.f()}d.set(r,n)}case 7:return t.abrupt("return",d.get(r));case 8:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),N.requestLtmplConfig=function(){var t=(0,o.Z)(l().mark((function t(e,r){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y.has(r)){t.next=10;break}return t.t0=y,t.t1=r,t.next=5,a.Z.requestLtmplConfig(e,r);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),n=y.get(r),t.next=10,j(e,n.ltmplConfig);case 10:return t.abrupt("return",y.get(r));case 11:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),N.requestL2LtmplConfig=function(){var t=(0,o.Z)(l().mark((function t(e,r){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m.has(r)){t.next=10;break}return t.t0=m,t.t1=r,t.next=5,a.Z.requestL2LtmplConfig(e,r);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),n=m.get(r),t.next=10,j(e,n.ltmplConfig);case 10:return t.abrupt("return",m.get(r));case 11:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),N.requestSelectConfig=function(){var t=(0,o.Z)(l().mark((function t(e,r){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v.has(r)){t.next=9;break}return t.t0=v,t.t1=r,t.next=5,a.Z.requestSelectConfig(e,r);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),t.next=9,S(e,v.get(r));case 9:return t.abrupt("return",v.get(r));case 10:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),N.requestDtmplConfig=function(){var t=(0,o.Z)(l().mark((function t(e,r,n){var o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(g.has(r)){t.next=11;break}return t.next=3,a.Z.requestDtmplConfig(e,r,n);case 3:if(!(o=t.sent)||o.dynamic){t.next=8;break}g.set(r,o),t.next=9;break;case 8:return t.abrupt("return",o);case 9:return t.next=11,C(e,o);case 11:return t.abrupt("return",g.get(r));case 12:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),N.requestTtmplConfig=function(){var t=(0,o.Z)(l().mark((function t(e,r){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(w.has(r)){t.next=6;break}return t.next=3,a.Z.requestTtmplConfig(e,r);case 3:n=t.sent,w.set(r,n),w.set(n.id,n);case 6:return t.abrupt("return",w.get(r));case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),N.requestViewDtmplConfig=function(){var t=(0,o.Z)(l().mark((function t(e,r){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Z.has(r)){t.next=9;break}return t.t0=Z,t.t1=r,t.next=5,a.Z.requestViewDtmplConfig(e,r);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),t.next=9,C(e,Z.get(r));case 9:return t.abrupt("return",Z.get(r));case 10:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),N.requestAddDtmplConfig=function(){var t=(0,o.Z)(l().mark((function t(e,r,n){var o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n||r,b.has(o)){t.next=10;break}return t.t0=b,t.t1=o,t.next=6,a.Z.requestAddDtmplConfig(e,r,n);case 6:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),t.next=10,C(e,b.get(o));case 10:return t.abrupt("return",b.get(o));case 11:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),N.getEnums=function(t){return d.get(t)},N.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},N.getEnumValueColor=function(t,e){var r=N.getEnumOption(t,e);return r?r.color:void 0},N.requestBlocks=function(){var t=(0,o.Z)(l().mark((function t(e,r){var n,o,i,c,s;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(h.length<1)){t.next=7;break}return t.next=3,a.Z.requestBlocks(e||void 0,r||void 0);case 3:if(o=t.sent){i=u(o.blocks);try{for(i.s();!(c=i.n()).done;)s=c.value,h.push(s)}catch(t){i.e(t)}finally{i.f()}f=o.programName,n={blocks:o.blocks,l2MenuId:o.l2MenuId,blockId:o.blockId,programName:o.programName}}t.next=8;break;case 7:n={blocks:h,blockId:r,l2MenuId:e,programName:f};case 8:return t.abrupt("return",n);case 9:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),N.initfastMenu=(0,o.Z)(l().mark((function t(){var e,r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(p.size<1)){t.next=5;break}return t.next=3,a.Z.requestFastMenu();case 3:if(e=t.sent)for(r in e)p.set(r,e[r]);case 5:case"end":return t.stop()}}),t)}))),N.fastMenu=function(){var t=(0,o.Z)(l().mark((function t(e){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(p.size<1)){t.next=3;break}return t.next=3,N.initfastMenu();case 3:return t.abrupt("return",p.get(e));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),N.reload=function(){var t=(0,o.Z)(l().mark((function t(e){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.Z.reload();case 2:if("success"==t.sent.status){t.next=5;break}return t.abrupt("return");case 5:this.clear(),c.ZP.success("执行成功");case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),N.cache=function(t){t&&x.set(t.code,t)},N.getFromCache=function(t){return x.get(t)},N.clear=(0,o.Z)(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p.clear(),d.clear(),y.clear(),g.clear(),Z.clear(),b.clear(),v.clear(),m.clear(),h.splice(0,h.length),x.clear();case 10:case"end":return t.stop()}}),t)}))),e.Z=N},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(94752),s=r(38763),l=r(32823),f=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(86375);function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var x=function(){function t(){(0,i.Z)(this,t)}var e,r,o,f,h,p,v,w,x,k,L,C,E,O,S,P,j,I,R,T,N,_,D,A,F,G,M,B,K,q,V,H,Y,z,U,W,Q,$,J,X,tt,et,rt,nt,ot,at,it,ct,ut,st,lt;return(0,c.Z)(t,null,[{key:"requestEnum",value:(lt=(0,a.Z)(b().mark((function t(e,r,n){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=6;break}return t.next=3,this.requestEnumWithPath(e,r,"/enum");case 3:case 8:return t.abrupt("return",t.sent);case 6:return t.next=8,this.requestEnumWithPath(e,r,n);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return lt.apply(this,arguments)})},{key:"requestEnumWithPath",value:(st=(0,a.Z)(b().mark((function t(e,r,n){var o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r.length>0)){t.next=7;break}return t.next=3,s.Z.super({url:u.Z.joinPath("/v3",n),serverKey:e,query:{mstrucIds:r}});case 3:return o=t.sent,t.abrupt("return",o.enumMap);case 7:return t.abrupt("return",{});case 8:case"end":return t.stop()}}),t)}))),function(t,e,r){return st.apply(this,arguments)})},{key:"requestOptions",value:(ut=(0,a.Z)(b().mark((function t(e,r){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestEnum(e,[r],null);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))),function(t,e){return ut.apply(this,arguments)})},{key:"requestDtmplConfig",value:(ct=(0,a.Z)(b().mark((function t(e,r,n){var o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.Z.super({url:"/v3/dtmpl/config",serverKey:e,method:"GET",query:{sourceId:r,code:n}});case 3:return o=t.sent,t.abrupt("return",o.dtmplConfig);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r){return ct.apply(this,arguments)})},{key:"requestTtmplConfig",value:(it=(0,a.Z)(b().mark((function t(e,r){var n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.Z.super({url:"/v3/ttmpl/config",serverKey:e,method:"GET",query:{sourceId:r}});case 3:return n=t.sent,t.abrupt("return",n.ttmplConfig);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return it.apply(this,arguments)})},{key:"requestViewDtmplConfig",value:(at=(0,a.Z)(b().mark((function t(e,r){var n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.Z.super({url:"/v3/view-dtmpl/config",serverKey:e,method:"GET",query:{sourceId:r}});case 3:return n=t.sent,t.abrupt("return",n.dtmplConfig);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return at.apply(this,arguments)})},{key:"requestAddDtmplConfig",value:(ot=(0,a.Z)(b().mark((function t(e,r,n){var o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.Z.super({url:"/v3/add-dtmpl/config",serverKey:e,method:"GET",query:{sourceId:r,addTmplId:n}});case 3:return o=t.sent,t.abrupt("return",o.dtmplConfig);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r){return ot.apply(this,arguments)})},{key:"requestSelectConfig",value:(nt=(0,a.Z)(b().mark((function t(e,r){var n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.Z.super({url:"/v3/select/config",serverKey:e,method:"GET",query:{sourceId:r}});case 3:return n=t.sent,t.abrupt("return",n.selectConfig);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return nt.apply(this,arguments)})},{key:"requestLtmplConfig",value:(rt=(0,a.Z)(b().mark((function t(e,r){var n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.Z.super({url:"/v3/ltmpl/config",serverKey:e,method:"GET",query:{sourceId:r}});case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return rt.apply(this,arguments)})},{key:"requestL2LtmplConfig",value:(et=(0,a.Z)(b().mark((function t(e,r){var n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.Z.super({url:"/v3/l2/ltmpl/config",serverKey:e,method:"GET",query:{sourceId:r}});case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return et.apply(this,arguments)})},{key:"requestLtmplQueryKey",value:(tt=(0,a.Z)(b().mark((function t(e,r,n){var o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.Z.super({url:"/v3/ltmpl/query/key",serverKey:e,method:"GET",query:Z(Z({},n),{},{sourceId:r})});case 3:return o=t.sent,t.abrupt("return",o);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r){return tt.apply(this,arguments)})},{key:"requestLtmplQueryTop",value:(X=(0,a.Z)(b().mark((function t(e,r,n){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonLtmplQueryTop(e,r,n,"/v3/ltmpl/top-data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return X.apply(this,arguments)})},{key:"requestTtmplRootData",value:(J=(0,a.Z)(b().mark((function t(e,r,n){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonLtmplQueryTop(e,r,n,"/v3/ttmpl/root-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:"requestMstrucLtmplQueryTop",value:($=(0,a.Z)(b().mark((function t(e,r,n){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonLtmplQueryTop(e,r,n,"/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,r){return $.apply(this,arguments)})},{key:"queryTop1",value:(Q=(0,a.Z)(b().mark((function t(e,r){var n,o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestMstrucLtmplQueryTop(e,r,{top:1});case 2:return n=t.sent,o=null,n&&n.entities&&n.entities[0]&&(o=n.entities[0].code),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return Q.apply(this,arguments)})},{key:"requestCommonLtmplQueryTop",value:(W=(0,a.Z)(b().mark((function t(e,r,n,o){var a;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=4;break}l.ZP.error("SourceId is undefined!"),t.next=8;break;case 4:return t.next=6,s.Z.super({url:o,serverKey:e,method:"GET",query:Z(Z({},n),{},{sourceId:r})});case 6:return a=t.sent,t.abrupt("return",a);case 8:case"end":return t.stop()}}),t)}))),function(t,e,r,n){return W.apply(this,arguments)})},{key:"requestSelectedData",value:(U=(0,a.Z)(b().mark((function t(e,r,n){var o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=3;break}return l.ZP.warning("没有选择实体"),t.abrupt("return",null);case 3:return t.next=6,s.Z.super({url:"/v3/field-group/data/selected",serverKey:e,query:{codes:n,sourceId:r},method:"GET"});case 6:if("success"!==(o=t.sent).status){t.next=11;break}return t.abrupt("return",o.entities);case 11:return l.ZP.error("没有找到实体!"),t.abrupt("return",null);case 13:case"end":return t.stop()}}),t)}))),function(t,e,r){return U.apply(this,arguments)})},{key:"requestVersionList",value:(z=(0,a.Z)(b().mark((function t(e,r,n){var o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.super({url:"/v3/dtmpl/data/versions",serverKey:e,query:{pageNo:1,sourceId:r,code:n},method:"GET"});case 2:return o=t.sent,t.abrupt("return",o.versions);case 4:case"end":return t.stop()}}),t)}))),function(t,e,r){return z.apply(this,arguments)})},{key:"requestCommonDtmplData",value:(Y=(0,a.Z)(b().mark((function t(e,r,n,o,a){var i;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.super({url:a,serverKey:e,query:{code:n,versionId:o,sourceId:r},method:"GET"});case 2:if("success"!==(i=t.sent).status){t.next=7;break}return t.abrupt("return",i.entity);case 7:return l.ZP.error("实体不存在!"),t.abrupt("return",null);case 9:case"end":return t.stop()}}),t)}))),function(t,e,r,n,o){return Y.apply(this,arguments)})},{key:"requestDtmplData",value:(H=(0,a.Z)(b().mark((function t(e,r,n,o){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,o,"/v3/dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return H.apply(this,arguments)})},{key:"getDtmplData",value:(V=(0,a.Z)(b().mark((function t(e,r,n,o){var a;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&e.dynamic&&(a=e.entity),a){t.next=5;break}return t.next=4,this.requestDtmplData(r,n,o,null);case 4:a=t.sent;case 5:return t.abrupt("return",a);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return V.apply(this,arguments)})},{key:"requestMstrucDtmplData",value:(q=(0,a.Z)(b().mark((function t(e,r,n,o){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,o,"/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,n){return q.apply(this,arguments)})},{key:"requestViewDtmplData",value:(K=(0,a.Z)(b().mark((function t(e,r,n,o){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,o,"/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,n){return K.apply(this,arguments)})},{key:"requestMstrucViewDtmplData",value:(B=(0,a.Z)(b().mark((function t(e,r,n,o){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,o,"/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,n){return B.apply(this,arguments)})},{key:"postCommonDtmplData",value:(M=(0,a.Z)(b().mark((function t(e,r,n,o,a){var i,c,u,l;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(c in i=new FormData,n)c.startsWith("$virtual")||i.append(c,n[c]||0==n[c]?n[c]:"");return i.append("sourceId",r.toString()),t.next=5,s.Z.super({url:a,serverKey:e,data:i,method:"POST"},"formdata");case 5:return u=t.sent,l=null,u?"success"===u.status&&(o&&(u.message?o.warning("保存成功! "+u.message,4):o.success("保存成功! ",1)),l=u.entityCode?u.entityCode:u.code):o&&o.error("保存失败"),t.abrupt("return",{code:l,status:u?u.status:"error"});case 9:case"end":return t.stop()}}),t)}))),function(t,e,r,n,o){return M.apply(this,arguments)})},{key:"postDtmplData",value:(G=(0,a.Z)(b().mark((function t(e,r,n,o){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.postCommonDtmplData(e,r,n,o,"/v3/dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return G.apply(this,arguments)})},{key:"postMstrucDtmplData",value:(F=(0,a.Z)(b().mark((function t(e,r,n,o){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.postCommonDtmplData(e,r,n,o,"/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,n){return F.apply(this,arguments)})},{key:"postFileAction",value:function(t,e){return u.Z.joinPath(u.Z.api(t),"/v3/upload")}},{key:"requestL2LtmplQueryKey",value:(A=(0,a.Z)(b().mark((function t(e,r,n){var o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.Z.super({url:"v3/l2/ltmpl/query/key",serverKey:e,method:"GET",query:Z(Z({},n),{},{sourceId:r})});case 3:return o=t.sent,t.abrupt("return",o);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r){return A.apply(this,arguments)})},{key:"requestLtmplCount",value:(D=(0,a.Z)(b().mark((function t(e,r){var n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.Z.super({url:"/v3/ltmpl/data/count",serverKey:e,query:{sourceId:r},method:"GET"});case 3:return n=t.sent,t.abrupt("return",n.count);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return D.apply(this,arguments)})},{key:"requestQueryData",value:(_=(0,a.Z)(b().mark((function t(e,r,n){var o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.super({url:"/v3/ltmpl/query/data",serverKey:e,method:"GET",query:Z({queryKey:r},n)});case 2:return o=t.sent,t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(t,e,r){return _.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 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}}}}(t);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.code?e.push(o.code):l.ZP.error("没找到所选数据的Code!!")}}catch(t){n.e(t)}finally{n.f()}return e.length<1&&l.ZP.error("没找到所选数据的Code!!"),e}}},{key:"deleteData",value:(N=(0,a.Z)(b().mark((function t(e,r,n){var o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=this.getCodesOfSelectedRows(n),t.next=3,this.deleteByCode(e,r,o);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return N.apply(this,arguments)})},{key:"deleteByCode",value:(T=(0,a.Z)(b().mark((function t(e,r,n){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.super({url:"/v3/ltmpl/data",serverKey:e,data:{codes:n,sourceId:r},method:"DELETE"});case 2:if("success"!=t.sent.status){t.next=8;break}return l.ZP.success("删除成功",1),t.abrupt("return",!0);case 8:return l.ZP.error("删除失败"),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t)}))),function(t,e,r){return T.apply(this,arguments)})},{key:"requestQueryCount",value:(R=(0,a.Z)(b().mark((function t(e,r){var n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.super({url:"/v3/ltmpl/query/count",serverKey:e,method:"GET",query:{queryKey:r}});case 2:return n=t.sent,t.abrupt("return",n.count);case 4:case"end":return t.stop()}}),t)}))),function(t,e){return R.apply(this,arguments)})},{key:"postActions",value:(I=(0,a.Z)(b().mark((function t(e,r,n,o){var a,i,c,u;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(c in a=this.getCodesOfSelectedRows(n),i=new FormData,o)i.append(c,o[c]?o[c]:"");return i.append("sourceId",r.toString()),i.append("codes",a.join(",")),t.next=7,s.Z.super({url:"/v3/action",serverKey:e,data:i,method:"POST"},"formdata",null);case 7:return u=t.sent,t.abrupt("return",u);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return I.apply(this,arguments)})},{key:"increCalc",value:(j=(0,a.Z)(b().mark((function t(e,r){var n,o,a=arguments;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>2&&void 0!==a[2]?a[2]:{},t.next=3,s.Z.super({url:"/v3/stat/increcalc",serverKey:e,method:"POST",data:Z(Z({},n),{},{sourceId:r})});case 3:return"success"===(o=t.sent).status?l.ZP.success("统计成功",1):l.ZP.error("统计失败"),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)}))),function(t,e){return j.apply(this,arguments)})},{key:"doCopy",value:(P=(0,a.Z)(b().mark((function t(e,r,n,o,a){var i;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.super({url:"/v3/mstruc/copy-data",serverKey:e,method:"POST",query:{sourceId:r,code:n,copyRelation:o,copyOpp2One:a}},null,null);case 2:return"success"==(i=t.sent).status&&i.message&&l.ZP.info("提示信息:"+i.message,4),t.abrupt("return",i.entityCode);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r,n,o){return P.apply(this,arguments)})},{key:"queryCode",value:(S=(0,a.Z)(b().mark((function t(e,r,n){var o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=void 0,!r){t.next=16;break}if("listop"!=r){t.next=9;break}return t.next=5,this.queryTop1(n,e);case 5:(o=t.sent)||(o="bad-code"),t.next=16;break;case 9:if("listop-new"!=r){t.next=15;break}return t.next=12,this.queryTop1(n,e);case 12:o=t.sent,t.next=16;break;case 15:"new"==r&&(o=null);case 16:return t.abrupt("return",o);case 17:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return S.apply(this,arguments)})},{key:"download",value:function(t,e){var r=e.split("/"),n=r[r.length-1];u.Z.downloadFile(this.getFileUrl(t,e)+"&disposition=attachment",n)}},{key:"openfile",value:function(t,e,r){var n=e.split("/"),o=n[n.length-1];u.Z.openFile(this.getFileUrl(t,e),o,r)}},{key:"getFileUrl",value:function(t,e){var r=u.Z.hydrocarbonToken();return u.Z.joinPath(u.Z.api(t),u.Z.joinPath("/v3/files",e))+"?@token=".concat(r,"&@programToken=").concat(u.Z.programCode())}},{key:"getFileTxtUrl",value:function(t,e){var r=u.Z.hydrocarbonToken();return u.Z.joinPath(u.Z.api(t),u.Z.joinPath("/v3/files/text",e))+"?@token=".concat(r,"&@programToken=").concat(u.Z.programCode())}},{key:"loadFileTxt",value:(O=(0,a.Z)(b().mark((function t(e,r){var n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.super({url:u.Z.joinPath("/v3/files/text",r),serverKey:e,method:"GET"});case 2:return n=t.sent,t.abrupt("return",n.text);case 4:case"end":return t.stop()}}),t)}))),function(t,e){return O.apply(this,arguments)})},{key:"requestBlocks",value:(E=(0,a.Z)(b().mark((function t(e,r){var n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.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 E.apply(this,arguments)})},{key:"logout",value:(C=(0,a.Z)(b().mark((function t(){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s.Z.super({url:"/v3/auth/token",method:"DELETE"}).then((function(t){u.Z.toLogin()}));case 1:case"end":return t.stop()}}),t)}))),function(){return C.apply(this,arguments)})},{key:"resetPassword",value:(L=(0,a.Z)(b().mark((function t(e,r,n,o){var a,i,c;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=d.rsaEncrypt(r,o),i=d.rsaEncrypt(n,o),t.next=4,s.Z.super({url:"/v3/auth/password",serverKey:e,query:{oldPassword:a,newPassword:i},method:"POST"});case 4:return c=t.sent,t.abrupt("return",c);case 6:case"end":return t.stop()}}),t)}))),function(t,e,r,n){return L.apply(this,arguments)})},{key:"getContextSourceConfig",value:(k=(0,a.Z)(b().mark((function t(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.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 k.apply(this,arguments)})},{key:"getContextSourceValue",value:(x=(0,a.Z)(b().mark((function t(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.super({url:"/v3/auth/context-source-value",method:"GET"});case 2:return e=t.sent,t.abrupt("return",e?e.value:null);case 4:case"end":return t.stop()}}),t)}))),function(){return x.apply(this,arguments)})},{key:"login",value:(w=(0,a.Z)(b().mark((function t(e,r,n,o,a){var i,c,u;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=y()(new Date).format("YYYY-MM-DD HH:mm:ss"),e.datetime=i,c=d.rsaEncrypt(JSON.stringify(e),o),t.next=5,s.Z.super({url:"/v3/auth/hctoken",header:{programCode:a},query:{userInfo:c,kaptchaToken:r,kaptchaText:n},method:"GET"});case 5:return u=t.sent,t.abrupt("return",u);case 7:case"end":return t.stop()}}),t)}))),function(t,e,r,n,o){return w.apply(this,arguments)})},{key:"setContext",value:(v=(0,a.Z)(b().mark((function t(e){var r,n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new FormData).append("context",JSON.stringify(e)),t.next=4,s.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 v.apply(this,arguments)})},{key:"getKaptchaToken",value:(p=(0,a.Z)(b().mark((function t(e){var r;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.super({url:"/v3/auth/kaptcha",header:{programCode:e},method:"POST"});case 2:if("success"!==(r=t.sent).status){t.next=7;break}return t.abrupt("return",r);case 7:return t.abrupt("return",null);case 8:case"end":return t.stop()}}),t)}))),function(t){return p.apply(this,arguments)})},{key:"getRasPubkey",value:(h=(0,a.Z)(b().mark((function t(e,r){var n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.super({url:"/v3/auth/ras-pubkey",header:{programCode:r},serverKey:e,method:"GET"});case 2:if("success"!==(n=t.sent).status){t.next=7;break}return t.abrupt("return",n.rasPubkey);case 7:return t.abrupt("return",null);case 8:case"end":return t.stop()}}),t)}))),function(t,e){return h.apply(this,arguments)})},{key:"getUser",value:(f=(0,a.Z)(b().mark((function t(e,r){var n;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.Z.super({header:{programCode:e,hydrocarbonToken:r},url:"/v3/current-user"});case 2:return n=t.sent,t.abrupt("return",n?n.user:null);case 4:case"end":return t.stop()}}),t)}))),function(t,e){return f.apply(this,arguments)})},{key:"requestFastMenu",value:(o=(0,a.Z)(b().mark((function t(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.Z.super({url:"/v3/menu/fast-menu",method:"GET"});case 3:return e=t.sent,t.abrupt("return",e?e.fastMenu:null);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:"reload",value:(r=(0,a.Z)(b().mark((function t(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.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 r.apply(this,arguments)})},{key:"initProgramConfig",value:(e=(0,a.Z)(b().mark((function t(e){var r,o,a;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.programCode&&m.cB.setProgramCode(e.programCode),e.hydrocarbonServer&&m.cB.setHydrocarbonServer(e.hydrocarbonServer),e.extendServer&&(r=e.extendServer,"object"==(0,n.Z)(r)&&(o=[],Array.isArray(r)?o=r:o.push(r),m.cB.putExtendServers(o))),m.cB.setProgramName(e.programName),m.cB.setProgramName_sub(e.programName_sub),m.cB.setProgramName_NavLeft(e.programName_NavLeft),m.cB.setProgramName_Logo(e.programName_Logo),t.next=9,s.Z.getProramConfig();case 9:(a=t.sent)&&(m.cB.setProgramCode(a.programCode),m.cB.setHydrocarbonServer(a.hydrocarbonServer),m.cB.setProgramName(a.programName),m.cB.setProgramName_sub(a.programName_NavLeft),m.cB.setProgramName_NavLeft(a.programName_NavLeft),m.cB.setProgramName_Logo(a.programName_Logo));case 11: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 s}});var n=r(90237),o=r(65337),a=r(80569),i=r.n(a),c=r(32823),u=r(94752),s=function(){function t(){(0,n.Z)(this,t)}return(0,o.Z)(t,null,[{key:"super",value:function(t,e,r){var n,o,a,s=null!==(n=t.header)&&void 0!==n&&n.hydrocarbonToken?t.header.hydrocarbonToken:u.Z.hydrocarbonToken()?u.Z.hydrocarbonToken():u.Z.getAnoHydrocarbonToken(),l=t.serverKey;a=null!==(o=t.header)&&void 0!==o&&o.programCode?t.header.programCode:u.Z.programCode(l),t.data&&!1!==t.data.isShowLoading&&(document.getElementById("ajaxLoading").style.display=r||"block");var f="form";"formdata"===e?f=null:"json"===e&&(f="application/json");var h=t.method?t.method:"POST";return new Promise((function(e,r){var n=t.hydrocarbonServer?t.hydrocarbonServer:u.Z.api(l);i()(h,u.Z.joinPath(n,t.url)).type(f).set("hydrocarbon-token",s).set("hydrocarbon-program-token",a).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,6),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+")",5),e(o)):500===o.status?(o.body&&(c.ZP.error("后台处理错误("+o.body.message+")",5),console.log(o.text)),e(o)):(c.ZP.error("请求服务失败!("+t.url+")",5),r(o.body));else c.ZP.error("服务器连接失败"),e(null)}))}))}},{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}()},14807:function(t,e,r){"use strict";var n=r(27484),o=r.n(n),a=r(93378);function i(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,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?e[o].split("@R@")[1]:e[o])&&(a=null),a):n},u.getFieldValueCodeOfMstrucId=function(t,e,r,n){var o=u.getFieldId(t,r),a=e&&e[o];if(!a)return n;if(a instanceof Array){var i=[];a.forEach((function(t){i.push(t.indexOf("@R@")>0?t.split("@R@")[0]:t)})),a=i.toString()}else a=a.indexOf("@R@")>0?a.split("@R@")[0]:a;return a},u.getFieldValueOfMstrucId=function(t,e,r,n){var o=u.getFieldId(t,r),a=e&&e[o];return a?a=a instanceof Array?a.toString():e[o]:n},u.getFieldId=function(t,e){var r=void 0,n=t.groups;if(null!=n){var o,a=i(n);try{for(a.s();!(o=a.n()).done;){var c,u=i(o.value.fields);try{for(u.s();!(c=u.n()).done;){var s=c.value;if(s.mstrucId==e){r=s.id;break}}}catch(t){u.e(t)}finally{u.f()}if(r)break}}catch(t){a.e(t)}finally{a.f()}}else{var l=t.columns;if(null!=l){var f,h=i(l);try{for(h.s();!(f=h.n()).done;){var p=f.value;if(p.mstrucId==e){r=p.id;break}}}catch(t){h.e(t)}finally{h.f()}}}return r},u.getRelMstrucFieldId=function(t,e,r){var n=u.getFieldId(t,r);return e&&e[n]?e[n].split("@R@")[0]:void 0},u.buildInDtmplConfig=function(t,e,r){if(!t.buildInFuncFields){var n,o=[],c=i(t.groups);try{for(c.s();!(n=c.n()).done;){var u,s=i(n.value.fields);try{for(s.s();!(u=s.n()).done;){var l=u.value;(l.requiredRuleCriterias&&l.requiredRuleCriterias.length>0||l.usableRuleCriterias&&l.usableRuleCriterias.length>0)&&(l.shouldUpdate=!0,o.push(l))}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}t.buildInFuncFields=o}if(t.buildInFuncFields.length>0){var f=function(e,r,n){var o,c=i(t.buildInFuncFields);try{for(c.s();!(o=c.n()).done;){var u=o.value;null!=u.requiredRuleCriterias&&u.requiredRuleCriterias.length>0&&(a.Z.isMatch(u.requiredRuleCriterias,[r],n,t)?u.required=!0:u.required=!1),null!=u.usableRuleCriterias&&u.usableRuleCriterias.length>0&&(a.Z.isMatch(u.usableRuleCriterias,[r],n,t)?u.disabled=!1:u.disabled=!0)}}catch(t){c.e(t)}finally{c.f()}};return f(0,e,null),t.onValuesChange=function(t,e,r){f(0,e,r)},t}return t},e.Z=u},94752:function(t,e,r){"use strict";var n=r(32763),o=r(27484),a=r.n(o),i=r(14807),c=r(86375);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(a=o.pathname.split("/kuangkie")[0]),e=this.joinPath(o.origin,a)}return e},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},putExtendServers:function(t){var e,r=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 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}}}}(t);try{for(r.s();!(e=r.n()).done;){var n=e.value;d[n.key]=n,n.key&&n.hydrocarbonServer&&(c.cB.setProgramCode(n.programCode,n.key),c.cB.setHydrocarbonServer(n.hydrocarbonServer,n.key))}}catch(t){r.e(t)}finally{r.f()}},getExtendServers:function(t){return d[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(){var t;return this.programCode()&&(t=window.localStorage.getItem(this.programCode()+"programName_NavLeft")),t||(t=window.localStorage.getItem("programName_NavLeft")),t||"旷识科技"},programName_Logo:function(){var t=null;return this.programCode()&&(t=window.localStorage.getItem(this.programCode()+"programName_Logo")),t||(t=window.localStorage.getItem("programName_Logo")),t&&"undefined"==t?null:t},formateDate:function(t){return t?a()(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}},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){var e="",r=Math.floor(10*Math.random());e+=0==r?"1":r+"";for(var n=1;n200?"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.expires2&&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=s[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,s=o;u0){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")?i.Z.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},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""},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=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&&(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)}}},50056:function(t,e,r){"use strict";var n=r(32763),o=r(59755),a=(r(89592),r(67294),r(20745)),i=r(57764),c=(r(32733),r(40684)),u=r(86375),s=JSON.parse('{"hydrocarbonServer1":"/hydrogen","hydrocarbonServer":"http://localhost:8383/hydrogen","programName_NavLeft1":"HYDROCARBON","programName1":"旷识企业应用","programName_sub":"CARBON","programName_Logo1":"./logo.png","programCode1":"253564453860974594","programName":"旷识开发平台","programName_NavLeft":"旷识开发平台","extendServer":[{"key":"carbonthinking","programCode":"253564453860974594","hydrocarbonServer":"https://carbonthinking.kuangkie.com/"}]}'),l=r(70917);function f(){f=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),c=new R(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function w(){}function Z(){}function b(){}var x={};l(x,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(x=L);var C=b.prototype=w.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=p(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.Z)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=d;return function(a,i){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=P(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:v,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=p(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),g}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}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);r0){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 s,l=h(c.fields);try{for(l.s();!(s=l.n()).done;){var f=s.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){l.e(t)}finally{l.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,u.QC.initProgramConfig(s);case 5:e.render((0,l.tZ)(i.Z,null));case 6:case"end":return t.stop()}}),t)}))))},57764:function(t,e,r){"use strict";r.d(e,{Z:function(){return w}});var n=r(90237),o=r(65337),a=r(39576),i=r(61378),c=r(69905),u=r(67294),s=r(79655),l=r(89250),f=r(40684),h=r(72374),p=r(36646),d=r(86375),v=(r(94752),r(60703),r(70917));function y(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)}}h.Z.Text;var m=(0,v.tZ)(p.Z,{tip:"Loading..."}),g=(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,70102))},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 70102}},{fallback:m}),w=function(t){(0,a.Z)(r,t);var e=y(r);function r(){return(0,n.Z)(this,r),e.apply(this,arguments)}return(0,o.Z)(r,[{key:"render",value:function(){var t=d.cB.getCustomPage(d.cB.programCode())?u.createElement(d.cB.getCustomPage(d.cB.programCode())):(0,v.tZ)(d.B$,null);return(0,v.tZ)(s.UT,null,(0,v.tZ)(g,null,(0,v.tZ)(l.Z5,null,(0,v.tZ)(l.AW,{path:"login",element:(0,v.tZ)(d.Fw,null)}),(0,v.tZ)(l.AW,{path:"login/:programCode",element:(0,v.tZ)(d.Fw,null)}),(0,v.tZ)(l.AW,{path:"context-setter",element:(0,v.tZ)(d.UL,null)}),(0,v.tZ)(l.AW,{path:"*",element:(0,v.tZ)(d.hE,null,(0,v.tZ)(l.Z5,null,(0,v.tZ)(l.AW,{path:"/home/:programCode",element:t}," "),(0,v.tZ)(l.AW,{path:"/home",element:t}," "),(0,v.tZ)(l.AW,{path:"/page/:sourceId/:pageName",element:(0,v.tZ)(d.C0,null),exact:!0}),(0,v.tZ)(l.AW,{path:"/:sourceId/act-table",element:(0,v.tZ)(d.cS,null),exact:!0}),(0,v.tZ)(l.AW,{path:"/:sourceId/act-Tree",element:(0,v.tZ)(d.o0,null),exact:!0}),(0,v.tZ)(l.AW,{path:"/:sourceId/detail-view",element:(0,v.tZ)(d.H5,null),exact:!0}),(0,v.tZ)(l.AW,{path:"/:sourceId/detail-edit",element:(0,v.tZ)(d.H5,null),exact:!0}),(0,v.tZ)(l.AW,{path:"/:sourceId/importer",element:(0,v.tZ)(d.zM,null),exact:!0}),(0,v.tZ)(l.AW,{path:"/",element:t,exact:!0})))}))))}}]),r}(u.Component)},60703:function(t,e,r){"use strict";r.p},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(l=0;l=o)&&Object.keys(c.O).every((function(t){return c.O[t](r[u])}))?r.splice(u--,1):(i=!1,o0&&t[l-1][2]>o;l--)t[l]=t[l-1];t[l]=[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."+{41:"32d9c9392bbd3a7c67e4",66:"2f8a2c5350904346e9b0",76:"f8dde651decf0a4f7660",162:"78e153761b445eae3d97",204:"dfe6fe1b8973cffe9b1f",373:"ffae0f229836992abce7",385:"800c100c06c8ef8bd5b7",432:"3ae346c106fd2c6a8b2e",441:"c774df7f00e7f52fd072",486:"b16dd1a09b8c776b1cb3",510:"df766d02717a40487438",556:"56b3df16bc1bddd394e6",590:"0e1f58a2aaa64cbec243",592:"da33137463669791427a",598:"5a7582b59729ccc2fd7e",623:"56dd33c58bc93330344a",636:"60ca54998be5a6a8eba1",679:"08cad0c7a1dc5c8fc195",743:"7a39bb22b147d7cc096a",768:"62895b27df5e49ed3cf8",782:"b4a41d3b4e28ba7c51bd",836:"7f33f5e34d78a2b22753",867:"c406698c23731d9ea02a",958:"000357d6528dff2ca40e"}[t]+".js"},c.miniCssF=function(t){return"css/"+{510:"html-editor-draft",590:"chemstruc-graph",592:"common"}[t]+"-"+{510:"5e8e152675ab7d201c00",590:"7a7a494ef7600c1968fd",592:"901df6b21f13391f2a53"}[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 s=document.getElementsByTagName("script"),l=0;l-1&&!t;)t=r[n--].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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy