(window["webpackJsonp-dee-config"]=window["webpackJsonp-dee-config"]||[]).push([["chunk-5535647e"],{"01b0":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"06ef":function(e,t,n){"use strict";var a=n("8c7e"),r=n("01b0"),o=n("742b");n("fe99")("search",1,(function(e,t,n,i){return[function(n){var a=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,a):new RegExp(n)[t](String(a))},function(e){var t=i(n,e,this);if(t.done)return t.value;var c=a(e),s=String(this),u=c.lastIndex;r(u,0)||(c.lastIndex=0);var l=o(c,s);return r(c.lastIndex,u)||(c.lastIndex=u),null===l?-1:l.index}]}))},"0b38":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n("ce37");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){Object(a["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},"0ed3":function(e,t,n){"use strict";function a(e,t){for(var n=[],a={},r=0;r<t.length;r++){var o=t[r],i=o[0],c=o[1],s=o[2],u=o[3],l={id:e+":"+r,css:c,media:s,sourceMap:u};a[i]?a[i].parts.push(l):n.push(a[i]={id:i,parts:[l]})}return n}n.r(t),n.d(t,"default",(function(){return g}));var r="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},i=r&&(document.head||document.getElementsByTagName("head")[0]),c=null,s=0,u=!1,l=function(){},p=null,d="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function g(e,t,n,r){u=n,p=r||{};var i=a(e,t);return h(i),function(t){for(var n=[],r=0;r<i.length;r++){var c=i[r],s=o[c.id];s.refs--,n.push(s)}t?(i=a(e,t),h(i)):i=[];for(r=0;r<n.length;r++){s=n[r];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete o[s.id]}}}}function h(e){for(var t=0;t<e.length;t++){var n=e[t],a=o[n.id];if(a){a.refs++;for(var r=0;r<a.parts.length;r++)a.parts[r](n.parts[r]);for(;r<n.parts.length;r++)a.parts.push(b(n.parts[r]));a.parts.length>n.parts.length&&(a.parts.length=n.parts.length)}else{var i=[];for(r=0;r<n.parts.length;r++)i.push(b(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:i}}}}function m(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function b(e){var t,n,a=document.querySelector("style["+d+'~="'+e.id+'"]');if(a){if(u)return l;a.parentNode.removeChild(a)}if(f){var r=s++;a=c||(c=m()),t=y.bind(null,a,r,!1),n=y.bind(null,a,r,!0)}else a=m(),t=C.bind(null,a),n=function(){a.parentNode.removeChild(a)};return t(e),function(a){if(a){if(a.css===e.css&&a.media===e.media&&a.sourceMap===e.sourceMap)return;t(e=a)}else n()}}var v=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,a){var r=n?"":a.css;if(e.styleSheet)e.styleSheet.cssText=v(t,r);else{var o=document.createTextNode(r),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function C(e,t){var n=t.css,a=t.media,r=t.sourceMap;if(a&&e.setAttribute("media",a),p.ssrId&&e.setAttribute(d,t.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"2b14":function(e,t,n){"use strict";n("82fe")},"2be6":function(e,t,n){"use strict";function a(e,t,n,a,r,o,i,c){var s,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),a&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),i?(s=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=s):r&&(s=c?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),s)if(u.functional){u._injectStyles=s;var l=u.render;u.render=function(e,t){return s.call(t),l(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,s):[s]}return{exports:e,options:u}}n.d(t,"a",(function(){return a}))},"382d":function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"402c":function(e,t,n){var a=n("d0e9"),r=n("ad8d"),o=n("0b04"),i=n("78d3"),c=n("25a6"),s=n("cd30"),u=Object.getOwnPropertyDescriptor;t.f=n("3d85")?u:function(e,t){if(e=o(e),t=i(t,!0),s)try{return u(e,t)}catch(n){}if(c(e,t))return r(!a.f.call(e,t),e[t])}},"4f27":function(e,t,n){var a=n("98e9");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=n("0ed3").default;r("f2555e32",a,!0,{sourceMap:!1,shadowMode:!1})},"5eaa":function(e,t,n){"use strict";function a(e,t){var n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"===typeof btoa){var o=r(a),i=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}return[n].join("\n")}function r(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=a(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,a){"string"===typeof e&&(e=[[null,e,""]]);var r={};if(a)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);a&&r[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},"751a":function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return p}));var a=n("8bbf"),r=n.n(a),o=r.a.__share_pool__=r.a.__share_pool__||{},i=o.http=o.http||{};function c(e,t){return i.get(e,t)}function s(e,t){return i.post(e,t)}function u(e,t){return i.put(e,t)}function l(e,t){return i.del(e,t)}function p(e,t){return i.downloadZip(e,t)}},7610:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"CenterPageCmp"},[n("div",{staticClass:"page-header"},[n("span",{staticClass:"page-title"},[e._v(e._s(e.appName))])]),n("dee-tab",{ref:"deetab",staticClass:"dee-tab",attrs:{tabs:e.tabs},on:{tabClick:e.onTabClick}},[n("div",{staticClass:"dee-tab-item",attrs:{slot:"1"},slot:"1"},[n("CreatePage")],1)])],1)},r=[],o=(n("c880"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"CreatePageCmp"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.onCreatePage}},[e._v("新建页面")]),n("dee-table",{attrs:{"index-row":e.indexRow,data:e.currentTableData,columns:e.tableColumns,pagination:e.pagination,options:{"max-height":600}},on:{"pagination-current-change":e.currentChange,"pagination-size-change":e.sizeChange}}),n("dee-dialog",{attrs:{title:"页面信息","dialog-visible":e.createPageVisible,width:"500px"},on:{handleClose:e.onCreatePageDialogClose}},[n("deeForm",{ref:"appForm",attrs:{"label-width":"100px",form:e.formData,"form-data":e.formFieldConfig,rules:e.formRules}}),n("div",{staticClass:"dialogBtn"},[n("el-button",{attrs:{type:"primary"},on:{click:e.onCreatePageDialogOk}},[e._v("确定")]),n("el-button",{attrs:{type:"default"},on:{click:e.onCreatePageDialogClose}},[e._v("取消")])],1)],1)],1)}),i=[],c=n("0b38"),s=(n("06ef"),n("751a"));function u(e){return Object(s["d"])("/DxApplicationPage",e)}function l(e){return Object(s["e"])("/DxApplicationPage",e)}function p(e){return Object(s["a"])("/DxApplicationPage/".concat(e))}var d={add:u,edit:l,remove:p},f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"PageLayoutTempCmp"},[n("el-radio-group",{attrs:{size:"small"},on:{change:e.onChange},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},e._l(e.options,(function(t,a){return n("el-radio",{key:a,attrs:{label:t.value,border:""}},[n("div",{staticClass:"img-box"},[n("img",{attrs:{src:"/images/pageLayout/"+t.value+".png",alt:""}})]),n("p",{staticClass:"layoutName"},[e._v(e._s(t.label))])])})),1)],1)},g=[],h=(n("2e73"),n("ce9c"),{name:"PageLayoutTemp",props:{value:{type:[Object,Array,String,Number,Boolean],default:null}},data:function(){return{type:null}},computed:{options:function(){var e=this;return this.$layoutTemplates.keys.map((function(t){return{label:e.$layoutTemplates.info[t].description,value:t}}))}},watch:{value:{handler:function(e){this.type=e}}},methods:{onChange:function(e){this.$emit("input",e)}}}),m=h,b=(n("cc47"),n("2be6")),v=Object(b["a"])(m,f,g,!1,null,null,null),y=v.exports;function C(){this.name=null,this.type=null,this.formLayout=null,this.serverName=null,this.path=null,this.route=null,this.remark=null}var x={components:{PageLayoutTemp:y},data:function(){var e=this;return{pagination:{currentPage:1,pageSize:10,total:0,pageSizes:[10,20,50]},modules:n("b663").modules,tableData:[],currentTableData:[],indexRow:{title:"序号",align:"center",width:"70"},createPageVisible:!1,tableColumns:[{title:"操作",align:"center",component:{show:!0,name:"EditTableRow",props:{btns:[{operation:"编辑",icon:"/icons/c-edit.png",handleClick:function(t,n){e.onEditRow(t,n)}},{operation:"配置",icon:"/icons/c-manufacturer.png",handleClick:function(t,n){e.$router.push({path:"/config/page-layout",query:{pageKey:t.pageKey}})}},{operation:"导出文件",icon:"/icons/c-export.png",handleClick:function(t,n){e.onExportFile(t,n)}},{operation:"删除",icon:"/icons/c-delete.png",handleClick:function(t,n){e.onDeleteRow(t,n)}}]}}},{title:"页面名称",minWidth:120,align:"left",key:"name"},{title:"页面类型",minWidth:120,align:"center",key:"type",formatter:function(e,t){var n={1:"组装页面",2:"自定义页面"};return n[e.type]}},{title:"路由",minWidth:120,align:"left",key:"route"},{title:"描述",align:"left",key:"remark"}],formData:new C,formRules:{name:[{required:!0,message:"请输入页面名称",trigger:"blur"}],type:[{required:!0,message:"请选择页面类型",trigger:"blur"}],formLayout:[{required:!0,message:"请选择布局模板",trigger:"blur"}],serverName:[{required:!0,message:"请选择微前端",trigger:"blur"}],path:[{required:!0,message:"请输入代码路径",trigger:"blur"}],route:[{required:!0,message:"请输入路由地址",trigger:"blur"}]},DxApplicationPageService:this.$getService("DxApplicationPage"),DxApplicationWorkspaceService:this.$getService("DxApplicationWorkspace")}},computed:{appId:function(){return this.$route.query.id},formFieldConfig:function(){return[{title:"",split:1,data:[{key:"name",title:"页面名称",component:{name:"el-input"}},{key:"type",title:"页面类型",component:{name:"el-radio",options:[{value:1,label:"组装页面"},{value:2,label:"自定义页面"}]}},{key:"formLayout",title:"布局模板",component:{obscure:"this.form.type === 2",name:y}},{key:"isCached",title:"是否缓存",component:{name:"el-checkbox"}},{key:"serverName",title:"微前端",component:{obscure:"this.form.type === 1",name:"el-select",filterable:!0,options:[{value:"architecture-dee",label:"architecture-dee"}].concat((this.modules||[]).map((function(e){return{value:e,label:e}})))}},{key:"path",title:"代码路径",component:{obscure:"this.form.type !== 2",name:"el-input"}},{key:"route",title:"路由地址",component:{obscure:"this.form.type !== 2",name:"el-input"}},{key:"remark",title:"描述",component:{name:"el-input",type:"textarea",row:3}}]}]}},watch:{"formData.pageType":function(e){1===e?Object.assign(this.formData,{moduleName:null,codePath:null,routePath:null}):2===e&&Object.assign(this.formData,{type:null})}},mounted:function(){this.loadData()},methods:{sizeChange:function(e){this.pagination.pageSize=e,this.currentTableData=this.handleData()},currentChange:function(e){this.pagination.currentPage=e,this.currentTableData=this.handleData()},handleData:function(){var e=(this.pagination.currentPage-1)*this.pagination.pageSize,t=e+this.pagination.pageSize;return this.tableData.slice(e,t)},loadData:function(){var e=this,t=this.DxApplicationPageService.newSearchItems();t.$addItem("appId",this.appId),this.DxApplicationPageService.query().openProp().search(t).then((function(t){e.tableData=t.content,e.currentTableData=e.handleData(),e.pagination.total=t.content.length}))},onCreatePage:function(e){this.createPageVisible=!0},onCreatePageDialogOk:function(){var e=this,t=this.$refs.appForm;t.validate((function(t){if(t){var n=Object(c["a"])(Object(c["a"])({},e.formData),{},{appId:e.appId}),a=n.id?"edit":"add";"add"===a&&(n.pageKey=e.$utils.guid()),d[a](n).then((function(t){e.$message.success(n.id?"编辑成功":"新增成功"),e.onCreatePageDialogClose(),e.loadData()}))}}))},onCreatePageDialogClose:function(){this.createPageVisible=!1,this.$refs.appForm.reset(),this.formData=new C},onEditRow:function(e,t){e.type=parseInt(e.type),this.formData=Object(c["a"])({},e),this.createPageVisible=!0},onExportFile:function(e,t){},onDeleteRow:function(e,t){var n=this;this.confirmDialog("确定要删除".concat(e.name,"页面?")).then((function(t){d.remove(e.id).then((function(e){n.$message.success("删除完成"),n.loadData()}))}))},confirmDialog:function(e,t,n){return this.$confirm(e||"是否执行此操作",n||"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:t||"warning"})}}},_=x,P=(n("2b14"),Object(b["a"])(_,o,i,!1,null,null,null)),w=P.exports,k={name:"CenterPage",components:{CreatePage:w},data:function(){return{tabs:[{id:"1",name:"页面"}]}},computed:{appName:function(){return this.$route.query.appName||"APP 产品"}},methods:{onTabClick:function(e){e.name},onBack:function(){this.$router.push({path:"/config/app-manage"})}}},D=k,O=(n("9f0f"),Object(b["a"])(D,a,r,!1,null,null,null));t["default"]=O.exports},"82fe":function(e,t,n){var a=n("8883");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=n("0ed3").default;r("1fb632ba",a,!0,{sourceMap:!1,shadowMode:!1})},"84e7":function(e,t,n){var a=n("194e"),r=n("ed99").set;e.exports=function(e,t,n){var o,i=t.constructor;return i!==n&&"function"==typeof i&&(o=i.prototype)!==n.prototype&&a(o)&&r&&r(e,o),e}},8883:function(e,t,n){var a=n("5eaa");t=a(!1),t.push([e.i,".CreatePageCmp{height:100%;width:100%;display:block}",""]),e.exports=t},"98e9":function(e,t,n){var a=n("5eaa");t=a(!1),t.push([e.i,".PageLayoutTempCmp .el-radio{height:auto;text-align:center;margin-right:15px}.PageLayoutTempCmp .el-radio.is-bordered{border-color:transparent}.PageLayoutTempCmp .el-radio.is-bordered.is-checked{border-color:#409eff}.PageLayoutTempCmp .el-radio .el-radio__label{padding-left:0}.PageLayoutTempCmp .el-radio .el-radio__input{display:none}.PageLayoutTempCmp .el-radio .img-box{width:50px;height:50px;background:#f1f1f1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.PageLayoutTempCmp .el-radio .img-box img{width:100%}.PageLayoutTempCmp .el-radio .layoutName{margin:10px auto}",""]),e.exports=t},"9f0f":function(e,t,n){"use strict";n("cfba")},ac95:function(e,t,n){var a=n("ef37"),r=n("c8ae"),o=n("a124"),i=n("382d"),c="["+i+"]",s=" ",u=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),p=function(e,t,n){var r={},c=o((function(){return!!i[e]()||s[e]()!=s})),u=r[e]=c?t(d):i[e];n&&(r[n]=u),a(a.P+a.F*c,"String",r)},d=p.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=p},b663:function(e,t,n){"use strict";n.r(t),n.d(t,"modules",(function(){return a}));var a=["dee-workflow","dee-user","dee-dashboard","dee-perm","dee-dic","dee-es","dee-file","dee-model","dee-config","dee-doc","dee-pdc","dee-message","dee-context","dee-lifecycle","dee-task-center","dee-cmt","dee-craft","dee-audit","dee-resource"]},c74b:function(e,t,n){var a=n("dd61"),r=n("eaa3").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,r)}},c880:function(e,t,n){var a=n("6f0d").f,r=Function.prototype,o=/^\s*function ([^ (]*)/,i="name";i in r||n("3d85")&&a(r,i,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},cc47:function(e,t,n){"use strict";n("4f27")},ce9c:function(e,t,n){"use strict";var a=n("0e8c"),r=n("25a6"),o=n("b735"),i=n("84e7"),c=n("78d3"),s=n("a124"),u=n("c74b").f,l=n("402c").f,p=n("6f0d").f,d=n("ac95").trim,f="Number",g=a[f],h=g,m=g.prototype,b=o(n("bec8")(m))==f,v="trim"in String.prototype,y=function(e){var t=c(e,!1);if("string"==typeof t&&t.length>2){t=v?t.trim():d(t,3);var n,a,r,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:a=2,r=49;break;case 79:case 111:a=8,r=55;break;default:return+t}for(var i,s=t.slice(2),u=0,l=s.length;u<l;u++)if(i=s.charCodeAt(u),i<48||i>r)return NaN;return parseInt(s,a)}}return+t};if(!g(" 0o1")||!g("0b1")||g("+0x1")){g=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof g&&(b?s((function(){m.valueOf.call(n)})):o(n)!=f)?i(new h(y(t)),n,g):y(t)};for(var C,x=n("3d85")?u(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;x.length>_;_++)r(h,C=x[_])&&!r(g,C)&&p(g,C,l(h,C));g.prototype=m,m.constructor=g,n("e385")(a,f,g)}},cfba:function(e,t,n){var a=n("f62b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=n("0ed3").default;r("4bcbfffa",a,!0,{sourceMap:!1,shadowMode:!1})},ed99:function(e,t,n){var a=n("194e"),r=n("8c7e"),o=function(e,t){if(r(e),!a(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,a){try{a=n("124c")(Function.call,n("402c").f(Object.prototype,"__proto__").set,2),a(e,[]),t=!(e instanceof Array)}catch(r){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:a(e,n),e}}({},!1):void 0),check:o}},f62b:function(e,t,n){var a=n("5eaa");t=a(!1),t.push([e.i,".CenterPageCmp{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.CenterPageCmp .page-header{padding:10px;border-bottom:1px solid #dedede}.CenterPageCmp .page-header .page-title{font-size:20px;font-weight:650;cursor:pointer}.CenterPageCmp .dee-tab{height:calc(100% - 42px)}.CenterPageCmp .dee-tab .el-tabs__content{height:calc(100% - 40px)!important}.CenterPageCmp .dee-tab .el-tabs__content .el-tab-pane{height:100%;margin-bottom:0}.CenterPageCmp .dee-tab .dee-tab-item{height:100%;padding:5px;-webkit-box-sizing:border-box;box-sizing:border-box}",""]),e.exports=t}}]);