super-pages 0.7.39-dw → 0.7.40-dw
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,4 +23,4 @@ function o(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreat
|
|
|
23
23
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
24
24
|
* @license MIT
|
|
25
25
|
*/
|
|
26
|
-
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},c8af:function(e,t,n){"use strict";var o=n("c532");e.exports=function(e,t){o.forEach(e,(function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===typeof window&&(n=window)}e.exports=n},ccb9:function(e,t,n){t.f=n("5168")},ce7e:function(e,t,n){var o=n("63b6"),a=n("584a"),i=n("294c");e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],r={};r[e]=t(n),o(o.S+o.F*i((function(){n(1)})),"Object",r)}},cee4:function(e,t,n){"use strict";var o=n("c532"),a=n("1d2b"),i=n("0a06"),r=n("4a7b"),s=n("2444");function u(e){var t=new i(e),n=a(i.prototype.request,t);return o.extend(n,i.prototype,t),o.extend(n,t),n}var l=u(s);l.Axios=i,l.create=function(e){return u(r(l.defaults,e))},l.Cancel=n("7a77"),l.CancelToken=n("8df4"),l.isCancel=n("2e67"),l.all=function(e){return Promise.all(e)},l.spread=n("0df6"),e.exports=l,e.exports.default=l},d213:function(e,t,n){},d56a:function(e,t,n){"use strict";n("090e")},d7e1:function(module,__webpack_exports__,__webpack_require__){"use strict";var imatrix_ui_src_utils_jump_page_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("f6cd"),buttonEvents={clickFormButton:function clickFormButton(button,system,formCode,formVersion,tableName,formData,entityName,myJsContent,formNoRuleCode,ids,isBatchProcessing,needDeleteFileUuidS,additionalParamMap,beanName){var _this=this;if("undefined"!==typeof button.isExtension&&!0===button.isExtension){var param={entity:formData,formViewCode:formCode,formViewVersion:formVersion,tableName:tableName,formNoRuleCode:formNoRuleCode,entityName:entityName,beanName:beanName};if(this.judgeHeavyList&&(param.judgeHeavyList=JSON.stringify(this.judgeHeavyList)),button.logSetting&&(param.logSettingText=button.logSetting),button&&button.taskMap&&(param.button=button.taskMap),param.systemCode||(param.systemCode=system.code),additionalParamMap&&(param.additionalParamMap=additionalParamMap),myJsContent&&null!==myJsContent&&""!==myJsContent){var buttonFun=eval("("+myJsContent+")"),request=buttonFun(this,param);request&&request.then((function(e){e&&_this.dealAfterSaveForm(e,system.standard,"superPageMessage.successfulOperation",button.successOperation,button.code,!!button&&button.isNeedValueMapping)}))}else if(button&&void 0!==button.isNeedValueMapping&&!0===button.isNeedValueMapping){var successOperation;button.successOperation&&(successOperation=button.successOperation),successOperation||(successOperation="closeWindow"),this.afterSuccessOperateInForm(successOperation,formData,!0)}}else if("saveForm"===button.code)this.saveForm(system,button,formCode,formVersion,tableName,formData,entityName,myJsContent,formNoRuleCode,needDeleteFileUuidS,additionalParamMap,beanName);else if("exportForm"===button.code)button.isPreviewFormReport?(button.isPreviewFormReport=!1,this.previewFormReport(button.templateUUID,button.templateShowPath,myJsContent,entityName,system,button.logSetting,button.taskMap,additionalParamMap,!1,beanName,this.permissionPrefix+".createPreviewFile",tableName)):this.exportFormReport(button.templateUUID,button.templateShowPath,myJsContent,entityName,system,button.logSetting,button.taskMap,additionalParamMap,!1,beanName,button,tableName);else if("back"===button.code)this.closePage(this.pageCode,button.successOperation);else if("submit"===button.code||"agree"===button.code||"disagree"===button.code){var url;"submit"===button.code?url="/dsc/commons/submits":"agree"===button.code?url="/dsc/commons/approves":"disagree"===button.code&&(url="/dsc/commons/refuses"),this.submitForm(formData,system,tableName,entityName,myJsContent,button,formNoRuleCode,url,ids,isBatchProcessing,needDeleteFileUuidS,additionalParamMap,beanName)}},saveForm:function(e,t,n,o,a,i,r,s,u,l,c,p){var d=this,f=this.getSaveFormRequest(e,t.restfulApiPath,n,o,a,i,r,s,u,t.dataConversionRule,t.autoSetValueData,"/dsc/commons",t.logSetting,null,null,t.taskMap,l,c,p,!1,t.functionCode);f&&f.then((function(n){d.dealAfterSaveForm(n,e.standard,"superPageMessage.successfulSave",t.successOperation,t.code,t.isNeedValueMapping)}))},dealAfterSaveForm:function(e,t,n,o,a,i){var r;e&&(!1===t?(r=e.entity,this.formNo=e.formNo):r=e,this.callAfterClickButton(this.formEvents,this.formViewCode+"__"+a,{params:this.additionalParamMap,entity:r}),this.afterSuccessOperateInForm(o,r,i));this.reviewButton(),this.$message.success(this.$t(n))},getSubmitFormRequest:function(e,t,n,o,a,i,r,s,u,l,c,p,d,f,m,h){var g=this,b="superPageMessage.whetherToConfirm"+this.upperFirstCase(l);this.$confirm(this.$t(b,{name:r.label}),this.$t("superPageMessage.tips"),{confirmButtonText:this.$t("superPageMessage.sure"),cancelButtonText:this.$t("superPageMessage.cancel"),type:"warning"}).then((function(){var l={entity:e,tableName:o,formNoRuleCode:s,functionCode:r.functionCode};g.judgeHeavyList&&(l.judgeHeavyList=JSON.stringify(g.judgeHeavyList)),r.dataConversionRule&&(l.dataConversionRule=r.dataConversionRule.join(",")),r.autoSetValueData&&(l.autoSetValueData=JSON.stringify(r.autoSetValueData)),r.logSetting&&(l.logSettingText=r.logSetting),r.taskMap&&(l.taskMap=r.taskMap),l.systemCode||(l.systemCode=t.code),a&&(l.entityName=a),m&&(l.beanName=m),c&&c.length>0&&(l.ids=c),d&&(l.needDeleteFileUuidS=d),f&&(l.additionalParamMap=f),void 0!==h&&null!==h&&(l.isWorkflowEntity=h),l.isBatchProcessing=p;var b=g.getSaveFormRequestByParam(t,n,l,i,u);return b&&b.then((function(e){g.dealAfterSaveForm(e,t.standard,"superPageMessage.successfulOperation",r.successOperation,r.code,r.isNeedValueMapping)})).catch((function(e){console.log("getSubmitFormRequest error",e)})),b})).catch((function(){}))},submitForm:function(e,t,n,o,a,i,r,s,u,l,c,p,d){var f=this,m=this.getSubmitFormRequest(e,t,i.restfulApiPath,n,o,a,i,r,s,i.code,u,l,c,p,d,!1);m&&m.then((function(e){f.dealAfterSaveForm(e,t.standard,"superPageMessage.successfulOperation",i.successOperation,i.code,i.isNeedValueMapping)})).catch((function(e){}))},updateValues:function(e,t){Object(imatrix_ui_src_utils_jump_page_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(e,t,this.jumpPageSetting,this.formData,this.tableName);var n=this.jumpPageSetting&&this.jumpPageSetting.updateValueEvent?this.jumpPageSetting.updateValueEvent:null;this.customEvents&&n&&null!==n&&this.customEvents[n]&&this.customEvents[n].call(this,{sourceModel:e,sourceTableName:t,jumpPageSetting:this.jumpPageSetting,entity:this.formData,targetTableName:this.tableName}),this.updateFormData(this.formData)},downloadTemplate:function(e,t,n){var o,a;t.templateFiles&&t.templateFiles.length>0?(o=t.templateFiles[0].templateUUID,a=t.templateFiles[0].templateShowPath):(o=t.templateUUID,a=t.templateShowPath);var i="?1=1";t&&t.functionCode&&(i+="&functionCode="+t.functionCode),n&&(i+="&tableName="+n),o&&a&&"undefined"!==o&&"undefined"!==a&&"null"!==o&&"null"!==a&&(i+="&fileName="+encodeURI(o)+"&showName="+encodeURI(a));var r=this.getBaseUrl(e);window.open(r+"/dsc/commons/download-files"+i)}};__webpack_exports__["a"]=buttonEvents},d864:function(e,t,n){var o=n("79aa");e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,a){return e.call(t,n,o,a)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,n){n("1654"),n("6c1c"),e.exports=n("ccb9").f("iterator")},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d9f6:function(e,t,n){var o=n("e4ae"),a=n("794b"),i=n("1bc3"),r=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),a)try{return r(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var o=n("584a"),a=n("e53d"),i="__core-js_shared__",r=a[i]||(a[i]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},e4ae:function(e,t,n){var o=n("f772");e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6f3:function(e,t,n){var o=n("07e3"),a=n("36c3"),i=n("5b4e")(!1),r=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=a(e),u=0,l=[];for(n in s)n!=r&&o(s,n)&&l.push(n);while(t.length>u)o(s,n=t[u++])&&(~i(l,n)||l.push(n));return l}},eb17:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("bc95"),a=n.n(o),i=n("a78e"),r=n.n(i),s=(n("8bbf"),"JWT");function u(){var e=a.a.getItem(s);return e||(e=r.a.get(s)),e}},ebfd:function(e,t,n){var o=n("62a0")("meta"),a=n("f772"),i=n("07e3"),r=n("d9f6").f,s=0,u=Object.isExtensible||function(){return!0},l=!n("294c")((function(){return u(Object.preventExtensions({}))})),c=function(e){r(e,o,{value:{i:"O"+ ++s,w:{}}})},p=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[o].i},d=function(e,t){if(!i(e,o)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return l&&m.NEED&&u(e)&&!i(e,o)&&c(e),e},m=e.exports={KEY:o,NEED:!1,fastKey:p,getWeak:d,onFreeze:f}},f28c:function(e,t){var n,o,a=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function u(e){if(o===clearTimeout)return clearTimeout(e);if((o===r||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"===typeof clearTimeout?clearTimeout:r}catch(e){o=r}})();var l,c=[],p=!1,d=-1;function f(){p&&l&&(p=!1,l.length?c=l.concat(c):d=-1,c.length&&m())}function m(){if(!p){var e=s(f);p=!0;var t=c.length;while(t){l=c,c=[];while(++d<t)l&&l[d].run();d=-1,t=c.length}l=null,p=!1,u(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||p||s(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},f6b4:function(e,t,n){"use strict";var o=n("c532");function a(){this.handlers=[]}a.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},f6cd:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return w}));var o=n("bc95"),a=n.n(o),i=n("8bbf"),r=n.n(i),s=n("29b3"),u=n("9696");function l(e,t,n,o,i,s,u,l){return new Promise((function(p,f){e&&"string"===typeof e&&""!==e&&(e=JSON.parse(e)),e.jumpPageUrl||p(),c(t,e.jumpPageUrl).then((function(t){if(e.jumpPageAdditional&&e.jumpPageAdditional.length>0){var c=r.a.prototype.baseAPI+"/component/super-pages/parsing-additional-parameters",f={};f.jumpPageAdditional=JSON.stringify(e.jumpPageAdditional),f.entity=o,f.additionalParamMap=i,console.log("paramMap.parentFormData",l),f.parentFormData=l,r.a.prototype.$http.post(c,f).then((function(o){var i="";o&&o.uuid&&(i=o.uuid+"_additionalParamMap",a.a.setItem(i,JSON.stringify(o.paramMap))),e.paramStoreId=i,d(e,t,n,s,u).then((function(e){p(e)}))}))}else d(e,t,n,s,u).then((function(e){p(e)}))})).catch((function(e){console.log(e),f(e)}))}))}function c(e,t){return new Promise((function(n,o){if(p(t))n(null);else if(e&&null!==e)n(e);else if(0===t.indexOf("page:")){var a=t.substring(t.indexOf("page:")+"page:".length),i=r.a.prototype.baseAPI+"/component/business-systems/with-page-codes/"+a;r.a.prototype.$http.get(i).then((function(e){n(e)})).catch((function(e){o(e)}))}else{var s=r.a.prototype.customSystem;s||(s=r.a.prototype.systemCode);var u=r.a.prototype.baseAPI+"/component/business-systems/"+s;r.a.prototype.$http.get(u).then((function(e){n(e)})).catch((function(e){o(e)}))}}))}function p(e){return 0===e.indexOf("http:")||0===e.indexOf("https:")}function d(e,t,n,o,a){return new Promise((function(i,r){var s=e.jumpPageUrl;if(s)if(0===s.indexOf("page:"))g(s,t,n,e,o,a).then((function(e){i(e)}));else{var l=y(e.paramStoreId),c=s;if(s.indexOf("path:")>=0&&(c=s.substring(s.indexOf("path:")+"path:".length)),p(c));else if(t){var d=Object(u["b"])(t.frontendUrl);c=d+"/#"+c}f(n,c,l,e,o,a),i()}}))}function f(e,t,n,o,a,i){t=m(e,t,o,a,i),n&&""!==n&&(-1!==t.indexOf("?")?(t+="&",t+=n):(t+="?",t+=n));var r="refresh";if(o&&o.jumpPageOpenMode&&(r=o.jumpPageOpenMode),"popup"===r){var s,u;s=o.jumpPageWidth?o.jumpPageWidth:window.innerWidth-150,u=o.jumpPageHeight?o.jumpPageHeight:window.innerHeight-150;var l="height="+u+", width="+s+", top=0, left=0, toolbar=no, menubar=no,scrollbars=no,resizable=no, location=no, status=no";window.open(t,"newW",l)}else"newTab"===r?window.open(t):location.href=t}function m(e,t,n,o,a){if((void 0===n.isNeedId||null===n.isNeedId||!0===n.isNeedId)&&e){var i="?";t.indexOf("?")>0&&(i="&"),t=t+i+"id="+e}var r=n.paramStoreId;if(r&&""!==r){var s="paramStoreId="+r;-1!==t.indexOf("?")?(t+="&",t+=s):(t+="?",t+=s)}return o&&o.length>0&&(-1!==t.indexOf("?")?(t+="&",t+="ids="+o.join(",")):(t+="?",t+="ids="+o.join(","))),a&&(-1!==t.indexOf("?")?t+="&buttonCode="+a:t+="?buttonCode="+a),t}function h(e){var t;return e&&-1!==e.indexOf("page:")&&(t=e.substring(e.indexOf("page:")+"page:".length)),t}function g(e,t,n,o,i,r){return new Promise((function(s,u){console.log("----jumpWithSuperPage---",e,t,n,o);var l=h(e),c="refresh";o&&o.jumpPageOpenMode&&(c=o.jumpPageOpenMode);var p={jumpMode:c};if(a.a.setItem(l+"-jumpMode",JSON.stringify(p)),"popup"===c){var d=v(t,l,n,o,c,i,r),f=b(o,t,l,n,c,i,r);f._path=d,s(f)}else if("newTab"===c){var m=v(t,l,n,o,c,i,r);window.open(m),s()}else{var g={pageCode:l,customSystem:t.code,jumpMode:c,buttonCode:r,ids:i?i.join(","):""};void 0!==o.isNeedId&&null!==o.isNeedId&&!0!==o.isNeedId||n&&(g.id=n);var y=o.paramStoreId;y&&""!==y&&(g["paramStoreId"]=y);var _=v(t,l,n,o,c,i,r);g._path=_,s(g)}}))}function b(e,t,n,o,a,i,r){var s={};e&&(s.jumpPageTitle=e.jumpPageTitle,s.jumpPageWidth=e.jumpPageWidth,s.jumpPageHeight=e.jumpPageHeight,s.valueMappings=e.valueMappings,s.updateValueEvent=e.updateValueEvent);var u=!1;return"undefined"!==typeof t.standard&&(u=!t.standard),s.pageCode=n,void 0!==e.isNeedId&&null!==e.isNeedId&&!0!==e.isNeedId||o&&(s.dataId=o),s.isDsc=u,s.paramStoreId=e.paramStoreId,s.jumpMode=a,s.ids=i,s.buttonCode=r,s}function v(e,t,n,o,a,i,r){var s=Object(u["b"])(e.frontendUrl),l=s+"/#/dsc-full-screen/page?customSystem="+e.code+"&pageCode="+t+"&jumpMode="+a;return m(n,l,o,i,r)}function y(e){var t=a.a.getItem(e);return _(t)}function _(e){var t="";if(e){var n=JSON.parse(e),o=Object.keys(n);console.log("analysisAdditionalParameterWithMap--Object.keys(additionalParameterMap)=",o);for(var a=0;a<o.length;a++)""!==t&&(t+="&"),t+=o[a],t+="=",t+=n[o[a]]}return t}function w(e,t,n,o,a,i){if(e&&null!==e&&o&&null!==o&&n&&null!==n&&n.valueMappings){var r=e;Array.isArray(e)&&e.length>0&&(r=e[0]);var u=n.valueMappings;u.forEach((function(e){var n=e.source,u=Object(s["c"])(r,n),l="__";void 0!==u&&null!==u||(n&&t&&n.indexOf(".")>0&&(n=t+l+n),u=Object(s["c"])(r,n));var c=e.target;void 0!==i&&!0===i&&c&&a&&c.indexOf(".")>0&&(c=a+l+c),Object(s["e"])(o,c,u)}))}}},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(o){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(o.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f809:function(e,t,n){"use strict";e.exports=function(e){e||(e={}),"string"===typeof e&&(e={cookie:e}),void 0===e.cookie&&(e.cookie="");var t={getItem:function(t){for(var n=e.cookie.split(/;\s*/),o=0;o<n.length;o++){var a=n[o].split("="),i=decodeURIComponent(a[0]);if(i===t)return decodeURIComponent(a[1])}},setItem:function(t,n,o){if("string"!==typeof t||"string"!==typeof n)return!1;o||(o={});var a=encodeURIComponent(t)+"="+encodeURIComponent(n);return o.hasOwnProperty("expires")&&(a+="; expires="+o.expires),o.hasOwnProperty("path")&&(a+="; path="+o.path),o.hasOwnProperty("domain")&&(a+="; domain="+o.domain),o.secure&&(a+="; secure"),e.cookie=a,a},removeItem:function(t){e.cookie=t+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},clear:function(){for(var n=e.cookie.split(/;\s*/),o=0;o<n.length;o++)t.removeItem(decodeURIComponent(n[o].split("=")[0]))}};return t}},f893:function(e,t,n){e.exports={default:n("f921"),__esModule:!0}},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},fa99:function(e,t,n){n("0293"),e.exports=n("584a").Object.getPrototypeOf},fb15:function(e,t,n){"use strict";var o;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=o[1]));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("super-page-component",{attrs:{code:e.code,"data-id":e.dataId,"task-id":e.taskId,"page-setting":e.pageSetting,preview:e.preview,"is-dsc":e.isDsc},on:{"update-value":e.updateValues}})],1)},i=[],r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("widget-page",{attrs:{"page-code":e.code,"data-id":e.dataId,"task-id":e.taskId,"page-setting":e.pageSetting},on:{"update-value":e.updateValues}})],1)},s=[],u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"widget-page"},[e.pageSettingList&&null!==e.pageSettingList&&e.pageSettingList.length>0&&!0===e.isShowPage?e._l(e.pageSettingList,(function(t,o){return n("el-row",{key:o},[e._l(t.colList,(function(t,o){return[n("el-col",{key:o,class:{placeholder:"placeholder"===t.baseSetting.type||"enter"===t.baseSetting.type},attrs:{span:t.options&&t.options.colWidth?t.options.colWidth:24}},["tab"===t.baseSetting.type?n("tab-page",{attrs:{"col-setting":t,"data-id":e.dataId,"task-id":e.taskId,"page-code":e.pageCode},on:{"update-value":e.updateValues}}):n("widget-col-page",{attrs:{col:t,"data-id":e.dataId,"task-id":e.taskId,"page-code":e.pageCode,"field-permissions":e.fieldPermissions},on:{"update-value":e.updateValues,export:e.exportReport,"prohibi-edit":e.fnProhibitToEdit}})],1)]}))],2)})):e._e()],2)},l=[],c=n("546e"),p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-tabs",{attrs:{type:"card"},on:{"tab-click":function(t){return e.handleClick(t,e.colSetting.baseSetting.clickEvent)}},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.colSetting.options.tabContent,(function(t){return n("el-tab-pane",{key:t.code,attrs:{label:t.label,name:t.code}},[n("widget-tab-pane-page",{attrs:{"page-code":e.pageCode,"data-id":e.dataId,"one-tab-content":t.list?t.list:[],"workflow-id":e.workflowId,"tab-code":t.code,"task-id":e.taskId},on:{"update-value":e.updateValues}})],1)})),1)],1)},d=[],f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.pageSettingList&&null!==e.pageSettingList&&e.pageSettingList.length>0?e._l(e.pageSettingList,(function(t,o){return n("el-row",{key:o},[e._l(t.colList,(function(t,o){return[n("el-col",{key:o,class:{placeholder:"placeholder"===t.baseSetting.type||"enter"===t.baseSetting.type},attrs:{span:t.options&&t.options.colWidth?t.options.colWidth:24}},["tab"===t.baseSetting.type?n("sub-tab-page",{attrs:{"col-setting":t,"workflow-id":e.workflowId,"data-id":e.dataId,"task-id":e.taskId,"page-code":e.pageCode},on:{"update-value":e.updateValues}}):n("widget-col-page",{attrs:{col:t,"data-id":e.dataId,"workflow-id":e.workflowId,"task-id":e.taskId,"page-code":e.pageCode,"tab-code":e.tabCode,"field-permissions":e.fieldPermissions},on:{"update-value":e.updateValues,"prohibi-edit":e.fnProhibitToEdit}})],1)]}))],2)})):e._e()],2)},m=[],h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.colSetting.options.tabContent,(function(t){return n("el-tab-pane",{key:t.code,attrs:{label:t.label,name:t.code}},[n("widget-sub-tab-pane-page",{attrs:{"page-code":e.pageCode,"data-id":e.dataId,"one-tab-content":t.list?t.list:[],"workflow-id":e.workflowId,"task-id":e.taskId},on:{"update-value":e.updateValues}})],1)})),1)],1)},g=[],b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.pageSettingList&&null!==e.pageSettingList&&e.pageSettingList.length>0?e._l(e.pageSettingList,(function(t,o){return n("el-row",{key:o},[e._l(t.colList,(function(t,o){return[n("el-col",{key:o,class:{placeholder:"placeholder"===t.baseSetting.type||"enter"===t.baseSetting.type},attrs:{span:t.options&&t.options.colWidth?t.options.colWidth:24}},[n("widget-col-page",{attrs:{col:t,"data-id":e.dataId,"workflow-id":e.workflowId,"task-id":e.taskId,"page-code":e.pageCode,"field-permissions":e.fieldPermissions},on:{"update-value":e.updateValues,"prohibi-edit":e.fnProhibitToEdit}})],1)]}))],2)})):e._e()],2)},v=[],y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.colStyle},["button"===e.col.baseSetting.type?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.permission,expression:"permission"}],attrs:{disabled:e.preventReclick,size:e.col.options.buttonSize?e.col.options.buttonSize:"small",type:e.col.options.buttonType?e.col.options.buttonType:"",icon:e.col.options.buttonIcon,plain:!!e.col.options.buttonPlain&&e.col.options.buttonPlain,round:!!e.col.options.buttonRound&&e.col.options.buttonRound,circle:!!e.col.options.buttonCircle&&e.col.options.buttonCircle},on:{click:function(t){return e.clickButtonEvent(e.col,e.system)}}},[e._v("\n "+e._s(e.$t(e.col.baseSetting.label))+"\n ")]):"listView"===e.col.baseSetting.type?n("list-page",{attrs:{"col-setting":e.col,"page-code":e.pageCode,"tab-code":e.tabCode},on:{"update-value":e.updateValues,"prohibi-edit":e.fnProhibitToEdit}}):"formView"===e.col.baseSetting.type?n("form-page",{ref:"formView",attrs:{"col-setting":e.col,"data-id":e.dataId,"task-id":e.taskId,"page-code":e.pageCode,"tab-code":e.tabCode},on:{"update-value":e.updateSetValues,"prohibi-edit":e.fnProhibitToEdit}}):"chartQuery"===e.col.baseSetting.type?n("chart-query-page",{attrs:{"query-code":e.col.baseSetting.modelCode,"is-initial-query":e.col.baseSetting.isInitialQuery,"col-setting":e.col,"page-code":e.pageCode},on:{export:e.exportReport,"prohibi-edit":e.fnProhibitToEdit}}):"chartView"===e.col.baseSetting.type?n("chart-view-page",{attrs:{"chart-view-code":e.col.baseSetting.modelCode,"is-initial-query":e.col.baseSetting.isInitialQuery,"is-need-custom-style":e.col.baseSetting.isNeedCustomStyle,"is-need-export":e.col.baseSetting.isNeedExport,"page-code":e.pageCode},on:{"prohibi-edit":e.fnProhibitToEdit}}):"customComponent"===e.col.baseSetting.type?n(e.col.baseSetting.customComponentName,{ref:e.col.baseSetting.customComponentName+"_CustomComponent",tag:"component",on:{"prohibi-edit":e.fnProhibitToEdit,"refresh-tab":e.refreshTab}}):e.isWorkflowHistory?[e.workflowId&&null!==e.workflowId?["workflowHistoryList"===e.col.baseSetting.type?n("workflow-history-list",{ref:"historyList",attrs:{"workflow-id":e.workflowId}}):"workflowHistoryGraph"===e.col.baseSetting.type?n("workflow-history",{ref:"historyGraph",attrs:{id:e.workflowId}}):e._e()]:[e._v("\n "+e._s(e.$t("superPage.unSubmitProcess"))+"\n ")]]:"label"===e.col.baseSetting.type?n("div",[e._v("\n "+e._s(e.col.baseSetting.label)+"\n ")]):"placeholder"===e.col.baseSetting.type||"enter"===e.col.baseSetting.type?n("div"):"groupTag"===e.col.baseSetting.type?n("group-tag",{attrs:{label:e.col.baseSetting.label}}):e._e()],2)},_=[],w=n("2f62"),P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showPage?n("div",[e.colSetting.options.buttonGroup?n("button-group",{attrs:{"button-groups":e.colSetting.options.buttonGroup,"permission-prefix":e.permissionPrefix,"additional-param-map":e.additionalParamMap,"list-toolbar-list":e.listToolbarList,"button-area-custom-component-arr":e.colSetting.options.buttonAreaCustomComponentArr,position:"list","search-form-info":e.searchFormInfo,"page-code":e.pageCode,selections:e.selections},on:{refresh:e.refreshList,searchGridData:e.searchGridData,click:e.clickListButton,getSystemRef:e.getSystemRef}}):n("div",[n("list-toolbar-page",{attrs:{"list-toolbar-list":e.listToolbarList,"page-code":e.pageCode},on:{searchGridData:e.searchGridData}}),n("page-custom-component",{attrs:{"button-area-custom-component-arr":e.colSetting.options.buttonAreaCustomComponentArr,"page-code":e.pageCode},on:{getSystemRef:e.getSystemRef}})],1),n("input",{ref:"_selectFile_",staticStyle:{display:"none"},attrs:{type:"file",name:"_selectFile_"},on:{change:function(t){return e.doImport(e.button)}}}),n("super-grid",{ref:"grid",attrs:{url:e.urlToListData,options:e.options,code:e.listCode,"search-form-info":e.searchFormInfo},on:{select:e.select,"select-all":e.select,setSearchType:e.closeSearch}}),e.isShowPageDialog?n("super-page-dialog",{attrs:{preview:e.isPreview,"dev-mode":e.pageDevMode,"jump-page-setting":e.jumpPageSetting},on:{"update-value":e.updateValues,close:e.closePage}}):e._e()],1):e._e()},C=[],O=n("51ae"),S=n("8bbf"),k=n.n(S),T=n("3c3b"),E=n("06e7"),N=n("65f1"),D={callBeforeClickButton:function(e,t,n){var o=!0;if(e){var a=e[t+"__beforeClick"];a&&(o=a.call(this,n),void 0===o&&(o=!0))}return o},callAfterClickButton:function(e,t,n){if(e){var o=e[t+"__afterClick"];o&&o.call(this,n)}},callFormItemEvent:function(e,t,n,o){if(t&&e&&e.customEvents){var a=this.getEventFunction(e,"customEvents",t);if(a){var i={params:e.additionalParamMap,entity:n};return o&&(i.eventParams=o),a.call(this,i)}}},getEventFunction:function(e,t,n){if(e&&e[t]&&e[t][n]&&"function"===typeof e[t][n])return e[t][n]}},M=D,x={refreshForm:function(e){this.$refs.superForm&&e&&this.$refs.superForm.refresh(e)},refreshList:function(){this.$refs.grid&&this.$refs.grid.refresh()},refreshSubTable:function(e,t){this.$refs.superForm&&e&&t&&this.$refs.superForm.refreshSubTable(e,t)}},j=x,I=n("18ce"),R=n("3ff5"),F=n("8722"),B=n("8217"),$=n("9696");function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U={name:"ListPage",components:{ButtonGroup:T["a"],listToolbarPage:R["a"],pageCustomComponent:F["a"]},props:{colSetting:{type:Object,default:null},pageCode:{type:String,default:null},tabCode:{type:String,default:null}},data:function(){var e=k.a.prototype.baseURL,t=this.colSetting.baseSetting.modelDataTableCode,n=Object(B["c"])(this.pageCode,t+"_isProcess");null===n&&void 0===n&&(n=!1);var o=Object(B["c"])(this.pageCode,"_systemInfo"),a=Object(B["c"])(this.pageCode,"_pageIsDsc");console.log("list-page--_pageIsDsc--isSqlQuery=",a,"this.pageCode=",this.pageCode);var i,r=Object(B["c"])(this.pageCode,"_pageCode"),s=this.getUrlToListData(o),u=this.colSetting.baseSetting.modelDataTableEntityName,l=this.colSetting.baseSetting.beanName;o&&(e=Object($["a"])(o.backendUrl),i=o.code+"."+r+"."+this.colSetting.baseSetting.componentCode);var c=this.colSetting.options.listFilterCondition;"undefined"===typeof c&&(c=[]);var p=Object(B["c"])(this.pageCode,"_pathQuery"),d=Object(B["c"])(this.pageCode,"_pageHeight"),f={isSql:a,extraParam:{entityName:u,beanName:l,functionCode:i+".list",tableName:t},initSearchForm:c,lineEditOptions:{aftersaveIsCreateRow:!1,autoSave:!1,enter:this.enterSave,esc:this.escRestorRow},multiple:this.colSetting.options.isListViewMultiple,showIndex:this.colSetting.options.isListViewShowSerialNumber,pageSizes:this.colSetting.options.listViewPageNum,initSearch:this.colSetting.options.isListViewDefaultQuery,resizeHeight:this.resizeListHeight,pageCode:this.pageCode,pageHeight:d,additionalParamMap:p};o&&(f.extraParam.systemCode=o.code,f.system=o),this.colSetting.options.sortFields?(f.initSortInfo=[],this.colSetting.options.sortFields.forEach((function(e){var t={order:e.sortOrder};t.prop=a?e.propDbName:e.sortColumn,f.initSortInfo.push(t)}))):this.colSetting.options.listViewOrderProp&&this.colSetting.options.listViewOrderMode&&(f.initSortInfo={order:this.colSetting.options.listViewOrderMode},f.initSortInfo.prop=a?this.colSetting.options.listViewOrderPropDbName:this.colSetting.options.listViewOrderProp),this.colSetting.options.isWithDataPermission&&(f.isWithDataPermission=this.colSetting.options.isWithDataPermission);var m=this.colSetting.options.listViewTreeTableSetting;if(m){var h,g,b=m.parentProp;if(b&&b.indexOf("~~")>0&&(h=b.substring(0,b.indexOf("~~")),g=b.substring(b.indexOf("~~")+2)),f.parentProp=a?g:h,f.parentProp){f.extraParam.listViewTreeSetting=JSON.stringify(m);var v=m.lazy;f.lazy=void 0===v||null===v||v;var y=m.defaultExpandAll;f.defaultExpandAll=void 0!==y&&null!==y&&y,a&&(f.subRowUrl=e+"/dsc/commons/list-subs")}}var _=Object(B["c"])(this.pageCode,"_pagePreview");void 0!==_&&!0===_&&(f.loadBeforeSend=function(){return!1});var w=Object(B["c"])(this.pageCode,"_pageDevMode");null!==w&&void 0!==w||(w=!1);var P,C="";this.colSetting.options&&this.colSetting.options.formNoRuleCode&&(C=this.colSetting.options.formNoRuleCode),this.colSetting.options&&this.colSetting.options.listToolbarList&&(P=this.colSetting.options.listToolbarList);var O,S=this.colSetting.baseSetting.modelCode,T="";this.colSetting.options&&this.colSetting.options.importRuleCode&&(T=this.colSetting.options.importRuleCode),f.isWorkflowEntity=n;var E=Object(B["c"])(this.pageCode,"_pageEvents");if(E){O=E.listEvents,O&&O[S+"__beforeListLoad"]&&(f.loadBeforeSend=O[S+"__beforeListLoad"]),O&&O[S+"__onListLoad"]&&(f.gridDataLoaded=O[S+"__onListLoad"]),O&&O[S+"__afterListLoad"]&&(f.gridComplete=O[S+"__afterListLoad"]);var N=E.customEvents;N&&(f.eventCallBack=N,this.colSetting.options.styleCustomMethod&&""!==this.colSetting.options.styleCustomMethod&&N&&N[this.colSetting.options.styleCustomMethod]&&(f.rowStyleRender=N[this.colSetting.options.styleCustomMethod]))}return{listToolbarList:P,urlToListData:s,options:f,operationButtons:this.colSetting.options.operationButtons,selections:null,listCode:S,permissionPrefix:i,system:o,tableName:this.colSetting.baseSetting.modelDataTableCode,entityName:u,beanName:l,myJsContent:null,isSqlQuery:a,judgeHeavyList:this.colSetting.options.judgeHeavyList,listViewImportDuplicate:this.colSetting.options.listViewImportDuplicate,buttonRestfulApiPath:null,deleteLogicSetting:this.colSetting.options.deleteLogicSetting,baseURL:e,autoSetValueData:null,dataConversionRule:null,formNoRuleCode:C,importRuleCode:T,isPreview:_,button:null,logSettingText:null,additionalParamMap:null,dataTypeMap:null,showPage:!1,operationButtonObj:{},listEvents:O,pageDevMode:w,isShowPageDialog:!1,jumpPageSetting:null,editRowData:null,searchIsPopup:!1,customEvents:E?E.customEvents:null,listToolbarFormData:null,isWorkflowEntity:n,searchFormInfo:{data:{}}}},watch:{jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;E["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o,e),t.$set(t,"selections",null),E["a"].$off(n+"-close-dialog")}))}}}},created:function(){var e=this;this.getDataTypeMap().then((function(){var t=e.colSetting.baseSetting.modelDataTableCode,n=Object(B["c"])(e.pageCode,t+"_isProcess");e.isWorkflowEntity=(null!==n||void 0!==n)&&n,e.setOperationButtons()}));var t=Object(B["c"])(this.pageCode,"additionalParamMap");t&&(this.additionalParamMap=t,this.$set(this.options,"additionalParamMap",this.additionalParamMap));var n=this;E["a"].$on(n.pageCode+"-close-component-page-dialog",(function(){n.$refs.grid&&n.$refs.grid.closePageDialog()})),E["a"].$on(n.pageCode+"-refresh-tab",(function(e){n.$refs.grid&&void 0!==e&&e===n.tabCode&&n.$refs.grid.refresh()}))},beforeDestroy:function(){E["a"].$off(this.pageCode+"-close-component-page-dialog"),E["a"].$off(this.pageCode+"-refresh-tab")},methods:A(A(A(A(A({},O["a"]),N["a"]),M),j),{},{getSystemRef:function(e,t){if(e||(e="grid"),t||(t="refresh"),this.$refs[e]){var n=this.$refs[e];n&&"refresh"===t&&n.refresh()}return 123},getDataTypeMap:function(){var e=this;return new Promise((function(t,n){e.isPreview?(e.showPage=!0,t()):e.getDataTypeMapRequest(e.system,e.tableName).then((function(n){e.dataTypeMap=n.dataTypeMap,Object(B["d"])(e.pageCode,e.tableName+"_isProcess",n.isProcess),console.log(I["a"]),e.showPage=!0,t()})).catch((function(){n(new Error("获得数据表:"+e.tableName+"的字段类型集合失败"))}))}))},clickImport:function(){this.isPreview||this.$refs._selectFile_.click()},doImport:function(){var e=this.button;if(e){var t=this;if(!this.$refs._selectFile_)return;if(""===this.$refs._selectFile_.value||null===this.$refs._selectFile_.value)return;var n=this.$refs._selectFile_.files[0];n?(this.$refs._selectFile_.value=null,t.doImportFinally(t.system,e.restfulApiPath,t.tableName,t.entityName,t.myJsContent,e,t.listViewImportDuplicate,n,t.judgeHeavyList,t.formNoRuleCode,t.importRuleCode,t.listCode,t.beanName)):this.$message({showClose:!0,type:"warning",message:this.$t("superPageMessage.noFileSelected")})}},clickListButton:function(e){var t=this;if(!t.isPreview&&e){var n=this.callBeforeClickButton(this.listEvents,this.listCode+"__"+e.code,{params:this.additionalParamMap,entity:this.selections,listToolbarFormData:this.listToolbarFormData,button:e,formNoRuleCode:this.formNoRuleCode,importRuleCode:this.importRuleCode});if(!n)return;var o=[];if(t.selections&&null!==t.selections&&(o=[].concat(t.selections)),e.code&&"search"===e.code)return void this.clickSearchButton(e);if(e.code&&"import"===e.code)return this.button=e,void this.clickImport();if(e.code&&"lineEditCreate"===e.code)return void this.createRow(e);var a=[];a=t.getSelectionIds(),t.canExecuteWithMore(e.executableData,o,t.isSqlQuery,this.tableName,this.additionalParamMap).then((function(n){if(!0===n.canExecute){"lineEditDelete"!==e.code&&(o=n.entities);var i=!1;e&&"undefined"!==typeof e.jsContent&&(i=e.jsContent),t.myJsContent=i,t.buttonRestfulApiPath=e.restfulApiPath,e.autoSetValueData&&(t.autoSetValueData=e.autoSetValueData),e.dataConversionRule&&(t.dataConversionRule=e.dataConversionRule),t.clickButton(e,t.system,t.listCode,a,t.tableName,t.entityName,i,o,t.deleteLogicSetting,t.formNoRuleCode,t.importRuleCode,t.beanName,t.isWorkflowEntity)}}))}},clickSearchButton:function(e){var t=this.$t("superPageMessage.cancelSearchButtonLabel"),n=this.$t("superPageMessage.searchButtonLabel"),o=this.$refs.grid.getQueryMode();"popup"===o?(this.$refs.grid.showSearchForm(),this.searchIsPopup||(e.label=n)):e.label&&e.label!==n?(this.$refs.grid.cancelSearch(),e.label=n):(this.$refs.grid.showSearchForm(),this.searchIsPopup||(e.label=t))},closeSearch:function(e){this.searchIsPopup=e},createRow:function(e){var t=this;this.$refs.grid.createRow(this.listCode).then((function(n){t.callAfterClickButton(t.listEvents,t.listCode+"__"+e.code,{params:t.additionalParamMap,row:n,listToolbarFormData:t.listToolbarFormData})}))},saveLineEditRow:function(e,t,n,o,a,i){var r=this,s=this.operationButtonObj.lineEditSave,u=this;return new Promise((function(t,n){r.getSaveFormRequest(u.system,u.buttonRestfulApiPath,"","",u.tableName,e,u.entityName,u.myJsContent,u.formNoRuleCode,u.dataConversionRule,u.autoSetValueData,"/dsc/commons",u.operationButtonObj&&u.operationButtonObj.lineEditSave?u.operationButtonObj.lineEditSave.logSetting:null,o,i,s.taskMap,null,a,u.beanName,u.isWorkflowEntity,s.functionCode).then((function(e){t(e?e.entity:{})})).catch((function(e){n(e)}))}))},getUrlToListData:function(e){var t=this.colSetting.options.urlToListData;return e&&!1===e.standard&&!t&&(t=this.baseURL+"/dsc/commons/list"),t&&(t=this.getRealRestApiPath(t,e)),t},select:function(e,t){this.selections=e},setOperationButtons:function(){var e=this;if(this.operationButtonObj={},this.operationButtons){var t=!1,n=Object(B["c"])(this.pageCode,"_pageDevMode"),o=Object(B["c"])(this.pageCode,"_pagePreview");(n&&!0===n||o&&!0===o)&&(t=!0);var a=[],i={};for(var r in this.operationButtons.forEach((function(n){var o={},r=Object.assign({},n);if(n.code&&"lineEditDelete"===n.code&&!n.type&&(r.type="danger"),r.elementType="el-button",r.plain=n.isPlain,r.round=n.isRound,r.circle=n.isCircle,t||(r.permission=e.permissionPrefix+"."+n.code),o.props=r,o.onClick=e.getOperationButtonClickEvent(n),n.groupName&&""!==n.groupName){var s=n.groupName;if(i[s]){var u=i[s];u.push(o)}else{var l=[];l.push(o),i[s]=l}}else a.push(o)})),i){var s={};s.label=r,s.isGroup=!0,s.buttons=i[r],a.push(s)}this.options.operations||(this.options.operations={}),this.options.operations.operation=a}},getOperationButtonClickEvent:function(e){var t=function(){};return this.operationButtonObj[e.code]=e,"lineEditSave"===e.code?t=this.saveRow:"restoreEdit"===e.code?t=this.restoreRow:"lineEditUpdate"===e.code?t=this.editRow:"lineEditDelete"===e.code?t=this.deleteRow:"viewDetail"===e.code&&(t=this.viewDetailLineEdit),t},enterSave:function(e,t,n,o){this.saveRow(null,null,n,t,e)},escRestorRow:function(e,t,n,o){this.restoreRow(null,null,n,t,e)},beforeSaveRow:function(e,t,n,o,a,i){var r=this.operationButtonObj.lineEditSave;return this.callBeforeClickButton(this.listEvents,this.listCode+"__"+r.code,{params:a,row:e,columns:t,dataTypeMap:n,dynamicColumnInfo:o,mainDefaultValueColumns:i})},saveRow:function(e,t,n,o,a){var i=this,r=this.operationButtonObj.lineEditSave;this.$set(this.options.lineEditOptions,"beforeSave",this.beforeSaveRow);var s=[];s.push(n),this.canExecuteWithMore(r.executableData,s,this.isSqlQuery,this.tableName,this.additionalParamMap).then((function(s){!0===s.canExecute&&(r.autoSetValueData&&(i.autoSetValueData=r.autoSetValueData),i.$set(i.options.lineEditOptions,"saveRow",i.saveLineEditRow),i.$refs.grid.saveRow(a,i.listCode).then((function(){i.callAfterClickButton(i.listEvents,i.listCode+"__"+r.code,{params:i.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a})})))}))},restoreRow:function(e,t,n,o,a){var i=this.callBeforeClickButton(this.listEvents,this.listCode+"__restoreEdit",{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a});i&&(this.$refs.grid.restoreRow(a,this.listCode),this.callAfterClickButton(this.listEvents,this.listCode+"__restoreEdit",{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a}))},editRow:function(e,t,n,o,a){var i=this,r=this.operationButtonObj.lineEditUpdate,s=this.callBeforeClickButton(this.listEvents,this.listCode+"__"+r.code,{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a});if(s){this.editRowData=n;var u=[];u.push(n),this.canExecuteWithMore(r.executableData,u,this.isSqlQuery,this.tableName,this.additionalParamMap).then((function(s){if(!0===s.canExecute)if(r.jumpPage){var u;if(n&&n.id?u=n.id:n&&n.ID&&(u=n.ID),!u)return void i.$message({showClose:!0,type:"warning",message:i.$t("superPageMessage.pleaseSaveRow")});i.update(r.jumpPage,i.system,u,r)}else i.$refs.grid.editRow(a,i.listCode),i.callAfterClickButton(i.listEvents,i.listCode+"__"+r.code,{params:i.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a})}))}},deleteRow:function(e,t,n,o,a){var i=this,r=this.operationButtonObj.lineEditDelete,s=this.callBeforeClickButton(this.listEvents,this.listCode+"__"+r.code,{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a});if(s)if(n.id||n.ID){this.buttonRestfulApiPath=r.restfulApiPath;var u=!1;r&&"undefined"!==typeof r.jsContent&&(u=r.jsContent),this.myJsContent=u;var l=[];l.push(n),this.canExecuteWithMore(r.executableData,l,this.isSqlQuery,this.tableName,this.additionalParamMap).then((function(e){if(!0===e.canExecute){var t=[];n.id?t.push(n.id):t.push(n.ID),i.delete(t,i.system,i.buttonRestfulApiPath,i.tableName,i.entityName,i.myJsContent,r,i.deleteLogicSetting,null,i.beanName,i.isWorkflowEntity)}}))}else this.restoreRow(e,t,n,o,a),this.callAfterClickButton(this.listEvents,this.listCode+"__"+r.code,{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a})},viewDetailLineEdit:function(e,t,n,o,a){var i=this.operationButtonObj.viewDetail,r=this.callBeforeClickButton(this.listEvents,this.listCode+"__"+i.code,{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a});r&&this.viewDetail(i.jumpPage,this.system,n.id?n.id:n.ID?n.ID:null,i,n)},getSelectionIds:function(){var e=[];return this.selections&&null!==this.selections&&this.selections.forEach((function(t){e.push(t.id?t.id:t.ID?t.ID:null)})),e},searchGridData:function(e,t,n,o){this.listToolbarFormData=e;var a=[];if(e)for(var i in e){var r=e[i];if(null!==r&&void 0!==r&&""!==r)if(r instanceof Array){if(r.length>0){for(var s=[],u=0;u<r.length;u++){var l={};l.leftBracket=0===u?"((":"(",l.propName=i,l.propDbName=i,l.dataType=n[i]?n[i]:null,l.operator="EQ",l.propValue=r[u],u===r.length-1?(l.rightBracket="))",l.joinSign="and"):(l.rightBracket=")",l.joinSign="or"),s.push(l)}a=a.concat(s)}}else if(o&&t[i+"~~year"]&&t[i+"~~month"]){if("year"===o){var c=this.getFieldParamByYearOrMonth(i,r,n[i],"YEAR");a.push(c)}else if("month"===o){var p=this.getFieldParamByYearOrMonth(i,r,n[i],"MONTH");a.push(p)}}else if("year"===t[i+"~~year"]){var d=this.getFieldParamByYearOrMonth(i,r,n[i],"YEAR");a.push(d)}else if("month"===t[i+"~~month"]){var f=this.getFieldParamByYearOrMonth(i,r,n[i],"MONTH");a.push(f)}else{var m={leftBracket:"("};m.propName=i,m.propDbName=i,m.dataType=n[i]?n[i]:null,m.operator="EQ",m.propValue=r,m.rightBracket=")",m.joinSign="and",a.push(m)}}this.$refs.grid.refresh(null,null,a)},getFieldParamByYearOrMonth:function(e,t,n,o){var a={leftBracket:"("};return a.propName=e,a.propDbName=e,a.dataType=n||null,a.dateFormatType=o,a.operator="EQ",a.startValue=t,a.endValue=t,a.propValue=t,a.rightBracket=")",a.joinSign="and",a},resizeListHeight:function(e){var t=Object(B["c"])(this.pageCode,"_pageHeight");if(void 0===t||null===t||""===t)return e.height-20}})},W=U,q=n("2877"),J=Object(q["a"])(W,P,C,!1,null,"68e5ac4e",null),G=J.exports,H=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isWorkflowForm?n("workflow-form-page",{ref:"workflowFormPage",attrs:{"col-setting":e.colSetting,"data-id":e.dataId,"task-id":e.taskId,"tab-code":e.tabCode,"email-template-code":e.emailTemplateCode,"page-code":e.pageCode}}):n("common-form-page",{ref:"formPage",attrs:{"col-setting":e.colSetting,"data-id":e.dataId,"page-code":e.pageCode,"tab-code":e.tabCode},on:{"update-value":e.updateSetValues}})],1)},K=[],Q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowForm?[e.isShowBuuton&&e.buttoGroups&&e.refreshButton?n("button-group",{attrs:{"button-groups":e.buttoGroups,"permission-prefix":e.permissionPrefix,"table-name":e.tableName,"button-area-custom-component-arr":e.colSetting.options.buttonAreaCustomComponentArr,position:"form","page-code":e.pageCode,"get-form-data":e.saveFormData,"form-data-fun":e.getFormData},on:{refresh:e.refreshForm,click:e.clickCommonFormButton,"prohibi-edit":e.fnProhibitToEdit}}):e._e(),n("form-head",{attrs:{"form-title":e.formTitle,"form-no":e.formNo,"form-no-label":e.formNoLabel}}),e.formViewId?[e.isInitDscFormData?n("super-form",{ref:"superForm",attrs:{"form-view-id":e.formViewId,"path-query":e.pathQuery,"is-page-info":e.isPreview?e.isPreview:!!e.pageDevMode&&e.pageDevMode,value:e.formData?e.formData:{},options:e.formOptions},on:{"update-value":e.updateSetValues,"shou-button":e.reviewButton}}):n("super-form",{ref:"superForm",attrs:{"form-view-id":e.formViewId,"path-query":e.pathQuery,"is-page-info":e.isPreview?e.isPreview:!!e.pageDevMode&&e.pageDevMode,options:e.formOptions},on:{"update-value":e.updateSetValues,"shou-button":e.reviewButton}})]:[n("super-form",{ref:"superForm",attrs:{"form-view-code":e.formViewCode,"form-view-version":e.formViewVersion,"is-page-info":e.isPreview?e.isPreview:!!e.pageDevMode&&e.pageDevMode,value:e.formData?e.formData:{},options:e.formOptions},on:{"update-value":e.updateSetValues,"shou-button":e.reviewButton}})]]:e._e(),e.isShowPageDialog?n("super-page-dialog",{attrs:{preview:e.isPreview,"dev-mode":e.pageDevMode,"jump-page-setting":e.jumpPageSetting},on:{"update-value":e.updateValues,close:e.closePage}}):e._e()],2)},z=[],Y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"formHead"},[e.formTitle&&""!==e.formTitle&&null!==e.formTitle?n("div",{staticClass:"formTitle"},[e._v("\n "+e._s(e.formTitle)+"\n ")]):e._e(),e.formNo?n("span",{staticStyle:{"font-size":"18px",position:"relative","margin-left":"75%"}},[e._v(e._s(e.formNoLabel&&null!==e.formNoLabel&&""!==e.formNoLabel.trim()?e.formNoLabel+":":e.$t("superPage.formNo"))+e._s(e.formNo))]):e._e()])])},X=[],Z={name:"FormHead",components:{},props:{formTitle:{type:String,default:null},formNo:{type:String,default:null},formNoLabel:{type:String,default:null}}},ee=Z,te=(n("0861"),Object(q["a"])(ee,Y,X,!1,null,"b94bf09a",null)),ne=te.exports,oe=n("d7e1");function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){return se="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}var ue={name:"CommonFormPage",components:{ButtonGroup:T["a"],formHead:ne},props:{colSetting:{type:Object,default:null},dataId:{type:Number,default:null},pageCode:{type:String,default:null},tabCode:{type:String,default:null}},data:function(){var e=this.colSetting.baseSetting.modelDataTableEntityName,t=this.colSetting.baseSetting.beanName,n=Object(B["c"])(this.pageCode,"_systemInfo"),o=Object(B["c"])(this.pageCode,"_pageIsDsc"),a=Object(B["c"])(this.pageCode,"_pageCode"),i=Object(B["c"])(this.pageCode,"_pathQuery"),r=Object(B["c"])(this.pageCode,"_pagePreview");void 0===r&&(r=!1);var s,u=Object(B["c"])(this.pageCode,"_pageDevMode");null!==u&&void 0!==u||(u=!1),n&&(s=n.code+"."+a+"."+this.colSetting.baseSetting.componentCode);var l=this.colSetting.options.buttonGroup;l||(l=[]);var c="";this.colSetting.options&&this.colSetting.options.formNoRuleCode&&(c=this.colSetting.options.formNoRuleCode);var p=!1;this.colSetting.options&&this.colSetting.options.isBatchProcessing&&(p=this.colSetting.options.isBatchProcessing);var d=Object(B["c"])(this.pageCode,"_pageHeight"),f={isSql:o,pageCode:this.pageCode,pageHeight:d},m=this.isViewDetail();m&&(f.fieldPermissions=[{name:"all_fields",canEdit:!1}]),f.devMode=u;var h=null;this.colSetting.baseSetting.modelVersion&&(h=parseInt(this.colSetting.baseSetting.modelVersion));var g=this.colSetting.baseSetting.modelCode,b=[],v=Object(B["c"])(this.pageCode,"_pageEvents");return v&&(b=v.formEvents),f.events=this.packageFormEvents(g),{formViewCode:g,formViewVersion:h,tableName:this.colSetting.baseSetting.modelDataTableCode,entityName:e,beanName:t,formTitle:this.colSetting.baseSetting.formTitle,formOptions:f,urlForView:this.colSetting.options.urlForView,formData:null,isShowForm:!1,formViewId:null,isInitDscFormData:!1,permissionPrefix:s,system:n,buttoGroups:l,isSqlQuery:o,formNoRuleCode:c,judgeHeavyList:this.colSetting.options.judgeHeavyList,notIdInitializationList:this.colSetting.options.notIdInitializationList,formNo:null,formNoLabel:this.colSetting.baseSetting.formNoLabel,isPreview:r,additionalParamMap:null,dataTypeMap:null,formEvents:b,pathQuery:i,pageDevMode:u,refreshButton:!0,ids:null,isBatchProcessing:p,isShowPageDialog:!1,jumpPageSetting:null,customEvents:v?v.customEvents:null,isShowBuuton:!0}},watch:{jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;E["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o,e),E["a"].$off(n+"-close-dialog")}))}}}},created:function(){this.getRealUrlForView();var e=Object(B["c"])(this.pageCode,"additionalParamMap");e&&(this.additionalParamMap=e,this.formOptions.additionalParamMap=e),this.pathQuery&&this.pathQuery.ids&&""!==this.pathQuery.ids&&("string"===typeof this.pathQuery.ids?this.ids=this.pathQuery.ids.split(","):"object"===se(this.pathQuery.ids)&&(this.ids=this.pathQuery.ids)),this.initDscFormData();var t=this;E["a"].$on(this.pageCode+"-close-component-page-dialog",(function(e){t.closeFormPageDialog(e,t)})),E["a"].$on(t.pageCode+"-refresh-tab",(function(e,n){t.$refs.superForm&&void 0!==e&&e===t.tabCode&&n&&t.$refs.superForm.refresh(n)}))},beforeDestroy:function(){E["a"].$off(this.pageCode+"-close-form-page-dialog"),E["a"].$off(this.pageCode+"-refresh-tab")},methods:ie(ie(ie(ie(ie({},O["a"]),oe["a"]),M),j),{},{updateSetValues:function(e,t,n){this.$emit("update-value",e,t,n)},clickCommonFormButton:function(e){var t=this;if(console.log("---clickCommonFormButton",e),!this.isPreview&&e){if("downloadTemplate"===e.code)return void this.downloadTemplate(this.system,e,this.tableName);var n=!0;"undefined"!==typeof e.isRequired&&(n=e.isRequired),"undefined"!==typeof e.isRequired||"back"!==e.code&&"exportForm"!==e.code||(n=!1),this.saveFormData(n).then((function(n){var o=t.callBeforeClickButton(t.formEvents,t.formViewCode+"__"+e.code,{params:t.additionalParamMap,entity:n,button:e,formNoRuleCode:t.formNoRuleCode});o&&t.canExecute(e.executableData,n,t.isSqlQuery,t.tableName,t.additionalParamMap).then((function(o){if(!0===o.canExecute){var a=o.entities;a&&a.length>0&&(n=a[0]);var i=!1;e&&"undefined"!==typeof e.jsContent&&(i=e.jsContent);var r=t.getNeedDeleteFileUuidS();t.clickFormButton(e,t.system,t.formViewCode,t.formViewVersion,t.tableName,n,t.entityName,i,t.formNoRuleCode,t.ids,t.isBatchProcessing,r,t.additionalParamMap,t.beanName)}}))}))}},getNeedDeleteFileUuidS:function(){if(this.$refs.superForm)return this.$refs.superForm.getNeedDeleteFileUuid()},getRealUrlForView:function(){this.urlForView&&(this.formOptions.urlForView=this.getRealRestApiPath(this.urlForView.url,this.system))},initDscFormData:function(){this.system&&!1!==this.system.standard||this.urlForView&&this.urlForView.url?this.getHighestFormViewId():this.getDscFormData()},saveFormData:function(e){var t=this;return new Promise((function(n,o){t.$refs.superForm?t.$refs.superForm.getModels(e).then((function(e){Object.keys(e).indexOf("validateErrorField")>=0&&delete e.validateErrorField,n(e)})):n()}))},getDscFormData:function(){var e=this,t=Object($["a"])(this.system.backendUrl);console.log("this.ids ",this.ids);var n=t+"/dsc/commons/gets",o={formViewCode:this.formViewCode,tableName:this.tableName,formNoRuleCode:this.formNoRuleCode,id:this.dataId,systemCode:this.system.code,functionCode:this.permissionPrefix+".get"};this.ids&&(o.ids=this.ids),this.notIdInitializationList&&(o.noIdAndTaskIdInitSetting=JSON.stringify(this.notIdInitializationList)),this.additionalParamMap&&(o.additionalParamMap=JSON.parse(JSON.stringify(this.additionalParamMap))),this.entityName&&(o.entityName=this.entityName),this.beanName&&(o.beanName=this.beanName),this.pathQuery&&this.pathQuery.taskId&&(o.taskId=this.pathQuery.taskId),n&&(this.isShowForm=!1,this.$http.post(n,o).then((function(t){t&&(e.formData=t.entity,e.formNo=t.formNo,Object(B["d"])(e.pageCode,"_formData",e.formData),e.formViewId=t.formViewId,e.dataId?Object(B["d"])(e.pageCode,"_isCreateformData",!1):Object(B["d"])(e.pageCode,"_isCreateformData",!0),e.dataTypeMap=t.dataTypeMap),e.isShowForm=!0,e.isInitDscFormData=!0})))},getHighestFormViewId:function(){var e=this,t=k.a.prototype.baseAPI+"/component/super-pages/forms/"+this.formViewCode;this.isShowForm=!1,this.$http.get(t).then((function(t){e.formViewId=t,e.isShowForm=!0}))},getFormData:function(){if(this.$refs.superForm)return this.$refs.superForm.getFormData()},fnProhibitToEdit:function(e){if(console.log("this.$refs.superForm",this.$refs.superForm),this.$refs.superForm)return this.$refs.superForm.fnProhibitToEdit(e)},refresMainTableFields:function(e){if(console.log("this.$refs.superForm",this.$refs.superForm),this.$refs.superForm)return this.reviewButton(e),this.$refs.superForm.refresMainTableFields(e)}})},le=ue,ce=Object(q["a"])(le,Q,z,!1,null,"2e28fd7e",null),pe=ce.exports,de=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowForm?[e.isShowBuuton&&e.colSetting.options.buttonGroup&&e.refreshButton?n("button-group",{attrs:{"button-groups":e.colSetting.options.buttonGroup,"permission-prefix":e.permissionPrefix,"is-task-input":e.isTaskInput,"workflow-button-component":e.workflowButtonComponent,"table-name":e.tableName,"task-name":e.currentActivityName,"button-area-custom-component-arr":e.colSetting.options.buttonAreaCustomComponentArr,position:"workflowForm","page-code":e.pageCode,"form-data-fun":e.getFormData,"get-form-data":e.saveWorkflowFormData},on:{refresh:e.refreshForm,workflowClick:e.clickWorkflowButtonOn,click:e.clickWorkflowExtensionButtonOn}}):e._e(),n("form-head",{attrs:{"form-title":e.formTitle,"form-no":e.formNo,"form-no-label":e.formNoLabel}}),e.formViewId&&e.isShow?n("super-form",{ref:"superForm",attrs:{"form-view-id":e.formViewId,"path-query":e.pathQuery,value:e.formData,"is-page-info":void 0!==e.isPreview&&null!==e.isPreview&&e.isPreview,options:e.formOptions},on:{"shou-button":e.reviewButton}}):e.isShow?n("super-form",{ref:"superForm",attrs:{"form-view-code":e.formViewCode,"form-view-version":e.formViewVersion,"path-query":e.pathQuery,"is-page-info":void 0!==e.isPreview&&null!==e.isPreview&&e.isPreview,value:e.formData?e.formData:{},options:e.formOptions},on:{"shou-button":e.reviewButton}}):e._e()]:e._e(),e.showTaskInformitions?n("task-informition-dialog",{attrs:{"task-informitions":e.taskInformitions},on:{close:function(t){e.showTaskInformitions=!1},result:e.myReturnTaskTo}}):e._e(),e.selectAddSignerUser||e.selectCopyUser||e.selectAssignUser?n("department-user-tree",{attrs:{width:"60%",multiple:e.isMulti},on:{close:e.closeDeptUserTree}}):e._e(),e.showRemoveSigner?n("remove-signer-dialog",{attrs:{"task-id":e.completeTaskParam?e.completeTaskParam.taskId:null,"active-tasks":e.activeTasks},on:{close:function(t){e.showRemoveSigner=!1},result:e.myDoRemoveSigners}}):e._e(),e.isShowPageDialog?n("super-page-dialog",{attrs:{preview:e.isPreview,"dev-mode":e.pageDevMode,"jump-page-setting":e.jumpPageSetting},on:{"update-value":e.updateValues,close:e.closePage}}):e._e()],2)},fe=[],me=n("859e"),he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{visible:"",title:e.$t("superPage.selectNode"),"close-on-click-modal":!1,"append-to-body":"",width:"30%","max-height":"400"},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.taskInformitions,border:""},on:{select:e.select}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"nodeName",label:e.$t("superPage.nodeName"),width:"180"}}),n("el-table-column",{attrs:{prop:"nodeId",label:e.$t("superPage.nodeId"),width:"180"}})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.selectNode}},[e._v("\n "+e._s(e.$t("superPageMessage.sure"))+"\n ")]),n("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("superPageMessage.cancel"))+"\n ")])],1)],1)],1)},ge=[],be={name:"TaskInformitionDialog",components:{},props:{taskInformitions:{type:Array,default:null}},data:function(){return{selections:[]}},methods:{select:function(e){this.selections=e},selectNode:function(){0===this.selections.length||this.selections.length>1?this.$message({showClose:!0,type:"warning",message:this.$t("superPageMessage.pleaseSelectNode")}):this.$emit("result",this.selections[0])}}},ve=be,ye=Object(q["a"])(ve,he,ge,!1,null,null,null),_e=ye.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{visible:"",title:e.$t("superPage.selectRemoveUsers"),"close-on-click-modal":!1,"append-to-body":"",width:"30%","max-height":"400"},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.canRemoveTasks,border:""},on:{select:e.select}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"transactorName",label:e.$t("superPage.transactorName"),width:"180"}}),n("el-table-column",{attrs:{prop:"transactor",label:e.$t("superPage.transactor"),width:"180"}}),n("el-table-column",{attrs:{prop:"trustorName",label:e.$t("superPage.trustorName"),width:"180"}})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.selectRemoveUsers}},[e._v("\n "+e._s(e.$t("superPageMessage.sure"))+"\n ")]),n("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("superPageMessage.cancel"))+"\n ")])],1)],1)],1)},Pe=[],Ce={name:"RemoveSignerDialog",components:{},props:{taskId:{type:Number,default:null},activeTasks:{type:Array,default:null}},data:function(){var e=this.getCanRemoveTasks();return{selections:[],canRemoveTasks:e}},methods:{select:function(e){this.selections=e},selectRemoveUsers:function(){0!==this.selections.length?this.$emit("result",this.selections):this.$message({showClose:!0,type:"warning",message:this.$t("superPageMessage.pleaseSelectRemoverUsers")})},getCanRemoveTasks:function(){var e=this;return this.activeTasks&&this.taskId?this.activeTasks.filter((function(t){return e.taskId!==t.id?t.id:t.ID?t.ID:null})):[]}}},Oe=Ce,Se=Object(q["a"])(Oe,we,Pe,!1,null,null,null),ke=Se.exports;function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e){return De="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Me={name:"WorkflowFormPage",components:{ButtonGroup:T["a"],TaskInformitionDialog:_e,RemoveSignerDialog:ke,formHead:ne},props:{colSetting:{type:Object,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},emailTemplateCode:{type:String,default:null},pageCode:{type:String,default:null},tabCode:{type:String,default:null}},data:function(){var e,t=Object(B["c"])(this.pageCode,"_pathQuery"),n=Object(B["c"])(this.pageCode,"_systemInfo"),o=this.colSetting.baseSetting.modelDataTableEntityName,a=this.colSetting.baseSetting.beanName,i=Object(B["c"])(this.pageCode,"_pageCode");n&&(e=n.code+"."+i+"."+this.colSetting.baseSetting.componentCode);var r=Object(B["c"])(this.pageCode,"_pageIsDsc"),s=!1;"undefined"!==typeof this.taskId&&null!==this.taskId&&(s=!0);var u="";this.colSetting.options&&this.colSetting.options.formNoRuleCode&&(u=this.colSetting.options.formNoRuleCode);var l=!1;this.colSetting.options&&this.colSetting.options.isBatchProcessing&&(l=this.colSetting.options.isBatchProcessing);var c=Object(B["c"])(this.pageCode,"_pageHeight"),p={isSql:r,pageCode:this.pageCode,pageHeight:c};n&&(p.system=n);var d=this.isViewDetail();d&&(p.fieldPermissions=[{name:"all_fields",canEdit:!1}]);var f=Object(B["c"])(this.pageCode,"_pagePreview");void 0===f&&(f=!1);var m=Object(B["c"])(this.pageCode,"_pageDevMode");null!==m&&void 0!==m||(m=!1),p.devMode=m;var h=null;this.colSetting.baseSetting.modelVersion&&(h=parseInt(this.colSetting.baseSetting.modelVersion));var g=this.colSetting.baseSetting.modelCode,b=[],v=Object(B["c"])(this.pageCode,"_pageEvents");return v&&(b=v.formEvents),p.events=this.packageFormEvents(g),{formViewCode:g,formViewVersion:h,tableName:this.colSetting.baseSetting.modelDataTableCode,entityName:o,beanName:a,formTitle:this.colSetting.baseSetting.formTitle,myJsContent:null,successOperation:null,formData:null,isShowForm:!1,isShow:!0,definitionId:null,formViewId:null,formOptions:p,workflowButtonComponent:{},completeTaskParam:{},permissionPrefix:e,system:n,showTaskInformitions:!1,taskInformitions:[],selectTaskNode:null,isTaskInput:s,formNoRuleCode:u,isEnableRequired:!0,defaultOpinionAttrName:"_defaultOpinion_",judgeHeavyList:this.colSetting.options.judgeHeavyList,notIdInitializationList:this.colSetting.options.notIdInitializationList,dataConversionRule:null,formNo:null,formNoLabel:this.colSetting.baseSetting.formNoLabel,selectAddSignerUser:!1,selectCopyUser:!1,selectAssignUser:!1,showRemoveSigner:!1,activeTasks:[],formModel:null,isMulti:!0,taskName:null,currentActivityName:null,isPreview:f,additionalParamMap:null,dataTypeMap:null,formEvents:b,logSetting:null,pathQuery:t,refreshButton:!0,ids:null,pageDevMode:m,isBatchProcessing:l,isShowPageDialog:!1,jumpPageSetting:null,isSqlQuery:r,isNeedValueMapping:!1,firstNodeInfo:null,customEvents:v?v.customEvents:null,isShowBuuton:!1}},watch:{taskName:function(e){this.currentActivityName=e},jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;E["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o,e),E["a"].$off(n+"-close-dialog")}))}}}},created:function(){var e=Object(B["c"])(this.pageCode,"additionalParamMap");e&&(this.additionalParamMap=e,this.formOptions.additionalParamMap=e,console.log("workflow-form-page已获取到附加参数",e)),this.pathQuery&&this.pathQuery.ids&&""!==this.pathQuery.ids&&("string"===typeof this.pathQuery.ids?this.ids=this.pathQuery.ids.split(","):"object"===De(this.pathQuery.ids)&&(this.ids=this.pathQuery.ids)),this.initWorkflowFormData();var t=this;E["a"].$on(t.pageCode+"-close-component-page-dialog",(function(e){t.closeFormPageDialog(e,t)})),E["a"].$on(t.pageCode+"-refresh-tab",(function(e,n){t.$refs.superForm&&void 0!==e&&e===t.tabCode&&n&&t.$refs.superForm.refresh(n)}))},mounted:function(){},beforeDestroy:function(){E["a"].$off(this.pageCode+"-close-component-page-dialog"),E["a"].$off(this.pageCode+"-refresh-tab")},methods:Ee(Ee(Ee(Ee(Ee({},O["a"]),me["a"]),M),j),{},{clickWorkflowButtonOn:function(e,t,n,o){var a=this;if(console.log("clickWorkflowButtonOn-eventSetting",n),!this.isPreview){var i=!1;n&&"undefined"!==typeof n.isRequired?i=n.isRequired:this.isDealFlowButton(e)&&(i=!0),this.isEnableRequired=i,this.saveWorkflowFormData(i).then((function(i){if(i&&!1!==i){var r=a.callBeforeClickButton(a.formEvents,a.formViewCode+"__"+e,{params:a.additionalParamMap,entity:i,operation:t,eventSetting:n,button:o,formNoRuleCode:a.formNoRuleCode});if(!r)return;a.logicSetting=a.getCurrentNodeLogicSetting(o,i,e);var s=!1;n&&"undefined"!==typeof n.jsContent&&(s=n.jsContent),a.myJsContent=s,n&&(a.isNeedValueMapping=n.isNeedValueMapping);var u=!1;n&&"undefined"!==typeof n.successOperation&&(u=n.successOperation),a.successOperation=u;var l=!1;n&&"undefined"!==typeof n.logSetting&&(l=n.logSetting),a.logSetting=l;var c="";a.logicSetting&&a.logicSetting.current&&"undefined"!==typeof a.logicSetting.current.dataConversionRule&&(c=a.logicSetting.current.dataConversionRule);var p="";a.logicSetting&&a.logicSetting.current&&"undefined"!==typeof a.logicSetting.current.autoSetValueData&&(p=a.logicSetting.current.autoSetValueData);var d=null;n&&n.taskMap&&"undefined"!==typeof n.taskMap&&(d=n.taskMap);var f=a.getNeedDeleteFileUuidS();"returnTaskTo"===e?(a.dataConversionRule=c,a.getTaskInformitions(a.system,a.entityName,a.beanName)):"returnToPreviousTask"===e?a.returnToPreviousTask(a.system,a.tableName,i,a.formViewCode,a.formViewVersion,a.entityName,s,u,a.isNeedValueMapping,d,a.beanName):"endInstance"===e?a.endInstance(a.system,a.tableName,i,a.formViewCode,a.formViewVersion,a.entityName,s,u,a.isNeedValueMapping,d,a.beanName):a.logicSetting&&!0!==a.validateOpinion(a.logicSetting.current,t,i)||a.canExecuteWorkflow(i,e).then((function(n){if(!0===n.canExecute){var r=n.entities;r&&r.length>0&&(i=r[0]);var l=null;a.logicSetting&&(l=a.logicSetting.end),a.formModel=i,a.clickWorflowButton(e,a.system,a.tableName,i,a.definitionId,a.emailTemplateCode,t,a.formViewCode,a.formViewVersion,a.entityName,s,a.formNoRuleCode,u,c,l,p,a.logSetting,null,null,!!o&&o.isNeedValueMapping,d,f,a.beanName)}}))}}))}},clickWorkflowExtensionButtonOn:function(e){var t=this;console.log("clickWorkflowExtensionButtonOn====button=",e);var n=this;if(!n.isPreview&&e){if("downloadTemplate"===e.code)return void this.downloadTemplate(n.system,e,this.tableName);var o=!0;"undefined"===typeof e.isRequired&&"exportForm"===e.code&&(o=!1),"undefined"!==typeof e.isRequired&&(o=e.isRequired),n.saveWorkflowFormData(o).then((function(o){if(o&&!1!==o){var a=t.callBeforeClickButton(t.formEvents,t.formViewCode+"__"+e.code,{params:t.additionalParamMap,entity:o});if(!a)return;n.canExecute(e.executableData,o,n.isSqlQuery,n.tableName,t.additionalParamMap).then((function(a){if(!0===a.canExecute){var i=a.entities;i&&i.length>0&&(o=i[0]);var r=!1;"undefined"!==typeof e.jsContent&&""!==e.jsContent&&e&&"undefined"!==typeof e.jsContent&&(r=e.jsContent);var s=!1;e&&"undefined"!==typeof e.successOperation&&(s=e.successOperation),n.successOperation=s;var u="";e&&"undefined"!==typeof e.dataConversionRule&&(u=e.dataConversionRule);var l="";e&&"undefined"!==typeof e.autoSetValueData&&(l=e.autoSetValueData);var c=null;e&&"undefined"!==typeof e.taskMap&&(c=e.taskMap);var p=t.getNeedDeleteFileUuidS();t.isCommonButton(e.code)?n.clickWorflowButton("#_default_#"+e.code,n.system,n.tableName,o,n.definitionId,n.emailTemplateCode,null,n.formViewCode,n.formViewVersion,n.entityName,r,n.formNoRuleCode,s,u,n.logicSetting&&n.logicSetting.end?n.logicSetting.end:null,l,e.logSetting,t.ids,t.isBatchProcessing,!!e&&e.isNeedValueMapping,c,p,t.beanName,e):"exportForm"===e.code?t.exportFormReport(e.templateUUID,e.templateShowPath,r,n.entityName,n.system,e.logSetting,c,n.additionalParamMap,!0,t.beanName,e,t.tableName):n.clickWorkflowExtensionButton(n.system,n.tableName,o,n.definitionId,n.emailTemplateCode,n.formViewCode,n.formViewVersion,r,t.formNoRuleCode,s,u,l,e,p,t.entityName,t.beanName)}}))}}))}},getNeedDeleteFileUuidS:function(){if(this.$refs.superForm)return this.$refs.superForm.getNeedDeleteFileUuid()},isCommonButton:function(e){return"submit"===e||"agree"===e||"disagree"===e},validateOpinion:function(e,t,n){if(e){var o=!1;if(e.isOpinionRequired&&"undefined"!==typeof e.isOpinionRequired&&(o=e.isOpinionRequired),!0===o){var a=t;o="undefined"!==typeof a&&"REFUSE"===a}if(!0===o){var i=n[this.defaultOpinionAttrName];if(!i||null===i||""===i)return this.$message({showClose:!0,type:"warning",message:this.$t("superPageMessage.mustFillOpinion")}),!1}}return!0},isDealFlowButton:function(e){return"startInstance"===e||"submitProcess"===e||"completeTask"===e||"selectTransactors"===e||"selectTaches"===e||"update"===e},canExecuteWorkflow:function(e,t){var n=this,o=this;return new Promise((function(a,i){o.logicSetting&&n.isDealFlowButton(t)&&o.logicSetting.current?o.canExecute(o.logicSetting.current.executableData,e,n.isSqlQuery,n.tableName,n.additionalParamMap).then((function(e){a(e)})).catch((function(e){i(e)})):a({canExecute:!0})}))},getCurrentNodeLogicSetting:function(e,t,n){console.log("getCurrentNodeLogicSetting",e,t,n);var o=null,a=null,i=e.wfLogicSettingList;if(i){for(var r={},s=!1,u=0;u<i.length;u++){var l=i[u],c=l.nodeId,p=t.currentActivityId?t.currentActivityId:t.current_activity_id,d=t.workflowId?t.workflowId:t.workflow_id;if(void 0!==d&&null!==d||"startInstance"!==n&&"submitProcess"!==n||this.firstNodeInfo&&this.firstNodeInfo.nodeId&&this.firstNodeInfo.nodeId===c&&(o=l,s=!0),"processEnd"===c&&(a=l,s=!0),p&&p===c&&(o=l,s=!0),!0===s){null!==o&&(r.current=o),null!==a&&(r.end=a);break}}return r}},initWorkflowFormData:function(){var e=this,t={formViewCode:this.formViewCode,formViewVersion:this.formViewVersion,tableName:this.tableName,formNoRuleCode:this.formNoRuleCode,systemCode:this.system.code,isWorkflowEntity:!0,functionCode:this.permissionPrefix+".get"},n=this.getBaseUrl(this.system),o=n+"/dsc/workflow-commons/gets";this.ids&&(t.ids=this.ids),this.taskId?t.taskId=this.taskId:this.dataId?t.id=this.dataId:this.notIdInitializationList&&(t.noIdAndTaskIdInitSetting=JSON.stringify(this.notIdInitializationList)),this.additionalParamMap&&(t.additionalParamMap=JSON.parse(JSON.stringify(this.additionalParamMap))),this.entityName&&(t.entityName=this.entityName),this.beanName&&(t.beanName=this.beanName),this.isShowForm=!1,this.$http.post(o,t).then((function(t){e.definitionId=t.definitionId,e.formViewId=t.formViewId,t.completeTaskParam&&t.completeTaskParam.firstNodeInfo&&e.$set(e,"firstNodeInfo",t.completeTaskParam.firstNodeInfo),e.$set(e.formOptions,"taskParamMap",t.taskParamMap),e.dataId?Object(B["d"])(e.pageCode,"_isCreateformData",!1):Object(B["d"])(e.pageCode,"_isCreateformData",!0),e.dataTypeMap=t.dataTypeMap,e.dealCompleteTaskParam(t,!0),e.isShowForm=!0}))},saveWorkflowFormData:function(e){var t=this;"undefined"===typeof e&&(e=!0);var n=this;return new Promise((function(o,a){n.$refs.superForm.getModels(!1).then((function(a){if(console.log("model",a),console.log("that.completeTaskParam.fieldPermissions",n.completeTaskParam.fieldPermissions),!0===e){var i=!0,r=n.$getValidator(n.completeTaskParam.fieldPermissions,a,i),s=JSON.parse(JSON.stringify(t.additionalParamMap)),u=Object(B["c"])(t.pageCode,"_contextParameter");u&&(t.contextParameter=u),console.log("workflowFieldPermissionRules",r);var l=n.$formValidator(a,r,i,s,t.formOptions.taskParamMap,u);!0!==l?(n.$message({showClose:!0,message:l,type:"warning"}),o(!1)):(Object.keys(a).indexOf("validateErrorField")>=0&&delete a.validateErrorField,o(a))}else o(a)}))}))},myReturnTaskTo:function(e){var t=this;this.selectTaskNode=e,this.showTaskInformitions=!1;var n=this;this.saveWorkflowFormData(this.isEnableRequired).then((function(o){o&&!1!==o&&n.returnTaskTo(n.system,n.tableName,o,e,n.formViewCode,n.formViewVersion,n.entityName,n.myJsContent,n.successOperation,n.isNeedValueMapping,t.beanName)}))},closeDeptUserTree:function(e){!0===this.selectAddSignerUser&&this.doAddSigner(e,this.myJsContent,this.system,this.entityName,this.beanName,this.dataId,this.formModel,this.successOperation,this.isNeedValueMapping),!0===this.selectCopyUser&&this.doCreateCopyTask(e,this.myJsContent,this.system,this.entityName,this.beanName),!0===this.selectAssignUser&&this.assign(this.system,this.tableName,this.formModel,this.formViewCode,this.formViewVersion,this.entityName,this.myJsContent,this.successOperation,e,this.isNeedValueMapping,this.beanName)},myDoRemoveSigners:function(e){this.doRemoveSigners(e,this.myJsContent,this.system,this.entityName,this.beanName)},getFormData:function(){if(this.$refs.superForm)return this.$refs.superForm.getFormData()}})},xe=Me,je=(n("2f55"),Object(q["a"])(xe,de,fe,!1,null,"f5ea3e30",null)),Ie=je.exports,Re={name:"FormPage",components:{CommonFormPage:pe,WorkflowFormPage:Ie},props:{colSetting:{type:Object,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},pageCode:{type:String,default:null},tabCode:{type:String,default:null}},data:function(){return{isWorkflowForm:!1,emailTemplateCode:""}},created:function(){this.getProcessInfo()},methods:{updateSetValues:function(e,t,n){this.$emit("update-value",e,t,n)},fnProhibitToEdit:function(e){if(this.isWorkflowForm){if(console.log("this.$refs.formPage",this.$refs.workflowFormPage),this.$refs.workflowFormPage)return this.$refs.workflowFormPage.fnProhibitToEdit(e)}else if(console.log("this.$refs.formPage",this.$refs.formPage),this.$refs.formPage)return this.$refs.formPage.fnProhibitToEdit(e)},getProcessInfo:function(){var e=this.colSetting.options.buttonGroup;if(e&&e.length>0)for(var t=0;t<e.length;t++){var n=e[t];if(n.code&&"workflowButton"===n.code)return this.emailTemplateCode=n.emailTemplateCode,void(this.isWorkflowForm=!0)}this.isWorkflowForm=!1}}},Fe=Re,Be=Object(q["a"])(Fe,H,K,!1,null,"44e24f34",null),$e=Be.exports,Le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("super-chart",{ref:"superChart",attrs:{code:e.chartViewCode,"is-initial-query":e.isInitialQuery,"is-custom":e.isNeedCustomStyle,"additional-param-map":e.additionalParamMap,query:e.query}})],1)},Ae=[],Ve={name:"ChartViewPage",props:{chartViewCode:{type:String,default:null},pageCode:{type:String,default:null},isInitialQuery:{type:Boolean,default:!0},isNeedCustomStyle:{type:Boolean,default:!1},isNeedExport:{type:Boolean,default:!0}},data:function(){var e=Object(B["c"])(this.pageCode,"additionalParamMap"),t=Object(B["c"])(this.pageCode,"_pagePreview");return void 0===t&&(t=!1),{isPreview:t,query:null,chartQueryCode:null,additionalParamMap:e}},mounted:function(){var e=this;this.addRef(),this.getChartQueryCodeByChart(this.chartViewCode).then((function(t){var n=e;n.chartQueryCode=t,E["a"].$on(n.chartQueryCode+"-clickChartSearchButton",(function(t,o){n.isPreview||o&&!1===e.isInitialQuery||(n.query=t||null)})),E["a"].$on(n.chartQueryCode+"-clickChartResetButton",(function(e){n.isPreview||(n.query=e||null)}))}))},beforeDestroy:function(){E["a"].$off(this.chartQueryCode+"-clickChartSearchButton"),E["a"].$off(this.chartQueryCode+"-clickChartResetButton")},methods:{getChartQueryCodeByChart:function(e){return this.$http.get(k.a.prototype.baseAPI+"/component/chart-query-codes/charts/"+e)},addRef:function(){if(this.isNeedExport){var e=Object(B["c"])(this.pageCode,"chartRefList");e||(e=[]),e.push({code:this.chartViewCode,refData:this.$refs.superChart}),Object(B["d"])(this.pageCode,"chartRefList",e)}}}},Ue=Ve,We=Object(q["a"])(Ue,Le,Ae,!1,null,"65838e70",null),qe=We.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.colSetting.options.buttonGroup?n("button-group",{attrs:{"button-groups":e.colSetting.options.buttonGroup,"permission-prefix":e.permissionPrefix,"additional-param-map":e.additionalParamMap,"button-area-custom-component-arr":e.colSetting.options.buttonAreaCustomComponentArr,position:"chart","page-code":e.pageCode},on:{click:e.clickListButton}}):e._e(),n("chart-query",{ref:"chartQueryRef"+e.colSetting.baseSetting.componentCode,attrs:{"query-code":e.queryCode,"is-initial-query":e.isInitialQuery,options:e.options},on:{search:e.search,initSearch:e.initSearch,reset:e.resetForm,export:e.exportChart}})],1)},Ge=[],He=n("1197"),Ke=He["a"],Qe=Object(q["a"])(Ke,Je,Ge,!1,null,"0e9b1a40",null),ze=Qe.exports,Ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-menu",{staticClass:"el-menu-group",attrs:{"default-active":"1",mode:"horizontal"}},[n("el-menu-item",{attrs:{index:"1"}},[e._v("\n "+e._s(e.label)+"\n ")])],1)],1)},Xe=[],Ze={name:"GroupTag",props:{label:{type:String,default:null}}},et=Ze,tt=Object(q["a"])(et,Ye,Xe,!1,null,"8a3f01e4",null),nt=tt.exports,ot=n("0800");function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st={name:"WidgetColPage",components:{ListPage:G,FormPage:$e,ChartViewPage:qe,ChartQueryPage:ze,GroupTag:nt},props:{col:{type:Object,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},workflowId:{type:Number,default:null},pageCode:{type:String,default:null},fieldPermissions:{type:Object,default:null},tabCode:{type:String,default:null}},data:function(){var e=!1;"workflowHistoryGraph"!==this.col.baseSetting.type&&"workflowHistoryList"!==this.col.baseSetting.type||(e=!0);var t=Object(B["c"])(this.pageCode,"_systemInfo"),n=Object(B["c"])(this.pageCode,"_colPermissionPrefix"),o=n+"."+this.col.baseSetting.componentCode;!0===e&&(o=n+".workflowHistory");var a=Object(B["c"])(this.pageCode,"_pageDevMode"),i=Object(B["c"])(this.pageCode,"_pagePreview");return(a&&!0===a||i&&!0===i)&&(o="true"),{isWorkflowHistory:e,colStyle:this.getColStyle(this.col),system:t,permission:o,permissionPrefix:n,additionalParamMap:null}},computed:it({},Object(w["a"])(["preventReclick"])),watch:{fieldPermissions:{deep:!0,handler:function(e){e&&(this.fieldPermissions=e,this.fnProhibitToFormViewEdit(this.fieldPermissions))}}},created:function(){var e=Object(B["c"])(this.pageCode,"additionalParamMap");e&&(this.additionalParamMap=e)},mounted:function(){var e=this;E["a"].$on("refreshHistory",(function(){e.$refs.historyList&&e.$refs.historyList.refresh(),e.$refs.historyGraph&&e.$refs.historyGraph.refresh()}))},beforeDestroy:function(){E["a"].$off("refreshHistory"),console.log("-refreshHistory-off")},methods:it(it(it({},O["a"]),ot["a"]),{},{fnProhibitToEdit:function(e){"formView"===this.col.baseSetting.type?this.fnProhibitToFormViewEdit(e):this.$emit("prohibi-edit",e)},fnProhibitToFormViewEdit:function(e){console.log("this.$refs.formView",this.$refs.formView),this.$refs.formView&&this.$refs.formView.fnProhibitToEdit&&this.$refs.formView.fnProhibitToEdit(e)},updateValues:function(e,t,n){console.log("update-value---",e,t,n),this.$emit("update-value",e,t,n)},updateSetValues:function(e,t,n){this.$emit("update-value",e,t,n)},getColStyle:function(e){var t={};if(e.options)if(e.options.customStyle)t=e.options.customStyle;else{t={};var n=e.options.width;n&&(n.indexOf("px")>0?t.width=n:t.width=n+"px");var o=e.options.height;o&&(o.indexOf("px")>0?t.height=o:t.height=o+"px"),e.options.padding&&(t.padding=e.options.padding),e.options.margin&&(t.margin=e.options.margin),e.options.position&&(t.position=e.options.position),!t.position||""===t.position||"absolute"!==t.position&&"fixed"!==t.position&&"relative"!==t.position||(e.options.positionTop&&(t.top=e.options.positionTop),e.options.positionRight&&(t.right=e.options.positionRight),e.options.positionBottom&&(t.bottom=e.options.positionBottom),e.options.positionLeft&&(t.left=e.options.positionLeft)),e.options.backgroundColor&&(t["background-color"]=e.options.backgroundColor),e.options.fontSize&&(t["font-size"]=e.options.fontSize),e.options.fontColor&&(t.color=e.options.fontColor)}return t},exportReport:function(e){this.$emit("export",e)}})},ut=st,lt=Object(q["a"])(ut,y,_,!1,null,"6a5d9438",null),ct=lt.exports,pt={name:"WidgetSubTabPage",components:{WidgetColPage:ct},props:{pageCode:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},oneTabContent:{type:Array,default:null},workflowId:{type:Number,default:null}},data:function(){var e=Object(B["c"])(this.pageCode,"_systemInfo");return{pageSettingList:[],system:e,fieldPermissions:{}}},created:function(){this.oneTabContent&&(this.pageSettingList=this.oneTabContent)},methods:{updateValues:function(e,t,n){this.$emit("update-value",e,t,n)},fnProhibitToEdit:function(e){this.fieldPermissions=e}}},dt=pt,ft=(n("1cc1"),Object(q["a"])(dt,b,v,!1,null,"15bef090",null)),mt=ft.exports,ht={name:"SubTabPage",components:{WidgetSubTabPanePage:mt},props:{pageCode:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},colSetting:{type:Object,default:null}},data:function(){var e="",t=this.colSetting.options.tabContent;return t&&t.length>0&&(e=t[0].code),{activeName:e,workflowId:null}},created:function(){},mounted:function(){},methods:{handleClick:function(e,t){this.workflowId=O["a"].getWorkflowId(this.pageCode),E["a"].$emit("refreshHistory")},updateValues:function(e,t,n){this.$emit("update-value",e,t,n)}}},gt=ht,bt=Object(q["a"])(gt,h,g,!1,null,"23210b57",null),vt=bt.exports,yt={name:"WidgetTabPage",components:{SubTabPage:vt,WidgetColPage:ct},props:{pageCode:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},oneTabContent:{type:Array,default:null},workflowId:{type:Number,default:null},tabCode:{type:String,default:null}},data:function(){var e=Object(B["c"])(this.pageCode,"_systemInfo");return{pageSettingList:[],system:e,fieldPermissions:{}}},created:function(){this.oneTabContent&&(this.pageSettingList=this.oneTabContent)},methods:{updateValues:function(e,t,n){this.$emit("update-value",e,t,n)},fnProhibitToEdit:function(e){this.entity=e}}},_t=yt,wt=(n("7658"),Object(q["a"])(_t,f,m,!1,null,"70127dea",null)),Pt=wt.exports;function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function St(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kt={name:"TabPage",components:{WidgetTabPanePage:Pt},props:{pageCode:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},colSetting:{type:Object,default:null}},data:function(){var e="",t=this.colSetting.options.tabContent;return t&&t.length>0&&(e=t[0].code),Object(B["d"])(this.pageCode,"_activeTab",e),{pageEvents:[],activeName:e,workflowId:null}},created:function(){var e=this,t={},n=[],o=Object(B["c"])(this.pageCode,"_pageEvents");if(o){n=o.formEvents,n&&Object.keys(n).forEach((function(o){var a=o.substring(0,o.indexOf("__"));if(e.pageCode===a){var i=o.substring(o.indexOf("__")+"__".length);t[i]=n[o]}}));var a=o.customEvents;a&&(t.customEvents=a)}this.pageEvents=t},mounted:function(){},methods:Ot(Ot({},M),{},{handleClick:function(e,t){Object(B["d"])(this.pageCode,"_activeTab",this.activeName),t&&this.callFormItemEvent(this.pageEvents,t,null,{acitveTabName:this.activeName}),this.workflowId=O["a"].getWorkflowId(this.pageCode),E["a"].$emit("refreshHistory"),this.refreshTabContent()},updateValues:function(e,t,n){this.$emit("update-value",e,t,n)},refreshTabContent:function(){this.colSetting.baseSetting.isRefreshContent&&this.refreshTab(this.activeName)},refreshTab:function(e){E["a"].$emit(this.pageCode+"-refresh-tab",e)}})},Tt=kt,Et=Object(q["a"])(Tt,p,d,!1,null,"f11061bc",null),Nt=Et.exports,Dt=n("bc3a"),Mt=n.n(Dt),xt=n("a78e"),jt=n.n(xt);function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){Ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bt={name:"WidgetPage",components:{TabPage:Nt,WidgetColPage:ct},props:{pageCode:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},pageSetting:{type:Object,default:null}},data:function(){return{myPageSetting:{list:[]},system:null,isShowPage:!1,pageSettingList:[],additionalParamMap:null,fieldPermissions:{}}},created:function(){if(this.initSuperPage(),this.pageCode){var e=I["a"].get(this.pageCode);e&&e.additionalParamMap&&(this.additionalParamMap=e.additionalParamMap)}},mounted:function(){this.$watch("isShowPage",(function(e,t){var n;!0===e&&(this.myPageSetting.pageEvents&&(n=this.packagePageEventsToMapByType(this.myPageSetting.pageEvents,"pageEvents")),n&&this.callPageEvent(n,"afterPageLoad",{pageCode:this.pageCode,pageSetting:this.myPageSetting,params:this.jumpPageAdditional,additionalParamMap:this.additionalParamMap}))}),{immediate:!0,deep:!0})},destroyed:function(){if(this.myPageSetting.pageEvents){Object(B["a"])(this.pageCode,"_pageEvents");var e=!0;this.registerCustomFuncToWindow(this.myPageSetting.pageEvents.customFuncs,e)}},methods:Rt(Rt(Rt({},c["a"]),O["a"]),{},{fnProhibitToEdit:function(e){this.fieldPermissions=e},isChartPage:function(e){if(e)for(var t=0;t<e.length;t++)for(var n=e[t],o=n.colList,a=0;a<o.length;a++){var i=o[a];if("chartView"===i.baseSetting.type)return!0}},updateValues:function(e,t,n){console.log("update-value22---",e,t,n),this.$emit("update-value",e,t,n)},initSuperPage:function(){var e=this;this.isShowPage=!1,this.pageCode||this.$message({showClose:!0,type:"error",message:this.$t("superPage.pageCodeParameterError")}),this.getPageSetting(this.pageCode).then((function(t){if(t){t.system&&(e.system=JSON.parse(t.system)),Object(B["d"])(e.pageCode,"_systemInfo",e.system),t.contextParameter&&Object(B["d"])(e.pageCode,"_contextParameter",t.contextParameter);var n,o=e.system.code+"."+e.pageCode;Object(B["d"])(e.pageCode,"_colPermissionPrefix",o),Object(B["d"])(e.pageCode,"_pageName",t.pageName),e.pageSetting&&null!==e.pageSetting?n=e.pageSetting:t.pageSetting&&(n=JSON.parse(t.pageSetting));var a,i=document.getElementById("1.23452384164.123412415");null!=i&&document.body.removeChild(document.getElementById("1.23452384164.123412415")),e.system&&e.system.watermarkCode&&e.setWatermark(e.system.watermarkCode,t.contextParameter),n.pageEvents&&(Object(B["d"])(e.pageCode,"_pageEvents",e.packagePageEventsToMap(n.pageEvents)),e.registerCustomFuncToWindow(n.pageEvents.customFuncs)),n.pageEvents&&(a=e.packagePageEventsToMapByType(n.pageEvents,"pageEvents"),e.callPageEvent(a,"onPageLoad",{pageCode:e.pageCode,pageSetting:n,params:e.jumpPageAdditional,additionalParamMap:e.additionalParamMap})),e.myPageSetting=n,e.pageSettingList=e.myPageSetting.list;var r=e.isChartPage(e.pageSettingList);if(r){var s=document.querySelector(".widget-page");s&&(s.style.overflowX="hidden",s.style.overflowY="auto",s.style.height=window.innerHeight-80+"px")}e.isShowPage=!0}}))},callPageEvent:function(e,t,n){if(e){var o=e[t];if(o){var a=o.bind(this,n);a()}}},packagePageEventsToMap:function(e){var t={};return this.packagePageEventsToMapByType(e,"formEvents",t),this.packagePageEventsToMapByType(e,"listEvents",t),this.packagePageEventsToMapByType(e,"chartEvents",t),this.packagePageEventsToMapByType(e,"customEvents",t),t},packagePageEventsToMapByType:function(e,t,n){if(e&&e[t]){var o={};return e[t].forEach((function(e){e.jsContent&&(o[e.eventName]=new Function("params",e.jsContent))})),n&&null!==n&&(n[t]=o),o}},registerCustomFuncToWindow:function(e,t){e&&e.forEach((function(e){e.jsContent&&(e.funcParam?void 0!==t&&!0===t?delete window["$page_"+e.eventName]:window["$page_"+e.eventName]=new Function(e.funcParam,e.jsContent):void 0!==t&&!0===t?delete window["$page_"+e.eventName]:window["$page_"+e.eventName]=new Function(e.jsContent))}))},initSuperPageTest:function(){var e=this;this.isShowPage=!1,this.getPageSettingTest().then((function(t){if(t){e.system=t.system,Object(B["d"])(e.pageCode,"_systemInfo",e.system);var n=e.system.code+".test.";Object(B["d"])(e.pageCode,"_colPermissionPrefix",n),e.myPageSetting=t.pageSetting,e.pageSettingList=e.myPageSetting.list,e.isShowPage=!0}}))},exportReport:function(e){var t=Object(B["c"])(this.pageCode,"chartRefList");if(t&&t.length>0){var n,o=[];t.forEach((function(e){if(e&&e.code&&e.refData){var t=e.refData,n=t.getExportData();n&&o.push(n)}}));var a=Object(B["c"])(this.pageCode,"_pageName");a&&(n=a);var i,r={reportDataList:o,beanName:e},s=k.a.prototype.baseURL+"/dsc/commons/exportChart";Mt.a.defaults.headers.common.Authorization=jt.a.get("JWT"),i=Mt.a.post(s,r,{responseType:"blob"}),i.then((function(e){var t=document.createElement("a");t.style.display="none",t.href=URL.createObjectURL(e.data),t.setAttribute("download",n+".xlsx"),document.body.appendChild(t),t.click(),document.body.removeChild(t)}))}}})},$t=Bt,Lt=(n("86c9"),Object(q["a"])($t,u,l,!1,null,"c66ca250",null)),At=Lt.exports,Vt={name:"SuperPageComponent",components:{WidgetPage:At},props:{code:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},pageSetting:{type:Object,default:null},preview:{type:Boolean,default:!1},isDsc:{type:Boolean,default:null},height:{type:String,default:null}},created:function(){Object(B["d"])(this.code,"_pageCode",this.code),Object(B["d"])(this.code,"_pagePreview",this.preview),Object(B["d"])(this.code,"_pageIsDsc",this.isDsc),Object(B["d"])(this.code,"_pageHeight",this.height),console.log("super-page-component--this.isDsc=",this.isDsc,"this.code=",this.code,"this.height=",this.height)},methods:{updateValues:function(e,t,n){console.log("update-value33---",e,t,n),this.$emit("update-value",e,t,n)}}},Ut=Vt,Wt=Object(q["a"])(Ut,r,s,!1,null,"4382bbbc",null),qt=Wt.exports,Jt={name:"SuperPage",components:{SuperPageComponent:qt},props:{code:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},pageSetting:{type:Object,default:null},preview:{type:Boolean,default:!1},isDsc:{type:Boolean,default:!1},devMode:{type:Boolean,default:!1},jumpMode:{type:String,default:null},buttonCode:{type:String,default:null},pathQuery:{type:Object,default:null}},data:function(){return{isShowDialog:!1,jumpPageSetting:null,pageComponent:null,pageType:null,jumpPageCode:null}},created:function(){I["a"].set(this.code,Object(B["b"])(this.devMode,this.jumpMode,this.buttonCode,this.pathQuery));var e=I["a"].get(this.code);if(this.pathQuery){var t=this.pathQuery.paramStoreId;if(t){var n=sessionStorage.getItem(t);sessionStorage.removeItem(t),n&&(e.additionalParamMap=JSON.parse(n),I["a"].set(this.code,e),console.log("已获取到附加参数",JSON.parse(n)))}}},methods:{callCloseDialog:function(e,t,n,o){if(e){var a={pageValue:t,formData:o,soureComponent:this.pageComponent};e.call(this,a)}},getPageComponent:function(e,t){this.pageComponent=e,this.pageType=t},updateValues:function(e,t,n){console.log("update-value444-super-page-",e,t,n),this.$emit("update-value",e,t,n)}}},Gt=Jt,Ht=(n("1ae1"),Object(q["a"])(Gt,a,i,!1,null,null,null)),Kt=Ht.exports;Kt.install=function(e){e.component(Kt.name,Kt)};var Qt=Kt,zt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{visible:"",title:e.title,"close-on-click-modal":!1,"append-to-body":"",width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close",e.pageCode)},closed:function(t){return e.$emit("closed")}}},[e.pageCode?n("super-page-component",{attrs:{code:e.pageCode,"data-id":e.dataId,"task-id":e.taskId,preview:e.preview,"is-dsc":e.isDsc,height:e.height},on:{"update-value":e.updateValues}}):e._e()],1)],1)},Yt=[],Xt={name:"SuperPageDialog",components:{SuperPageComponent:qt},props:{jumpPageSetting:{type:Object,default:null},preview:{type:Boolean,default:!1},devMode:{type:Boolean,default:!1},sourcePageCode:{type:String,default:null}},data:function(){return{dataId:null,taskId:null,isDsc:!1,title:null,width:null,height:null,pageCode:null,paramStoreId:null,jumpMode:null,buttonCode:null,eventName:null,isShowDialog:!1,myJumpPageSetting:null,jumpPageCode:null}},created:function(){this.initPage(),void 0!==this.width&&null!==this.width||(this.width="80%"),void 0!==this.height&&null!==this.height||(this.height="90%")},methods:{initPage:function(){var e=I["a"].get(this.pageCode);if(e||(I["a"].set(this.pageCode,{}),e=I["a"].get(this.pageCode)),this.jumpPageSetting){if(this.title=this.jumpPageSetting.jumpPageTitle,this.width=this.jumpPageSetting.jumpPageWidth,this.height=this.jumpPageSetting.jumpPageHeight,this.pageCode=this.jumpPageSetting.pageCode,this.dataId=this.jumpPageSetting.dataId,this.taskId=this.jumpPageSetting.taskId,this.isDsc=this.jumpPageSetting.isDsc,this.jumpMode=this.jumpPageSetting.jumpMode,this.buttonCode=this.jumpPageSetting.buttonCode,this.eventName=this.jumpPageSetting.eventName,this.eventName,this.sourcePageCode&&sessionStorage.setItem(this.pageCode+"_source_page_code",this.sourcePageCode),console.log("----init---super-page-dialog--this.jumpMode=",this.jumpMode,",this.pageCode=",this.pageCode,",this.sourcePageCode=",this.sourcePageCode),sessionStorage.setItem(this.pageCode+"-jumpMode",JSON.stringify({jumpMode:this.jumpMode,position:this.jumpPageSetting._position,listCode:this.jumpPageSetting._listCode,rowIndex:this.jumpPageSetting._rowIndex})),this.jumpPageSetting.paramStoreId){var t=this.jumpPageSetting.paramStoreId;if(t){var n=sessionStorage.getItem(t);sessionStorage.removeItem(t),e&&n&&(e.additionalParamMap=JSON.parse(n),I["a"].set(this.pageCode,e))}}e._pageDevMode=this.devMode,e._sourceButtonCode=this.buttonCode,this.jumpPageSetting.ids&&e&&(e._pathQuery={ids:this.jumpPageSetting.ids}),I["a"].set(this.pageCode,e)}},updateValues:function(e,t,n){console.log("update-value55-super-page-dialog-",e,t,n),this.$emit("update-value",e,t,n)}}},Zt=Xt,en=Object(q["a"])(Zt,zt,Yt,!1,null,null,null),tn=en.exports;tn.install=function(e){e.component(tn.name,tn)};var nn=tn,on=[Qt,nn],an=function e(t){e.installed||on.forEach((function(e){t.component(e.name,e)}))};"undefined"!==typeof window&&window.Vue&&an(window.Vue);var rn={install:an,SuperPage:Qt,SuperPageDialog:nn};t["default"]=rn}})}));
|
|
26
|
+
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},c8af:function(e,t,n){"use strict";var o=n("c532");e.exports=function(e,t){o.forEach(e,(function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===typeof window&&(n=window)}e.exports=n},ccb9:function(e,t,n){t.f=n("5168")},ce7e:function(e,t,n){var o=n("63b6"),a=n("584a"),i=n("294c");e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],r={};r[e]=t(n),o(o.S+o.F*i((function(){n(1)})),"Object",r)}},cee4:function(e,t,n){"use strict";var o=n("c532"),a=n("1d2b"),i=n("0a06"),r=n("4a7b"),s=n("2444");function u(e){var t=new i(e),n=a(i.prototype.request,t);return o.extend(n,i.prototype,t),o.extend(n,t),n}var l=u(s);l.Axios=i,l.create=function(e){return u(r(l.defaults,e))},l.Cancel=n("7a77"),l.CancelToken=n("8df4"),l.isCancel=n("2e67"),l.all=function(e){return Promise.all(e)},l.spread=n("0df6"),e.exports=l,e.exports.default=l},d213:function(e,t,n){},d56a:function(e,t,n){"use strict";n("090e")},d7e1:function(module,__webpack_exports__,__webpack_require__){"use strict";var imatrix_ui_src_utils_jump_page_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("f6cd"),buttonEvents={clickFormButton:function clickFormButton(button,system,formCode,formVersion,tableName,formData,entityName,myJsContent,formNoRuleCode,ids,isBatchProcessing,needDeleteFileUuidS,additionalParamMap,beanName){var _this=this;if("undefined"!==typeof button.isExtension&&!0===button.isExtension){var param={entity:formData,formViewCode:formCode,formViewVersion:formVersion,tableName:tableName,formNoRuleCode:formNoRuleCode,entityName:entityName,beanName:beanName};if(this.judgeHeavyList&&(param.judgeHeavyList=JSON.stringify(this.judgeHeavyList)),button.logSetting&&(param.logSettingText=button.logSetting),button&&button.taskMap&&(param.button=button.taskMap),param.systemCode||(param.systemCode=system.code),additionalParamMap&&(param.additionalParamMap=additionalParamMap),myJsContent&&null!==myJsContent&&""!==myJsContent){var buttonFun=eval("("+myJsContent+")"),request=buttonFun(this,param);request&&request.then((function(e){e&&_this.dealAfterSaveForm(e,system.standard,"superPageMessage.successfulOperation",button.successOperation,button.code,!!button&&button.isNeedValueMapping)}))}else if(button&&void 0!==button.isNeedValueMapping&&!0===button.isNeedValueMapping){var successOperation;button.successOperation&&(successOperation=button.successOperation),successOperation||(successOperation="closeWindow"),this.afterSuccessOperateInForm(successOperation,formData,!0)}}else if("saveForm"===button.code)this.saveForm(system,button,formCode,formVersion,tableName,formData,entityName,myJsContent,formNoRuleCode,needDeleteFileUuidS,additionalParamMap,beanName);else if("exportForm"===button.code)button.isPreviewFormReport?(button.isPreviewFormReport=!1,this.previewFormReport(button.templateUUID,button.templateShowPath,myJsContent,entityName,system,button.logSetting,button.taskMap,additionalParamMap,!1,beanName,this.permissionPrefix+".createPreviewFile",tableName)):this.exportFormReport(button.templateUUID,button.templateShowPath,myJsContent,entityName,system,button.logSetting,button.taskMap,additionalParamMap,!1,beanName,button,tableName);else if("back"===button.code)this.closePage(this.pageCode,button.successOperation);else if("submit"===button.code||"agree"===button.code||"disagree"===button.code){var url;"submit"===button.code?url="/dsc/commons/submits":"agree"===button.code?url="/dsc/commons/approves":"disagree"===button.code&&(url="/dsc/commons/refuses"),this.submitForm(formData,system,tableName,entityName,myJsContent,button,formNoRuleCode,url,ids,isBatchProcessing,needDeleteFileUuidS,additionalParamMap,beanName)}},saveForm:function(e,t,n,o,a,i,r,s,u,l,c,p){var d=this,f=this.getSaveFormRequest(e,t.restfulApiPath,n,o,a,i,r,s,u,t.dataConversionRule,t.autoSetValueData,"/dsc/commons",t.logSetting,null,null,t.taskMap,l,c,p,!1,t.functionCode);f&&f.then((function(n){d.dealAfterSaveForm(n,e.standard,"superPageMessage.successfulSave",t.successOperation,t.code,t.isNeedValueMapping)}))},dealAfterSaveForm:function(e,t,n,o,a,i){var r;e&&(!1===t?(r=e.entity,this.formNo=e.formNo):r=e,this.callAfterClickButton(this.formEvents,this.formViewCode+"__"+a,{params:this.additionalParamMap,entity:r}),this.afterSuccessOperateInForm(o,r,i));this.reviewButton(),this.$message.success(this.$t(n))},getSubmitFormRequest:function(e,t,n,o,a,i,r,s,u,l,c,p,d,f,m,h){var g=this,b="superPageMessage.whetherToConfirm"+this.upperFirstCase(l);this.$confirm(this.$t(b,{name:r.label}),this.$t("superPageMessage.tips"),{confirmButtonText:this.$t("superPageMessage.sure"),cancelButtonText:this.$t("superPageMessage.cancel"),type:"warning"}).then((function(){var l={entity:e,tableName:o,formNoRuleCode:s,functionCode:r.functionCode};g.judgeHeavyList&&(l.judgeHeavyList=JSON.stringify(g.judgeHeavyList)),r.dataConversionRule&&(l.dataConversionRule=r.dataConversionRule.join(",")),r.autoSetValueData&&(l.autoSetValueData=JSON.stringify(r.autoSetValueData)),r.logSetting&&(l.logSettingText=r.logSetting),r.taskMap&&(l.taskMap=r.taskMap),l.systemCode||(l.systemCode=t.code),a&&(l.entityName=a),m&&(l.beanName=m),c&&c.length>0&&(l.ids=c),d&&(l.needDeleteFileUuidS=d),f&&(l.additionalParamMap=f),void 0!==h&&null!==h&&(l.isWorkflowEntity=h),l.isBatchProcessing=p;var b=g.getSaveFormRequestByParam(t,n,l,i,u);return b&&b.then((function(e){g.dealAfterSaveForm(e,t.standard,"superPageMessage.successfulOperation",r.successOperation,r.code,r.isNeedValueMapping)})).catch((function(e){console.log("getSubmitFormRequest error",e)})),b})).catch((function(){}))},submitForm:function(e,t,n,o,a,i,r,s,u,l,c,p,d){var f=this,m=this.getSubmitFormRequest(e,t,i.restfulApiPath,n,o,a,i,r,s,i.code,u,l,c,p,d,!1);m&&m.then((function(e){f.dealAfterSaveForm(e,t.standard,"superPageMessage.successfulOperation",i.successOperation,i.code,i.isNeedValueMapping)})).catch((function(e){}))},updateValues:function(e,t){Object(imatrix_ui_src_utils_jump_page_utils__WEBPACK_IMPORTED_MODULE_0__["b"])(e,t,this.jumpPageSetting,this.formData,this.tableName);var n=this.jumpPageSetting&&this.jumpPageSetting.updateValueEvent?this.jumpPageSetting.updateValueEvent:null;this.customEvents&&n&&null!==n&&this.customEvents[n]&&this.customEvents[n].call(this,{sourceModel:e,sourceTableName:t,jumpPageSetting:this.jumpPageSetting,entity:this.formData,targetTableName:this.tableName}),this.updateFormData(this.formData)},downloadTemplate:function(e,t,n){var o,a;t.templateFiles&&t.templateFiles.length>0?(o=t.templateFiles[0].templateUUID,a=t.templateFiles[0].templateShowPath):(o=t.templateUUID,a=t.templateShowPath);var i="?1=1";t&&t.functionCode&&(i+="&functionCode="+t.functionCode),n&&(i+="&tableName="+n),o&&a&&"undefined"!==o&&"undefined"!==a&&"null"!==o&&"null"!==a&&(i+="&fileName="+encodeURI(o)+"&showName="+encodeURI(a));var r=this.getBaseUrl(e);window.open(r+"/dsc/commons/download-files"+i)}};__webpack_exports__["a"]=buttonEvents},d864:function(e,t,n){var o=n("79aa");e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,a){return e.call(t,n,o,a)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,n){n("1654"),n("6c1c"),e.exports=n("ccb9").f("iterator")},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d9f6:function(e,t,n){var o=n("e4ae"),a=n("794b"),i=n("1bc3"),r=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),a)try{return r(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var o=n("584a"),a=n("e53d"),i="__core-js_shared__",r=a[i]||(a[i]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},e4ae:function(e,t,n){var o=n("f772");e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6f3:function(e,t,n){var o=n("07e3"),a=n("36c3"),i=n("5b4e")(!1),r=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=a(e),u=0,l=[];for(n in s)n!=r&&o(s,n)&&l.push(n);while(t.length>u)o(s,n=t[u++])&&(~i(l,n)||l.push(n));return l}},eb17:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("bc95"),a=n.n(o),i=n("a78e"),r=n.n(i),s=(n("8bbf"),"JWT");function u(){var e=a.a.getItem(s);return e||(e=r.a.get(s)),e}},ebfd:function(e,t,n){var o=n("62a0")("meta"),a=n("f772"),i=n("07e3"),r=n("d9f6").f,s=0,u=Object.isExtensible||function(){return!0},l=!n("294c")((function(){return u(Object.preventExtensions({}))})),c=function(e){r(e,o,{value:{i:"O"+ ++s,w:{}}})},p=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[o].i},d=function(e,t){if(!i(e,o)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return l&&m.NEED&&u(e)&&!i(e,o)&&c(e),e},m=e.exports={KEY:o,NEED:!1,fastKey:p,getWeak:d,onFreeze:f}},f28c:function(e,t){var n,o,a=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function u(e){if(o===clearTimeout)return clearTimeout(e);if((o===r||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"===typeof clearTimeout?clearTimeout:r}catch(e){o=r}})();var l,c=[],p=!1,d=-1;function f(){p&&l&&(p=!1,l.length?c=l.concat(c):d=-1,c.length&&m())}function m(){if(!p){var e=s(f);p=!0;var t=c.length;while(t){l=c,c=[];while(++d<t)l&&l[d].run();d=-1,t=c.length}l=null,p=!1,u(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||p||s(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},f6b4:function(e,t,n){"use strict";var o=n("c532");function a(){this.handlers=[]}a.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},f6cd:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return P}));var o=n("bc95"),a=n.n(o),i=n("8bbf"),r=n.n(i),s=n("29b3"),u=n("9696");function l(e){if(e&&e.length>0)for(var t=0;t<e.length;t++){var n=e[t];if(n.paramName&&("id"===n.paramName||"ID"===n.paramName))return!0}}function c(e,t,n,o,i,s,u,c){return new Promise((function(d,m){e&&"string"===typeof e&&""!==e&&(e=JSON.parse(e)),e.jumpPageUrl||d(),p(t,e.jumpPageUrl).then((function(t){if(e.jumpPageAdditional&&e.jumpPageAdditional.length>0){var p=r.a.prototype.baseAPI+"/component/super-pages/parsing-additional-parameters",m={};m.jumpPageAdditional=JSON.stringify(e.jumpPageAdditional),m.entity=o,m.additionalParamMap=i,console.log("paramMap.parentFormData",c),m.parentFormData=c;var h=l(e.jumpPageAdditional);r.a.prototype.$http.post(p,m).then((function(o){var i="";o&&o.uuid&&(i=o.uuid+"_additionalParamMap",a.a.setItem(i,JSON.stringify(o.paramMap))),e.paramStoreId=i,f(e,t,n,s,u,h).then((function(e){d(e)}))}))}else f(e,t,n,s,u,!1).then((function(e){d(e)}))})).catch((function(e){console.log(e),m(e)}))}))}function p(e,t){return new Promise((function(n,o){if(d(t))n(null);else if(e&&null!==e)n(e);else if(0===t.indexOf("page:")){var a=t.substring(t.indexOf("page:")+"page:".length),i=r.a.prototype.baseAPI+"/component/business-systems/with-page-codes/"+a;r.a.prototype.$http.get(i).then((function(e){n(e)})).catch((function(e){o(e)}))}else{var s=r.a.prototype.customSystem;s||(s=r.a.prototype.systemCode);var u=r.a.prototype.baseAPI+"/component/business-systems/"+s;r.a.prototype.$http.get(u).then((function(e){n(e)})).catch((function(e){o(e)}))}}))}function d(e){return 0===e.indexOf("http:")||0===e.indexOf("https:")}function f(e,t,n,o,a,i){return new Promise((function(r,s){var l=e.jumpPageUrl;if(l)if(0===l.indexOf("page:"))b(l,t,n,e,o,a,i).then((function(e){r(e)}));else{var c=_(e.paramStoreId),p=l;if(l.indexOf("path:")>=0&&(p=l.substring(l.indexOf("path:")+"path:".length)),d(p));else if(t){var f=Object(u["b"])(t.frontendUrl);p=f+"/#"+p}m(n,p,c,e,o,a,i),r()}}))}function m(e,t,n,o,a,i,r){t=h(e,t,o,a,i,r),n&&""!==n&&(-1!==t.indexOf("?")?(t+="&",t+=n):(t+="?",t+=n));var s="refresh";if(o&&o.jumpPageOpenMode&&(s=o.jumpPageOpenMode),"popup"===s){var u,l;u=o.jumpPageWidth?o.jumpPageWidth:window.innerWidth-150,l=o.jumpPageHeight?o.jumpPageHeight:window.innerHeight-150;var c="height="+l+", width="+u+", top=0, left=0, toolbar=no, menubar=no,scrollbars=no,resizable=no, location=no, status=no";window.open(t,"newW",c)}else"newTab"===s?window.open(t):location.href=t}function h(e,t,n,o,a,i){if((void 0===n.isNeedId||null===n.isNeedId||!0===n.isNeedId)&&!i&&e){var r="?";t.indexOf("?")>0&&(r="&"),t=t+r+"id="+e}var s=n.paramStoreId;if(s&&""!==s){var u="paramStoreId="+s;-1!==t.indexOf("?")?(t+="&",t+=u):(t+="?",t+=u)}return o&&o.length>0&&(-1!==t.indexOf("?")?(t+="&",t+="ids="+o.join(",")):(t+="?",t+="ids="+o.join(","))),a&&(-1!==t.indexOf("?")?t+="&buttonCode="+a:t+="?buttonCode="+a),t}function g(e){var t;return e&&-1!==e.indexOf("page:")&&(t=e.substring(e.indexOf("page:")+"page:".length)),t}function b(e,t,n,o,i,r,s){return new Promise((function(u,l){console.log("----jumpWithSuperPage---",e,t,n,o);var c=g(e),p="refresh";o&&o.jumpPageOpenMode&&(p=o.jumpPageOpenMode);var d={jumpMode:p};if(a.a.setItem(c+"-jumpMode",JSON.stringify(d)),"popup"===p){var f=y(t,c,n,o,p,i,r,s),m=v(o,t,c,n,p,i,r);m._path=f,u(m)}else if("newTab"===p){var h=y(t,c,n,o,p,i,r,s);window.open(h),u()}else{var b={pageCode:c,customSystem:t.code,jumpMode:p,buttonCode:r,ids:i?i.join(","):""};void 0!==o.isNeedId&&null!==o.isNeedId&&!0!==o.isNeedId||!s&&n&&(b.id=n);var _=o.paramStoreId;_&&""!==_&&(b["paramStoreId"]=_);var w=y(t,c,n,o,p,i,r,s);b._path=w,u(b)}}))}function v(e,t,n,o,a,i,r){var s={};e&&(s.jumpPageTitle=e.jumpPageTitle,s.jumpPageWidth=e.jumpPageWidth,s.jumpPageHeight=e.jumpPageHeight,s.valueMappings=e.valueMappings,s.updateValueEvent=e.updateValueEvent);var u=!1;return"undefined"!==typeof t.standard&&(u=!t.standard),s.pageCode=n,void 0!==e.isNeedId&&null!==e.isNeedId&&!0!==e.isNeedId||o&&(s.dataId=o),s.isDsc=u,s.paramStoreId=e.paramStoreId,s.jumpMode=a,s.ids=i,s.buttonCode=r,s}function y(e,t,n,o,a,i,r,s){var l=Object(u["b"])(e.frontendUrl),c=l+"/#/dsc-full-screen/page?customSystem="+e.code+"&pageCode="+t+"&jumpMode="+a;return h(n,c,o,i,r,s)}function _(e){var t=a.a.getItem(e);return w(t)}function w(e){var t="";if(e){var n=JSON.parse(e),o=Object.keys(n);console.log("analysisAdditionalParameterWithMap--Object.keys(additionalParameterMap)=",o);for(var a=0;a<o.length;a++)""!==t&&(t+="&"),t+=o[a],t+="=",t+=n[o[a]]}return t}function P(e,t,n,o,a,i){if(e&&null!==e&&o&&null!==o&&n&&null!==n&&n.valueMappings){var r=e;Array.isArray(e)&&e.length>0&&(r=e[0]);var u=n.valueMappings;u.forEach((function(e){var n=e.source,u=Object(s["c"])(r,n),l="__";void 0!==u&&null!==u||(n&&t&&n.indexOf(".")>0&&(n=t+l+n),u=Object(s["c"])(r,n));var c=e.target;void 0!==i&&!0===i&&c&&a&&c.indexOf(".")>0&&(c=a+l+c),Object(s["e"])(o,c,u)}))}}},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(o){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(o.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f809:function(e,t,n){"use strict";e.exports=function(e){e||(e={}),"string"===typeof e&&(e={cookie:e}),void 0===e.cookie&&(e.cookie="");var t={getItem:function(t){for(var n=e.cookie.split(/;\s*/),o=0;o<n.length;o++){var a=n[o].split("="),i=decodeURIComponent(a[0]);if(i===t)return decodeURIComponent(a[1])}},setItem:function(t,n,o){if("string"!==typeof t||"string"!==typeof n)return!1;o||(o={});var a=encodeURIComponent(t)+"="+encodeURIComponent(n);return o.hasOwnProperty("expires")&&(a+="; expires="+o.expires),o.hasOwnProperty("path")&&(a+="; path="+o.path),o.hasOwnProperty("domain")&&(a+="; domain="+o.domain),o.secure&&(a+="; secure"),e.cookie=a,a},removeItem:function(t){e.cookie=t+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},clear:function(){for(var n=e.cookie.split(/;\s*/),o=0;o<n.length;o++)t.removeItem(decodeURIComponent(n[o].split("=")[0]))}};return t}},f893:function(e,t,n){e.exports={default:n("f921"),__esModule:!0}},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},fa99:function(e,t,n){n("0293"),e.exports=n("584a").Object.getPrototypeOf},fb15:function(e,t,n){"use strict";var o;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=o[1]));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("super-page-component",{attrs:{code:e.code,"data-id":e.dataId,"task-id":e.taskId,"page-setting":e.pageSetting,preview:e.preview,"is-dsc":e.isDsc},on:{"update-value":e.updateValues}})],1)},i=[],r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("widget-page",{attrs:{"page-code":e.code,"data-id":e.dataId,"task-id":e.taskId,"page-setting":e.pageSetting},on:{"update-value":e.updateValues}})],1)},s=[],u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"widget-page"},[e.pageSettingList&&null!==e.pageSettingList&&e.pageSettingList.length>0&&!0===e.isShowPage?e._l(e.pageSettingList,(function(t,o){return n("el-row",{key:o},[e._l(t.colList,(function(t,o){return[n("el-col",{key:o,class:{placeholder:"placeholder"===t.baseSetting.type||"enter"===t.baseSetting.type},attrs:{span:t.options&&t.options.colWidth?t.options.colWidth:24}},["tab"===t.baseSetting.type?n("tab-page",{attrs:{"col-setting":t,"data-id":e.dataId,"task-id":e.taskId,"page-code":e.pageCode},on:{"update-value":e.updateValues}}):n("widget-col-page",{attrs:{col:t,"data-id":e.dataId,"task-id":e.taskId,"page-code":e.pageCode,"field-permissions":e.fieldPermissions},on:{"update-value":e.updateValues,export:e.exportReport,"prohibi-edit":e.fnProhibitToEdit}})],1)]}))],2)})):e._e()],2)},l=[],c=n("546e"),p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-tabs",{attrs:{type:"card"},on:{"tab-click":function(t){return e.handleClick(t,e.colSetting.baseSetting.clickEvent)}},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.colSetting.options.tabContent,(function(t){return n("el-tab-pane",{key:t.code,attrs:{label:t.label,name:t.code}},[n("widget-tab-pane-page",{attrs:{"page-code":e.pageCode,"data-id":e.dataId,"one-tab-content":t.list?t.list:[],"workflow-id":e.workflowId,"tab-code":t.code,"task-id":e.taskId},on:{"update-value":e.updateValues}})],1)})),1)],1)},d=[],f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.pageSettingList&&null!==e.pageSettingList&&e.pageSettingList.length>0?e._l(e.pageSettingList,(function(t,o){return n("el-row",{key:o},[e._l(t.colList,(function(t,o){return[n("el-col",{key:o,class:{placeholder:"placeholder"===t.baseSetting.type||"enter"===t.baseSetting.type},attrs:{span:t.options&&t.options.colWidth?t.options.colWidth:24}},["tab"===t.baseSetting.type?n("sub-tab-page",{attrs:{"col-setting":t,"workflow-id":e.workflowId,"data-id":e.dataId,"task-id":e.taskId,"page-code":e.pageCode},on:{"update-value":e.updateValues}}):n("widget-col-page",{attrs:{col:t,"data-id":e.dataId,"workflow-id":e.workflowId,"task-id":e.taskId,"page-code":e.pageCode,"tab-code":e.tabCode,"field-permissions":e.fieldPermissions},on:{"update-value":e.updateValues,"prohibi-edit":e.fnProhibitToEdit}})],1)]}))],2)})):e._e()],2)},m=[],h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.colSetting.options.tabContent,(function(t){return n("el-tab-pane",{key:t.code,attrs:{label:t.label,name:t.code}},[n("widget-sub-tab-pane-page",{attrs:{"page-code":e.pageCode,"data-id":e.dataId,"one-tab-content":t.list?t.list:[],"workflow-id":e.workflowId,"task-id":e.taskId},on:{"update-value":e.updateValues}})],1)})),1)],1)},g=[],b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.pageSettingList&&null!==e.pageSettingList&&e.pageSettingList.length>0?e._l(e.pageSettingList,(function(t,o){return n("el-row",{key:o},[e._l(t.colList,(function(t,o){return[n("el-col",{key:o,class:{placeholder:"placeholder"===t.baseSetting.type||"enter"===t.baseSetting.type},attrs:{span:t.options&&t.options.colWidth?t.options.colWidth:24}},[n("widget-col-page",{attrs:{col:t,"data-id":e.dataId,"workflow-id":e.workflowId,"task-id":e.taskId,"page-code":e.pageCode,"field-permissions":e.fieldPermissions},on:{"update-value":e.updateValues,"prohibi-edit":e.fnProhibitToEdit}})],1)]}))],2)})):e._e()],2)},v=[],y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.colStyle},["button"===e.col.baseSetting.type?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.permission,expression:"permission"}],attrs:{disabled:e.preventReclick,size:e.col.options.buttonSize?e.col.options.buttonSize:"small",type:e.col.options.buttonType?e.col.options.buttonType:"",icon:e.col.options.buttonIcon,plain:!!e.col.options.buttonPlain&&e.col.options.buttonPlain,round:!!e.col.options.buttonRound&&e.col.options.buttonRound,circle:!!e.col.options.buttonCircle&&e.col.options.buttonCircle},on:{click:function(t){return e.clickButtonEvent(e.col,e.system)}}},[e._v("\n "+e._s(e.$t(e.col.baseSetting.label))+"\n ")]):"listView"===e.col.baseSetting.type?n("list-page",{attrs:{"col-setting":e.col,"page-code":e.pageCode,"tab-code":e.tabCode},on:{"update-value":e.updateValues,"prohibi-edit":e.fnProhibitToEdit}}):"formView"===e.col.baseSetting.type?n("form-page",{ref:"formView",attrs:{"col-setting":e.col,"data-id":e.dataId,"task-id":e.taskId,"page-code":e.pageCode,"tab-code":e.tabCode},on:{"update-value":e.updateSetValues,"prohibi-edit":e.fnProhibitToEdit}}):"chartQuery"===e.col.baseSetting.type?n("chart-query-page",{attrs:{"query-code":e.col.baseSetting.modelCode,"is-initial-query":e.col.baseSetting.isInitialQuery,"col-setting":e.col,"page-code":e.pageCode},on:{export:e.exportReport,"prohibi-edit":e.fnProhibitToEdit}}):"chartView"===e.col.baseSetting.type?n("chart-view-page",{attrs:{"chart-view-code":e.col.baseSetting.modelCode,"is-initial-query":e.col.baseSetting.isInitialQuery,"is-need-custom-style":e.col.baseSetting.isNeedCustomStyle,"is-need-export":e.col.baseSetting.isNeedExport,"page-code":e.pageCode},on:{"prohibi-edit":e.fnProhibitToEdit}}):"customComponent"===e.col.baseSetting.type?n(e.col.baseSetting.customComponentName,{ref:e.col.baseSetting.customComponentName+"_CustomComponent",tag:"component",on:{"prohibi-edit":e.fnProhibitToEdit,"refresh-tab":e.refreshTab}}):e.isWorkflowHistory?[e.workflowId&&null!==e.workflowId?["workflowHistoryList"===e.col.baseSetting.type?n("workflow-history-list",{ref:"historyList",attrs:{"workflow-id":e.workflowId}}):"workflowHistoryGraph"===e.col.baseSetting.type?n("workflow-history",{ref:"historyGraph",attrs:{id:e.workflowId}}):e._e()]:[e._v("\n "+e._s(e.$t("superPage.unSubmitProcess"))+"\n ")]]:"label"===e.col.baseSetting.type?n("div",[e._v("\n "+e._s(e.col.baseSetting.label)+"\n ")]):"placeholder"===e.col.baseSetting.type||"enter"===e.col.baseSetting.type?n("div"):"groupTag"===e.col.baseSetting.type?n("group-tag",{attrs:{label:e.col.baseSetting.label}}):e._e()],2)},_=[],w=n("2f62"),P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showPage?n("div",[e.colSetting.options.buttonGroup?n("button-group",{attrs:{"button-groups":e.colSetting.options.buttonGroup,"permission-prefix":e.permissionPrefix,"additional-param-map":e.additionalParamMap,"list-toolbar-list":e.listToolbarList,"button-area-custom-component-arr":e.colSetting.options.buttonAreaCustomComponentArr,position:"list","search-form-info":e.searchFormInfo,"page-code":e.pageCode,selections:e.selections},on:{refresh:e.refreshList,searchGridData:e.searchGridData,click:e.clickListButton,getSystemRef:e.getSystemRef}}):n("div",[n("list-toolbar-page",{attrs:{"list-toolbar-list":e.listToolbarList,"page-code":e.pageCode},on:{searchGridData:e.searchGridData}}),n("page-custom-component",{attrs:{"button-area-custom-component-arr":e.colSetting.options.buttonAreaCustomComponentArr,"page-code":e.pageCode},on:{getSystemRef:e.getSystemRef}})],1),n("input",{ref:"_selectFile_",staticStyle:{display:"none"},attrs:{type:"file",name:"_selectFile_"},on:{change:function(t){return e.doImport(e.button)}}}),n("super-grid",{ref:"grid",attrs:{url:e.urlToListData,options:e.options,code:e.listCode,"search-form-info":e.searchFormInfo},on:{select:e.select,"select-all":e.select,setSearchType:e.closeSearch}}),e.isShowPageDialog?n("super-page-dialog",{attrs:{preview:e.isPreview,"dev-mode":e.pageDevMode,"jump-page-setting":e.jumpPageSetting},on:{"update-value":e.updateValues,close:e.closePage}}):e._e()],1):e._e()},C=[],O=n("51ae"),S=n("8bbf"),k=n.n(S),T=n("3c3b"),E=n("06e7"),N=n("65f1"),D={callBeforeClickButton:function(e,t,n){var o=!0;if(e){var a=e[t+"__beforeClick"];a&&(o=a.call(this,n),void 0===o&&(o=!0))}return o},callAfterClickButton:function(e,t,n){if(e){var o=e[t+"__afterClick"];o&&o.call(this,n)}},callFormItemEvent:function(e,t,n,o){if(t&&e&&e.customEvents){var a=this.getEventFunction(e,"customEvents",t);if(a){var i={params:e.additionalParamMap,entity:n};return o&&(i.eventParams=o),a.call(this,i)}}},getEventFunction:function(e,t,n){if(e&&e[t]&&e[t][n]&&"function"===typeof e[t][n])return e[t][n]}},M=D,x={refreshForm:function(e){this.$refs.superForm&&e&&this.$refs.superForm.refresh(e)},refreshList:function(){this.$refs.grid&&this.$refs.grid.refresh()},refreshSubTable:function(e,t){this.$refs.superForm&&e&&t&&this.$refs.superForm.refreshSubTable(e,t)}},j=x,I=n("18ce"),R=n("3ff5"),F=n("8722"),B=n("8217"),$=n("9696");function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U={name:"ListPage",components:{ButtonGroup:T["a"],listToolbarPage:R["a"],pageCustomComponent:F["a"]},props:{colSetting:{type:Object,default:null},pageCode:{type:String,default:null},tabCode:{type:String,default:null}},data:function(){var e=k.a.prototype.baseURL,t=this.colSetting.baseSetting.modelDataTableCode,n=Object(B["c"])(this.pageCode,t+"_isProcess");null===n&&void 0===n&&(n=!1);var o=Object(B["c"])(this.pageCode,"_systemInfo"),a=Object(B["c"])(this.pageCode,"_pageIsDsc");console.log("list-page--_pageIsDsc--isSqlQuery=",a,"this.pageCode=",this.pageCode);var i,r=Object(B["c"])(this.pageCode,"_pageCode"),s=this.getUrlToListData(o),u=this.colSetting.baseSetting.modelDataTableEntityName,l=this.colSetting.baseSetting.beanName;o&&(e=Object($["a"])(o.backendUrl),i=o.code+"."+r+"."+this.colSetting.baseSetting.componentCode);var c=this.colSetting.options.listFilterCondition;"undefined"===typeof c&&(c=[]);var p=Object(B["c"])(this.pageCode,"_pathQuery"),d=Object(B["c"])(this.pageCode,"_pageHeight"),f={isSql:a,extraParam:{entityName:u,beanName:l,functionCode:i+".list",tableName:t},initSearchForm:c,lineEditOptions:{aftersaveIsCreateRow:!1,autoSave:!1,enter:this.enterSave,esc:this.escRestorRow},multiple:this.colSetting.options.isListViewMultiple,showIndex:this.colSetting.options.isListViewShowSerialNumber,pageSizes:this.colSetting.options.listViewPageNum,initSearch:this.colSetting.options.isListViewDefaultQuery,resizeHeight:this.resizeListHeight,pageCode:this.pageCode,pageHeight:d,additionalParamMap:p};o&&(f.extraParam.systemCode=o.code,f.system=o),this.colSetting.options.sortFields?(f.initSortInfo=[],this.colSetting.options.sortFields.forEach((function(e){var t={order:e.sortOrder};t.prop=a?e.propDbName:e.sortColumn,f.initSortInfo.push(t)}))):this.colSetting.options.listViewOrderProp&&this.colSetting.options.listViewOrderMode&&(f.initSortInfo={order:this.colSetting.options.listViewOrderMode},f.initSortInfo.prop=a?this.colSetting.options.listViewOrderPropDbName:this.colSetting.options.listViewOrderProp),this.colSetting.options.isWithDataPermission&&(f.isWithDataPermission=this.colSetting.options.isWithDataPermission);var m=this.colSetting.options.listViewTreeTableSetting;if(m){var h,g,b=m.parentProp;if(b&&b.indexOf("~~")>0&&(h=b.substring(0,b.indexOf("~~")),g=b.substring(b.indexOf("~~")+2)),f.parentProp=a?g:h,f.parentProp){f.extraParam.listViewTreeSetting=JSON.stringify(m);var v=m.lazy;f.lazy=void 0===v||null===v||v;var y=m.defaultExpandAll;f.defaultExpandAll=void 0!==y&&null!==y&&y,a&&(f.subRowUrl=e+"/dsc/commons/list-subs")}}var _=Object(B["c"])(this.pageCode,"_pagePreview");void 0!==_&&!0===_&&(f.loadBeforeSend=function(){return!1});var w=Object(B["c"])(this.pageCode,"_pageDevMode");null!==w&&void 0!==w||(w=!1);var P,C="";this.colSetting.options&&this.colSetting.options.formNoRuleCode&&(C=this.colSetting.options.formNoRuleCode),this.colSetting.options&&this.colSetting.options.listToolbarList&&(P=this.colSetting.options.listToolbarList);var O,S=this.colSetting.baseSetting.modelCode,T="";this.colSetting.options&&this.colSetting.options.importRuleCode&&(T=this.colSetting.options.importRuleCode),f.isWorkflowEntity=n;var E=Object(B["c"])(this.pageCode,"_pageEvents");if(E){O=E.listEvents,O&&O[S+"__beforeListLoad"]&&(f.loadBeforeSend=O[S+"__beforeListLoad"]),O&&O[S+"__onListLoad"]&&(f.gridDataLoaded=O[S+"__onListLoad"]),O&&O[S+"__afterListLoad"]&&(f.gridComplete=O[S+"__afterListLoad"]);var N=E.customEvents;N&&(f.eventCallBack=N,this.colSetting.options.styleCustomMethod&&""!==this.colSetting.options.styleCustomMethod&&N&&N[this.colSetting.options.styleCustomMethod]&&(f.rowStyleRender=N[this.colSetting.options.styleCustomMethod]))}return{listToolbarList:P,urlToListData:s,options:f,operationButtons:this.colSetting.options.operationButtons,selections:null,listCode:S,permissionPrefix:i,system:o,tableName:this.colSetting.baseSetting.modelDataTableCode,entityName:u,beanName:l,myJsContent:null,isSqlQuery:a,judgeHeavyList:this.colSetting.options.judgeHeavyList,listViewImportDuplicate:this.colSetting.options.listViewImportDuplicate,buttonRestfulApiPath:null,deleteLogicSetting:this.colSetting.options.deleteLogicSetting,baseURL:e,autoSetValueData:null,dataConversionRule:null,formNoRuleCode:C,importRuleCode:T,isPreview:_,button:null,logSettingText:null,additionalParamMap:null,dataTypeMap:null,showPage:!1,operationButtonObj:{},listEvents:O,pageDevMode:w,isShowPageDialog:!1,jumpPageSetting:null,editRowData:null,searchIsPopup:!1,customEvents:E?E.customEvents:null,listToolbarFormData:null,isWorkflowEntity:n,searchFormInfo:{data:{}}}},watch:{jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;E["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o,e),t.$set(t,"selections",null),E["a"].$off(n+"-close-dialog")}))}}}},created:function(){var e=this;this.getDataTypeMap().then((function(){var t=e.colSetting.baseSetting.modelDataTableCode,n=Object(B["c"])(e.pageCode,t+"_isProcess");e.isWorkflowEntity=(null!==n||void 0!==n)&&n,e.setOperationButtons()}));var t=Object(B["c"])(this.pageCode,"additionalParamMap");t&&(this.additionalParamMap=t,this.$set(this.options,"additionalParamMap",this.additionalParamMap));var n=this;E["a"].$on(n.pageCode+"-close-component-page-dialog",(function(){n.$refs.grid&&n.$refs.grid.closePageDialog()})),E["a"].$on(n.pageCode+"-refresh-tab",(function(e){n.$refs.grid&&void 0!==e&&e===n.tabCode&&n.$refs.grid.refresh()}))},beforeDestroy:function(){E["a"].$off(this.pageCode+"-close-component-page-dialog"),E["a"].$off(this.pageCode+"-refresh-tab")},methods:A(A(A(A(A({},O["a"]),N["a"]),M),j),{},{getSystemRef:function(e,t){if(e||(e="grid"),t||(t="refresh"),this.$refs[e]){var n=this.$refs[e];n&&"refresh"===t&&n.refresh()}return 123},getDataTypeMap:function(){var e=this;return new Promise((function(t,n){e.isPreview?(e.showPage=!0,t()):e.getDataTypeMapRequest(e.system,e.tableName).then((function(n){e.dataTypeMap=n.dataTypeMap,Object(B["d"])(e.pageCode,e.tableName+"_isProcess",n.isProcess),console.log(I["a"]),e.showPage=!0,t()})).catch((function(){n(new Error("获得数据表:"+e.tableName+"的字段类型集合失败"))}))}))},clickImport:function(){this.isPreview||this.$refs._selectFile_.click()},doImport:function(){var e=this.button;if(e){var t=this;if(!this.$refs._selectFile_)return;if(""===this.$refs._selectFile_.value||null===this.$refs._selectFile_.value)return;var n=this.$refs._selectFile_.files[0];n?(this.$refs._selectFile_.value=null,t.doImportFinally(t.system,e.restfulApiPath,t.tableName,t.entityName,t.myJsContent,e,t.listViewImportDuplicate,n,t.judgeHeavyList,t.formNoRuleCode,t.importRuleCode,t.listCode,t.beanName)):this.$message({showClose:!0,type:"warning",message:this.$t("superPageMessage.noFileSelected")})}},clickListButton:function(e){var t=this;if(!t.isPreview&&e){var n=this.callBeforeClickButton(this.listEvents,this.listCode+"__"+e.code,{params:this.additionalParamMap,entity:this.selections,listToolbarFormData:this.listToolbarFormData,button:e,formNoRuleCode:this.formNoRuleCode,importRuleCode:this.importRuleCode});if(!n)return;var o=[];if(t.selections&&null!==t.selections&&(o=[].concat(t.selections)),e.code&&"search"===e.code)return void this.clickSearchButton(e);if(e.code&&"import"===e.code)return this.button=e,void this.clickImport();if(e.code&&"lineEditCreate"===e.code)return void this.createRow(e);var a=[];a=t.getSelectionIds(),t.canExecuteWithMore(e.executableData,o,t.isSqlQuery,this.tableName,this.additionalParamMap).then((function(n){if(!0===n.canExecute){"lineEditDelete"!==e.code&&(o=n.entities);var i=!1;e&&"undefined"!==typeof e.jsContent&&(i=e.jsContent),t.myJsContent=i,t.buttonRestfulApiPath=e.restfulApiPath,e.autoSetValueData&&(t.autoSetValueData=e.autoSetValueData),e.dataConversionRule&&(t.dataConversionRule=e.dataConversionRule),t.clickButton(e,t.system,t.listCode,a,t.tableName,t.entityName,i,o,t.deleteLogicSetting,t.formNoRuleCode,t.importRuleCode,t.beanName,t.isWorkflowEntity)}}))}},clickSearchButton:function(e){var t=this.$t("superPageMessage.cancelSearchButtonLabel"),n=this.$t("superPageMessage.searchButtonLabel"),o=this.$refs.grid.getQueryMode();"popup"===o?(this.$refs.grid.showSearchForm(),this.searchIsPopup||(e.label=n)):e.label&&e.label!==n?(this.$refs.grid.cancelSearch(),e.label=n):(this.$refs.grid.showSearchForm(),this.searchIsPopup||(e.label=t))},closeSearch:function(e){this.searchIsPopup=e},createRow:function(e){var t=this;this.$refs.grid.createRow(this.listCode).then((function(n){t.callAfterClickButton(t.listEvents,t.listCode+"__"+e.code,{params:t.additionalParamMap,row:n,listToolbarFormData:t.listToolbarFormData})}))},saveLineEditRow:function(e,t,n,o,a,i){var r=this,s=this.operationButtonObj.lineEditSave,u=this;return new Promise((function(t,n){r.getSaveFormRequest(u.system,u.buttonRestfulApiPath,"","",u.tableName,e,u.entityName,u.myJsContent,u.formNoRuleCode,u.dataConversionRule,u.autoSetValueData,"/dsc/commons",u.operationButtonObj&&u.operationButtonObj.lineEditSave?u.operationButtonObj.lineEditSave.logSetting:null,o,i,s.taskMap,null,a,u.beanName,u.isWorkflowEntity,s.functionCode).then((function(e){t(e?e.entity:{})})).catch((function(e){n(e)}))}))},getUrlToListData:function(e){var t=this.colSetting.options.urlToListData;return e&&!1===e.standard&&!t&&(t=this.baseURL+"/dsc/commons/list"),t&&(t=this.getRealRestApiPath(t,e)),t},select:function(e,t){this.selections=e},setOperationButtons:function(){var e=this;if(this.operationButtonObj={},this.operationButtons){var t=!1,n=Object(B["c"])(this.pageCode,"_pageDevMode"),o=Object(B["c"])(this.pageCode,"_pagePreview");(n&&!0===n||o&&!0===o)&&(t=!0);var a=[],i={};for(var r in this.operationButtons.forEach((function(n){var o={},r=Object.assign({},n);if(r.type="text",r.elementType="el-button",t||(r.permission=e.permissionPrefix+"."+n.code),o.props=r,o.onClick=e.getOperationButtonClickEvent(n),n.groupName&&""!==n.groupName){var s=n.groupName;if(i[s]){var u=i[s];u.push(o)}else{var l=[];l.push(o),i[s]=l}}else a.push(o)})),i){var s={};s.label=r,s.isGroup=!0,s.buttons=i[r],a.push(s)}this.options.operations||(this.options.operations={}),this.options.operations.operation=a}},getOperationButtonClickEvent:function(e){var t=function(){};return this.operationButtonObj[e.code]=e,"lineEditSave"===e.code?t=this.saveRow:"restoreEdit"===e.code?t=this.restoreRow:"lineEditUpdate"===e.code?t=this.editRow:"lineEditDelete"===e.code?t=this.deleteRow:"viewDetail"===e.code&&(t=this.viewDetailLineEdit),t},enterSave:function(e,t,n,o){this.saveRow(null,null,n,t,e)},escRestorRow:function(e,t,n,o){this.restoreRow(null,null,n,t,e)},beforeSaveRow:function(e,t,n,o,a,i){var r=this.operationButtonObj.lineEditSave;return this.callBeforeClickButton(this.listEvents,this.listCode+"__"+r.code,{params:a,row:e,columns:t,dataTypeMap:n,dynamicColumnInfo:o,mainDefaultValueColumns:i})},saveRow:function(e,t,n,o,a){var i=this,r=this.operationButtonObj.lineEditSave;this.$set(this.options.lineEditOptions,"beforeSave",this.beforeSaveRow);var s=[];s.push(n),this.canExecuteWithMore(r.executableData,s,this.isSqlQuery,this.tableName,this.additionalParamMap).then((function(s){!0===s.canExecute&&(r.autoSetValueData&&(i.autoSetValueData=r.autoSetValueData),i.$set(i.options.lineEditOptions,"saveRow",i.saveLineEditRow),i.$refs.grid.saveRow(a,i.listCode).then((function(){i.callAfterClickButton(i.listEvents,i.listCode+"__"+r.code,{params:i.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a})})))}))},restoreRow:function(e,t,n,o,a){var i=this.callBeforeClickButton(this.listEvents,this.listCode+"__restoreEdit",{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a});i&&(this.$refs.grid.restoreRow(a,this.listCode),this.callAfterClickButton(this.listEvents,this.listCode+"__restoreEdit",{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a}))},editRow:function(e,t,n,o,a){var i=this,r=this.operationButtonObj.lineEditUpdate,s=this.callBeforeClickButton(this.listEvents,this.listCode+"__"+r.code,{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a});if(s){this.editRowData=n;var u=[];u.push(n),this.canExecuteWithMore(r.executableData,u,this.isSqlQuery,this.tableName,this.additionalParamMap).then((function(s){if(!0===s.canExecute)if(r.jumpPage){var u;if(n&&n.id?u=n.id:n&&n.ID&&(u=n.ID),!u)return void i.$message({showClose:!0,type:"warning",message:i.$t("superPageMessage.pleaseSaveRow")});i.update(r.jumpPage,i.system,u,r)}else i.$refs.grid.editRow(a,i.listCode),i.callAfterClickButton(i.listEvents,i.listCode+"__"+r.code,{params:i.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a})}))}},deleteRow:function(e,t,n,o,a){var i=this,r=this.operationButtonObj.lineEditDelete,s=this.callBeforeClickButton(this.listEvents,this.listCode+"__"+r.code,{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a});if(s)if(n.id||n.ID){this.buttonRestfulApiPath=r.restfulApiPath;var u=!1;r&&"undefined"!==typeof r.jsContent&&(u=r.jsContent),this.myJsContent=u;var l=[];l.push(n),this.canExecuteWithMore(r.executableData,l,this.isSqlQuery,this.tableName,this.additionalParamMap).then((function(e){if(!0===e.canExecute){var t=[];n.id?t.push(n.id):t.push(n.ID),i.delete(t,i.system,i.buttonRestfulApiPath,i.tableName,i.entityName,i.myJsContent,r,i.deleteLogicSetting,null,i.beanName,i.isWorkflowEntity)}}))}else this.restoreRow(e,t,n,o,a),this.callAfterClickButton(this.listEvents,this.listCode+"__"+r.code,{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a})},viewDetailLineEdit:function(e,t,n,o,a){var i=this.operationButtonObj.viewDetail,r=this.callBeforeClickButton(this.listEvents,this.listCode+"__"+i.code,{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a});r&&this.viewDetail(i.jumpPage,this.system,n.id?n.id:n.ID?n.ID:null,i,n)},getSelectionIds:function(){var e=[];return this.selections&&null!==this.selections&&this.selections.forEach((function(t){e.push(t.id?t.id:t.ID?t.ID:null)})),e},searchGridData:function(e,t,n,o){this.listToolbarFormData=e;var a=[];if(e)for(var i in e){var r=e[i];if(null!==r&&void 0!==r&&""!==r)if(r instanceof Array){if(r.length>0){for(var s=[],u=0;u<r.length;u++){var l={};l.leftBracket=0===u?"((":"(",l.propName=i,l.propDbName=i,l.dataType=n[i]?n[i]:null,l.operator="EQ",l.propValue=r[u],u===r.length-1?(l.rightBracket="))",l.joinSign="and"):(l.rightBracket=")",l.joinSign="or"),s.push(l)}a=a.concat(s)}}else if(o&&t[i+"~~year"]&&t[i+"~~month"]){if("year"===o){var c=this.getFieldParamByYearOrMonth(i,r,n[i],"YEAR");a.push(c)}else if("month"===o){var p=this.getFieldParamByYearOrMonth(i,r,n[i],"MONTH");a.push(p)}}else if("year"===t[i+"~~year"]){var d=this.getFieldParamByYearOrMonth(i,r,n[i],"YEAR");a.push(d)}else if("month"===t[i+"~~month"]){var f=this.getFieldParamByYearOrMonth(i,r,n[i],"MONTH");a.push(f)}else{var m={leftBracket:"("};m.propName=i,m.propDbName=i,m.dataType=n[i]?n[i]:null,m.operator="EQ",m.propValue=r,m.rightBracket=")",m.joinSign="and",a.push(m)}}this.$refs.grid.refresh(null,null,a)},getFieldParamByYearOrMonth:function(e,t,n,o){var a={leftBracket:"("};return a.propName=e,a.propDbName=e,a.dataType=n||null,a.dateFormatType=o,a.operator="EQ",a.startValue=t,a.endValue=t,a.propValue=t,a.rightBracket=")",a.joinSign="and",a},resizeListHeight:function(e){var t=Object(B["c"])(this.pageCode,"_pageHeight");if(void 0===t||null===t||""===t)return e.height-20}})},W=U,q=n("2877"),J=Object(q["a"])(W,P,C,!1,null,"475f8e0e",null),G=J.exports,H=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isWorkflowForm?n("workflow-form-page",{ref:"workflowFormPage",attrs:{"col-setting":e.colSetting,"data-id":e.dataId,"task-id":e.taskId,"tab-code":e.tabCode,"email-template-code":e.emailTemplateCode,"page-code":e.pageCode}}):n("common-form-page",{ref:"formPage",attrs:{"col-setting":e.colSetting,"data-id":e.dataId,"page-code":e.pageCode,"tab-code":e.tabCode},on:{"update-value":e.updateSetValues}})],1)},K=[],Q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowForm?[e.isShowBuuton&&e.buttoGroups&&e.refreshButton?n("button-group",{attrs:{"button-groups":e.buttoGroups,"permission-prefix":e.permissionPrefix,"table-name":e.tableName,"button-area-custom-component-arr":e.colSetting.options.buttonAreaCustomComponentArr,position:"form","page-code":e.pageCode,"get-form-data":e.saveFormData,"form-data-fun":e.getFormData},on:{refresh:e.refreshForm,click:e.clickCommonFormButton,"prohibi-edit":e.fnProhibitToEdit}}):e._e(),n("form-head",{attrs:{"form-title":e.formTitle,"form-no":e.formNo,"form-no-label":e.formNoLabel}}),e.formViewId?[e.isInitDscFormData?n("super-form",{ref:"superForm",attrs:{"form-view-id":e.formViewId,"path-query":e.pathQuery,"is-page-info":e.isPreview?e.isPreview:!!e.pageDevMode&&e.pageDevMode,value:e.formData?e.formData:{},options:e.formOptions},on:{"update-value":e.updateSetValues,"shou-button":e.reviewButton}}):n("super-form",{ref:"superForm",attrs:{"form-view-id":e.formViewId,"path-query":e.pathQuery,"is-page-info":e.isPreview?e.isPreview:!!e.pageDevMode&&e.pageDevMode,options:e.formOptions},on:{"update-value":e.updateSetValues,"shou-button":e.reviewButton}})]:[n("super-form",{ref:"superForm",attrs:{"form-view-code":e.formViewCode,"form-view-version":e.formViewVersion,"is-page-info":e.isPreview?e.isPreview:!!e.pageDevMode&&e.pageDevMode,value:e.formData?e.formData:{},options:e.formOptions},on:{"update-value":e.updateSetValues,"shou-button":e.reviewButton}})]]:e._e(),e.isShowPageDialog?n("super-page-dialog",{attrs:{preview:e.isPreview,"dev-mode":e.pageDevMode,"jump-page-setting":e.jumpPageSetting},on:{"update-value":e.updateValues,close:e.closePage}}):e._e()],2)},z=[],Y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"formHead"},[e.formTitle&&""!==e.formTitle&&null!==e.formTitle?n("div",{staticClass:"formTitle"},[e._v("\n "+e._s(e.formTitle)+"\n ")]):e._e(),e.formNo?n("span",{staticStyle:{"font-size":"18px",position:"relative","margin-left":"75%"}},[e._v(e._s(e.formNoLabel&&null!==e.formNoLabel&&""!==e.formNoLabel.trim()?e.formNoLabel+":":e.$t("superPage.formNo"))+e._s(e.formNo))]):e._e()])])},X=[],Z={name:"FormHead",components:{},props:{formTitle:{type:String,default:null},formNo:{type:String,default:null},formNoLabel:{type:String,default:null}}},ee=Z,te=(n("0861"),Object(q["a"])(ee,Y,X,!1,null,"b94bf09a",null)),ne=te.exports,oe=n("d7e1");function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){return se="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}var ue={name:"CommonFormPage",components:{ButtonGroup:T["a"],formHead:ne},props:{colSetting:{type:Object,default:null},dataId:{type:Number,default:null},pageCode:{type:String,default:null},tabCode:{type:String,default:null}},data:function(){var e=this.colSetting.baseSetting.modelDataTableEntityName,t=this.colSetting.baseSetting.beanName,n=Object(B["c"])(this.pageCode,"_systemInfo"),o=Object(B["c"])(this.pageCode,"_pageIsDsc"),a=Object(B["c"])(this.pageCode,"_pageCode"),i=Object(B["c"])(this.pageCode,"_pathQuery"),r=Object(B["c"])(this.pageCode,"_pagePreview");void 0===r&&(r=!1);var s,u=Object(B["c"])(this.pageCode,"_pageDevMode");null!==u&&void 0!==u||(u=!1),n&&(s=n.code+"."+a+"."+this.colSetting.baseSetting.componentCode);var l=this.colSetting.options.buttonGroup;l||(l=[]);var c="";this.colSetting.options&&this.colSetting.options.formNoRuleCode&&(c=this.colSetting.options.formNoRuleCode);var p=!1;this.colSetting.options&&this.colSetting.options.isBatchProcessing&&(p=this.colSetting.options.isBatchProcessing);var d=Object(B["c"])(this.pageCode,"_pageHeight"),f={isSql:o,pageCode:this.pageCode,pageHeight:d},m=this.isViewDetail();m&&(f.fieldPermissions=[{name:"all_fields",canEdit:!1}]),f.devMode=u;var h=null;this.colSetting.baseSetting.modelVersion&&(h=parseInt(this.colSetting.baseSetting.modelVersion));var g=this.colSetting.baseSetting.modelCode,b=[],v=Object(B["c"])(this.pageCode,"_pageEvents");return v&&(b=v.formEvents),f.events=this.packageFormEvents(g),{formViewCode:g,formViewVersion:h,tableName:this.colSetting.baseSetting.modelDataTableCode,entityName:e,beanName:t,formTitle:this.colSetting.baseSetting.formTitle,formOptions:f,urlForView:this.colSetting.options.urlForView,formData:null,isShowForm:!1,formViewId:null,isInitDscFormData:!1,permissionPrefix:s,system:n,buttoGroups:l,isSqlQuery:o,formNoRuleCode:c,judgeHeavyList:this.colSetting.options.judgeHeavyList,notIdInitializationList:this.colSetting.options.notIdInitializationList,formNo:null,formNoLabel:this.colSetting.baseSetting.formNoLabel,isPreview:r,additionalParamMap:null,dataTypeMap:null,formEvents:b,pathQuery:i,pageDevMode:u,refreshButton:!0,ids:null,isBatchProcessing:p,isShowPageDialog:!1,jumpPageSetting:null,customEvents:v?v.customEvents:null,isShowBuuton:!0}},watch:{jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;E["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o,e),E["a"].$off(n+"-close-dialog")}))}}}},created:function(){this.getRealUrlForView();var e=Object(B["c"])(this.pageCode,"additionalParamMap");e&&(this.additionalParamMap=e,this.formOptions.additionalParamMap=e),this.pathQuery&&this.pathQuery.ids&&""!==this.pathQuery.ids&&("string"===typeof this.pathQuery.ids?this.ids=this.pathQuery.ids.split(","):"object"===se(this.pathQuery.ids)&&(this.ids=this.pathQuery.ids)),this.initDscFormData();var t=this;E["a"].$on(this.pageCode+"-close-component-page-dialog",(function(e){t.closeFormPageDialog(e,t)})),E["a"].$on(t.pageCode+"-refresh-tab",(function(e,n){t.$refs.superForm&&void 0!==e&&e===t.tabCode&&n&&t.$refs.superForm.refresh(n)}))},beforeDestroy:function(){E["a"].$off(this.pageCode+"-close-form-page-dialog"),E["a"].$off(this.pageCode+"-refresh-tab")},methods:ie(ie(ie(ie(ie({},O["a"]),oe["a"]),M),j),{},{updateSetValues:function(e,t,n){this.$emit("update-value",e,t,n)},clickCommonFormButton:function(e){var t=this;if(console.log("---clickCommonFormButton",e),!this.isPreview&&e){if("downloadTemplate"===e.code)return void this.downloadTemplate(this.system,e,this.tableName);var n=!0;"undefined"!==typeof e.isRequired&&(n=e.isRequired),"undefined"!==typeof e.isRequired||"back"!==e.code&&"exportForm"!==e.code||(n=!1),this.saveFormData(n).then((function(n){var o=t.callBeforeClickButton(t.formEvents,t.formViewCode+"__"+e.code,{params:t.additionalParamMap,entity:n,button:e,formNoRuleCode:t.formNoRuleCode});o&&t.canExecute(e.executableData,n,t.isSqlQuery,t.tableName,t.additionalParamMap).then((function(o){if(!0===o.canExecute){var a=o.entities;a&&a.length>0&&(n=a[0]);var i=!1;e&&"undefined"!==typeof e.jsContent&&(i=e.jsContent);var r=t.getNeedDeleteFileUuidS();t.clickFormButton(e,t.system,t.formViewCode,t.formViewVersion,t.tableName,n,t.entityName,i,t.formNoRuleCode,t.ids,t.isBatchProcessing,r,t.additionalParamMap,t.beanName)}}))}))}},getNeedDeleteFileUuidS:function(){if(this.$refs.superForm)return this.$refs.superForm.getNeedDeleteFileUuid()},getRealUrlForView:function(){this.urlForView&&(this.formOptions.urlForView=this.getRealRestApiPath(this.urlForView.url,this.system))},initDscFormData:function(){this.system&&!1!==this.system.standard||this.urlForView&&this.urlForView.url?this.getHighestFormViewId():this.getDscFormData()},saveFormData:function(e){var t=this;return new Promise((function(n,o){t.$refs.superForm?t.$refs.superForm.getModels(e).then((function(e){Object.keys(e).indexOf("validateErrorField")>=0&&delete e.validateErrorField,n(e)})):n()}))},getDscFormData:function(){var e=this,t=Object($["a"])(this.system.backendUrl);console.log("this.ids ",this.ids);var n=t+"/dsc/commons/gets",o={formViewCode:this.formViewCode,tableName:this.tableName,formNoRuleCode:this.formNoRuleCode,id:this.dataId,systemCode:this.system.code,functionCode:this.permissionPrefix+".get"};this.ids&&(o.ids=this.ids),this.notIdInitializationList&&(o.noIdAndTaskIdInitSetting=JSON.stringify(this.notIdInitializationList)),this.additionalParamMap&&(o.additionalParamMap=JSON.parse(JSON.stringify(this.additionalParamMap))),this.entityName&&(o.entityName=this.entityName),this.beanName&&(o.beanName=this.beanName),this.pathQuery&&this.pathQuery.taskId&&(o.taskId=this.pathQuery.taskId),n&&(this.isShowForm=!1,this.$http.post(n,o).then((function(t){t&&(e.formData=t.entity,e.formNo=t.formNo,Object(B["d"])(e.pageCode,"_formData",e.formData),e.formViewId=t.formViewId,e.dataId?Object(B["d"])(e.pageCode,"_isCreateformData",!1):Object(B["d"])(e.pageCode,"_isCreateformData",!0),e.dataTypeMap=t.dataTypeMap),e.isShowForm=!0,e.isInitDscFormData=!0})))},getHighestFormViewId:function(){var e=this,t=k.a.prototype.baseAPI+"/component/super-pages/forms/"+this.formViewCode;this.isShowForm=!1,this.$http.get(t).then((function(t){e.formViewId=t,e.isShowForm=!0}))},getFormData:function(){if(this.$refs.superForm)return this.$refs.superForm.getFormData()},fnProhibitToEdit:function(e){if(console.log("this.$refs.superForm",this.$refs.superForm),this.$refs.superForm)return this.$refs.superForm.fnProhibitToEdit(e)},refresMainTableFields:function(e){if(console.log("this.$refs.superForm",this.$refs.superForm),this.$refs.superForm)return this.reviewButton(e),this.$refs.superForm.refresMainTableFields(e)}})},le=ue,ce=Object(q["a"])(le,Q,z,!1,null,"2e28fd7e",null),pe=ce.exports,de=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowForm?[e.isShowBuuton&&e.colSetting.options.buttonGroup&&e.refreshButton?n("button-group",{attrs:{"button-groups":e.colSetting.options.buttonGroup,"permission-prefix":e.permissionPrefix,"is-task-input":e.isTaskInput,"workflow-button-component":e.workflowButtonComponent,"table-name":e.tableName,"task-name":e.currentActivityName,"button-area-custom-component-arr":e.colSetting.options.buttonAreaCustomComponentArr,position:"workflowForm","page-code":e.pageCode,"form-data-fun":e.getFormData,"get-form-data":e.saveWorkflowFormData},on:{refresh:e.refreshForm,workflowClick:e.clickWorkflowButtonOn,click:e.clickWorkflowExtensionButtonOn}}):e._e(),n("form-head",{attrs:{"form-title":e.formTitle,"form-no":e.formNo,"form-no-label":e.formNoLabel}}),e.formViewId&&e.isShow?n("super-form",{ref:"superForm",attrs:{"form-view-id":e.formViewId,"path-query":e.pathQuery,value:e.formData,"is-page-info":void 0!==e.isPreview&&null!==e.isPreview&&e.isPreview,options:e.formOptions},on:{"shou-button":e.reviewButton}}):e.isShow?n("super-form",{ref:"superForm",attrs:{"form-view-code":e.formViewCode,"form-view-version":e.formViewVersion,"path-query":e.pathQuery,"is-page-info":void 0!==e.isPreview&&null!==e.isPreview&&e.isPreview,value:e.formData?e.formData:{},options:e.formOptions},on:{"shou-button":e.reviewButton}}):e._e()]:e._e(),e.showTaskInformitions?n("task-informition-dialog",{attrs:{"task-informitions":e.taskInformitions},on:{close:function(t){e.showTaskInformitions=!1},result:e.myReturnTaskTo}}):e._e(),e.selectAddSignerUser||e.selectCopyUser||e.selectAssignUser?n("department-user-tree",{attrs:{width:"60%",multiple:e.isMulti},on:{close:e.closeDeptUserTree}}):e._e(),e.showRemoveSigner?n("remove-signer-dialog",{attrs:{"task-id":e.completeTaskParam?e.completeTaskParam.taskId:null,"active-tasks":e.activeTasks},on:{close:function(t){e.showRemoveSigner=!1},result:e.myDoRemoveSigners}}):e._e(),e.isShowPageDialog?n("super-page-dialog",{attrs:{preview:e.isPreview,"dev-mode":e.pageDevMode,"jump-page-setting":e.jumpPageSetting},on:{"update-value":e.updateValues,close:e.closePage}}):e._e()],2)},fe=[],me=n("859e"),he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{visible:"",title:e.$t("superPage.selectNode"),"close-on-click-modal":!1,"append-to-body":"",width:"30%","max-height":"400"},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.taskInformitions,border:""},on:{select:e.select}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"nodeName",label:e.$t("superPage.nodeName"),width:"180"}}),n("el-table-column",{attrs:{prop:"nodeId",label:e.$t("superPage.nodeId"),width:"180"}})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.selectNode}},[e._v("\n "+e._s(e.$t("superPageMessage.sure"))+"\n ")]),n("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("superPageMessage.cancel"))+"\n ")])],1)],1)],1)},ge=[],be={name:"TaskInformitionDialog",components:{},props:{taskInformitions:{type:Array,default:null}},data:function(){return{selections:[]}},methods:{select:function(e){this.selections=e},selectNode:function(){0===this.selections.length||this.selections.length>1?this.$message({showClose:!0,type:"warning",message:this.$t("superPageMessage.pleaseSelectNode")}):this.$emit("result",this.selections[0])}}},ve=be,ye=Object(q["a"])(ve,he,ge,!1,null,null,null),_e=ye.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{visible:"",title:e.$t("superPage.selectRemoveUsers"),"close-on-click-modal":!1,"append-to-body":"",width:"30%","max-height":"400"},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close")},closed:function(t){return e.$emit("closed")}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.canRemoveTasks,border:""},on:{select:e.select}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"transactorName",label:e.$t("superPage.transactorName"),width:"180"}}),n("el-table-column",{attrs:{prop:"transactor",label:e.$t("superPage.transactor"),width:"180"}}),n("el-table-column",{attrs:{prop:"trustorName",label:e.$t("superPage.trustorName"),width:"180"}})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.selectRemoveUsers}},[e._v("\n "+e._s(e.$t("superPageMessage.sure"))+"\n ")]),n("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("\n "+e._s(e.$t("superPageMessage.cancel"))+"\n ")])],1)],1)],1)},Pe=[],Ce={name:"RemoveSignerDialog",components:{},props:{taskId:{type:Number,default:null},activeTasks:{type:Array,default:null}},data:function(){var e=this.getCanRemoveTasks();return{selections:[],canRemoveTasks:e}},methods:{select:function(e){this.selections=e},selectRemoveUsers:function(){0!==this.selections.length?this.$emit("result",this.selections):this.$message({showClose:!0,type:"warning",message:this.$t("superPageMessage.pleaseSelectRemoverUsers")})},getCanRemoveTasks:function(){var e=this;return this.activeTasks&&this.taskId?this.activeTasks.filter((function(t){return e.taskId!==t.id?t.id:t.ID?t.ID:null})):[]}}},Oe=Ce,Se=Object(q["a"])(Oe,we,Pe,!1,null,null,null),ke=Se.exports;function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e){return De="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Me={name:"WorkflowFormPage",components:{ButtonGroup:T["a"],TaskInformitionDialog:_e,RemoveSignerDialog:ke,formHead:ne},props:{colSetting:{type:Object,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},emailTemplateCode:{type:String,default:null},pageCode:{type:String,default:null},tabCode:{type:String,default:null}},data:function(){var e,t=Object(B["c"])(this.pageCode,"_pathQuery"),n=Object(B["c"])(this.pageCode,"_systemInfo"),o=this.colSetting.baseSetting.modelDataTableEntityName,a=this.colSetting.baseSetting.beanName,i=Object(B["c"])(this.pageCode,"_pageCode");n&&(e=n.code+"."+i+"."+this.colSetting.baseSetting.componentCode);var r=Object(B["c"])(this.pageCode,"_pageIsDsc"),s=!1;"undefined"!==typeof this.taskId&&null!==this.taskId&&(s=!0);var u="";this.colSetting.options&&this.colSetting.options.formNoRuleCode&&(u=this.colSetting.options.formNoRuleCode);var l=!1;this.colSetting.options&&this.colSetting.options.isBatchProcessing&&(l=this.colSetting.options.isBatchProcessing);var c=Object(B["c"])(this.pageCode,"_pageHeight"),p={isSql:r,pageCode:this.pageCode,pageHeight:c};n&&(p.system=n);var d=this.isViewDetail();d&&(p.fieldPermissions=[{name:"all_fields",canEdit:!1}]);var f=Object(B["c"])(this.pageCode,"_pagePreview");void 0===f&&(f=!1);var m=Object(B["c"])(this.pageCode,"_pageDevMode");null!==m&&void 0!==m||(m=!1),p.devMode=m;var h=null;this.colSetting.baseSetting.modelVersion&&(h=parseInt(this.colSetting.baseSetting.modelVersion));var g=this.colSetting.baseSetting.modelCode,b=[],v=Object(B["c"])(this.pageCode,"_pageEvents");return v&&(b=v.formEvents),p.events=this.packageFormEvents(g),{formViewCode:g,formViewVersion:h,tableName:this.colSetting.baseSetting.modelDataTableCode,entityName:o,beanName:a,formTitle:this.colSetting.baseSetting.formTitle,myJsContent:null,successOperation:null,formData:null,isShowForm:!1,isShow:!0,definitionId:null,formViewId:null,formOptions:p,workflowButtonComponent:{},completeTaskParam:{},permissionPrefix:e,system:n,showTaskInformitions:!1,taskInformitions:[],selectTaskNode:null,isTaskInput:s,formNoRuleCode:u,isEnableRequired:!0,defaultOpinionAttrName:"_defaultOpinion_",judgeHeavyList:this.colSetting.options.judgeHeavyList,notIdInitializationList:this.colSetting.options.notIdInitializationList,dataConversionRule:null,formNo:null,formNoLabel:this.colSetting.baseSetting.formNoLabel,selectAddSignerUser:!1,selectCopyUser:!1,selectAssignUser:!1,showRemoveSigner:!1,activeTasks:[],formModel:null,isMulti:!0,taskName:null,currentActivityName:null,isPreview:f,additionalParamMap:null,dataTypeMap:null,formEvents:b,logSetting:null,pathQuery:t,refreshButton:!0,ids:null,pageDevMode:m,isBatchProcessing:l,isShowPageDialog:!1,jumpPageSetting:null,isSqlQuery:r,isNeedValueMapping:!1,firstNodeInfo:null,customEvents:v?v.customEvents:null,isShowBuuton:!1}},watch:{taskName:function(e){this.currentActivityName=e},jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;E["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o,e),E["a"].$off(n+"-close-dialog")}))}}}},created:function(){var e=Object(B["c"])(this.pageCode,"additionalParamMap");e&&(this.additionalParamMap=e,this.formOptions.additionalParamMap=e,console.log("workflow-form-page已获取到附加参数",e)),this.pathQuery&&this.pathQuery.ids&&""!==this.pathQuery.ids&&("string"===typeof this.pathQuery.ids?this.ids=this.pathQuery.ids.split(","):"object"===De(this.pathQuery.ids)&&(this.ids=this.pathQuery.ids)),this.initWorkflowFormData();var t=this;E["a"].$on(t.pageCode+"-close-component-page-dialog",(function(e){t.closeFormPageDialog(e,t)})),E["a"].$on(t.pageCode+"-refresh-tab",(function(e,n){t.$refs.superForm&&void 0!==e&&e===t.tabCode&&n&&t.$refs.superForm.refresh(n)}))},mounted:function(){},beforeDestroy:function(){E["a"].$off(this.pageCode+"-close-component-page-dialog"),E["a"].$off(this.pageCode+"-refresh-tab")},methods:Ee(Ee(Ee(Ee(Ee({},O["a"]),me["a"]),M),j),{},{clickWorkflowButtonOn:function(e,t,n,o){var a=this;if(console.log("clickWorkflowButtonOn-eventSetting",n),!this.isPreview){var i=!1;n&&"undefined"!==typeof n.isRequired?i=n.isRequired:this.isDealFlowButton(e)&&(i=!0),this.isEnableRequired=i,this.saveWorkflowFormData(i).then((function(i){if(i&&!1!==i){var r=a.callBeforeClickButton(a.formEvents,a.formViewCode+"__"+e,{params:a.additionalParamMap,entity:i,operation:t,eventSetting:n,button:o,formNoRuleCode:a.formNoRuleCode});if(!r)return;a.logicSetting=a.getCurrentNodeLogicSetting(o,i,e);var s=!1;n&&"undefined"!==typeof n.jsContent&&(s=n.jsContent),a.myJsContent=s,n&&(a.isNeedValueMapping=n.isNeedValueMapping);var u=!1;n&&"undefined"!==typeof n.successOperation&&(u=n.successOperation),a.successOperation=u;var l=!1;n&&"undefined"!==typeof n.logSetting&&(l=n.logSetting),a.logSetting=l;var c="";a.logicSetting&&a.logicSetting.current&&"undefined"!==typeof a.logicSetting.current.dataConversionRule&&(c=a.logicSetting.current.dataConversionRule);var p="";a.logicSetting&&a.logicSetting.current&&"undefined"!==typeof a.logicSetting.current.autoSetValueData&&(p=a.logicSetting.current.autoSetValueData);var d=null;n&&n.taskMap&&"undefined"!==typeof n.taskMap&&(d=n.taskMap);var f=a.getNeedDeleteFileUuidS();"returnTaskTo"===e?(a.dataConversionRule=c,a.getTaskInformitions(a.system,a.entityName,a.beanName)):"returnToPreviousTask"===e?a.returnToPreviousTask(a.system,a.tableName,i,a.formViewCode,a.formViewVersion,a.entityName,s,u,a.isNeedValueMapping,d,a.beanName):"endInstance"===e?a.endInstance(a.system,a.tableName,i,a.formViewCode,a.formViewVersion,a.entityName,s,u,a.isNeedValueMapping,d,a.beanName):a.logicSetting&&!0!==a.validateOpinion(a.logicSetting.current,t,i)||a.canExecuteWorkflow(i,e).then((function(n){if(!0===n.canExecute){var r=n.entities;r&&r.length>0&&(i=r[0]);var l=null;a.logicSetting&&(l=a.logicSetting.end),a.formModel=i,a.clickWorflowButton(e,a.system,a.tableName,i,a.definitionId,a.emailTemplateCode,t,a.formViewCode,a.formViewVersion,a.entityName,s,a.formNoRuleCode,u,c,l,p,a.logSetting,null,null,!!o&&o.isNeedValueMapping,d,f,a.beanName)}}))}}))}},clickWorkflowExtensionButtonOn:function(e){var t=this;console.log("clickWorkflowExtensionButtonOn====button=",e);var n=this;if(!n.isPreview&&e){if("downloadTemplate"===e.code)return void this.downloadTemplate(n.system,e,this.tableName);var o=!0;"undefined"===typeof e.isRequired&&"exportForm"===e.code&&(o=!1),"undefined"!==typeof e.isRequired&&(o=e.isRequired),n.saveWorkflowFormData(o).then((function(o){if(o&&!1!==o){var a=t.callBeforeClickButton(t.formEvents,t.formViewCode+"__"+e.code,{params:t.additionalParamMap,entity:o});if(!a)return;n.canExecute(e.executableData,o,n.isSqlQuery,n.tableName,t.additionalParamMap).then((function(a){if(!0===a.canExecute){var i=a.entities;i&&i.length>0&&(o=i[0]);var r=!1;"undefined"!==typeof e.jsContent&&""!==e.jsContent&&e&&"undefined"!==typeof e.jsContent&&(r=e.jsContent);var s=!1;e&&"undefined"!==typeof e.successOperation&&(s=e.successOperation),n.successOperation=s;var u="";e&&"undefined"!==typeof e.dataConversionRule&&(u=e.dataConversionRule);var l="";e&&"undefined"!==typeof e.autoSetValueData&&(l=e.autoSetValueData);var c=null;e&&"undefined"!==typeof e.taskMap&&(c=e.taskMap);var p=t.getNeedDeleteFileUuidS();t.isCommonButton(e.code)?n.clickWorflowButton("#_default_#"+e.code,n.system,n.tableName,o,n.definitionId,n.emailTemplateCode,null,n.formViewCode,n.formViewVersion,n.entityName,r,n.formNoRuleCode,s,u,n.logicSetting&&n.logicSetting.end?n.logicSetting.end:null,l,e.logSetting,t.ids,t.isBatchProcessing,!!e&&e.isNeedValueMapping,c,p,t.beanName,e):"exportForm"===e.code?t.exportFormReport(e.templateUUID,e.templateShowPath,r,n.entityName,n.system,e.logSetting,c,n.additionalParamMap,!0,t.beanName,e,t.tableName):n.clickWorkflowExtensionButton(n.system,n.tableName,o,n.definitionId,n.emailTemplateCode,n.formViewCode,n.formViewVersion,r,t.formNoRuleCode,s,u,l,e,p,t.entityName,t.beanName)}}))}}))}},getNeedDeleteFileUuidS:function(){if(this.$refs.superForm)return this.$refs.superForm.getNeedDeleteFileUuid()},isCommonButton:function(e){return"submit"===e||"agree"===e||"disagree"===e},validateOpinion:function(e,t,n){if(e){var o=!1;if(e.isOpinionRequired&&"undefined"!==typeof e.isOpinionRequired&&(o=e.isOpinionRequired),!0===o){var a=t;o="undefined"!==typeof a&&"REFUSE"===a}if(!0===o){var i=n[this.defaultOpinionAttrName];if(!i||null===i||""===i)return this.$message({showClose:!0,type:"warning",message:this.$t("superPageMessage.mustFillOpinion")}),!1}}return!0},isDealFlowButton:function(e){return"startInstance"===e||"submitProcess"===e||"completeTask"===e||"selectTransactors"===e||"selectTaches"===e||"update"===e},canExecuteWorkflow:function(e,t){var n=this,o=this;return new Promise((function(a,i){o.logicSetting&&n.isDealFlowButton(t)&&o.logicSetting.current?o.canExecute(o.logicSetting.current.executableData,e,n.isSqlQuery,n.tableName,n.additionalParamMap).then((function(e){a(e)})).catch((function(e){i(e)})):a({canExecute:!0})}))},getCurrentNodeLogicSetting:function(e,t,n){console.log("getCurrentNodeLogicSetting",e,t,n);var o=null,a=null,i=e.wfLogicSettingList;if(i){for(var r={},s=!1,u=0;u<i.length;u++){var l=i[u],c=l.nodeId,p=t.currentActivityId?t.currentActivityId:t.current_activity_id,d=t.workflowId?t.workflowId:t.workflow_id;if(void 0!==d&&null!==d||"startInstance"!==n&&"submitProcess"!==n||this.firstNodeInfo&&this.firstNodeInfo.nodeId&&this.firstNodeInfo.nodeId===c&&(o=l,s=!0),"processEnd"===c&&(a=l,s=!0),p&&p===c&&(o=l,s=!0),!0===s){null!==o&&(r.current=o),null!==a&&(r.end=a);break}}return r}},initWorkflowFormData:function(){var e=this,t={formViewCode:this.formViewCode,formViewVersion:this.formViewVersion,tableName:this.tableName,formNoRuleCode:this.formNoRuleCode,systemCode:this.system.code,isWorkflowEntity:!0,functionCode:this.permissionPrefix+".get"},n=this.getBaseUrl(this.system),o=n+"/dsc/workflow-commons/gets";this.ids&&(t.ids=this.ids),this.taskId?t.taskId=this.taskId:this.dataId?t.id=this.dataId:this.notIdInitializationList&&(t.noIdAndTaskIdInitSetting=JSON.stringify(this.notIdInitializationList)),this.additionalParamMap&&(t.additionalParamMap=JSON.parse(JSON.stringify(this.additionalParamMap))),this.entityName&&(t.entityName=this.entityName),this.beanName&&(t.beanName=this.beanName),this.isShowForm=!1,this.$http.post(o,t).then((function(t){e.definitionId=t.definitionId,e.formViewId=t.formViewId,t.completeTaskParam&&t.completeTaskParam.firstNodeInfo&&e.$set(e,"firstNodeInfo",t.completeTaskParam.firstNodeInfo),e.$set(e.formOptions,"taskParamMap",t.taskParamMap),e.dataId?Object(B["d"])(e.pageCode,"_isCreateformData",!1):Object(B["d"])(e.pageCode,"_isCreateformData",!0),e.dataTypeMap=t.dataTypeMap,e.dealCompleteTaskParam(t,!0),e.isShowForm=!0}))},saveWorkflowFormData:function(e){var t=this;"undefined"===typeof e&&(e=!0);var n=this;return new Promise((function(o,a){n.$refs.superForm.getModels(!1).then((function(a){if(console.log("model",a),console.log("that.completeTaskParam.fieldPermissions",n.completeTaskParam.fieldPermissions),!0===e){var i=!0,r=n.$getValidator(n.completeTaskParam.fieldPermissions,a,i),s=JSON.parse(JSON.stringify(t.additionalParamMap)),u=Object(B["c"])(t.pageCode,"_contextParameter");u&&(t.contextParameter=u),console.log("workflowFieldPermissionRules",r);var l=n.$formValidator(a,r,i,s,t.formOptions.taskParamMap,u);!0!==l?(n.$message({showClose:!0,message:l,type:"warning"}),o(!1)):(Object.keys(a).indexOf("validateErrorField")>=0&&delete a.validateErrorField,o(a))}else o(a)}))}))},myReturnTaskTo:function(e){var t=this;this.selectTaskNode=e,this.showTaskInformitions=!1;var n=this;this.saveWorkflowFormData(this.isEnableRequired).then((function(o){o&&!1!==o&&n.returnTaskTo(n.system,n.tableName,o,e,n.formViewCode,n.formViewVersion,n.entityName,n.myJsContent,n.successOperation,n.isNeedValueMapping,t.beanName)}))},closeDeptUserTree:function(e){!0===this.selectAddSignerUser&&this.doAddSigner(e,this.myJsContent,this.system,this.entityName,this.beanName,this.dataId,this.formModel,this.successOperation,this.isNeedValueMapping),!0===this.selectCopyUser&&this.doCreateCopyTask(e,this.myJsContent,this.system,this.entityName,this.beanName),!0===this.selectAssignUser&&this.assign(this.system,this.tableName,this.formModel,this.formViewCode,this.formViewVersion,this.entityName,this.myJsContent,this.successOperation,e,this.isNeedValueMapping,this.beanName)},myDoRemoveSigners:function(e){this.doRemoveSigners(e,this.myJsContent,this.system,this.entityName,this.beanName)},getFormData:function(){if(this.$refs.superForm)return this.$refs.superForm.getFormData()}})},xe=Me,je=(n("2f55"),Object(q["a"])(xe,de,fe,!1,null,"f5ea3e30",null)),Ie=je.exports,Re={name:"FormPage",components:{CommonFormPage:pe,WorkflowFormPage:Ie},props:{colSetting:{type:Object,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},pageCode:{type:String,default:null},tabCode:{type:String,default:null}},data:function(){return{isWorkflowForm:!1,emailTemplateCode:""}},created:function(){this.getProcessInfo()},methods:{updateSetValues:function(e,t,n){this.$emit("update-value",e,t,n)},fnProhibitToEdit:function(e){if(this.isWorkflowForm){if(console.log("this.$refs.formPage",this.$refs.workflowFormPage),this.$refs.workflowFormPage)return this.$refs.workflowFormPage.fnProhibitToEdit(e)}else if(console.log("this.$refs.formPage",this.$refs.formPage),this.$refs.formPage)return this.$refs.formPage.fnProhibitToEdit(e)},getProcessInfo:function(){var e=this.colSetting.options.buttonGroup;if(e&&e.length>0)for(var t=0;t<e.length;t++){var n=e[t];if(n.code&&"workflowButton"===n.code)return this.emailTemplateCode=n.emailTemplateCode,void(this.isWorkflowForm=!0)}this.isWorkflowForm=!1}}},Fe=Re,Be=Object(q["a"])(Fe,H,K,!1,null,"44e24f34",null),$e=Be.exports,Le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("super-chart",{ref:"superChart",attrs:{code:e.chartViewCode,"is-initial-query":e.isInitialQuery,"is-custom":e.isNeedCustomStyle,"additional-param-map":e.additionalParamMap,query:e.query}})],1)},Ae=[],Ve={name:"ChartViewPage",props:{chartViewCode:{type:String,default:null},pageCode:{type:String,default:null},isInitialQuery:{type:Boolean,default:!0},isNeedCustomStyle:{type:Boolean,default:!1},isNeedExport:{type:Boolean,default:!0}},data:function(){var e=Object(B["c"])(this.pageCode,"additionalParamMap"),t=Object(B["c"])(this.pageCode,"_pagePreview");return void 0===t&&(t=!1),{isPreview:t,query:null,chartQueryCode:null,additionalParamMap:e}},mounted:function(){var e=this;this.addRef(),this.getChartQueryCodeByChart(this.chartViewCode).then((function(t){var n=e;n.chartQueryCode=t,E["a"].$on(n.chartQueryCode+"-clickChartSearchButton",(function(t,o){n.isPreview||o&&!1===e.isInitialQuery||(n.query=t||null)})),E["a"].$on(n.chartQueryCode+"-clickChartResetButton",(function(e){n.isPreview||(n.query=e||null)}))}))},beforeDestroy:function(){E["a"].$off(this.chartQueryCode+"-clickChartSearchButton"),E["a"].$off(this.chartQueryCode+"-clickChartResetButton")},methods:{getChartQueryCodeByChart:function(e){return this.$http.get(k.a.prototype.baseAPI+"/component/chart-query-codes/charts/"+e)},addRef:function(){if(this.isNeedExport){var e=Object(B["c"])(this.pageCode,"chartRefList");e||(e=[]),e.push({code:this.chartViewCode,refData:this.$refs.superChart}),Object(B["d"])(this.pageCode,"chartRefList",e)}}}},Ue=Ve,We=Object(q["a"])(Ue,Le,Ae,!1,null,"65838e70",null),qe=We.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.colSetting.options.buttonGroup?n("button-group",{attrs:{"button-groups":e.colSetting.options.buttonGroup,"permission-prefix":e.permissionPrefix,"additional-param-map":e.additionalParamMap,"button-area-custom-component-arr":e.colSetting.options.buttonAreaCustomComponentArr,position:"chart","page-code":e.pageCode},on:{click:e.clickListButton}}):e._e(),n("chart-query",{ref:"chartQueryRef"+e.colSetting.baseSetting.componentCode,attrs:{"query-code":e.queryCode,"is-initial-query":e.isInitialQuery,options:e.options},on:{search:e.search,initSearch:e.initSearch,reset:e.resetForm,export:e.exportChart}})],1)},Ge=[],He=n("1197"),Ke=He["a"],Qe=Object(q["a"])(Ke,Je,Ge,!1,null,"0e9b1a40",null),ze=Qe.exports,Ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-menu",{staticClass:"el-menu-group",attrs:{"default-active":"1",mode:"horizontal"}},[n("el-menu-item",{attrs:{index:"1"}},[e._v("\n "+e._s(e.label)+"\n ")])],1)],1)},Xe=[],Ze={name:"GroupTag",props:{label:{type:String,default:null}}},et=Ze,tt=Object(q["a"])(et,Ye,Xe,!1,null,"8a3f01e4",null),nt=tt.exports,ot=n("0800");function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st={name:"WidgetColPage",components:{ListPage:G,FormPage:$e,ChartViewPage:qe,ChartQueryPage:ze,GroupTag:nt},props:{col:{type:Object,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},workflowId:{type:Number,default:null},pageCode:{type:String,default:null},fieldPermissions:{type:Object,default:null},tabCode:{type:String,default:null}},data:function(){var e=!1;"workflowHistoryGraph"!==this.col.baseSetting.type&&"workflowHistoryList"!==this.col.baseSetting.type||(e=!0);var t=Object(B["c"])(this.pageCode,"_systemInfo"),n=Object(B["c"])(this.pageCode,"_colPermissionPrefix"),o=n+"."+this.col.baseSetting.componentCode;!0===e&&(o=n+".workflowHistory");var a=Object(B["c"])(this.pageCode,"_pageDevMode"),i=Object(B["c"])(this.pageCode,"_pagePreview");return(a&&!0===a||i&&!0===i)&&(o="true"),{isWorkflowHistory:e,colStyle:this.getColStyle(this.col),system:t,permission:o,permissionPrefix:n,additionalParamMap:null}},computed:it({},Object(w["a"])(["preventReclick"])),watch:{fieldPermissions:{deep:!0,handler:function(e){e&&(this.fieldPermissions=e,this.fnProhibitToFormViewEdit(this.fieldPermissions))}}},created:function(){var e=Object(B["c"])(this.pageCode,"additionalParamMap");e&&(this.additionalParamMap=e)},mounted:function(){var e=this;E["a"].$on("refreshHistory",(function(){e.$refs.historyList&&e.$refs.historyList.refresh(),e.$refs.historyGraph&&e.$refs.historyGraph.refresh()}))},beforeDestroy:function(){E["a"].$off("refreshHistory"),console.log("-refreshHistory-off")},methods:it(it(it({},O["a"]),ot["a"]),{},{fnProhibitToEdit:function(e){"formView"===this.col.baseSetting.type?this.fnProhibitToFormViewEdit(e):this.$emit("prohibi-edit",e)},fnProhibitToFormViewEdit:function(e){console.log("this.$refs.formView",this.$refs.formView),this.$refs.formView&&this.$refs.formView.fnProhibitToEdit&&this.$refs.formView.fnProhibitToEdit(e)},updateValues:function(e,t,n){console.log("update-value---",e,t,n),this.$emit("update-value",e,t,n)},updateSetValues:function(e,t,n){this.$emit("update-value",e,t,n)},getColStyle:function(e){var t={};if(e.options)if(e.options.customStyle)t=e.options.customStyle;else{t={};var n=e.options.width;n&&(n.indexOf("px")>0?t.width=n:t.width=n+"px");var o=e.options.height;o&&(o.indexOf("px")>0?t.height=o:t.height=o+"px"),e.options.padding&&(t.padding=e.options.padding),e.options.margin&&(t.margin=e.options.margin),e.options.position&&(t.position=e.options.position),!t.position||""===t.position||"absolute"!==t.position&&"fixed"!==t.position&&"relative"!==t.position||(e.options.positionTop&&(t.top=e.options.positionTop),e.options.positionRight&&(t.right=e.options.positionRight),e.options.positionBottom&&(t.bottom=e.options.positionBottom),e.options.positionLeft&&(t.left=e.options.positionLeft)),e.options.backgroundColor&&(t["background-color"]=e.options.backgroundColor),e.options.fontSize&&(t["font-size"]=e.options.fontSize),e.options.fontColor&&(t.color=e.options.fontColor)}return t},exportReport:function(e){this.$emit("export",e)}})},ut=st,lt=Object(q["a"])(ut,y,_,!1,null,"6a5d9438",null),ct=lt.exports,pt={name:"WidgetSubTabPage",components:{WidgetColPage:ct},props:{pageCode:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},oneTabContent:{type:Array,default:null},workflowId:{type:Number,default:null}},data:function(){var e=Object(B["c"])(this.pageCode,"_systemInfo");return{pageSettingList:[],system:e,fieldPermissions:{}}},created:function(){this.oneTabContent&&(this.pageSettingList=this.oneTabContent)},methods:{updateValues:function(e,t,n){this.$emit("update-value",e,t,n)},fnProhibitToEdit:function(e){this.fieldPermissions=e}}},dt=pt,ft=(n("1cc1"),Object(q["a"])(dt,b,v,!1,null,"15bef090",null)),mt=ft.exports,ht={name:"SubTabPage",components:{WidgetSubTabPanePage:mt},props:{pageCode:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},colSetting:{type:Object,default:null}},data:function(){var e="",t=this.colSetting.options.tabContent;return t&&t.length>0&&(e=t[0].code),{activeName:e,workflowId:null}},created:function(){},mounted:function(){},methods:{handleClick:function(e,t){this.workflowId=O["a"].getWorkflowId(this.pageCode),E["a"].$emit("refreshHistory")},updateValues:function(e,t,n){this.$emit("update-value",e,t,n)}}},gt=ht,bt=Object(q["a"])(gt,h,g,!1,null,"23210b57",null),vt=bt.exports,yt={name:"WidgetTabPage",components:{SubTabPage:vt,WidgetColPage:ct},props:{pageCode:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},oneTabContent:{type:Array,default:null},workflowId:{type:Number,default:null},tabCode:{type:String,default:null}},data:function(){var e=Object(B["c"])(this.pageCode,"_systemInfo");return{pageSettingList:[],system:e,fieldPermissions:{}}},created:function(){this.oneTabContent&&(this.pageSettingList=this.oneTabContent)},methods:{updateValues:function(e,t,n){this.$emit("update-value",e,t,n)},fnProhibitToEdit:function(e){this.entity=e}}},_t=yt,wt=(n("7658"),Object(q["a"])(_t,f,m,!1,null,"70127dea",null)),Pt=wt.exports;function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function St(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kt={name:"TabPage",components:{WidgetTabPanePage:Pt},props:{pageCode:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},colSetting:{type:Object,default:null}},data:function(){var e="",t=this.colSetting.options.tabContent;return t&&t.length>0&&(e=t[0].code),Object(B["d"])(this.pageCode,"_activeTab",e),{pageEvents:[],activeName:e,workflowId:null}},created:function(){var e=this,t={},n=[],o=Object(B["c"])(this.pageCode,"_pageEvents");if(o){n=o.formEvents,n&&Object.keys(n).forEach((function(o){var a=o.substring(0,o.indexOf("__"));if(e.pageCode===a){var i=o.substring(o.indexOf("__")+"__".length);t[i]=n[o]}}));var a=o.customEvents;a&&(t.customEvents=a)}this.pageEvents=t},mounted:function(){},methods:Ot(Ot({},M),{},{handleClick:function(e,t){Object(B["d"])(this.pageCode,"_activeTab",this.activeName),t&&this.callFormItemEvent(this.pageEvents,t,null,{acitveTabName:this.activeName}),this.workflowId=O["a"].getWorkflowId(this.pageCode),E["a"].$emit("refreshHistory"),this.refreshTabContent()},updateValues:function(e,t,n){this.$emit("update-value",e,t,n)},refreshTabContent:function(){this.colSetting.baseSetting.isRefreshContent&&this.refreshTab(this.activeName)},refreshTab:function(e){E["a"].$emit(this.pageCode+"-refresh-tab",e)}})},Tt=kt,Et=Object(q["a"])(Tt,p,d,!1,null,"f11061bc",null),Nt=Et.exports,Dt=n("bc3a"),Mt=n.n(Dt),xt=n("a78e"),jt=n.n(xt);function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){Ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bt={name:"WidgetPage",components:{TabPage:Nt,WidgetColPage:ct},props:{pageCode:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},pageSetting:{type:Object,default:null}},data:function(){return{myPageSetting:{list:[]},system:null,isShowPage:!1,pageSettingList:[],additionalParamMap:null,fieldPermissions:{}}},created:function(){if(this.initSuperPage(),this.pageCode){var e=I["a"].get(this.pageCode);e&&e.additionalParamMap&&(this.additionalParamMap=e.additionalParamMap)}},mounted:function(){this.$watch("isShowPage",(function(e,t){var n;!0===e&&(this.myPageSetting.pageEvents&&(n=this.packagePageEventsToMapByType(this.myPageSetting.pageEvents,"pageEvents")),n&&this.callPageEvent(n,"afterPageLoad",{pageCode:this.pageCode,pageSetting:this.myPageSetting,params:this.jumpPageAdditional,additionalParamMap:this.additionalParamMap}))}),{immediate:!0,deep:!0})},destroyed:function(){if(this.myPageSetting.pageEvents){Object(B["a"])(this.pageCode,"_pageEvents");var e=!0;this.registerCustomFuncToWindow(this.myPageSetting.pageEvents.customFuncs,e)}},methods:Rt(Rt(Rt({},c["a"]),O["a"]),{},{fnProhibitToEdit:function(e){this.fieldPermissions=e},isChartPage:function(e){if(e)for(var t=0;t<e.length;t++)for(var n=e[t],o=n.colList,a=0;a<o.length;a++){var i=o[a];if("chartView"===i.baseSetting.type)return!0}},updateValues:function(e,t,n){console.log("update-value22---",e,t,n),this.$emit("update-value",e,t,n)},initSuperPage:function(){var e=this;this.isShowPage=!1,this.pageCode||this.$message({showClose:!0,type:"error",message:this.$t("superPage.pageCodeParameterError")}),this.getPageSetting(this.pageCode).then((function(t){if(t){t.system&&(e.system=JSON.parse(t.system)),Object(B["d"])(e.pageCode,"_systemInfo",e.system),t.contextParameter&&Object(B["d"])(e.pageCode,"_contextParameter",t.contextParameter);var n,o=e.system.code+"."+e.pageCode;Object(B["d"])(e.pageCode,"_colPermissionPrefix",o),Object(B["d"])(e.pageCode,"_pageName",t.pageName),e.pageSetting&&null!==e.pageSetting?n=e.pageSetting:t.pageSetting&&(n=JSON.parse(t.pageSetting));var a,i=document.getElementById("1.23452384164.123412415");null!=i&&document.body.removeChild(document.getElementById("1.23452384164.123412415")),e.system&&e.system.watermarkCode&&e.setWatermark(e.system.watermarkCode,t.contextParameter),n.pageEvents&&(Object(B["d"])(e.pageCode,"_pageEvents",e.packagePageEventsToMap(n.pageEvents)),e.registerCustomFuncToWindow(n.pageEvents.customFuncs)),n.pageEvents&&(a=e.packagePageEventsToMapByType(n.pageEvents,"pageEvents"),e.callPageEvent(a,"onPageLoad",{pageCode:e.pageCode,pageSetting:n,params:e.jumpPageAdditional,additionalParamMap:e.additionalParamMap})),e.myPageSetting=n,e.pageSettingList=e.myPageSetting.list;var r=e.isChartPage(e.pageSettingList);if(r){var s=document.querySelector(".widget-page");s&&(s.style.overflowX="hidden",s.style.overflowY="auto",s.style.height=window.innerHeight-80+"px")}e.isShowPage=!0}}))},callPageEvent:function(e,t,n){if(e){var o=e[t];if(o){var a=o.bind(this,n);a()}}},packagePageEventsToMap:function(e){var t={};return this.packagePageEventsToMapByType(e,"formEvents",t),this.packagePageEventsToMapByType(e,"listEvents",t),this.packagePageEventsToMapByType(e,"chartEvents",t),this.packagePageEventsToMapByType(e,"customEvents",t),t},packagePageEventsToMapByType:function(e,t,n){if(e&&e[t]){var o={};return e[t].forEach((function(e){e.jsContent&&(o[e.eventName]=new Function("params",e.jsContent))})),n&&null!==n&&(n[t]=o),o}},registerCustomFuncToWindow:function(e,t){e&&e.forEach((function(e){e.jsContent&&(e.funcParam?void 0!==t&&!0===t?delete window["$page_"+e.eventName]:window["$page_"+e.eventName]=new Function(e.funcParam,e.jsContent):void 0!==t&&!0===t?delete window["$page_"+e.eventName]:window["$page_"+e.eventName]=new Function(e.jsContent))}))},initSuperPageTest:function(){var e=this;this.isShowPage=!1,this.getPageSettingTest().then((function(t){if(t){e.system=t.system,Object(B["d"])(e.pageCode,"_systemInfo",e.system);var n=e.system.code+".test.";Object(B["d"])(e.pageCode,"_colPermissionPrefix",n),e.myPageSetting=t.pageSetting,e.pageSettingList=e.myPageSetting.list,e.isShowPage=!0}}))},exportReport:function(e){var t=Object(B["c"])(this.pageCode,"chartRefList");if(t&&t.length>0){var n,o=[];t.forEach((function(e){if(e&&e.code&&e.refData){var t=e.refData,n=t.getExportData();n&&o.push(n)}}));var a=Object(B["c"])(this.pageCode,"_pageName");a&&(n=a);var i,r={reportDataList:o,beanName:e},s=k.a.prototype.baseURL+"/dsc/commons/exportChart";Mt.a.defaults.headers.common.Authorization=jt.a.get("JWT"),i=Mt.a.post(s,r,{responseType:"blob"}),i.then((function(e){var t=document.createElement("a");t.style.display="none",t.href=URL.createObjectURL(e.data),t.setAttribute("download",n+".xlsx"),document.body.appendChild(t),t.click(),document.body.removeChild(t)}))}}})},$t=Bt,Lt=(n("86c9"),Object(q["a"])($t,u,l,!1,null,"c66ca250",null)),At=Lt.exports,Vt={name:"SuperPageComponent",components:{WidgetPage:At},props:{code:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},pageSetting:{type:Object,default:null},preview:{type:Boolean,default:!1},isDsc:{type:Boolean,default:null},height:{type:String,default:null}},created:function(){Object(B["d"])(this.code,"_pageCode",this.code),Object(B["d"])(this.code,"_pagePreview",this.preview),Object(B["d"])(this.code,"_pageIsDsc",this.isDsc),Object(B["d"])(this.code,"_pageHeight",this.height),console.log("super-page-component--this.isDsc=",this.isDsc,"this.code=",this.code,"this.height=",this.height)},methods:{updateValues:function(e,t,n){console.log("update-value33---",e,t,n),this.$emit("update-value",e,t,n)}}},Ut=Vt,Wt=Object(q["a"])(Ut,r,s,!1,null,"4382bbbc",null),qt=Wt.exports,Jt={name:"SuperPage",components:{SuperPageComponent:qt},props:{code:{type:String,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},pageSetting:{type:Object,default:null},preview:{type:Boolean,default:!1},isDsc:{type:Boolean,default:!1},devMode:{type:Boolean,default:!1},jumpMode:{type:String,default:null},buttonCode:{type:String,default:null},pathQuery:{type:Object,default:null}},data:function(){return{isShowDialog:!1,jumpPageSetting:null,pageComponent:null,pageType:null,jumpPageCode:null}},created:function(){I["a"].set(this.code,Object(B["b"])(this.devMode,this.jumpMode,this.buttonCode,this.pathQuery));var e=I["a"].get(this.code);if(this.pathQuery){var t=this.pathQuery.paramStoreId;if(t){var n=sessionStorage.getItem(t);sessionStorage.removeItem(t),n&&(e.additionalParamMap=JSON.parse(n),I["a"].set(this.code,e),console.log("已获取到附加参数",JSON.parse(n)))}}},methods:{callCloseDialog:function(e,t,n,o){if(e){var a={pageValue:t,formData:o,soureComponent:this.pageComponent};e.call(this,a)}},getPageComponent:function(e,t){this.pageComponent=e,this.pageType=t},updateValues:function(e,t,n){console.log("update-value444-super-page-",e,t,n),this.$emit("update-value",e,t,n)}}},Gt=Jt,Ht=(n("1ae1"),Object(q["a"])(Gt,a,i,!1,null,null,null)),Kt=Ht.exports;Kt.install=function(e){e.component(Kt.name,Kt)};var Qt=Kt,zt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{visible:"",title:e.title,"close-on-click-modal":!1,"append-to-body":"",width:e.width},on:{open:function(t){return e.$emit("open")},opend:function(t){return e.$emit("opend")},close:function(t){return e.$emit("close",e.pageCode)},closed:function(t){return e.$emit("closed")}}},[e.pageCode?n("super-page-component",{attrs:{code:e.pageCode,"data-id":e.dataId,"task-id":e.taskId,preview:e.preview,"is-dsc":e.isDsc,height:e.height},on:{"update-value":e.updateValues}}):e._e()],1)],1)},Yt=[],Xt={name:"SuperPageDialog",components:{SuperPageComponent:qt},props:{jumpPageSetting:{type:Object,default:null},preview:{type:Boolean,default:!1},devMode:{type:Boolean,default:!1},sourcePageCode:{type:String,default:null}},data:function(){return{dataId:null,taskId:null,isDsc:!1,title:null,width:null,height:null,pageCode:null,paramStoreId:null,jumpMode:null,buttonCode:null,eventName:null,isShowDialog:!1,myJumpPageSetting:null,jumpPageCode:null}},created:function(){this.initPage(),void 0!==this.width&&null!==this.width||(this.width="80%"),void 0!==this.height&&null!==this.height||(this.height="90%")},methods:{initPage:function(){var e=I["a"].get(this.pageCode);if(e||(I["a"].set(this.pageCode,{}),e=I["a"].get(this.pageCode)),this.jumpPageSetting){if(this.title=this.jumpPageSetting.jumpPageTitle,this.width=this.jumpPageSetting.jumpPageWidth,this.height=this.jumpPageSetting.jumpPageHeight,this.pageCode=this.jumpPageSetting.pageCode,this.dataId=this.jumpPageSetting.dataId,this.taskId=this.jumpPageSetting.taskId,this.isDsc=this.jumpPageSetting.isDsc,this.jumpMode=this.jumpPageSetting.jumpMode,this.buttonCode=this.jumpPageSetting.buttonCode,this.eventName=this.jumpPageSetting.eventName,this.eventName,this.sourcePageCode&&sessionStorage.setItem(this.pageCode+"_source_page_code",this.sourcePageCode),console.log("----init---super-page-dialog--this.jumpMode=",this.jumpMode,",this.pageCode=",this.pageCode,",this.sourcePageCode=",this.sourcePageCode),sessionStorage.setItem(this.pageCode+"-jumpMode",JSON.stringify({jumpMode:this.jumpMode,position:this.jumpPageSetting._position,listCode:this.jumpPageSetting._listCode,rowIndex:this.jumpPageSetting._rowIndex})),this.jumpPageSetting.paramStoreId){var t=this.jumpPageSetting.paramStoreId;if(t){var n=sessionStorage.getItem(t);sessionStorage.removeItem(t),e&&n&&(e.additionalParamMap=JSON.parse(n),I["a"].set(this.pageCode,e))}}e._pageDevMode=this.devMode,e._sourceButtonCode=this.buttonCode,this.jumpPageSetting.ids&&e&&(e._pathQuery={ids:this.jumpPageSetting.ids}),I["a"].set(this.pageCode,e)}},updateValues:function(e,t,n){console.log("update-value55-super-page-dialog-",e,t,n),this.$emit("update-value",e,t,n)}}},Zt=Xt,en=Object(q["a"])(Zt,zt,Yt,!1,null,null,null),tn=en.exports;tn.install=function(e){e.component(tn.name,tn)};var nn=tn,on=[Qt,nn],an=function e(t){e.installed||on.forEach((function(e){t.component(e.name,e)}))};"undefined"!==typeof window&&window.Vue&&an(window.Vue);var rn={install:an,SuperPage:Qt,SuperPageDialog:nn};t["default"]=rn}})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-pages",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.40-dw",
|
|
4
4
|
"description": "页面组件",
|
|
5
5
|
"main": "lib/super-pages.umd.min.js",
|
|
6
6
|
"keyword": "super-pages",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"eslint": "5.16.0",
|
|
28
28
|
"eslint-plugin-vue": "5.2.2",
|
|
29
29
|
"font-awesome": "^4.7.0",
|
|
30
|
-
"imatrix-ui": "2.7.
|
|
30
|
+
"imatrix-ui": "2.7.87-dw",
|
|
31
31
|
"node-sass": "4.12.0",
|
|
32
32
|
"normalize.css": "^8.0.1",
|
|
33
33
|
"nprogress": "^0.2.0",
|