super-pages 0.6.93 → 0.6.94
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 o(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(n,a,function(t){return e[t]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="fb15")}({"06e7":function(e,t,o){"use strict";var n=o("8bbf"),a=o.n(n);t["a"]=new a.a},"0785":function(e,t,o){"use strict";o("4ed1")},"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,o){},"0a06":function(e,t,o){"use strict";var n=o("c532"),a=o("30b5"),i=o("f6b4"),r=o("5270"),s=o("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],o=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)o=o.then(t.shift(),t.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,o){return this.request(n.merge(o||{},{method:e,url:t}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,o,a){return this.request(n.merge(a||{},{method:e,url:t,data:o}))}})),e.exports=l},"0df6":function(e,t,o){"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=Object(_util_common_util__WEBPACK_IMPORTED_MODULE_2__["c"])(this.pageCode,"_systemInfo");return t&&(e=t.code+"."+this.pageCode+"."+this.colSetting.baseSetting.componentCode),{permissionPrefix:e,additionalParamMap:null}},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")},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,o){"use strict";var n=new Map;t["a"]=n},"1d2b":function(e,t,o){"use strict";e.exports=function(e,t){return function(){for(var o=new Array(arguments.length),n=0;n<o.length;n++)o[n]=arguments[n];return e.apply(t,o)}}},2105:function(e,t,o){"use strict";o.d(t,"a",(function(){return a}));var n=function(e,t,o){var n="1.23452384164.123412415";if(o&&(n=o),null!==document.getElementById(n))if(document.getElementById("pdfDom")){var a=document.getElementById("pdfDom");a.removeChild(document.getElementById(n))}else document.body.removeChild(document.getElementById(n));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=n,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 n};function a(e,t,o,a){var r=new Date;r=i(r,"yyyy-MM-dd"),setTimeout((function(){var i=e&&""!==e?e:o?o.name+" "+r:r,s=n(i,t,a);setInterval((function(){null===document.getElementById(s)&&(s=n(i,t,a))}),500),window.onresize=function(){n(i,t,a)}}))}var i=function(e,t){/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var o={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var n in o)if(new RegExp("(".concat(n,")")).test(t)){var a=o[n]+"";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,o){"use strict";(function(t){var n=o("c532"),a=o("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function r(e,t){!n.isUndefined(e)&&n.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=o("b50d")),e}var l={adapter:s(),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.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, */*"}}};n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(i)})),e.exports=l}).call(this,o("f28c"))},2877:function(e,t,o){"use strict";function n(e,t,o,n,a,i,r,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=o,u._compiled=!0),n&&(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}}o.d(t,"a",(function(){return n}))},"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,o,n){return new Promise((function(a,i){findDynamicDataSourceByCode(e,t,o,n).then((function(e){var t=[];if(e&&e.options){var o,n=e.options;e.valueAttribute&&(o=e.valueAttribute),o&&"[label]"!==o||(o="_label_"),n.forEach((function(e){var n=e[o],a=e["_label_"];t.push({label:a,value:n})}))}t||(t=[]),a(t)})).catch((function(e){i(e)}))}))}function findDynamicDataSourceByCode(e,t,o,n){return new Promise((function(a,i){void 0!==t&&null!==t||(t="");var r={searchText:t};n&&(r.additionalParamMap=JSON.parse(n)),o&&null!==o&&(r.entity=o),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,o,n,a,i,r){if(void 0===e||""===e||null===e)return!0;"undefined"!==typeof a&&null!==a||(a=!1);var s={};o&&"string"===typeof o&&""!==o?s=JSON.parse(o):o&&"object"===_typeof(o)&&(s=o);var l={};n&&"string"===typeof n&&""!==n?l=JSON.parse(n):n&&"object"===_typeof(n)&&(l=n);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){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 eval("("+conditions+")")}var REPLACE_DOT="__";function getValue(e,t,o){var n=null;return e&&null!==e&&t&&null!==t&&(n=getValueByField(e,t),void 0!==n&&null!==n||o&&(void 0!==n&&null!=n||t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),n=getValueByField(e,t)))),n}function getValueByField(e,t){var o;if(e&&null!==e)return o=t.indexOf(".")>0?getSubEntityValue(e,t):e[t],o}function getSubEntityValue(e,t){for(var o=null,n=e,a=t.split("\\."),i=0;i<a.length;i++){var r=a[i];i===a.length?o=getSubEntityFieldValue(n,r):n=getSubEntityFieldValue(n,r)}return o}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,o,n){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(n,e);else if(e.includes("${request.")&&"${request.term}"!==e)e=e.replace("${request.","").replace("}",""),a=o&&null!=o&&Object.keys(o).indexOf(e)>=0&&o[e]&&null!==o[e]?o[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,o,n){if(e){var a="",i=e.split("-#-#");return null!=i&&i.length>0&&i.forEach((function(e){var i=getPropValue(e,t,o,n);i&&null!==i||(i=""),a+=i})),a}}function setEntityFieldValue(e,t,o){if(t&&e)if(t&&t.indexOf(".")>0){var n=getParentObjectUtil(t,e);n&&vue__WEBPACK_IMPORTED_MODULE_1___default.a.set(n,t.substring(t.lastIndexOf(".")+1),o)}else vue__WEBPACK_IMPORTED_MODULE_1___default.a.set(e,t,o)}function getEntityFieldValueWithOutCase(e,t){if(t&&t.indexOf(".")>0){var o=getParentObjectUtil(t,e),n=t.substring(t.lastIndexOf(".")+1);return o[n]}return e[t]}function getEntityFieldValue(e,t,o){var n=getEntityFieldValueWithCase(e,t);return void 0===n&&(n=getEntityFieldValueWithCase(e,t.toLowerCase())),void 0===n&&void 0===o&&(n=getEntityFieldValueWithCase(e,t.toUpperCase())),n}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){var o=getParentObjectUtil(t,e),n=t.substring(t.lastIndexOf(".")+1);return o[n]}return e[t]}function getParentObjectUtil(e,t){var o=e.split(".");if(1===o.length)return t;for(var n,a=0;a<o.length-1;a++)n=getParentModelProp(o[a],0===a?t:n);return n}function getParentModelProp(e,t){var o=getParentModelPropWithCase(e,t);return void 0===o&&(o=getParentModelPropWithCase(e.toLowerCase(),t)),void 0===o&&(o=getParentModelPropWithCase(e.toUpperCase(),t)),o}function getParentModelPropWithCase(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}function findSystemInfoByCode(e){return new Promise((function(t,o){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(o){t(o?{zh_CN:o.name,en_US:o.enName,frontendUrl:o.frontendUrl}:"系统:"+e+"不存在")})).catch((function(e){o(e)}))}))}function getPropNameWhenJoinTable(e,t,o){if(e&&void 0!==t&&!0===t){var n="__";e.indexOf(".")>0?e=e.replace(".",n):o&&null!==o&&""!==o&&e.indexOf(o+n)<0&&(e=o+n+e)}return e}},"2d5b":function(e,t,o){},"2d83":function(e,t,o){"use strict";var n=o("387f");e.exports=function(e,t,o,a,i){var r=new Error(e);return n(r,t,o,a,i)}},"2e67":function(e,t,o){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f62":function(e,t,o){"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 o(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(n,a,function(t){return e[t]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="fb15")}({"06e7":function(e,t,o){"use strict";var n=o("8bbf"),a=o.n(n);t["a"]=new a.a},"0785":function(e,t,o){"use strict";o("4ed1")},"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,o){},"0a06":function(e,t,o){"use strict";var n=o("c532"),a=o("30b5"),i=o("f6b4"),r=o("5270"),s=o("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],o=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)o=o.then(t.shift(),t.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,o){return this.request(n.merge(o||{},{method:e,url:t}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,o,a){return this.request(n.merge(a||{},{method:e,url:t,data:o}))}})),e.exports=l},"0df6":function(e,t,o){"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=Object(_util_common_util__WEBPACK_IMPORTED_MODULE_2__["c"])(this.pageCode,"_systemInfo");return t&&(e=t.code+"."+this.pageCode+"."+this.colSetting.baseSetting.componentCode),{permissionPrefix:e,additionalParamMap:null}},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")},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,o){"use strict";var n=new Map;t["a"]=n},"1d2b":function(e,t,o){"use strict";e.exports=function(e,t){return function(){for(var o=new Array(arguments.length),n=0;n<o.length;n++)o[n]=arguments[n];return e.apply(t,o)}}},2105:function(e,t,o){"use strict";o.d(t,"a",(function(){return a}));var n=function(e,t,o){var n="1.23452384164.123412415";if(o&&(n=o),null!==document.getElementById(n))if(document.getElementById("pdfDom")){var a=document.getElementById("pdfDom");a.removeChild(document.getElementById(n))}else document.body.removeChild(document.getElementById(n));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=n,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 n};function a(e,t,o,a){var r=new Date;r=i(r,"yyyy-MM-dd"),setTimeout((function(){var i=e&&""!==e?e:o?o.name+" "+r:r,s=n(i,t,a);setInterval((function(){null===document.getElementById(s)&&(s=n(i,t,a))}),500),window.onresize=function(){n(i,t,a)}}))}var i=function(e,t){/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var o={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var n in o)if(new RegExp("(".concat(n,")")).test(t)){var a=o[n]+"";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,o){"use strict";(function(t){var n=o("c532"),a=o("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function r(e,t){!n.isUndefined(e)&&n.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=o("b50d")),e}var l={adapter:s(),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.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, */*"}}};n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(i)})),e.exports=l}).call(this,o("f28c"))},2877:function(e,t,o){"use strict";function n(e,t,o,n,a,i,r,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=o,u._compiled=!0),n&&(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}}o.d(t,"a",(function(){return n}))},"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,o,n){return new Promise((function(a,i){findDynamicDataSourceByCode(e,t,o,n).then((function(e){var t=[];if(e&&e.options){var o,n=e.options;e.valueAttribute&&(o=e.valueAttribute),o&&"[label]"!==o||(o="_label_"),n.forEach((function(e){var n=e[o],a=e["_label_"];t.push({label:a,value:n})}))}t||(t=[]),a(t)})).catch((function(e){i(e)}))}))}function findDynamicDataSourceByCode(e,t,o,n){return new Promise((function(a,i){void 0!==t&&null!==t||(t="");var r={searchText:t};n&&(r.additionalParamMap=JSON.parse(n)),o&&null!==o&&(r.entity=o),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,o,n,a,i,r){if(void 0===e||""===e||null===e)return!0;"undefined"!==typeof a&&null!==a||(a=!1);var s={};o&&"string"===typeof o&&""!==o?s=JSON.parse(o):o&&"object"===_typeof(o)&&(s=o);var l={};n&&"string"===typeof n&&""!==n?l=JSON.parse(n):n&&"object"===_typeof(n)&&(l=n);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){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 eval("("+conditions+")")}var REPLACE_DOT="__";function getValue(e,t,o){var n=null;return e&&null!==e&&t&&null!==t&&(n=getValueByField(e,t),void 0!==n&&null!==n||o&&(void 0!==n&&null!=n||t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),n=getValueByField(e,t)))),n}function getValueByField(e,t){var o;if(e&&null!==e)return o=t.indexOf(".")>0?getSubEntityValue(e,t):e[t],o}function getSubEntityValue(e,t){for(var o=null,n=e,a=t.split("\\."),i=0;i<a.length;i++){var r=a[i];i===a.length?o=getSubEntityFieldValue(n,r):n=getSubEntityFieldValue(n,r)}return o}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,o,n){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(n,e);else if(e.includes("${request.")&&"${request.term}"!==e)e=e.replace("${request.","").replace("}",""),a=o&&null!=o&&Object.keys(o).indexOf(e)>=0&&o[e]&&null!==o[e]?o[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,o,n){if(e){var a="",i=e.split("-#-#");return null!=i&&i.length>0&&i.forEach((function(e){var i=getPropValue(e,t,o,n);i&&null!==i||(i=""),a+=i})),a}}function setEntityFieldValue(e,t,o){if(t&&e)if(t&&t.indexOf(".")>0){var n=getParentObjectUtil(t,e);n&&vue__WEBPACK_IMPORTED_MODULE_1___default.a.set(n,t.substring(t.lastIndexOf(".")+1),o)}else vue__WEBPACK_IMPORTED_MODULE_1___default.a.set(e,t,o)}function getEntityFieldValueWithOutCase(e,t){if(t&&t.indexOf(".")>0){var o=getParentObjectUtil(t,e),n=t.substring(t.lastIndexOf(".")+1);return o[n]}return e[t]}function getEntityFieldValue(e,t,o){var n=getEntityFieldValueWithCase(e,t);return void 0===n&&(n=getEntityFieldValueWithCase(e,t.toLowerCase())),void 0===n&&void 0===o&&(n=getEntityFieldValueWithCase(e,t.toUpperCase())),n}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){var o=getParentObjectUtil(t,e),n=t.substring(t.lastIndexOf(".")+1);return o[n]}return e[t]}function getParentObjectUtil(e,t){var o=e.split(".");if(1===o.length)return t;for(var n,a=0;a<o.length-1;a++)n=getParentModelProp(o[a],0===a?t:n);return n}function getParentModelProp(e,t){var o=getParentModelPropWithCase(e,t);return void 0===o&&(o=getParentModelPropWithCase(e.toLowerCase(),t)),void 0===o&&(o=getParentModelPropWithCase(e.toUpperCase(),t)),o}function getParentModelPropWithCase(e,t){return t||(t={}),t[e]||(t[e]={}),t[e]}function findSystemInfoByCode(e){return new Promise((function(t,o){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(o){t(o?{zh_CN:o.name,en_US:o.enName,frontendUrl:o.frontendUrl}:"系统:"+e+"不存在")})).catch((function(e){o(e)}))}))}function getPropNameWhenJoinTable(e,t,o){if(e&&void 0!==t&&!0===t){var n="__";e.indexOf(".")>0?e=e.replace(".",n):o&&null!==o&&""!==o&&e.indexOf(o+n)<0&&(e=o+n+e)}return e}},"2d5b":function(e,t,o){},"2d83":function(e,t,o){"use strict";var n=o("387f");e.exports=function(e,t,o,a,i){var r=new Error(e);return n(r,t,o,a,i)}},"2e67":function(e,t,o){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f62":function(e,t,o){"use strict";(function(e){
|
|
2
2
|
/*!
|
|
3
3
|
* vuex v3.6.2
|
|
4
4
|
* (c) 2021 Evan You
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-pages",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.94",
|
|
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.40",
|
|
31
31
|
"node-sass": "4.12.0",
|
|
32
32
|
"normalize.css": "^8.0.1",
|
|
33
33
|
"nprogress": "^0.2.0",
|