super-pages 0.6.97 → 0.6.98
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["super-pages"]=t(require("vue")):e["super-pages"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__8bbf__){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"06e7":function(e,t,n){"use strict";var o=n("8bbf"),a=n.n(o);t["a"]=new a.a},"0800":function(module,__webpack_exports__,__webpack_require__){"use strict";var buttonEvents={clickButtonEvent:function clickButtonEvent(buttonSetting,system){var _this=this,jsContent=buttonSetting.options.jsContent;if("undefined"!==typeof jsContent&&null!==jsContent&&""!==jsContent){var buttonFun=eval("("+jsContent+")"),request=buttonFun(this,system);request&&request.then((function(e){_this.$message({showClose:!0,type:"success",message:_this.$t("superPageMessage.successfulOperation")})}))}else if("inner"===buttonSetting.options.operationType)this.jumpToPage(buttonSetting.options.jumpPage,system,null,null,this.additionalParamMap,null,null,this.pageCode);else if("custom"===buttonSetting.options.operationType){var path=this.getRealRestApiPath(buttonSetting.options.restfulApiPat,system),config={url:path},apiMethod=buttonSetting.options.restfulApiMethod;apiMethod&&(config.method=apiMethod);var params=buttonSetting.options.restfulApiParameters;params&&(config.data=params),buttonSetting.options.logSetting&&(config.logSettingText=buttonSetting.options.logSetting),config.systemCode||(config.systemCode=system.code),this.$http.request(config).then((function(e){_this.$message({showClose:!0,type:"success",message:_this.$t("superPageMessage.successfulOperation")})}))}}};__webpack_exports__["a"]=buttonEvents},"090e":function(e,t,n){},"0a06":function(e,t,n){"use strict";var o=n("c532"),a=n("30b5"),i=n("f6b4"),r=n("5270"),s=n("4a7b");function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method=e.method?e.method.toLowerCase():"get";var t=[r,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,a){return this.request(o.merge(a||{},{method:e,url:t,data:n}))}})),e.exports=l},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1197:function(module,__webpack_exports__,__webpack_require__){"use strict";var _util_eventBus__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("06e7"),_button_group__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("3c3b"),_util_common_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("8217");__webpack_exports__["a"]={name:"ChartQueryPage",components:{ButtonGroup:_button_group__WEBPACK_IMPORTED_MODULE_1__["a"]},props:{queryCode:{type:String,default:null},pageCode:{type:String,default:null},colSetting:{type:Object,default:null}},data:function(){var e,t=this.colSetting.baseSetting.beanName,n=Object(_util_common_util__WEBPACK_IMPORTED_MODULE_2__["c"])(this.pageCode,"_systemInfo");return n&&(e=n.code+"."+this.pageCode+"."+this.colSetting.baseSetting.componentCode),{permissionPrefix:e,additionalParamMap:null,beanName:t}},created:function(){var e=Object(_util_common_util__WEBPACK_IMPORTED_MODULE_2__["c"])(this.pageCode,"additionalParamMap");e&&(this.additionalParamMap=e),console.log("this.colSetting.options.buttonGroup",this.colSetting.options.buttonGroup)},methods:{search:function(e){_util_eventBus__WEBPACK_IMPORTED_MODULE_0__["a"].$emit(this.queryCode+"-clickChartSearchButton",e,!1)},resetForm:function(e){_util_eventBus__WEBPACK_IMPORTED_MODULE_0__["a"].$emit(this.queryCode+"-clickChartResetButton",e)},exportChart:function(){this.$emit("export",this.beanName)},initSearch:function(e){var t=this;setTimeout((function(){_util_eventBus__WEBPACK_IMPORTED_MODULE_0__["a"].$emit(t.queryCode+"-clickChartSearchButton",e,!0)}),500)},clickListButton:function clickListButton(button){var _this=this;if(button)if("export"===button.code)this.exportChart();else if("statistics"===button.code){var refStr="chartQueryRef"+this.colSetting.baseSetting.componentCode;this.$refs&&this.$refs[refStr]&&this.$refs[refStr].search()}else if("reset"===button.code){var _refStr="chartQueryRef"+this.colSetting.baseSetting.componentCode;this.$refs&&this.$refs[_refStr]&&this.$refs[_refStr].resetForm()}else{var param={};if(this.judgeHeavyList&&(param.judgeHeavyList=JSON.stringify(this.judgeHeavyList)),button.autoSetValueData&&(param.autoSetValueData=JSON.stringify(button.autoSetValueData)),button.logSetting&&(param.logSettingText=button.logSetting),button.taskMap&&(param.taskMap=button.taskMap),button.jumpPage)return void this.jumpToPage(button.jumpPage,null,null,null,this.additionalParamMap,null,button.code,this.pageCode);if(button.jsContent&&null!==button.jsContent&&""!==button.jsContent){var buttonFun=eval("("+button.jsContent+")"),request=buttonFun(this,param);request&&request.then((function(e){_this.callAfterClickButton(_this.listEvents,_this.listCode+"__"+button.code,{params:_this.additionalParamMap})}))}}}}}},"18ce":function(e,t,n){"use strict";var o=new Map;t["a"]=o},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];return e.apply(t,n)}}},2105:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=function(e,t,n){var o="1.23452384164.123412415";if(n&&(o=n),null!==document.getElementById(o))if(document.getElementById("pdfDom")){var a=document.getElementById("pdfDom");a.removeChild(document.getElementById(o))}else document.body.removeChild(document.getElementById(o));var i=document.createElement("canvas");i.width=t&&t.width&&""!==t.width?t.width:"400",i.height=t&&t.height&&""!==t.height?t.height:"200";var r=i.getContext("2d");r.rotate(20*Math.PI/160),r.font=t&&t.font&&""!==t.font?t.font:"17px Vedana",r.fillStyle=t&&t.color&&""!==t.color?t.color:"rgba(200, 200, 200, 0.40)",r.textAlign="left",r.textBaseline="Middle",r.fillText(e,60,40);var s=document.createElement("div");if(s.id=o,s.style.pointerEvents="none",s.style.top="80px",s.style.left="200px",s.style.position="fixed",s.style.zIndex="10000",s.style.width="70%",s.style.height="80%",s.style.background="url("+i.toDataURL("image/png")+") left top repeat",document.getElementById("pdfDom")){var l=document.getElementById("pdfDom");l.appendChild(s)}else document.body.appendChild(s);return o};function a(e,t,n,a){var r=new Date;r=i(r,"yyyy-MM-dd"),setTimeout((function(){var i=e&&""!==e?e:n?n.name+" "+r:r,s=o(i,t,a);setInterval((function(){null===document.getElementById(s)&&(s=o(i,t,a))}),500),window.onresize=function(){o(i,t,a)}}))}var i=function(e,t){/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var o in n)if(new RegExp("(".concat(o,")")).test(t)){var a=n[o]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?a:r(a))}return t};function r(e){return("00"+e).substr(e.length)}},2444:function(e,t,n){"use strict";(function(t){var o=n("c532"),a=n("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function r(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t)||"undefined"!==typeof XMLHttpRequest)&&(e=n("b50d")),e}var l={adapter:s(),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){l.headers[e]=o.merge(i)})),e.exports=l}).call(this,n("f28c"))},2877:function(e,t,n){"use strict";function o(e,t,n,o,a,i,r,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),r?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=l):a&&(l=s?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return o}))},"29b3":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return analysisCondition})),__webpack_require__.d(__webpack_exports__,"b",(function(){return analysisValue})),__webpack_require__.d(__webpack_exports__,"d",(function(){return setEntityFieldValue})),__webpack_require__.d(__webpack_exports__,"c",(function(){return getEntityFieldValue}));var _i18n_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("5824"),vue__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("8bbf"),vue__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__),_calculator_calculator_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("8345");function _typeof(e){return _typeof="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},_typeof(e)}function getI18n(){return window.$locale?_i18n_i18n__WEBPACK_IMPORTED_MODULE_0__["a"].locale=window.$locale:_i18n_i18n__WEBPACK_IMPORTED_MODULE_0__["a"].locale="cn",_i18n_i18n__WEBPACK_IMPORTED_MODULE_0__["a"]}function getLanguageWithLocale(){var e=window.$locale;return e&&"en"===e?"en_US":"zh_CN"}function findOptionsByDynamicDataSource(e,t,n,o){return new Promise((function(a,i){findDynamicDataSourceByCode(e,t,n,o).then((function(e){var t=[];if(e&&e.options){var n,o=e.options;e.valueAttribute&&(n=e.valueAttribute),n&&"[label]"!==n||(n="_label_"),o.forEach((function(e){var o=e[n],a=e["_label_"];t.push({label:a,value:o})}))}t||(t=[]),a(t)})).catch((function(e){i(e)}))}))}function findDynamicDataSourceByCode(e,t,n,o){return new Promise((function(a,i){void 0!==t&&null!==t||(t="");var r={searchText:t};o&&(r.additionalParamMap=JSON.parse(o)),n&&null!==n&&(r.entity=n),vue__WEBPACK_IMPORTED_MODULE_1___default.a.prototype.$http.post(vue__WEBPACK_IMPORTED_MODULE_1___default.a.prototype.baseURL+"/common/dynamic-data-source/"+e,r).then((function(e){a(e)})).catch((function(e){i(e)}))}))}function analysisCondition(e,t,n,o,a,i,r){if(void 0===e||""===e||null===e)return!0;"undefined"!==typeof a&&null!==a||(a=!1);var s={};n&&"string"===typeof n&&""!==n?s=JSON.parse(n):n&&"object"===_typeof(n)&&(s=n);var l={};o&&"string"===typeof o&&""!==o?l=JSON.parse(o):o&&"object"===_typeof(o)&&(l=o);var u=[];return e&&"string"===typeof e&&""!==e?u=JSON.parse(e):e&&Array.isArray(e)&&(u=e),parseCondition(t,u,a,i,s,l,r)}function parseCondition(entity,conditionList,isSql,tableName,additionalParamMap,contextParameterMap,parentFormData){if(void 0===conditionList||null===conditionList||0===conditionList.length)return!0;for(var conditions="",i=0;i<conditionList.length;i++){var condition=conditionList[i],propName=condition.propName,propDbName=condition.propDbName;if(propName&&""!==propName||propDbName&&""!==propDbName){var leftValue=void 0;if(isSql&&propDbName){if(-1!==propDbName.indexOf("parent_+_")){propDbName=propDbName.replace("parent_+_","");var propDbNameArr=propDbName.split("_+_");propDbName=propDbNameArr[1],leftValue=getValue(parentFormData,propDbName,isSql)}else leftValue=getValue(entity,propDbName,isSql);if((void 0===leftValue||null===leftValue)&&tableName&&propDbName.toLowerCase().startsWith(tableName.toLowerCase()+".")){var myProp=propDbName.substring(propDbName.indexOf("."));leftValue=getValue(entity,myProp,isSql)}}else{if(-1!==propName.indexOf("parent_+_")){propName=propName.replace("parent_+_","");var propNameArr=propName.split("_+_");propName=propNameArr[1],leftValue=getValue(parentFormData,propName,isSql)}else leftValue=getValue(entity,propName,isSql);void 0!==leftValue&&null!==leftValue||(leftValue=getValue(entity,propDbName,isSql))}var operator=condition.operator,propValue=condition.propValue,dataType=condition.dataType,variableIsNullStr=condition.variableIsNull,value=getPropValue(propValue,entity,additionalParamMap,contextParameterMap);variableIsNullStr&&"null"===variableIsNullStr&&(void 0!==value&&""!==value||(value=null));var conditionResult=Object(_calculator_calculator_util__WEBPACK_IMPORTED_MODULE_2__["a"])(leftValue,operator,value,dataType),leftBracket=condition.leftBracket,rightBracket=condition.rightBracket,joinSign=condition.joinSign;if(leftBracket&&null!==leftBracket&&""!==leftBracket&&(conditions+=leftBracket,conditions+=" "),variableIsNullStr&&"null"!==variableIsNullStr&&(void 0!==value&&null!==value&&value+""!==""||(conditionResult="1=1"===variableIsNullStr)),conditions+=conditionResult+" ",leftBracket&&null!==leftBracket&&""!==leftBracket&&(conditions+=rightBracket,conditions+=" "),i<conditionList.length-1&&joinSign&&null!==joinSign&&""!==joinSign){var joinSignIgnoreCase=joinSign.toLowerCase();"and"===joinSignIgnoreCase?joinSign=joinSignIgnoreCase.replace("and","&&"):"or"===joinSignIgnoreCase&&(joinSign=joinSignIgnoreCase.replace("or","||")),conditions+=joinSign+" "}}}return console.log("parseCondition----conditions=",conditions),eval("("+conditions+")")}var REPLACE_DOT="__";function getValue(e,t,n){var o=null;return e&&null!==e&&t&&null!==t&&(o=getValueByField(e,t),void 0!==o&&null!==o||n&&(void 0!==o&&null!=o||t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),o=getValueByField(e,t)))),o}function getValueByField(e,t){var n;if(e&&null!==e)return n=t.indexOf(".")>0?getSubEntityValue(e,t):e[t],n}function getSubEntityValue(e,t){for(var n=null,o=e,a=t.split("\\."),i=0;i<a.length;i++){var r=a[i];i===a.length?n=getSubEntityFieldValue(o,r):o=getSubEntityFieldValue(o,r)}return n}function getSubEntityFieldValue(e,t){return void 0===e||null===e?null:e[t]}function getContextValue(e,t){if(e)return e[t]}function getPropValue(e,t,n,o){var a=null;if(e&&null!==e&&""!==e)if("null"===e)a=null;else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),a=getContextValue(o,e);else if(e.includes("${request.")&&"${request.term}"!==e)e=e.replace("${request.","").replace("}",""),a=n&&null!=n&&Object.keys(n).indexOf(e)>=0&&n[e]&&null!==n[e]?n[e]:null;else if(e.includes("${obj."))if(null==t)a=null;else{var i=e.replace("${obj.","").replace("}","");a=getEntityFieldValue(t,i)}}else a=e.includes("${input.")?e.replace("${input.","").replace("}",""):e;return a}function analysisValue(e,t,n,o){if(e){var a="",i=e.split("-#-#");return null!=i&&i.length>0&&i.forEach((function(e){var i=getPropValue(e,t,n,o);i&&null!==i||(i=""),a+=i})),a}}function setEntityFieldValue(e,t,n){if(t&&e)if(t&&t.indexOf(".")>0){var o=getParentObjectUtil(t,e);o&&vue__WEBPACK_IMPORTED_MODULE_1___default.a.set(o,t.substring(t.lastIndexOf(".")+1),n)}else vue__WEBPACK_IMPORTED_MODULE_1___default.a.set(e,t,n)}function getEntityFieldValueWithOutCase(e,t){if(t&&t.indexOf(".")>0){var n=getParentObjectUtil(t,e),o=t.substring(t.lastIndexOf(".")+1);return n[o]}return e[t]}function getEntityFieldValue(e,t,n){var o=getEntityFieldValueWithCase(e,t);return void 0===o&&(o=getEntityFieldValueWithCase(e,t.toLowerCase())),void 0===o&&void 0===n&&(o=getEntityFieldValueWithCase(e,t.toUpperCase())),o}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){var n=getParentObjectUtil(t,e),o=t.substring(t.lastIndexOf(".")+1);return n[o]}return e[t]}function getParentObjectUtil(e,t){var n=e.split(".");if(1===n.length)return t;for(var o,a=0;a<n.length-1;a++)o=getParentModelProp(n[a],0===a?t:o);return o}function getParentModelProp(e,t){var n=getParentModelPropWithCase(e,t);return void 0===n&&(n=getParentModelPropWithCase(e.toLowerCase(),t)),void 0===n&&(n=getParentModelPropWithCase(e.toUpperCase(),t)),n}function getParentModelPropWithCase(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}function findSystemInfoByCode(e){return new Promise((function(t,n){e||(e=vue__WEBPACK_IMPORTED_MODULE_1___default.a.prototype.systemCode),vue__WEBPACK_IMPORTED_MODULE_1___default.a.prototype.$http.get(vue__WEBPACK_IMPORTED_MODULE_1___default.a.prototype.baseAPI+"/component/business-systems/"+e).then((function(n){t(n?{zh_CN:n.name,en_US:n.enName,frontendUrl:n.frontendUrl}:"系统:"+e+"不存在")})).catch((function(e){n(e)}))}))}function getPropNameWhenJoinTable(e,t,n){if(e&&void 0!==t&&!0===t){var o="__";e.indexOf(".")>0?e=e.replace(".",o):n&&null!==n&&""!==n&&e.indexOf(n+o)<0&&(e=n+o+e)}return e}},"2d83":function(e,t,n){"use strict";var o=n("387f");e.exports=function(e,t,n,a,i){var r=new Error(e);return o(r,t,n,a,i)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f62":function(e,t,n){"use strict";(function(e){
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["super-pages"]=t(require("vue")):e["super-pages"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__8bbf__){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"06e7":function(e,t,n){"use strict";var o=n("8bbf"),a=n.n(o);t["a"]=new a.a},"0800":function(module,__webpack_exports__,__webpack_require__){"use strict";var buttonEvents={clickButtonEvent:function clickButtonEvent(buttonSetting,system){var _this=this,jsContent=buttonSetting.options.jsContent;if("undefined"!==typeof jsContent&&null!==jsContent&&""!==jsContent){var buttonFun=eval("("+jsContent+")"),request=buttonFun(this,system);request&&request.then((function(e){_this.$message({showClose:!0,type:"success",message:_this.$t("superPageMessage.successfulOperation")})}))}else if("inner"===buttonSetting.options.operationType)this.jumpToPage(buttonSetting.options.jumpPage,system,null,null,this.additionalParamMap,null,null,this.pageCode);else if("custom"===buttonSetting.options.operationType){var path=this.getRealRestApiPath(buttonSetting.options.restfulApiPat,system),config={url:path},apiMethod=buttonSetting.options.restfulApiMethod;apiMethod&&(config.method=apiMethod);var params=buttonSetting.options.restfulApiParameters;params&&(config.data=params),buttonSetting.options.logSetting&&(config.logSettingText=buttonSetting.options.logSetting),config.systemCode||(config.systemCode=system.code),this.$http.request(config).then((function(e){_this.$message({showClose:!0,type:"success",message:_this.$t("superPageMessage.successfulOperation")})}))}}};__webpack_exports__["a"]=buttonEvents},"090e":function(e,t,n){},"0a06":function(e,t,n){"use strict";var o=n("c532"),a=n("30b5"),i=n("f6b4"),r=n("5270"),s=n("4a7b");function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method=e.method?e.method.toLowerCase():"get";var t=[r,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,a){return this.request(o.merge(a||{},{method:e,url:t,data:n}))}})),e.exports=l},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1197:function(module,__webpack_exports__,__webpack_require__){"use strict";var _util_eventBus__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("06e7"),_button_group__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("3c3b"),_util_common_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("8217");__webpack_exports__["a"]={name:"ChartQueryPage",components:{ButtonGroup:_button_group__WEBPACK_IMPORTED_MODULE_1__["a"]},props:{queryCode:{type:String,default:null},pageCode:{type:String,default:null},colSetting:{type:Object,default:null}},data:function(){var e,t=this.colSetting.baseSetting.beanName,n=Object(_util_common_util__WEBPACK_IMPORTED_MODULE_2__["c"])(this.pageCode,"_systemInfo");return n&&(e=n.code+"."+this.pageCode+"."+this.colSetting.baseSetting.componentCode),{permissionPrefix:e,additionalParamMap:null,beanName:t}},created:function(){var e=Object(_util_common_util__WEBPACK_IMPORTED_MODULE_2__["c"])(this.pageCode,"additionalParamMap");e&&(this.additionalParamMap=e),console.log("this.colSetting.options.buttonGroup",this.colSetting.options.buttonGroup)},methods:{search:function(e){_util_eventBus__WEBPACK_IMPORTED_MODULE_0__["a"].$emit(this.queryCode+"-clickChartSearchButton",e,!1)},resetForm:function(e){_util_eventBus__WEBPACK_IMPORTED_MODULE_0__["a"].$emit(this.queryCode+"-clickChartResetButton",e)},exportChart:function(){this.$emit("export",this.beanName)},initSearch:function(e){var t=this;setTimeout((function(){_util_eventBus__WEBPACK_IMPORTED_MODULE_0__["a"].$emit(t.queryCode+"-clickChartSearchButton",e,!0)}),500)},clickListButton:function clickListButton(button){var _this=this;if(button)if("export"===button.code)this.exportChart();else if("statistics"===button.code){var refStr="chartQueryRef"+this.colSetting.baseSetting.componentCode;this.$refs&&this.$refs[refStr]&&this.$refs[refStr].search()}else if("reset"===button.code){var _refStr="chartQueryRef"+this.colSetting.baseSetting.componentCode;this.$refs&&this.$refs[_refStr]&&this.$refs[_refStr].resetForm()}else{var param={};if(this.judgeHeavyList&&(param.judgeHeavyList=JSON.stringify(this.judgeHeavyList)),button.autoSetValueData&&(param.autoSetValueData=JSON.stringify(button.autoSetValueData)),button.logSetting&&(param.logSettingText=button.logSetting),button.taskMap&&(param.taskMap=button.taskMap),button.jumpPage)return void this.jumpToPage(button.jumpPage,null,null,null,this.additionalParamMap,null,button.code,this.pageCode);if(button.jsContent&&null!==button.jsContent&&""!==button.jsContent){var buttonFun=eval("("+button.jsContent+")"),request=buttonFun(this,param);request&&request.then((function(e){_this.callAfterClickButton(_this.listEvents,_this.listCode+"__"+button.code,{params:_this.additionalParamMap})}))}}}}}},"18ce":function(e,t,n){"use strict";var o=new Map;t["a"]=o},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];return e.apply(t,n)}}},2105:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=function(e,t,n){var o="1.23452384164.123412415";if(n&&(o=n),null!==document.getElementById(o))if(document.getElementById("pdfDom")){var a=document.getElementById("pdfDom");a.removeChild(document.getElementById(o))}else document.body.removeChild(document.getElementById(o));var i=document.createElement("canvas");i.width=t&&t.width&&""!==t.width?t.width:"400",i.height=t&&t.height&&""!==t.height?t.height:"200";var r=i.getContext("2d");r.rotate(20*Math.PI/160),r.font=t&&t.font&&""!==t.font?t.font:"17px Vedana",r.fillStyle=t&&t.color&&""!==t.color?t.color:"rgba(200, 200, 200, 0.40)",r.textAlign="left",r.textBaseline="Middle",r.fillText(e,60,40);var s=document.createElement("div");if(s.id=o,s.style.pointerEvents="none",s.style.top="80px",s.style.left="200px",s.style.position="fixed",s.style.zIndex="10000",s.style.width="70%",s.style.height="80%",s.style.background="url("+i.toDataURL("image/png")+") left top repeat",document.getElementById("pdfDom")){var l=document.getElementById("pdfDom");l.appendChild(s)}else document.body.appendChild(s);return o};function a(e,t,n,a){var r=new Date;r=i(r,"yyyy-MM-dd"),setTimeout((function(){var i=e&&""!==e?e:n?n.name+" "+r:r,s=o(i,t,a);setInterval((function(){null===document.getElementById(s)&&(s=o(i,t,a))}),500),window.onresize=function(){o(i,t,a)}}))}var i=function(e,t){/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var o in n)if(new RegExp("(".concat(o,")")).test(t)){var a=n[o]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?a:r(a))}return t};function r(e){return("00"+e).substr(e.length)}},2444:function(e,t,n){"use strict";(function(t){var o=n("c532"),a=n("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function r(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t)||"undefined"!==typeof XMLHttpRequest)&&(e=n("b50d")),e}var l={adapter:s(),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){l.headers[e]=o.merge(i)})),e.exports=l}).call(this,n("f28c"))},2877:function(e,t,n){"use strict";function o(e,t,n,o,a,i,r,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),r?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=l):a&&(l=s?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return o}))},"29b3":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return analysisCondition})),__webpack_require__.d(__webpack_exports__,"b",(function(){return analysisValue})),__webpack_require__.d(__webpack_exports__,"d",(function(){return setEntityFieldValue})),__webpack_require__.d(__webpack_exports__,"c",(function(){return getEntityFieldValue}));var _i18n_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("5824"),vue__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("8bbf"),vue__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__),_calculator_calculator_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("8345");function _typeof(e){return _typeof="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},_typeof(e)}function getI18n(){return window.$locale?_i18n_i18n__WEBPACK_IMPORTED_MODULE_0__["a"].locale=window.$locale:_i18n_i18n__WEBPACK_IMPORTED_MODULE_0__["a"].locale="cn",_i18n_i18n__WEBPACK_IMPORTED_MODULE_0__["a"]}function getLanguageWithLocale(){var e=window.$locale;return e&&"en"===e?"en_US":"zh_CN"}function findOptionsByDynamicDataSource(e,t,n,o){return new Promise((function(a,i){findDynamicDataSourceByCode(e,t,n,o).then((function(e){var t=[];if(e&&e.options){var n,o=e.options;e.valueAttribute&&(n=e.valueAttribute),n&&"[label]"!==n||(n="_label_"),o.forEach((function(e){var o=e[n],a=e["_label_"];t.push({label:a,value:o})}))}t||(t=[]),a(t)})).catch((function(e){i(e)}))}))}function findDynamicDataSourceByCode(e,t,n,o){return new Promise((function(a,i){void 0!==t&&null!==t||(t="");var r={searchText:t};o&&(r.additionalParamMap=JSON.parse(o)),n&&null!==n&&(r.entity=n),vue__WEBPACK_IMPORTED_MODULE_1___default.a.prototype.$http.post(vue__WEBPACK_IMPORTED_MODULE_1___default.a.prototype.baseURL+"/common/dynamic-data-source/"+e,r).then((function(e){a(e)})).catch((function(e){i(e)}))}))}function analysisCondition(e,t,n,o,a,i,r){if(void 0===e||""===e||null===e)return!0;"undefined"!==typeof a&&null!==a||(a=!1);var s={};n&&"string"===typeof n&&""!==n?s=JSON.parse(n):n&&"object"===_typeof(n)&&(s=n);var l={};o&&"string"===typeof o&&""!==o?l=JSON.parse(o):o&&"object"===_typeof(o)&&(l=o);var u=[];return e&&"string"===typeof e&&""!==e?u=JSON.parse(e):e&&Array.isArray(e)&&(u=e),parseCondition(t,u,a,i,s,l,r)}function parseCondition(entity,conditionList,isSql,tableName,additionalParamMap,contextParameterMap,parentFormData){if(void 0===conditionList||null===conditionList||0===conditionList.length)return!0;for(var conditions="",i=0;i<conditionList.length;i++){var condition=conditionList[i],propName=condition.propName,propDbName=condition.propDbName;if(propName&&""!==propName||propDbName&&""!==propDbName){var leftValue=void 0;if(isSql&&propDbName){if(-1!==propDbName.indexOf("parent_+_")){propDbName=propDbName.replace("parent_+_","");var propDbNameArr=propDbName.split("_+_");propDbName=propDbNameArr[1],leftValue=getValue(parentFormData,propDbName,isSql)}else leftValue=getValue(entity,propDbName,isSql);if((void 0===leftValue||null===leftValue)&&tableName&&propDbName.toLowerCase().startsWith(tableName.toLowerCase()+".")){var myProp=propDbName.substring(propDbName.indexOf("."));leftValue=getValue(entity,myProp,isSql)}}else{if(-1!==propName.indexOf("parent_+_")){propName=propName.replace("parent_+_","");var propNameArr=propName.split("_+_");propName=propNameArr[1],leftValue=getValue(parentFormData,propName,isSql)}else leftValue=getValue(entity,propName,isSql);!propDbName||void 0!==leftValue&&null!==leftValue||(leftValue=getValue(entity,propDbName,isSql))}var operator=condition.operator,propValue=condition.propValue,dataType=condition.dataType,variableIsNullStr=condition.variableIsNull,value=getPropValue(propValue,entity,additionalParamMap,contextParameterMap);variableIsNullStr&&"null"===variableIsNullStr&&(void 0!==value&&""!==value||(value=null));var conditionResult=Object(_calculator_calculator_util__WEBPACK_IMPORTED_MODULE_2__["a"])(leftValue,operator,value,dataType),leftBracket=condition.leftBracket,rightBracket=condition.rightBracket,joinSign=condition.joinSign;if(leftBracket&&null!==leftBracket&&""!==leftBracket&&(conditions+=leftBracket,conditions+=" "),variableIsNullStr&&"null"!==variableIsNullStr&&(void 0!==value&&null!==value&&value+""!==""||(conditionResult="1=1"===variableIsNullStr)),conditions+=conditionResult+" ",leftBracket&&null!==leftBracket&&""!==leftBracket&&(conditions+=rightBracket,conditions+=" "),i<conditionList.length-1&&joinSign&&null!==joinSign&&""!==joinSign){var joinSignIgnoreCase=joinSign.toLowerCase();"and"===joinSignIgnoreCase?joinSign=joinSignIgnoreCase.replace("and","&&"):"or"===joinSignIgnoreCase&&(joinSign=joinSignIgnoreCase.replace("or","||")),conditions+=joinSign+" "}}}return console.log("parseCondition----conditions=",conditions),eval("("+conditions+")")}var REPLACE_DOT="__";function getValue(e,t,n){var o=null;return e&&null!==e&&t&&null!==t&&(o=getValueByField(e,t),void 0!==o&&null!==o||n&&(void 0!==o&&null!=o||t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),o=getValueByField(e,t)))),o}function getValueByField(e,t){var n;if(e&&null!==e)return n=t.indexOf(".")>0?getSubEntityValue(e,t):e[t],n}function getSubEntityValue(e,t){for(var n=null,o=e,a=t.split("\\."),i=0;i<a.length;i++){var r=a[i];i===a.length?n=getSubEntityFieldValue(o,r):o=getSubEntityFieldValue(o,r)}return n}function getSubEntityFieldValue(e,t){return void 0===e||null===e?null:e[t]}function getContextValue(e,t){if(e)return e[t]}function getPropValue(e,t,n,o){var a=null;if(e&&null!==e&&""!==e)if("null"===e)a=null;else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),a=getContextValue(o,e);else if(e.includes("${request.")&&"${request.term}"!==e)e=e.replace("${request.","").replace("}",""),a=n&&null!=n&&Object.keys(n).indexOf(e)>=0&&n[e]&&null!==n[e]?n[e]:null;else if(e.includes("${obj."))if(null==t)a=null;else{var i=e.replace("${obj.","").replace("}","");a=getEntityFieldValue(t,i)}}else a=e.includes("${input.")?e.replace("${input.","").replace("}",""):e;return a}function analysisValue(e,t,n,o){if(e){var a="",i=e.split("-#-#");return null!=i&&i.length>0&&i.forEach((function(e){var i=getPropValue(e,t,n,o);i&&null!==i||(i=""),a+=i})),a}}function setEntityFieldValue(e,t,n){if(t&&e)if(t&&t.indexOf(".")>0){var o=getParentObjectUtil(t,e);o&&vue__WEBPACK_IMPORTED_MODULE_1___default.a.set(o,t.substring(t.lastIndexOf(".")+1),n)}else vue__WEBPACK_IMPORTED_MODULE_1___default.a.set(e,t,n)}function getEntityFieldValueWithOutCase(e,t){if(t&&t.indexOf(".")>0){var n=getParentObjectUtil(t,e),o=t.substring(t.lastIndexOf(".")+1);return n[o]}return e[t]}function getEntityFieldValue(e,t,n){var o=getEntityFieldValueWithCase(e,t);return void 0===o&&(o=getEntityFieldValueWithCase(e,t.toLowerCase())),void 0===o&&void 0===n&&(o=getEntityFieldValueWithCase(e,t.toUpperCase())),o}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){var n=getParentObjectUtil(t,e),o=t.substring(t.lastIndexOf(".")+1);return n[o]}return e[t]}function getParentObjectUtil(e,t){var n=e.split(".");if(1===n.length)return t;for(var o,a=0;a<n.length-1;a++)o=getParentModelProp(n[a],0===a?t:o);return o}function getParentModelProp(e,t){var n=getParentModelPropWithCase(e,t);return void 0===n&&(n=getParentModelPropWithCase(e.toLowerCase(),t)),void 0===n&&(n=getParentModelPropWithCase(e.toUpperCase(),t)),n}function getParentModelPropWithCase(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}function findSystemInfoByCode(e){return new Promise((function(t,n){e||(e=vue__WEBPACK_IMPORTED_MODULE_1___default.a.prototype.systemCode),vue__WEBPACK_IMPORTED_MODULE_1___default.a.prototype.$http.get(vue__WEBPACK_IMPORTED_MODULE_1___default.a.prototype.baseAPI+"/component/business-systems/"+e).then((function(n){t(n?{zh_CN:n.name,en_US:n.enName,frontendUrl:n.frontendUrl}:"系统:"+e+"不存在")})).catch((function(e){n(e)}))}))}function getPropNameWhenJoinTable(e,t,n){if(e&&void 0!==t&&!0===t){var o="__";e.indexOf(".")>0?e=e.replace(".",o):n&&null!==n&&""!==n&&e.indexOf(n+o)<0&&(e=n+o+e)}return e}},"2d83":function(e,t,n){"use strict";var o=n("387f");e.exports=function(e,t,n,a,i){var r=new Error(e);return o(r,t,n,a,i)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f62":function(e,t,n){"use strict";(function(e){
|
|
2
2
|
/*!
|
|
3
3
|
* vuex v3.6.2
|
|
4
4
|
* (c) 2021 Evan You
|
|
@@ -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},ccc4:function(e,t,n){"use strict";n("5bd8")},cee4:function(e,t,n){"use strict";var o=n("c532"),a=n("1d2b"),i=n("0a06"),r=n("4a7b"),s=n("2444");function l(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 u=l(s);u.Axios=i,u.create=function(e){return l(r(u.defaults,e))},u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.all=function(e){return Promise.all(e)},u.spread=n("0df6"),e.exports=u,e.exports.default=u},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),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)this.exportFormReport(button.templateUUID,button.templateShowPath,myJsContent,entityName,system,button.logSetting,button.taskMap,additionalParamMap,!1,beanName);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,l,u,c,p){var d=this,f=this.getSaveFormRequest(e,t.restfulApiPath,n,o,a,i,r,s,l,t.dataConversionRule,t.autoSetValueData,"/dsc/commons",t.logSetting,null,null,t.taskMap,u,c,p,!1);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.$message.success(this.$t(n))},getSubmitFormRequest:function(e,t,n,o,a,i,r,s,l,u,c,p,d,f,m,h){var g=this,b="superPageMessage.whetherToConfirm"+this.upperFirstCase(u);this.$confirm(this.$t(b),this.$t("superPageMessage.tips"),{confirmButtonText:this.$t("superPageMessage.sure"),cancelButtonText:this.$t("superPageMessage.cancel"),type:"warning"}).then((function(){var u={entity:e,tableName:o,formNoRuleCode:s};g.judgeHeavyList&&(u.judgeHeavyList=JSON.stringify(g.judgeHeavyList)),r.dataConversionRule&&(u.dataConversionRule=r.dataConversionRule.join(",")),r.autoSetValueData&&(u.autoSetValueData=JSON.stringify(r.autoSetValueData)),r.logSetting&&(u.logSettingText=r.logSetting),r.taskMap&&(u.taskMap=r.taskMap),u.systemCode||(u.systemCode=t.code),a&&(u.entityName=a),m&&(u.beanName=m),c&&c.length>0&&(u.ids=c),d&&(u.needDeleteFileUuidS=d),f&&(u.additionalParamMap=f),void 0!==h&&null!==h&&(u.isWorkflowEntity=h),u.isBatchProcessing=p;var b=g.getSaveFormRequestByParam(t,n,u,i,l);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,l,u,c,p,d){var f=this,m=this.getSubmitFormRequest(e,t,i.restfulApiPath,n,o,a,i,r,s,i.code,l,u,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)}};__webpack_exports__["a"]=buttonEvents},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},dfd6:function(e,t,n){"use strict";n("7d50")},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},f0d9:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},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 l(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 u,c=[],p=!1,d=-1;function f(){p&&u&&(p=!1,u.length?c=u.concat(c):d=-1,c.length&&m())}function m(){if(!p){var e=s(f);p=!0;var t=c.length;while(t){u=c,c=[];while(++d<t)u&&u[d].run();d=-1,t=c.length}u=null,p=!1,l(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 u})),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"),l=n("9696");function u(e,t,n,o,i,s,l,u){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",u),f.parentFormData=u,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,l).then((function(e){p(e)}))}))}else d(e,t,n,s,l).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 l=r.a.prototype.baseAPI+"/component/business-systems/"+s;r.a.prototype.$http.get(l).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 u=v(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(l["b"])(t.frontendUrl);c=d+"/#"+c}f(n,c,u,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,l;s=o.jumpPageWidth?o.jumpPageWidth:window.innerWidth-150,l=o.jumpPageHeight?o.jumpPageHeight:window.innerHeight-150;var u="height="+l+", width="+s+", top=0, left=0, toolbar=no, menubar=no,scrollbars=no,resizable=no, location=no, status=no";window.open(t,"newW",u)}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,l){console.log("----jumpWithSuperPage---",e,t,n,o);var u=h(e),c="refresh";o&&o.jumpPageOpenMode&&(c=o.jumpPageOpenMode);var p={jumpMode:c};if(a.a.setItem(u+"-jumpMode",JSON.stringify(p)),"popup"===c){var d=y(t,u,n,o,c,i,r),f=b(o,t,u,n,c,i,r);f._path=d,s(f)}else if("newTab"===c){var m=y(t,u,n,o,c,i,r);window.open(m),s()}else{var g={pageCode:u,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 v=o.paramStoreId;v&&""!==v&&(g["paramStoreId"]=v);var _=y(t,u,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 l=!1;return"undefined"!==typeof t.standard&&(l=!t.standard),s.pageCode=n,void 0!==e.isNeedId&&null!==e.isNeedId&&!0!==e.isNeedId||o&&(s.dataId=o),s.isDsc=l,s.paramStoreId=e.paramStoreId,s.jumpMode=a,s.ids=i,s.buttonCode=r,s}function y(e,t,n,o,a,i,r){var s=Object(l["b"])(e.frontendUrl),u=s+"/#/dsc-full-screen/page?customSystem="+e.code+"&pageCode="+t+"&jumpMode="+a;return m(n,u,o,i,r)}function v(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 l=n.valueMappings;l.forEach((function(e){var n=e.source,l=Object(s["c"])(r,n),u="__";void 0!==l&&null!==l||(n&&t&&n.indexOf(".")>0&&(n=t+u+n),l=Object(s["c"])(r,n));var c=e.target;void 0!==i&&!0===i&&c&&a&&c.indexOf(".")>0&&(c=a+u+c),Object(s["d"])(o,c,l)}))}}},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)},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}},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=[],l=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},on:{"update-value":e.updateValues,export:e.exportReport}})],1)]}))],2)})):e._e()],2)},u=[],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":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-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)},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},on:{"update-value":e.updateValues}})],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},on:{"update-value":e.updateValues}})],1)]}))],2)})):e._e()],2)},y=[],v=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},on:{"update-value":e.updateValues}}):"formView"===e.col.baseSetting.type?n("form-page",{attrs:{"col-setting":e.col,"data-id":e.dataId,"task-id":e.taskId,"page-code":e.pageCode}}):"chartQuery"===e.col.baseSetting.type?n("chart-query-page",{attrs:{"query-code":e.col.baseSetting.modelCode,"col-setting":e.col,"page-code":e.pageCode},on:{export:e.exportReport}}):"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}}):"customComponent"===e.col.baseSetting.type?n(e.col.baseSetting.customComponentName,{ref:e.col.baseSetting.customComponentName+"_CustomComponent",tag:"component"}):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"),C=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","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},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},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()},P=[],S=n("51ae"),k=n("8bbf"),O=n.n(k),T=n("3c3b"),N=n("06e7"),D=n("65f1"),E={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)}}},M=E,j={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)}},I=j,x=n("18ce"),R=n("3ff5"),B=n("8722"),F=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 V(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){A(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 A(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:B["a"]},props:{colSetting:{type:Object,default:null},pageCode:{type:String,default:null}},data:function(){var e=O.a.prototype.baseURL,t=this.colSetting.baseSetting.modelDataTableCode,n=Object(F["c"])(this.pageCode,t+"_isProcess");null!==n&&void 0!==n&&(n=!1);var o=Object(F["c"])(this.pageCode,"_systemInfo"),a=Object(F["c"])(this.pageCode,"_pageIsDsc");console.log("list-page--_pageIsDsc--isSqlQuery=",a,"this.pageCode=",this.pageCode);var i,r=Object(F["c"])(this.pageCode,"_pageCode"),s=this.getUrlToListData(o),l=this.colSetting.baseSetting.modelDataTableEntityName,u=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(F["c"])(this.pageCode,"_pathQuery"),d=Object(F["c"])(this.pageCode,"_pageHeight"),f={isSql:a,extraParam:{entityName:l,beanName:u},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.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 y=m.lazy;f.lazy=void 0===y||null===y||y;var v=m.defaultExpandAll;f.defaultExpandAll=void 0!==v&&null!==v&&v,a&&(f.subRowUrl=e+"/dsc/commons/list-subs")}}var _=Object(F["c"])(this.pageCode,"_pagePreview");void 0!==_&&!0===_&&(f.loadBeforeSend=function(){return!1});var w=Object(F["c"])(this.pageCode,"_pageDevMode");null!==w&&void 0!==w||(w=!1);var C,P="";this.colSetting.options&&this.colSetting.options.formNoRuleCode&&(P=this.colSetting.options.formNoRuleCode),this.colSetting.options&&this.colSetting.options.listToolbarList&&(C=this.colSetting.options.listToolbarList);var S,k=this.colSetting.baseSetting.modelCode,T="";this.colSetting.options&&this.colSetting.options.importRuleCode&&(T=this.colSetting.options.importRuleCode),f.isWorkflowEntity=n;var N=Object(F["c"])(this.pageCode,"_pageEvents");if(N){S=N.listEvents,S&&S[k+"__beforeListLoad"]&&(f.loadBeforeSend=S[k+"__beforeListLoad"]),S&&S[k+"__onListLoad"]&&(f.gridDataLoaded=S[k+"__onListLoad"]),S&&S[k+"__afterListLoad"]&&(f.gridComplete=S[k+"__afterListLoad"]);var D=N.customEvents;D&&(f.eventCallBack=D,this.colSetting.options.styleCustomMethod&&""!==this.colSetting.options.styleCustomMethod&&D&&D[this.colSetting.options.styleCustomMethod]&&(f.rowStyleRender=D[this.colSetting.options.styleCustomMethod]))}return{listToolbarList:C,urlToListData:s,options:f,operationButtons:this.colSetting.options.operationButtons,selections:null,listCode:k,permissionPrefix:i,system:o,tableName:this.colSetting.baseSetting.modelDataTableCode,entityName:l,beanName:u,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:P,importRuleCode:T,isPreview:_,button:null,logSettingText:null,additionalParamMap:null,dataTypeMap:null,showPage:!1,operationButtonObj:{},listEvents:S,pageDevMode:w,isShowPageDialog:!1,jumpPageSetting:null,editRowData:null,searchIsPopup:!1,customEvents:N?N.customEvents:null,listToolbarFormData:null,isWorkflowEntity:n}},watch:{jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;N["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o),t.$set(t,"selections",null),N["a"].$off(n+"-close-dialog")}))}}}},created:function(){var e=this;this.getDataTypeMap().then((function(){e.setOperationButtons()}));var t=Object(F["c"])(this.pageCode,"additionalParamMap");t&&(this.additionalParamMap=t,this.$set(this.options,"additionalParamMap",this.additionalParamMap));var n=this;N["a"].$on(n.pageCode+"-close-component-page-dialog",(function(){n.$refs.grid&&n.$refs.grid.closePageDialog()}))},beforeDestroy:function(){N["a"].$off(this.pageCode+"-close-component-page-dialog")},methods:V(V(V(V(V({},S["a"]),D["a"]),M),I),{},{getSystemRef:function(e,t){if(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(F["d"])(e.pageCode,e.tableName+"_isProcess",n.isProcess),console.log(x["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});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,l=this;return new Promise((function(t,n){r.getSaveFormRequest(l.system,l.buttonRestfulApiPath,"","",l.tableName,e,l.entityName,l.myJsContent,l.formNoRuleCode,l.dataConversionRule,l.autoSetValueData,"/dsc/commons",l.operationButtonObj&&l.operationButtonObj.lineEditSave?l.operationButtonObj.lineEditSave.logSetting:null,o,i,s.taskMap,null,a,l.beanName,l.isWorkflowEntity).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(F["c"])(this.pageCode,"_pageDevMode"),o=Object(F["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 l=i[s];l.push(o)}else{var u=[];u.push(o),i[s]=u}}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)},saveRow:function(e,t,n,o,a){var i=this,r=this.operationButtonObj.lineEditSave,s=this.callBeforeClickButton(this.listEvents,this.listCode+"__"+r.code,{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a});if(s){var l=[];l.push(n),this.canExecuteWithMore(r.executableData,l,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 l=[];l.push(n),this.canExecuteWithMore(r.executableData,l,this.isSqlQuery,this.tableName,this.additionalParamMap).then((function(s){if(!0===s.canExecute)if(r.jumpPage){var l;if(n&&n.id?l=n.id:n&&n.ID&&(l=n.ID),!l)return void i.$message({showClose:!0,type:"warning",message:i.$t("superPageMessage.pleaseSaveRow")});i.update(r.jumpPage,i.system,l,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 l=!1;r&&"undefined"!==typeof r.jsContent&&(l=r.jsContent),this.myJsContent=l;var u=[];u.push(n),this.canExecuteWithMore(r.executableData,u,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=[],l=0;l<r.length;l++){var u={};u.leftBracket=0===l?"((":"(",u.propName=i,u.propDbName=i,u.dataType=n[i]?n[i]:null,u.operator="EQ",u.propValue=r[l],l===r.length-1?(u.rightBracket="))",u.joinSign="and"):(u.rightBracket=")",u.joinSign="or"),s.push(u)}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(F["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,C,P,!1,null,"63e24b96",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",{attrs:{"col-setting":e.colSetting,"data-id":e.dataId,"task-id":e.taskId,"email-template-code":e.emailTemplateCode,"page-code":e.pageCode}}):n("common-form-page",{attrs:{"col-setting":e.colSetting,"data-id":e.dataId,"page-code":e.pageCode}})],1)},K=[],z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowForm?[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},on:{refresh:e.refreshForm,click:e.clickCommonFormButton}}):e._e(),n("form-head",{attrs:{"form-title":e.formTitle,"form-no":e.formNo}}),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}}):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}})]:[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}})]]: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)},Q=[],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.$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}}},ee=Z,te=(n("49fa"),Object(q["a"])(ee,Y,X,!1,null,"045474b4",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 le={name:"CommonFormPage",components:{ButtonGroup:T["a"],formHead:ne},props:{colSetting:{type:Object,default:null},dataId:{type:Number,default:null},pageCode:{type:String,default:null}},data:function(){var e=this.colSetting.baseSetting.modelDataTableEntityName,t=this.colSetting.baseSetting.beanName,n=Object(F["c"])(this.pageCode,"_systemInfo"),o=Object(F["c"])(this.pageCode,"_pageIsDsc"),a=Object(F["c"])(this.pageCode,"_pageCode"),i=Object(F["c"])(this.pageCode,"_pathQuery"),r=Object(F["c"])(this.pageCode,"_pagePreview");void 0===r&&(r=!1);var s,l=Object(F["c"])(this.pageCode,"_pageDevMode");null!==l&&void 0!==l||(l=!1),n&&(s=n.code+"."+a+"."+this.colSetting.baseSetting.componentCode);var u=this.colSetting.options.buttonGroup;u||(u=[]),u.push(this.getBackButton());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(F["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=l;var h=null;this.colSetting.baseSetting.modelVersion&&(h=parseInt(this.colSetting.baseSetting.modelVersion));var g=this.colSetting.baseSetting.modelCode,b=[],y=Object(F["c"])(this.pageCode,"_pageEvents");return y&&(b=y.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:u,isSqlQuery:o,formNoRuleCode:c,judgeHeavyList:this.colSetting.options.judgeHeavyList,notIdInitializationList:this.colSetting.options.notIdInitializationList,formNo:null,isPreview:r,additionalParamMap:null,dataTypeMap:null,formEvents:b,pathQuery:i,pageDevMode:l,refreshButton:!0,ids:null,isBatchProcessing:p,isShowPageDialog:!1,jumpPageSetting:null,customEvents:y?y.customEvents:null}},watch:{jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;N["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o),N["a"].$off(n+"-close-dialog")}))}}}},created:function(){this.getRealUrlForView(),this.initDscFormData();var e=Object(F["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));var t=this;N["a"].$on(this.pageCode+"-close-component-page-dialog",(function(e){t.closeFormPageDialog(e,t)}))},beforeDestroy:function(){N["a"].$off(this.pageCode+"-close-form-page-dialog")},methods:ie(ie(ie(ie(ie({},S["a"]),oe["a"]),M),I),{},{clickCommonFormButton:function(e){var t=this;if(!this.isPreview&&e){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});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),n=t+"/dsc/commons/gets",o={formViewCode:this.formViewCode,tableName:this.tableName,formNoRuleCode:this.formNoRuleCode,id:this.dataId,systemCode:this.system.code};this.notIdInitializationList&&(o.noIdAndTaskIdInitSetting=JSON.stringify(this.notIdInitializationList)),this.additionalParamMap&&(o.additionalParamMap=JSON.stringify(this.additionalParamMap)),this.entityName&&(o.entityName=this.entityName),this.beanName&&(o.beanName=this.beanName),n&&(this.isShowForm=!1,this.$http.post(n,o).then((function(t){t&&(e.formData=t.entity,e.formNo=t.formNo,Object(F["d"])(e.pageCode,"_formData",e.formData),e.formViewId=t.formViewId,e.dataId?Object(F["d"])(e.pageCode,"_isCreateformData",!1):Object(F["d"])(e.pageCode,"_isCreateformData",!0),e.dataTypeMap=t.dataTypeMap),e.isShowForm=!0,e.isInitDscFormData=!0})))},getHighestFormViewId:function(){var e=this,t=O.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}))}})},ue=le,ce=Object(q["a"])(ue,z,Q,!1,null,"3b4141dd",null),pe=ce.exports,de=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowForm?[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":e.formData,"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}}),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}}):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}}):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])}}},ye=be,ve=Object(q["a"])(ye,he,ge,!1,null,null,null),_e=ve.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:"nodeId",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)},Ce=[],Pe={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})):[]}}},Se=Pe,ke=Object(q["a"])(Se,we,Ce,!1,null,null,null),Oe=ke.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 Ne(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){De(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 De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){return Ee="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},Ee(e)}var Me={name:"WorkflowFormPage",components:{ButtonGroup:T["a"],TaskInformitionDialog:_e,RemoveSignerDialog:Oe,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}},data:function(){var e,t=Object(F["c"])(this.pageCode,"_pathQuery"),n=Object(F["c"])(this.pageCode,"_systemInfo"),o=this.colSetting.baseSetting.modelDataTableEntityName,a=this.colSetting.baseSetting.beanName,i=Object(F["c"])(this.pageCode,"_pageCode");n&&(e=n.code+"."+i+"."+this.colSetting.baseSetting.componentCode);var r=Object(F["c"])(this.pageCode,"_pageIsDsc"),s=!1;"undefined"!==typeof this.taskId&&null!==this.taskId&&(s=!0);var l="";this.colSetting.options&&this.colSetting.options.formNoRuleCode&&(l=this.colSetting.options.formNoRuleCode);var u=!1;this.colSetting.options&&this.colSetting.options.isBatchProcessing&&(u=this.colSetting.options.isBatchProcessing);var c=Object(F["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(F["c"])(this.pageCode,"_pagePreview");void 0===f&&(f=!1);var m=Object(F["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=[],y=Object(F["c"])(this.pageCode,"_pageEvents");return y&&(b=y.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:l,isEnableRequired:!0,defaultOpinionAttrName:"_defaultOpinion_",judgeHeavyList:this.colSetting.options.judgeHeavyList,notIdInitializationList:this.colSetting.options.notIdInitializationList,dataConversionRule:null,formNo:null,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:u,isShowPageDialog:!1,jumpPageSetting:null,isSqlQuery:r,isNeedValueMapping:!1,firstNodeInfo:null,customEvents:y?y.customEvents:null}},watch:{taskName:function(e){this.currentActivityName=e},jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;N["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o),N["a"].$off(n+"-close-dialog")}))}}}},created:function(){this.initWorkflowFormData();var e=Object(F["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"===Ee(this.pathQuery.ids)&&(this.ids=this.pathQuery.ids));var t=this;N["a"].$on(t.pageCode+"-close-component-page-dialog",(function(e){console.log("----eventBus.$on----close-component-page-dialog--jumpInfo=",e),t.closeFormPageDialog(e,t)}))},mounted:function(){},beforeDestroy:function(){N["a"].$off(this.pageCode+"-close-component-page-dialog")},methods:Ne(Ne(Ne(Ne(Ne({},S["a"]),me["a"]),M),I),{},{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});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 l=!1;n&&"undefined"!==typeof n.successOperation&&(l=n.successOperation),a.successOperation=l;var u=!1;n&&"undefined"!==typeof n.logSetting&&(u=n.logSetting),a.logSetting=u;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,l,a.isNeedValueMapping,d,a.beanName):"endInstance"===e?a.endInstance(a.system,a.tableName,i,a.formViewCode,a.formViewVersion,a.entityName,s,l,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 u=null;a.logicSetting&&(u=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,l,c,u,p,a.logSetting,null,null,!!o&&o.isNeedValueMapping,d,f,a.beanName)}}))}}))}},clickWorkflowExtensionButtonOn:function(e){var t=this,n=this;if(!n.isPreview&&e){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 l="";e&&"undefined"!==typeof e.dataConversionRule&&(l=e.dataConversionRule);var u="";e&&"undefined"!==typeof e.autoSetValueData&&(u=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,l,n.logicSetting&&n.logicSetting.end?n.logicSetting.end:null,u,e.logSetting,t.ids,t.isBatchProcessing,!!e&&e.isNeedValueMapping,c,p,t.beanName):"exportForm"===e.code?t.exportFormReport(e.templateUUID,e.templateShowPath,r,n.entityName,n.system,e.logSetting,c,n.additionalParamMap,!0,t.beanName):n.clickWorkflowExtensionButton(n.system,n.tableName,o,n.definitionId,n.emailTemplateCode,n.formViewCode,n.formViewVersion,r,t.formNoRuleCode,s,l,u,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,l=0;l<i.length;l++){var u=i[l],c=u.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=u,s=!0),"processEnd"===c&&(a=u,s=!0),p&&p===c&&(o=u,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},n=this.getBaseUrl(this.system),o=n+"/dsc/workflow-commons/gets";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.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(F["d"])(e.pageCode,"_isCreateformData",!1):Object(F["d"])(e.pageCode,"_isCreateformData",!0),e.dataTypeMap=t.dataTypeMap,e.dealCompleteTaskParam(t,!0),e.isShowForm=!0}))},saveWorkflowFormData:function(e){"undefined"===typeof e&&(e=!0);var t=this;return new Promise((function(n,o){t.$refs.superForm.getModels(!1).then((function(o){if(!0===e){var a=!0,i=t.$getValidator(t.completeTaskParam.fieldPermissions,o,a),r=t.$formValidator(o,i,a);!0!==r?(t.$message({showClose:!0,message:r,type:"warning"}),n(!1)):(Object.keys(o).indexOf("validateErrorField")>=0&&delete o.validateErrorField,n(o))}else n(o)}))}))},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),!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)}})},je=Me,Ie=(n("dfd6"),Object(q["a"])(je,de,fe,!1,null,"1080d879",null)),xe=Ie.exports,Re={name:"FormPage",components:{CommonFormPage:pe,WorkflowFormPage:xe},props:{colSetting:{type:Object,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},pageCode:{type:String,default:null}},data:function(){return{isWorkflowForm:!1,emailTemplateCode:""}},created:function(){this.getProcessInfo()},methods:{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}}},Be=Re,Fe=Object(q["a"])(Be,H,K,!1,null,"400edfee",null),$e=Fe.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)},Ve=[],Ae={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(F["c"])(this.pageCode,"additionalParamMap"),t=Object(F["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,N["a"].$on(n.chartQueryCode+"-clickChartSearchButton",(function(t,o){n.isPreview||o&&!1===e.isInitialQuery||(n.query=t)})),N["a"].$on(n.chartQueryCode+"-clickChartResetButton",(function(e){n.isPreview||(n.query=e)}))}))},beforeDestroy:function(){N["a"].$off(this.chartQueryCode+"-clickChartSearchButton"),N["a"].$off(this.chartQueryCode+"-clickChartResetButton")},methods:{getChartQueryCodeByChart:function(e){return this.$http.get(O.a.prototype.baseAPI+"/component/chart-query-codes/charts/"+e)},addRef:function(){if(this.isNeedExport){var e=Object(F["c"])(this.pageCode,"chartRefList");e||(e=[]),e.push({code:this.chartViewCode,refData:this.$refs.superChart}),Object(F["d"])(this.pageCode,"chartRefList",e)}}}},Ue=Ae,We=Object(q["a"])(Ue,Le,Ve,!1,null,"2c20a4a8",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},on:{search:e.search,initSearch:e.initSearch,reset:e.resetForm,export:e.exportChart}})],1)},Ge=[],He=n("1197"),Ke=He["a"],ze=Object(q["a"])(Ke,Je,Ge,!1,null,"10887dc2",null),Qe=ze.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:Qe,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}},data:function(){var e=!1;"workflowHistoryGraph"!==this.col.baseSetting.type&&"workflowHistoryList"!==this.col.baseSetting.type||(e=!0);var t=Object(F["c"])(this.pageCode,"_systemInfo"),n=Object(F["c"])(this.pageCode,"_colPermissionPrefix"),o=n+"."+this.col.baseSetting.componentCode;!0===e&&(o=n+".workflowHistory");var a=Object(F["c"])(this.pageCode,"_pageDevMode"),i=Object(F["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"])),created:function(){var e=Object(F["c"])(this.pageCode,"additionalParamMap");e&&(this.additionalParamMap=e)},mounted:function(){var e=this;N["a"].$on("refreshHistory",(function(){e.$refs.historyList&&e.$refs.historyList.refresh(),e.$refs.historyGraph&&e.$refs.historyGraph.refresh()}))},beforeDestroy:function(){N["a"].$off("refreshHistory"),console.log("-refreshHistory-off")},methods:it(it(it({},S["a"]),ot["a"]),{},{updateValues:function(e,t,n){console.log("update-value---",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)}})},lt=st,ut=Object(q["a"])(lt,v,_,!1,null,"f37f1358",null),ct=ut.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(F["c"])(this.pageCode,"_systemInfo");return{pageSettingList:[],system:e}},created:function(){this.oneTabContent&&(this.pageSettingList=this.oneTabContent)},methods:{updateValues:function(e,t,n){this.$emit("update-value",e,t,n)}}},dt=pt,ft=(n("3af1"),Object(q["a"])(dt,b,y,!1,null,"b779eb02",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=S["a"].getWorkflowId(this.pageCode),N["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),yt=bt.exports,vt={name:"WidgetTabPage",components:{SubTabPage:yt,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(F["c"])(this.pageCode,"_systemInfo");return{pageSettingList:[],system:e}},created:function(){this.oneTabContent&&(this.pageSettingList=this.oneTabContent)},methods:{updateValues:function(e,t,n){this.$emit("update-value",e,t,n)}}},_t=vt,wt=(n("ccc4"),Object(q["a"])(_t,f,m,!1,null,"1f9eae7a",null)),Ct=wt.exports,Pt={name:"TabPage",components:{WidgetTabPanePage:Ct},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=S["a"].getWorkflowId(this.pageCode),N["a"].$emit("refreshHistory")},updateValues:function(e,t,n){this.$emit("update-value",e,t,n)}}},St=Pt,kt=Object(q["a"])(St,p,d,!1,null,"49afd546",null),Ot=kt.exports,Tt=n("bc3a"),Nt=n.n(Tt),Dt=n("a78e"),Et=n.n(Dt);function Mt(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 jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){It(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function It(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xt={name:"WidgetPage",components:{TabPage:Ot,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}},created:function(){if(this.initSuperPage(),this.pageCode){var e=x["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(F["a"])(this.pageCode,"_pageEvents");var e=!0;this.registerCustomFuncToWindow(this.myPageSetting.pageEvents.customFuncs,e)}},methods:jt(jt(jt({},c["a"]),S["a"]),{},{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(F["d"])(e.pageCode,"_systemInfo",e.system),t.contextParameter&&Object(F["d"])(e.pageCode,"_contextParameter",t.contextParameter);var n,o=e.system.code+"."+e.pageCode;Object(F["d"])(e.pageCode,"_colPermissionPrefix",o),Object(F["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(F["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(F["d"])(e.pageCode,"_systemInfo",e.system);var n=e.system.code+".test.";Object(F["d"])(e.pageCode,"_colPermissionPrefix",n),e.myPageSetting=t.pageSetting,e.pageSettingList=e.myPageSetting.list,e.isShowPage=!0}}))},exportReport:function(e){var t=Object(F["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(F["c"])(this.pageCode,"_pageName");a&&(n=a);var i,r={reportDataList:o,beanName:e},s=O.a.prototype.baseURL+"/dsc/commons/exportChart";Nt.a.defaults.headers.common.Authorization=Et.a.get("JWT"),i=Nt.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)}))}}})},Rt=xt,Bt=(n("8c21"),Object(q["a"])(Rt,l,u,!1,null,"15f69a76",null)),Ft=Bt.exports,$t={name:"SuperPageComponent",components:{WidgetPage:Ft},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(F["d"])(this.code,"_pageCode",this.code),Object(F["d"])(this.code,"_pagePreview",this.preview),Object(F["d"])(this.code,"_pageIsDsc",this.isDsc),Object(F["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)}}},Lt=$t,Vt=Object(q["a"])(Lt,r,s,!1,null,"4382bbbc",null),At=Vt.exports,Ut={name:"SuperPage",components:{SuperPageComponent: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:!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(){x["a"].set(this.code,Object(F["b"])(this.devMode,this.jumpMode,this.buttonCode,this.pathQuery));var e=x["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),x["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)}}},Wt=Ut,qt=Object(q["a"])(Wt,a,i,!1,null,"208173cb",null),Jt=qt.exports;Jt.install=function(e){e.component(Jt.name,Jt)};var Gt=Jt,Ht=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+"px"},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)},Kt=[],zt={name:"SuperPageDialog",components:{SuperPageComponent:At},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=x["a"].get(this.pageCode);if(e||(x["a"].set(this.pageCode,{}),e=x["a"].get(this.pageCode)),console.log("super-page-dialog-this.jumpPageSetting=",this.jumpPageSetting),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),x["a"].set(this.pageCode,e))}}e._pageDevMode=this.devMode,e._sourceButtonCode=this.buttonCode,this.jumpPageSetting.ids&&e&&(e._pathQuery={ids:this.jumpPageSetting.ids}),x["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)}}},Qt=zt,Yt=Object(q["a"])(Qt,Ht,Kt,!1,null,null,null),Xt=Yt.exports;Xt.install=function(e){e.component(Xt.name,Xt)};var Zt=Xt,en=[Gt,Zt],tn=function e(t){e.installed||en.forEach((function(e){t.component(e.name,e)}))};"undefined"!==typeof window&&window.Vue&&tn(window.Vue);var nn={install:tn,SuperPage:Gt,SuperPageDialog:Zt};t["default"]=nn}})}));
|
|
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},ccc4:function(e,t,n){"use strict";n("5bd8")},cee4:function(e,t,n){"use strict";var o=n("c532"),a=n("1d2b"),i=n("0a06"),r=n("4a7b"),s=n("2444");function l(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 u=l(s);u.Axios=i,u.create=function(e){return l(r(u.defaults,e))},u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.all=function(e){return Promise.all(e)},u.spread=n("0df6"),e.exports=u,e.exports.default=u},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),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)this.exportFormReport(button.templateUUID,button.templateShowPath,myJsContent,entityName,system,button.logSetting,button.taskMap,additionalParamMap,!1,beanName);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,l,u,c,p){var d=this,f=this.getSaveFormRequest(e,t.restfulApiPath,n,o,a,i,r,s,l,t.dataConversionRule,t.autoSetValueData,"/dsc/commons",t.logSetting,null,null,t.taskMap,u,c,p,!1);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.$message.success(this.$t(n))},getSubmitFormRequest:function(e,t,n,o,a,i,r,s,l,u,c,p,d,f,m,h){var g=this,b="superPageMessage.whetherToConfirm"+this.upperFirstCase(u);this.$confirm(this.$t(b),this.$t("superPageMessage.tips"),{confirmButtonText:this.$t("superPageMessage.sure"),cancelButtonText:this.$t("superPageMessage.cancel"),type:"warning"}).then((function(){var u={entity:e,tableName:o,formNoRuleCode:s};g.judgeHeavyList&&(u.judgeHeavyList=JSON.stringify(g.judgeHeavyList)),r.dataConversionRule&&(u.dataConversionRule=r.dataConversionRule.join(",")),r.autoSetValueData&&(u.autoSetValueData=JSON.stringify(r.autoSetValueData)),r.logSetting&&(u.logSettingText=r.logSetting),r.taskMap&&(u.taskMap=r.taskMap),u.systemCode||(u.systemCode=t.code),a&&(u.entityName=a),m&&(u.beanName=m),c&&c.length>0&&(u.ids=c),d&&(u.needDeleteFileUuidS=d),f&&(u.additionalParamMap=f),void 0!==h&&null!==h&&(u.isWorkflowEntity=h),u.isBatchProcessing=p;var b=g.getSaveFormRequestByParam(t,n,u,i,l);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,l,u,c,p,d){var f=this,m=this.getSubmitFormRequest(e,t,i.restfulApiPath,n,o,a,i,r,s,i.code,l,u,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)}};__webpack_exports__["a"]=buttonEvents},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},dfd6:function(e,t,n){"use strict";n("7d50")},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},f0d9:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},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 l(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 u,c=[],p=!1,d=-1;function f(){p&&u&&(p=!1,u.length?c=u.concat(c):d=-1,c.length&&m())}function m(){if(!p){var e=s(f);p=!0;var t=c.length;while(t){u=c,c=[];while(++d<t)u&&u[d].run();d=-1,t=c.length}u=null,p=!1,l(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 u})),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"),l=n("9696");function u(e,t,n,o,i,s,l,u){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",u),f.parentFormData=u,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,l).then((function(e){p(e)}))}))}else d(e,t,n,s,l).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 l=r.a.prototype.baseAPI+"/component/business-systems/"+s;r.a.prototype.$http.get(l).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 u=v(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(l["b"])(t.frontendUrl);c=d+"/#"+c}f(n,c,u,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,l;s=o.jumpPageWidth?o.jumpPageWidth:window.innerWidth-150,l=o.jumpPageHeight?o.jumpPageHeight:window.innerHeight-150;var u="height="+l+", width="+s+", top=0, left=0, toolbar=no, menubar=no,scrollbars=no,resizable=no, location=no, status=no";window.open(t,"newW",u)}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,l){console.log("----jumpWithSuperPage---",e,t,n,o);var u=h(e),c="refresh";o&&o.jumpPageOpenMode&&(c=o.jumpPageOpenMode);var p={jumpMode:c};if(a.a.setItem(u+"-jumpMode",JSON.stringify(p)),"popup"===c){var d=y(t,u,n,o,c,i,r),f=b(o,t,u,n,c,i,r);f._path=d,s(f)}else if("newTab"===c){var m=y(t,u,n,o,c,i,r);window.open(m),s()}else{var g={pageCode:u,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 v=o.paramStoreId;v&&""!==v&&(g["paramStoreId"]=v);var _=y(t,u,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 l=!1;return"undefined"!==typeof t.standard&&(l=!t.standard),s.pageCode=n,void 0!==e.isNeedId&&null!==e.isNeedId&&!0!==e.isNeedId||o&&(s.dataId=o),s.isDsc=l,s.paramStoreId=e.paramStoreId,s.jumpMode=a,s.ids=i,s.buttonCode=r,s}function y(e,t,n,o,a,i,r){var s=Object(l["b"])(e.frontendUrl),u=s+"/#/dsc-full-screen/page?customSystem="+e.code+"&pageCode="+t+"&jumpMode="+a;return m(n,u,o,i,r)}function v(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 l=n.valueMappings;l.forEach((function(e){var n=e.source,l=Object(s["c"])(r,n),u="__";void 0!==l&&null!==l||(n&&t&&n.indexOf(".")>0&&(n=t+u+n),l=Object(s["c"])(r,n));var c=e.target;void 0!==i&&!0===i&&c&&a&&c.indexOf(".")>0&&(c=a+u+c),Object(s["d"])(o,c,l)}))}}},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)},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}},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=[],l=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},on:{"update-value":e.updateValues,export:e.exportReport}})],1)]}))],2)})):e._e()],2)},u=[],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":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-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)},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},on:{"update-value":e.updateValues}})],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},on:{"update-value":e.updateValues}})],1)]}))],2)})):e._e()],2)},y=[],v=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},on:{"update-value":e.updateValues}}):"formView"===e.col.baseSetting.type?n("form-page",{attrs:{"col-setting":e.col,"data-id":e.dataId,"task-id":e.taskId,"page-code":e.pageCode}}):"chartQuery"===e.col.baseSetting.type?n("chart-query-page",{attrs:{"query-code":e.col.baseSetting.modelCode,"col-setting":e.col,"page-code":e.pageCode},on:{export:e.exportReport}}):"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}}):"customComponent"===e.col.baseSetting.type?n(e.col.baseSetting.customComponentName,{ref:e.col.baseSetting.customComponentName+"_CustomComponent",tag:"component"}):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"),C=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","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},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},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()},P=[],S=n("51ae"),k=n("8bbf"),O=n.n(k),T=n("3c3b"),N=n("06e7"),D=n("65f1"),E={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)}}},M=E,j={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)}},I=j,x=n("18ce"),R=n("3ff5"),B=n("8722"),F=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 V(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){A(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 A(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:B["a"]},props:{colSetting:{type:Object,default:null},pageCode:{type:String,default:null}},data:function(){var e=O.a.prototype.baseURL,t=this.colSetting.baseSetting.modelDataTableCode,n=Object(F["c"])(this.pageCode,t+"_isProcess");null!==n&&void 0!==n&&(n=!1);var o=Object(F["c"])(this.pageCode,"_systemInfo"),a=Object(F["c"])(this.pageCode,"_pageIsDsc");console.log("list-page--_pageIsDsc--isSqlQuery=",a,"this.pageCode=",this.pageCode);var i,r=Object(F["c"])(this.pageCode,"_pageCode"),s=this.getUrlToListData(o),l=this.colSetting.baseSetting.modelDataTableEntityName,u=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(F["c"])(this.pageCode,"_pathQuery"),d=Object(F["c"])(this.pageCode,"_pageHeight"),f={isSql:a,extraParam:{entityName:l,beanName:u},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.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 y=m.lazy;f.lazy=void 0===y||null===y||y;var v=m.defaultExpandAll;f.defaultExpandAll=void 0!==v&&null!==v&&v,a&&(f.subRowUrl=e+"/dsc/commons/list-subs")}}var _=Object(F["c"])(this.pageCode,"_pagePreview");void 0!==_&&!0===_&&(f.loadBeforeSend=function(){return!1});var w=Object(F["c"])(this.pageCode,"_pageDevMode");null!==w&&void 0!==w||(w=!1);var C,P="";this.colSetting.options&&this.colSetting.options.formNoRuleCode&&(P=this.colSetting.options.formNoRuleCode),this.colSetting.options&&this.colSetting.options.listToolbarList&&(C=this.colSetting.options.listToolbarList);var S,k=this.colSetting.baseSetting.modelCode,T="";this.colSetting.options&&this.colSetting.options.importRuleCode&&(T=this.colSetting.options.importRuleCode),f.isWorkflowEntity=n;var N=Object(F["c"])(this.pageCode,"_pageEvents");if(N){S=N.listEvents,S&&S[k+"__beforeListLoad"]&&(f.loadBeforeSend=S[k+"__beforeListLoad"]),S&&S[k+"__onListLoad"]&&(f.gridDataLoaded=S[k+"__onListLoad"]),S&&S[k+"__afterListLoad"]&&(f.gridComplete=S[k+"__afterListLoad"]);var D=N.customEvents;D&&(f.eventCallBack=D,this.colSetting.options.styleCustomMethod&&""!==this.colSetting.options.styleCustomMethod&&D&&D[this.colSetting.options.styleCustomMethod]&&(f.rowStyleRender=D[this.colSetting.options.styleCustomMethod]))}return{listToolbarList:C,urlToListData:s,options:f,operationButtons:this.colSetting.options.operationButtons,selections:null,listCode:k,permissionPrefix:i,system:o,tableName:this.colSetting.baseSetting.modelDataTableCode,entityName:l,beanName:u,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:P,importRuleCode:T,isPreview:_,button:null,logSettingText:null,additionalParamMap:null,dataTypeMap:null,showPage:!1,operationButtonObj:{},listEvents:S,pageDevMode:w,isShowPageDialog:!1,jumpPageSetting:null,editRowData:null,searchIsPopup:!1,customEvents:N?N.customEvents:null,listToolbarFormData:null,isWorkflowEntity:n}},watch:{jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;N["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o),t.$set(t,"selections",null),N["a"].$off(n+"-close-dialog")}))}}}},created:function(){var e=this;this.getDataTypeMap().then((function(){e.setOperationButtons()}));var t=Object(F["c"])(this.pageCode,"additionalParamMap");t&&(this.additionalParamMap=t,this.$set(this.options,"additionalParamMap",this.additionalParamMap));var n=this;N["a"].$on(n.pageCode+"-close-component-page-dialog",(function(){n.$refs.grid&&n.$refs.grid.closePageDialog()}))},beforeDestroy:function(){N["a"].$off(this.pageCode+"-close-component-page-dialog")},methods:V(V(V(V(V({},S["a"]),D["a"]),M),I),{},{getSystemRef:function(e,t){if(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(F["d"])(e.pageCode,e.tableName+"_isProcess",n.isProcess),console.log(x["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});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,l=this;return new Promise((function(t,n){r.getSaveFormRequest(l.system,l.buttonRestfulApiPath,"","",l.tableName,e,l.entityName,l.myJsContent,l.formNoRuleCode,l.dataConversionRule,l.autoSetValueData,"/dsc/commons",l.operationButtonObj&&l.operationButtonObj.lineEditSave?l.operationButtonObj.lineEditSave.logSetting:null,o,i,s.taskMap,null,a,l.beanName,l.isWorkflowEntity).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(F["c"])(this.pageCode,"_pageDevMode"),o=Object(F["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 l=i[s];l.push(o)}else{var u=[];u.push(o),i[s]=u}}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)},saveRow:function(e,t,n,o,a){var i=this,r=this.operationButtonObj.lineEditSave,s=this.callBeforeClickButton(this.listEvents,this.listCode+"__"+r.code,{params:this.additionalParamMap,originalValue:e,formatValue:t,row:n,column:o,rowIndex:a});if(s){var l=[];l.push(n),this.canExecuteWithMore(r.executableData,l,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 l=[];l.push(n),this.canExecuteWithMore(r.executableData,l,this.isSqlQuery,this.tableName,this.additionalParamMap).then((function(s){if(!0===s.canExecute)if(r.jumpPage){var l;if(n&&n.id?l=n.id:n&&n.ID&&(l=n.ID),!l)return void i.$message({showClose:!0,type:"warning",message:i.$t("superPageMessage.pleaseSaveRow")});i.update(r.jumpPage,i.system,l,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 l=!1;r&&"undefined"!==typeof r.jsContent&&(l=r.jsContent),this.myJsContent=l;var u=[];u.push(n),this.canExecuteWithMore(r.executableData,u,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=[],l=0;l<r.length;l++){var u={};u.leftBracket=0===l?"((":"(",u.propName=i,u.propDbName=i,u.dataType=n[i]?n[i]:null,u.operator="EQ",u.propValue=r[l],l===r.length-1?(u.rightBracket="))",u.joinSign="and"):(u.rightBracket=")",u.joinSign="or"),s.push(u)}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(F["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,C,P,!1,null,"63e24b96",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",{attrs:{"col-setting":e.colSetting,"data-id":e.dataId,"task-id":e.taskId,"email-template-code":e.emailTemplateCode,"page-code":e.pageCode}}):n("common-form-page",{attrs:{"col-setting":e.colSetting,"data-id":e.dataId,"page-code":e.pageCode}})],1)},K=[],z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowForm?[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},on:{refresh:e.refreshForm,click:e.clickCommonFormButton}}):e._e(),n("form-head",{attrs:{"form-title":e.formTitle,"form-no":e.formNo}}),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}}):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}})]:[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}})]]: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)},Q=[],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.$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}}},ee=Z,te=(n("49fa"),Object(q["a"])(ee,Y,X,!1,null,"045474b4",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 le={name:"CommonFormPage",components:{ButtonGroup:T["a"],formHead:ne},props:{colSetting:{type:Object,default:null},dataId:{type:Number,default:null},pageCode:{type:String,default:null}},data:function(){var e=this.colSetting.baseSetting.modelDataTableEntityName,t=this.colSetting.baseSetting.beanName,n=Object(F["c"])(this.pageCode,"_systemInfo"),o=Object(F["c"])(this.pageCode,"_pageIsDsc"),a=Object(F["c"])(this.pageCode,"_pageCode"),i=Object(F["c"])(this.pageCode,"_pathQuery"),r=Object(F["c"])(this.pageCode,"_pagePreview");void 0===r&&(r=!1);var s,l=Object(F["c"])(this.pageCode,"_pageDevMode");null!==l&&void 0!==l||(l=!1),n&&(s=n.code+"."+a+"."+this.colSetting.baseSetting.componentCode);var u=this.colSetting.options.buttonGroup;u||(u=[]),u.push(this.getBackButton());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(F["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=l;var h=null;this.colSetting.baseSetting.modelVersion&&(h=parseInt(this.colSetting.baseSetting.modelVersion));var g=this.colSetting.baseSetting.modelCode,b=[],y=Object(F["c"])(this.pageCode,"_pageEvents");return y&&(b=y.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:u,isSqlQuery:o,formNoRuleCode:c,judgeHeavyList:this.colSetting.options.judgeHeavyList,notIdInitializationList:this.colSetting.options.notIdInitializationList,formNo:null,isPreview:r,additionalParamMap:null,dataTypeMap:null,formEvents:b,pathQuery:i,pageDevMode:l,refreshButton:!0,ids:null,isBatchProcessing:p,isShowPageDialog:!1,jumpPageSetting:null,customEvents:y?y.customEvents:null}},watch:{jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;N["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o),N["a"].$off(n+"-close-dialog")}))}}}},created:function(){this.getRealUrlForView(),this.initDscFormData();var e=Object(F["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));var t=this;N["a"].$on(this.pageCode+"-close-component-page-dialog",(function(e){t.closeFormPageDialog(e,t)}))},beforeDestroy:function(){N["a"].$off(this.pageCode+"-close-form-page-dialog")},methods:ie(ie(ie(ie(ie({},S["a"]),oe["a"]),M),I),{},{clickCommonFormButton:function(e){var t=this;if(!this.isPreview&&e){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});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),n=t+"/dsc/commons/gets",o={formViewCode:this.formViewCode,tableName:this.tableName,formNoRuleCode:this.formNoRuleCode,id:this.dataId,systemCode:this.system.code};this.notIdInitializationList&&(o.noIdAndTaskIdInitSetting=JSON.stringify(this.notIdInitializationList)),this.additionalParamMap&&(o.additionalParamMap=JSON.stringify(this.additionalParamMap)),this.entityName&&(o.entityName=this.entityName),this.beanName&&(o.beanName=this.beanName),n&&(this.isShowForm=!1,this.$http.post(n,o).then((function(t){t&&(e.formData=t.entity,e.formNo=t.formNo,Object(F["d"])(e.pageCode,"_formData",e.formData),e.formViewId=t.formViewId,e.dataId?Object(F["d"])(e.pageCode,"_isCreateformData",!1):Object(F["d"])(e.pageCode,"_isCreateformData",!0),e.dataTypeMap=t.dataTypeMap),e.isShowForm=!0,e.isInitDscFormData=!0})))},getHighestFormViewId:function(){var e=this,t=O.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}))}})},ue=le,ce=Object(q["a"])(ue,z,Q,!1,null,"3b4141dd",null),pe=ce.exports,de=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowForm?[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":e.formData,"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}}),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}}):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}}):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])}}},ye=be,ve=Object(q["a"])(ye,he,ge,!1,null,null,null),_e=ve.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)},Ce=[],Pe={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})):[]}}},Se=Pe,ke=Object(q["a"])(Se,we,Ce,!1,null,null,null),Oe=ke.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 Ne(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){De(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 De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e){return Ee="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},Ee(e)}var Me={name:"WorkflowFormPage",components:{ButtonGroup:T["a"],TaskInformitionDialog:_e,RemoveSignerDialog:Oe,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}},data:function(){var e,t=Object(F["c"])(this.pageCode,"_pathQuery"),n=Object(F["c"])(this.pageCode,"_systemInfo"),o=this.colSetting.baseSetting.modelDataTableEntityName,a=this.colSetting.baseSetting.beanName,i=Object(F["c"])(this.pageCode,"_pageCode");n&&(e=n.code+"."+i+"."+this.colSetting.baseSetting.componentCode);var r=Object(F["c"])(this.pageCode,"_pageIsDsc"),s=!1;"undefined"!==typeof this.taskId&&null!==this.taskId&&(s=!0);var l="";this.colSetting.options&&this.colSetting.options.formNoRuleCode&&(l=this.colSetting.options.formNoRuleCode);var u=!1;this.colSetting.options&&this.colSetting.options.isBatchProcessing&&(u=this.colSetting.options.isBatchProcessing);var c=Object(F["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(F["c"])(this.pageCode,"_pagePreview");void 0===f&&(f=!1);var m=Object(F["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=[],y=Object(F["c"])(this.pageCode,"_pageEvents");return y&&(b=y.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:l,isEnableRequired:!0,defaultOpinionAttrName:"_defaultOpinion_",judgeHeavyList:this.colSetting.options.judgeHeavyList,notIdInitializationList:this.colSetting.options.notIdInitializationList,dataConversionRule:null,formNo:null,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:u,isShowPageDialog:!1,jumpPageSetting:null,isSqlQuery:r,isNeedValueMapping:!1,firstNodeInfo:null,customEvents:y?y.customEvents:null}},watch:{taskName:function(e){this.currentActivityName=e},jumpPageSetting:{deep:!0,handler:function(e){if(e&&null!==e){var t=this;N["a"].$on(e.pageCode+"-close-dialog",(function(n,o){n===e.pageCode&&t.eventBusOnCloseDialog(n,t,e.buttonCode,o),N["a"].$off(n+"-close-dialog")}))}}}},created:function(){this.initWorkflowFormData();var e=Object(F["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"===Ee(this.pathQuery.ids)&&(this.ids=this.pathQuery.ids));var t=this;N["a"].$on(t.pageCode+"-close-component-page-dialog",(function(e){console.log("----eventBus.$on----close-component-page-dialog--jumpInfo=",e),t.closeFormPageDialog(e,t)}))},mounted:function(){},beforeDestroy:function(){N["a"].$off(this.pageCode+"-close-component-page-dialog")},methods:Ne(Ne(Ne(Ne(Ne({},S["a"]),me["a"]),M),I),{},{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});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 l=!1;n&&"undefined"!==typeof n.successOperation&&(l=n.successOperation),a.successOperation=l;var u=!1;n&&"undefined"!==typeof n.logSetting&&(u=n.logSetting),a.logSetting=u;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,l,a.isNeedValueMapping,d,a.beanName):"endInstance"===e?a.endInstance(a.system,a.tableName,i,a.formViewCode,a.formViewVersion,a.entityName,s,l,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 u=null;a.logicSetting&&(u=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,l,c,u,p,a.logSetting,null,null,!!o&&o.isNeedValueMapping,d,f,a.beanName)}}))}}))}},clickWorkflowExtensionButtonOn:function(e){var t=this,n=this;if(!n.isPreview&&e){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 l="";e&&"undefined"!==typeof e.dataConversionRule&&(l=e.dataConversionRule);var u="";e&&"undefined"!==typeof e.autoSetValueData&&(u=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,l,n.logicSetting&&n.logicSetting.end?n.logicSetting.end:null,u,e.logSetting,t.ids,t.isBatchProcessing,!!e&&e.isNeedValueMapping,c,p,t.beanName):"exportForm"===e.code?t.exportFormReport(e.templateUUID,e.templateShowPath,r,n.entityName,n.system,e.logSetting,c,n.additionalParamMap,!0,t.beanName):n.clickWorkflowExtensionButton(n.system,n.tableName,o,n.definitionId,n.emailTemplateCode,n.formViewCode,n.formViewVersion,r,t.formNoRuleCode,s,l,u,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,l=0;l<i.length;l++){var u=i[l],c=u.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=u,s=!0),"processEnd"===c&&(a=u,s=!0),p&&p===c&&(o=u,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},n=this.getBaseUrl(this.system),o=n+"/dsc/workflow-commons/gets";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.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(F["d"])(e.pageCode,"_isCreateformData",!1):Object(F["d"])(e.pageCode,"_isCreateformData",!0),e.dataTypeMap=t.dataTypeMap,e.dealCompleteTaskParam(t,!0),e.isShowForm=!0}))},saveWorkflowFormData:function(e){"undefined"===typeof e&&(e=!0);var t=this;return new Promise((function(n,o){t.$refs.superForm.getModels(!1).then((function(o){if(!0===e){var a=!0,i=t.$getValidator(t.completeTaskParam.fieldPermissions,o,a),r=t.$formValidator(o,i,a);!0!==r?(t.$message({showClose:!0,message:r,type:"warning"}),n(!1)):(Object.keys(o).indexOf("validateErrorField")>=0&&delete o.validateErrorField,n(o))}else n(o)}))}))},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),!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)}})},je=Me,Ie=(n("dfd6"),Object(q["a"])(je,de,fe,!1,null,"1080d879",null)),xe=Ie.exports,Re={name:"FormPage",components:{CommonFormPage:pe,WorkflowFormPage:xe},props:{colSetting:{type:Object,default:null},dataId:{type:Number,default:null},taskId:{type:Number,default:null},pageCode:{type:String,default:null}},data:function(){return{isWorkflowForm:!1,emailTemplateCode:""}},created:function(){this.getProcessInfo()},methods:{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}}},Be=Re,Fe=Object(q["a"])(Be,H,K,!1,null,"400edfee",null),$e=Fe.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)},Ve=[],Ae={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(F["c"])(this.pageCode,"additionalParamMap"),t=Object(F["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,N["a"].$on(n.chartQueryCode+"-clickChartSearchButton",(function(t,o){n.isPreview||o&&!1===e.isInitialQuery||(n.query=t)})),N["a"].$on(n.chartQueryCode+"-clickChartResetButton",(function(e){n.isPreview||(n.query=e)}))}))},beforeDestroy:function(){N["a"].$off(this.chartQueryCode+"-clickChartSearchButton"),N["a"].$off(this.chartQueryCode+"-clickChartResetButton")},methods:{getChartQueryCodeByChart:function(e){return this.$http.get(O.a.prototype.baseAPI+"/component/chart-query-codes/charts/"+e)},addRef:function(){if(this.isNeedExport){var e=Object(F["c"])(this.pageCode,"chartRefList");e||(e=[]),e.push({code:this.chartViewCode,refData:this.$refs.superChart}),Object(F["d"])(this.pageCode,"chartRefList",e)}}}},Ue=Ae,We=Object(q["a"])(Ue,Le,Ve,!1,null,"2c20a4a8",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},on:{search:e.search,initSearch:e.initSearch,reset:e.resetForm,export:e.exportChart}})],1)},Ge=[],He=n("1197"),Ke=He["a"],ze=Object(q["a"])(Ke,Je,Ge,!1,null,"10887dc2",null),Qe=ze.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:Qe,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}},data:function(){var e=!1;"workflowHistoryGraph"!==this.col.baseSetting.type&&"workflowHistoryList"!==this.col.baseSetting.type||(e=!0);var t=Object(F["c"])(this.pageCode,"_systemInfo"),n=Object(F["c"])(this.pageCode,"_colPermissionPrefix"),o=n+"."+this.col.baseSetting.componentCode;!0===e&&(o=n+".workflowHistory");var a=Object(F["c"])(this.pageCode,"_pageDevMode"),i=Object(F["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"])),created:function(){var e=Object(F["c"])(this.pageCode,"additionalParamMap");e&&(this.additionalParamMap=e)},mounted:function(){var e=this;N["a"].$on("refreshHistory",(function(){e.$refs.historyList&&e.$refs.historyList.refresh(),e.$refs.historyGraph&&e.$refs.historyGraph.refresh()}))},beforeDestroy:function(){N["a"].$off("refreshHistory"),console.log("-refreshHistory-off")},methods:it(it(it({},S["a"]),ot["a"]),{},{updateValues:function(e,t,n){console.log("update-value---",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)}})},lt=st,ut=Object(q["a"])(lt,v,_,!1,null,"f37f1358",null),ct=ut.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(F["c"])(this.pageCode,"_systemInfo");return{pageSettingList:[],system:e}},created:function(){this.oneTabContent&&(this.pageSettingList=this.oneTabContent)},methods:{updateValues:function(e,t,n){this.$emit("update-value",e,t,n)}}},dt=pt,ft=(n("3af1"),Object(q["a"])(dt,b,y,!1,null,"b779eb02",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=S["a"].getWorkflowId(this.pageCode),N["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),yt=bt.exports,vt={name:"WidgetTabPage",components:{SubTabPage:yt,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(F["c"])(this.pageCode,"_systemInfo");return{pageSettingList:[],system:e}},created:function(){this.oneTabContent&&(this.pageSettingList=this.oneTabContent)},methods:{updateValues:function(e,t,n){this.$emit("update-value",e,t,n)}}},_t=vt,wt=(n("ccc4"),Object(q["a"])(_t,f,m,!1,null,"1f9eae7a",null)),Ct=wt.exports,Pt={name:"TabPage",components:{WidgetTabPanePage:Ct},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=S["a"].getWorkflowId(this.pageCode),N["a"].$emit("refreshHistory")},updateValues:function(e,t,n){this.$emit("update-value",e,t,n)}}},St=Pt,kt=Object(q["a"])(St,p,d,!1,null,"49afd546",null),Ot=kt.exports,Tt=n("bc3a"),Nt=n.n(Tt),Dt=n("a78e"),Et=n.n(Dt);function Mt(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 jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){It(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function It(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xt={name:"WidgetPage",components:{TabPage:Ot,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}},created:function(){if(this.initSuperPage(),this.pageCode){var e=x["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(F["a"])(this.pageCode,"_pageEvents");var e=!0;this.registerCustomFuncToWindow(this.myPageSetting.pageEvents.customFuncs,e)}},methods:jt(jt(jt({},c["a"]),S["a"]),{},{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(F["d"])(e.pageCode,"_systemInfo",e.system),t.contextParameter&&Object(F["d"])(e.pageCode,"_contextParameter",t.contextParameter);var n,o=e.system.code+"."+e.pageCode;Object(F["d"])(e.pageCode,"_colPermissionPrefix",o),Object(F["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(F["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(F["d"])(e.pageCode,"_systemInfo",e.system);var n=e.system.code+".test.";Object(F["d"])(e.pageCode,"_colPermissionPrefix",n),e.myPageSetting=t.pageSetting,e.pageSettingList=e.myPageSetting.list,e.isShowPage=!0}}))},exportReport:function(e){var t=Object(F["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(F["c"])(this.pageCode,"_pageName");a&&(n=a);var i,r={reportDataList:o,beanName:e},s=O.a.prototype.baseURL+"/dsc/commons/exportChart";Nt.a.defaults.headers.common.Authorization=Et.a.get("JWT"),i=Nt.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)}))}}})},Rt=xt,Bt=(n("8c21"),Object(q["a"])(Rt,l,u,!1,null,"15f69a76",null)),Ft=Bt.exports,$t={name:"SuperPageComponent",components:{WidgetPage:Ft},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(F["d"])(this.code,"_pageCode",this.code),Object(F["d"])(this.code,"_pagePreview",this.preview),Object(F["d"])(this.code,"_pageIsDsc",this.isDsc),Object(F["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)}}},Lt=$t,Vt=Object(q["a"])(Lt,r,s,!1,null,"4382bbbc",null),At=Vt.exports,Ut={name:"SuperPage",components:{SuperPageComponent: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:!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(){x["a"].set(this.code,Object(F["b"])(this.devMode,this.jumpMode,this.buttonCode,this.pathQuery));var e=x["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),x["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)}}},Wt=Ut,qt=Object(q["a"])(Wt,a,i,!1,null,"208173cb",null),Jt=qt.exports;Jt.install=function(e){e.component(Jt.name,Jt)};var Gt=Jt,Ht=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+"px"},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)},Kt=[],zt={name:"SuperPageDialog",components:{SuperPageComponent:At},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=x["a"].get(this.pageCode);if(e||(x["a"].set(this.pageCode,{}),e=x["a"].get(this.pageCode)),console.log("super-page-dialog-this.jumpPageSetting=",this.jumpPageSetting),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),x["a"].set(this.pageCode,e))}}e._pageDevMode=this.devMode,e._sourceButtonCode=this.buttonCode,this.jumpPageSetting.ids&&e&&(e._pathQuery={ids:this.jumpPageSetting.ids}),x["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)}}},Qt=zt,Yt=Object(q["a"])(Qt,Ht,Kt,!1,null,null,null),Xt=Yt.exports;Xt.install=function(e){e.component(Xt.name,Xt)};var Zt=Xt,en=[Gt,Zt],tn=function e(t){e.installed||en.forEach((function(e){t.component(e.name,e)}))};"undefined"!==typeof window&&window.Vue&&tn(window.Vue);var nn={install:tn,SuperPage:Gt,SuperPageDialog:Zt};t["default"]=nn}})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-pages",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.98",
|
|
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.44",
|
|
31
31
|
"node-sass": "4.12.0",
|
|
32
32
|
"normalize.css": "^8.0.1",
|
|
33
33
|
"nprogress": "^0.2.0",
|