chunk-1e51db3d.3c2a4460.js 34.2 KB
Newer Older
wangdanlei's avatar
wangdanlei committed
1
(window["webpackJsonp-dee-config"]=window["webpackJsonp-dee-config"]||[]).push([["chunk-1e51db3d"],{"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 r=n("8c7e"),i=n("01b0"),a=n("742b");n("fe99")("search",1,(function(e,t,n,o){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=o(n,e,this);if(t.done)return t.value;var c=r(e),s=String(this),l=c.lastIndex;i(l,0)||(c.lastIndex=0);var u=a(c,s);return i(c.lastIndex,l)||(c.lastIndex=l),null===u?-1:u.index}]}))},"0b38":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("ce37");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},"0ed3":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var a=t[i],o=a[0],c=a[1],s=a[2],l=a[3],u={id:e+":"+i,css:c,media:s,sourceMap:l};r[o]?r[o].parts.push(u):n.push(r[o]={id:o,parts:[u]})}return n}n.r(t),n.d(t,"default",(function(){return h}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)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 a={},o=i&&(document.head||document.getElementsByTagName("head")[0]),c=null,s=0,l=!1,u=function(){},p=null,f="data-vue-ssr-id",d="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,i){l=n,p=i||{};var o=r(e,t);return m(o),function(t){for(var n=[],i=0;i<o.length;i++){var c=o[i],s=a[c.id];s.refs--,n.push(s)}t?(o=r(e,t),m(o)):o=[];for(i=0;i<n.length;i++){s=n[i];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete a[s.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=a[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var o=[];for(i=0;i<n.parts.length;i++)o.push(v(n.parts[i]));a[n.id]={id:n.id,refs:1,parts:o}}}}function g(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function v(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(d){var i=s++;r=c||(c=g()),t=y.bind(null,r,i,!1),n=y.bind(null,r,i,!0)}else r=g(),t=w.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function w(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),p.ssrId&&e.setAttribute(f,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},1610:function(e,t,n){"use strict";n("8116")},"1cef":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("9446");function i(e,t){if(e){if("string"===typeof e)return Object(r["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"20f3":function(e,t,n){var r=n("9936");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("0ed3").default;i("2020fc84",r,!0,{sourceMap:!1,shadowMode:!1})},"2be6":function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,c){var s,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=s):i&&(s=c?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(l.functional){l._injectStyles=s;var u=l.render;l.render=function(e,t){return s.call(t),u(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,s):[s]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},"3f11":function(e,t,n){var r=n("5eaa");t=r(!1),t.push([e.i,"",""]),e.exports=t},"42c2":function(e,t,n){"use strict";function r(e,t,n,r,i,a,o){try{var c=e[a](o),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function c(e){r(o,i,a,c,s,"next",e)}function s(e){r(o,i,a,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return i}))},"53f4":function(e,t,n){var r=n("7ffe");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("0ed3").default;i("0a2551e6",r,!0,{sourceMap:!1,shadowMode:!1})},"5eaa":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var a=i(r),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([a]).join("\n")}return[n].join("\n")}function i(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=r(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"===typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&i[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},7342:function(e,t,n){"use strict";var r=n("751a");function i(e){return Object(r["d"])("/DxApplicationView",e)}function a(e){return Object(r["e"])("/DxApplicationView",e)}function o(e){return Object(r["e"])("/DxApplicationView/batch/update",e)}function c(e){return Object(r["d"])("/DxApplicationView/delete",e)}t["a"]={add:i,edit:a,batchUpdate:o,batchDelete:c}},"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 l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return p}));var r=n("8bbf"),i=n.n(r),a=i.a.__share_pool__=i.a.__share_pool__||{},o=a.http=a.http||{};function c(e,t){return o.get(e,t)}function s(e,t){return o.post(e,t)}function l(e,t){return o.put(e,t)}function u(e,t){return o.del(e,t)}function p(e,t){return o.downloadZip(e,t)}},"78b1":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("751a");function i(e){return Object(r["d"])("/Organization/nodes",e)}},"7ffe":function(e,t,n){var r=n("5eaa");t=r(!1),t.push([e.i,".DeptViewCmp,.DeptViewCmp .dee-tab{height:100%}.DeptViewCmp .dee-tab .el-tabs__content{height:calc(100% - 40px)!important}.DeptViewCmp .dee-tab .el-tabs__content .el-tab-pane{height:100%;margin-bottom:0}.DeptViewCmp .dee-tab .dee-tab-item{height:100%;padding:5px;-webkit-box-sizing:border-box;box-sizing:border-box}",""]),e.exports=t},8116:function(e,t,n){var r=n("3f11");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("0ed3").default;i("6410a874",r,!0,{sourceMap:!1,shadowMode:!1})},9446:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},9936:function(e,t,n){var r=n("5eaa");t=r(!1),t.push([e.i,".ViewManageCmp .searc-form-inline{margin-top:15px}",""]),e.exports=t},b73e:function(e,t,n){"use strict";n("53f4")},c156:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"DeptViewCmp"},[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("StartPage")],1),n("div",{staticClass:"dee-tab-item",attrs:{slot:"2"},slot:"2"},[n("ViewManage")],1)])],1)},i=[],a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"StartPageCmp"},[n("dee-table",{attrs:{"selection-row":"",data:e.tableData,columns:e.tableColumns,pagination:e.pagination},on:{"selection-change":e.onSelect}},[n("dee-tools",{attrs:{slot:"header",tools:e.tools,mode:"normal",collapse:!1},slot:"header"})],1),n("dee-dialog",{attrs:{width:"500px",title:(e.formData.id?"编辑":"新增")+"启动页面配置","dialog-visible":e.isVisible},on:{handleClose:e.onClose}},[n("deeForm",{ref:"form",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.onOk}},[e._v("确定")]),n("el-button",{attrs:{type:"default"},on:{click:e.onClose}},[e._v("取消")])],1)],1)],1)},o=[],c=n("0b38"),s=(n("06ef"),n("da1e")),l=(n("c880"),n("df26"),n("42c2")),u=n("ec26"),p=n("f725"),f=n("78b1");function d(){this.workspaceId=null,this.name=null,this.appId=null,this.pageId=null,this.remark=null,this.sort=null}var h={props:{basicData:{type:[Object],default:function(){return{}}}},data:function(){var e=this;return{tools:[{name:"新增",icon:"/icons/c-add.png",handler:{click:function(){e.isVisible=!0}}},{name:"删除",icon:"/icons/c-creatbackups.png",handler:{click:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.selectionRows.length){t.next=2;break}return t.abrupt("return",e.$message.error("请至少选择一条数据"));case 2:return t.next=4,e.$confirm("确定要删除选中的数据吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["c"].batchDelete(e.selectionRows).then((function(t){e.$message.success("删除成功"),e.loadData()}))}));case 4:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()}}],selectionRows:[],tableData:[],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)}}]}}},{title:"工作空间",minWidth:120,align:"left",key:"workspaceName"},{title:"名称",minWidth:120,align:"left",key:"name"},{title:"页面",minWidth:120,align:"left",key:"dxApplicationPageVO.name"},{title:"部门",minWidth:120,align:"left",key:"organization.orgName"},{title:"排序",minWidth:120,align:"left",key:"sort"},{title:"描述",align:"left",key:"remark"},{title:"创建者",minWidth:120,align:"center",key:"creator.userName"},{title:"上次修改时间",minWidth:120,align:"center",key:"modifyTime"}],pagination:{currentPage:1,pageSize:10,pageSizes:[10,20,50,100,200],total:0},isVisible:!1,formData:new d,workspaceList:[],formRules:{workspaceId:[{required:!0,message:"请选择工作空间",trigger:"change"}],name:[{required:!0,message:"请输入名称",trigger:"change"}],pageId:[{required:!0,message:"请选择页面",trigger:"change"}]},DxApplicationWorkspaceService:this.$getService("DxApplicationWorkspace"),DxApplicationPageService:this.$getService("DxApplicationPage"),DxApplicationMenuService:this.$getService("DxApplicationMenu"),formFieldConfig:[{title:"",split:1,data:[{key:"workspaceId",title:"工作空间",component:{name:"el-select",options:[]},handler:{change:function(e){}}},{key:"name",title:"名称",component:{name:"el-input"}},{key:"organization.id",title:"部门",component:{name:"el-cascader",props:{checkStrictly:!0,label:"orgName",value:"id",emitPath:!1},options:[]}},{key:"appId",title:"APP",component:{name:"el-select",options:[]}},{key:"pageId",title:"页面",component:{name:"el-select",options:[],filterable:!0}},{key:"remark",title:"描述",component:{name:"el-input",type:"textarea",rows:3}},{key:"sort",title:"排序",component:{name:"el-input-number",min:1}}]}]}},watch:{basicData:{immediate:!0,handler:function(e){e?this.loadData(e):this.tableData=[]}},"formData.appId":function(e){var t=this;e&&this.getPages(e,(function(e){var n=e.map((function(e){return{label:e.remark?"".concat(e.name,"(").concat(e.remark,")"):e.name,value:e.id}}));t.$utils.findFormProp(t.formFieldConfig,"pageId").component.options=n,t.formData.pageId&&n.filter((function(e){return e.value===t.formData.pageId})).length<=0&&t.$set(t.formData,"pageId","")}))}},created:function(){this.getWorkspaceList(),this.getApps(),this.loadData(),this.getDept()},methods:{handleTree:function(e){var t,n=Object(s["a"])(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;r["children"]&&(this.handleTree(r["children"]),r["children"].length<=0&&delete r.children)}}catch(i){n.e(i)}finally{n.f()}},getDept:function(){var e=this;Object(f["a"])({}).then((function(t){var n=t.items;e.handleTree(n),e.$utils.findFormProp(e.formFieldConfig,"organization.id").component.options=n}))},loadData:function(){var e=this,t=this.DxApplicationMenuService.newSearchItems();t.$addItem("orgId","null","NEQ"),t.$addItem("orgId",-1,"NEQ"),t.$addItem("isOrgSpecial",!0,"EQ"),this.DxApplicationMenuService.query().openProp(["dxApplicationViewVO","dxApplicationPageVO","dxApplicationWorkspace","organization"]).search(t).then((function(t){e.tableData=(t.content||[]).map((function(e){return e.dxApplicationViewVO&&(e.appId=e.dxApplicationViewVO.id),e.dxApplicationPageVO&&(e.pageId=e.dxApplicationPageVO.id),e.dxApplicationWorkspace&&(e.workspaceName=e.dxApplicationWorkspace.name),e}))}))},getWorkspaceList:function(){var e=this,t=this.DxApplicationWorkspaceService.newSearchItems();this.DxApplicationWorkspaceService.query().search(t).then((function(t){e.$utils.findFormProp(e.formFieldConfig,"workspaceId").component.options=t.content.map((function(e){return{label:e.name,value:e.id}}))}))},uniqueByKey:function(e,t){var n={};return e.reduce((function(e,r){return n[r[t]]||(n[r[t]]=!0,e.push(r)),e}),[])},getApps:function(){var e=this,t=[];t=[];var n={searchItems:{operator:"AND",items:t},openProps:[{name:"source"},{name:"target"},{name:"target.dxApplicationApplicationGroupVOS"}]};u["a"].getApps(n).then((function(t){if(t.items&&Array.isArray(t.items.content)&&t.items.content.length>0){var n=t.items.content.filter((function(e){return e.target})).map((function(e){return{label:e.target.name,value:e.target.id}}));e.$utils.findFormProp(e.formFieldConfig,"appId").component.options=e.uniqueByKey(n,"value")}}))},getPages:function(e,t){var n=this.DxApplicationPageService.newSearchItems();n.$addItem("appId",e),this.DxApplicationPageService.query().openProp().search(n).then((function(e){t(e.content||[])}))},onSelect:function(e){this.selectionRows=e},onEditRow:function(e){var t=this;this.formData=Object(c["a"])({},e),this.isVisible=!0;var n=this.DxApplicationPageService.newSearchItems();n.$addItem("id",this.formData.pageId),this.DxApplicationPageService.query().openProp().search(n).then((function(e){e.content&&e.content.length>0&&t.$set(t.formData,"appId",e.content[0].appId)}))},onClose:function(){this.isVisible=!1,this.$refs.form.reset(),this.formData=new d},onOk:function(){var e=this,t=this.$refs.form;t.validate((function(t){if(t){var n=Object(c["a"])({},e.formData),r=n.id?"edit":"add";n.workspaceId&&n.dxApplicationWorkspace&&(n.dxApplicationWorkspace.id=n.workspaceId),n.isStartPage=!0,n.isOrgSpecial=!0,p["c"][r](n).then((function(t){e.$message.success(n.id?"编辑成功":"创建成功"),e.onClose(),e.loadData()}))}}))}}},m=h,g=(n("1610"),n("2be6")),v=Object(g["a"])(m,a,o,!1,null,null,null),b=v.exports,y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ViewManageCmp"},[n("el-form",{ref:"searchForm",staticClass:"searc-form-inline",attrs:{inline:!0,model:e.searchForm,size:"small"}},[n("el-form-item",{attrs:{label:"工作空间",prop:"workspaceId"}},[n("el-select",{attrs:{placeholder:"请选择工作空间",clearable:!0},model:{value:e.searchForm.workspaceId,callback:function(t){e.$set(e.searchForm,"workspaceId",t)},expression:"searchForm.workspaceId"}},e._l(e.workspaceList,(function(e){return n("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),n("el-form-item",{attrs:{label:"视图名称",prop:"name"}},[n("el-input",{attrs:{placeholder:"请输入视图名称"},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}})],1),n("el-form-item",{attrs:{label:"部门"}},[n("el-cascader",{attrs:{clearable:!0,placeholder:"请选择部门",props:{checkStrictly:!0,label:"orgName",value:"id",emitPath:!1},options:e.department},model:{value:e.searchForm.department,callback:function(t){e.$set(e.searchForm,"department",t)},expression:"searchForm.department"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onQuery}},[e._v("查询")]),n("el-button",{attrs:{type:"default"},on:{click:e.onReset}},[e._v("重置")])],1)],1),n("dee-table",{attrs:{"selection-row":"",data:e.tableData,columns:e.tableColumns,pagination:e.pagination},on:{"selection-change":e.onSelect}},[n("dee-tools",{attrs:{slot:"header",tools:e.tools,mode:"normal",collapse:!1},slot:"header"})],1),n("dee-dialog",{attrs:{width:"500px",title:(e.formData.id?"编辑":"新增")+"视图","dialog-visible":e.isVisible},on:{handleClose:e.onClose}},[n("deeForm",{ref:"form",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.onOk}},[e._v("确定")]),n("el-button",{attrs:{type:"default"},on:{click:e.onClose}},[e._v("取消")])],1)],1)],1)},w=[],x=(n("2e73"),n("7342"));function k(){this.workspaceId=null,this.name=null,this.enable=!1,this.remark=null,this.sort=null}var D={data:function(){var e=this;return{department:[],searchForm:{workspaceId:null,name:null},tools:[{name:"新增",icon:"/icons/c-add.png",handler:{click:function(){e.isVisible=!0}}},{name:"删除",icon:"/icons/c-creatbackups.png",handler:{click:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.selectionRows.length){t.next=2;break}return t.abrupt("return",e.$message.error("请至少选择一条数据"));case 2:return t.next=4,e.$confirm("确定要删除选中的数据吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){x["a"].batchDelete(e.selectionRows).then((function(t){e.$message.success("删除成功"),e.loadData()}))}));case 4:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()}},{name:"启用",icon:"/icons/b-strat.png",handler:{click:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.selectionRows.length){t.next=2;break}return t.abrupt("return",e.$message.error("请至少选择一条数据"));case 2:return t.next=4,e.$confirm("确定要启用选中的数据吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 4:e.selectionRows.forEach((function(e){e.enable=!0})),x["a"].batchUpdate(e.selectionRows).then((function(t){e.$message.success("启用成功"),e.loadData()}));case 6:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()}},{name:"禁用",icon:"/icons/c-reject.png",handler:{click:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.selectionRows.length){t.next=2;break}return t.abrupt("return",e.$message.error("请至少选择一条数据"));case 2:return t.next=4,e.$confirm("确定要禁用选中的数据吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 4:e.selectionRows.forEach((function(e){e.enable=!1})),x["a"].batchUpdate(e.selectionRows).then((function(t){e.$message.success("禁用成功"),e.loadData()}));case 6:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()}}],selectionRows:[],tableData:[],workspaceList:[],groups:[],tableColumns:[{title:"操作",align:"center",component:{show:!0,name:"EditTableRow",props:{btns:[{operation:"配置菜单",icon:"/icons/c-setattr.png",handleClick:function(t,n){e.$router.push({path:"/config/app-menu-manage",query:{id:t.id,workspaceName:t.dxApplicationWorkspace.name,viewName:t.name}})}},{operation:"编辑",icon:"/icons/c-edit.png",handleClick:function(t,n){e.onEditRow(t,n)}}]}}},{title:"工作空间",minWidth:120,align:"left",key:"workspaceName"},{title:"视图名称",minWidth:120,align:"left",key:"name"},{title:"限定部门",minWidth:120,align:"left",key:"organization.orgName"},{title:"排序",minWidth:120,align:"left",key:"sort"},{title:"状态",minWidth:120,align:"left",key:"enable",formatter:function(e,t){return!0===e.enable?"启用":"禁用"}},{title:"描述",align:"left",key:"remark"},{title:"创建者",minWidth:120,align:"center",key:"creator.userName"},{title:"上次修改时间",minWidth:120,align:"center",key:"modifyTime"}],pagination:{currentPage:1,pageSize:10,pageSizes:[10,20,50,100,200],total:0},isVisible:!1,formData:new k,formRules:{name:[{required:!0,message:"请输入名称",trigger:"change"}],workspaceId:[{required:!0,message:"请选择工作空间",trigger:"change"}],"organization.id":[{required:!0,message:"请选择部门",trigger:"change"}]},DxApplicationWorkspaceService:this.$getService("DxApplicationWorkspace"),DxApplicationViewService:this.$getService("DxApplicationView"),searchItems:null,formFieldConfig:[{title:"",split:1,data:[{key:"dxApplicationWorkspace.id",title:"工作空间",component:{name:"el-select",options:[]}},{key:"name",title:"视图名称",component:{name:"el-input"}},{key:"organization.id",title:"部门",component:{name:"el-cascader",props:{checkStrictly:!0,label:"orgName",value:"id",emitPath:!1},options:[]}},{key:"enable",title:"是否启用",component:{name:"el-radio",options:[{value:!1,label:"禁用"},{value:!0,label:"启用"}]}},{key:"remark",title:"描述",component:{name:"el-input",type:"textarea",rows:3}},{key:"sort",title:"排序",component:{name:"el-input-number",min:1}}]}]}},created:function(){this.getWorkspaceList(),this.getGroups(),this.loadData(),this.getDept()},methods:{handleTree:function(e){var t,n=Object(s["a"])(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;r["children"]&&(this.handleTree(r["children"]),r["children"].length<=0&&delete r.children)}}catch(i){n.e(i)}finally{n.f()}},getDept:function(){var e=this;Object(f["a"])({}).then((function(t){var n=t.items;e.handleTree(n),e.department=n,e.$utils.findFormProp(e.formFieldConfig,"organization.id").component.options=n}))},loadData:function(){var e=this,t=this.DxApplicationViewService.newSearchItems();t.$addItem("orgId","null","NEQ"),t.$addItem("orgId",-1,"NEQ"),this.DxApplicationViewService.query().openProp(["dxApplicationWorkspace","organization"]).search(t).then((function(t){e.tableData=(t.content||[]).map((function(e){return e.dxApplicationWorkspace&&(e.workspaceName=e.dxApplicationWorkspace.name),e}))}))},getWorkspaceList:function(){var e=this,t=this.DxApplicationWorkspaceService.newSearchItems();this.DxApplicationWorkspaceService.query().search(t).then((function(t){var n=t.content.map((function(e){return{label:e.name,value:e.id}}));e.$utils.findFormProp(e.formFieldConfig,"dxApplicationWorkspace.id").component.options=n,e.workspaceList=n}))},getGroups:function(){var e=this,t=this.$getService("DxApplicationGroup"),n=t.newSearchItems();t.query().orderByDesc("isDefaultGroup").search(n).then((function(t){e.groups=t.content||[]}))},onSelect:function(e){this.selectionRows=e},onQuery:function(){var e=this,t=this.DxApplicationViewService.newSearchItems(),n=this.searchForm,r=n.workspaceId,i=n.name,a=n.department;r&&t.$addItem("workspaceId",r,"EQ"),i&&t.$addItem("name",i,"LIKE"),a?t.$addItem("orgId",a,"EQ"):(t.$addItem("orgId","null","NEQ"),t.$addItem("orgId",-1,"NEQ")),t.$addItem("isOrgSpecial",!0,"EQ"),this.DxApplicationViewService.query().openProp(["dxApplicationWorkspace","organization"]).search(t).then((function(t){e.tableData=(t.content||[]).map((function(e){return e.dxApplicationWorkspace&&(e.workspaceName=e.dxApplicationWorkspace.name),e}))}))},onReset:function(){var e=this;this.DxApplicationViewService.query().openProp(["dxApplicationWorkspace","organization"]).search(null).then((function(t){e.tableData=(t.content||[]).map((function(e){return e.dxApplicationWorkspace&&(e.workspaceName=e.dxApplicationWorkspace.name),e}))}))},onEditRow:function(e){this.formData=Object(c["a"])({},e),this.isVisible=!0},onClose:function(){this.isVisible=!1,this.$refs.form.reset(),this.formData=new k},onOk:function(){var e=this,t=this.$refs.form;t.validate((function(t){if(t){var n=Object(c["a"])({},e.formData);n.isOrgSpecial=!0;var r=n.id?"edit":"add";x["a"][r](n).then((function(t){e.$message.success(n.id?"编辑成功":"创建成功"),e.onClose(),e.loadData()}))}}))}}},A=D,O=(n("ed22"),Object(g["a"])(A,y,w,!1,null,null,null)),S=O.exports,I={components:{StartPage:b,ViewManage:S},data:function(){return{tabs:[{id:"1",name:"启动页配置"},{id:"2",name:"工作空间视图"}]}},methods:{onTabClick:function(){}}},C=I,j=(n("b73e"),Object(g["a"])(C,r,i,!1,null,null,null));t["default"]=j.exports},c880:function(e,t,n){var r=n("6f0d").f,i=Function.prototype,a=/^\s*function ([^ (]*)/,o="name";o in i||n("3d85")&&r(i,o,{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},da1e:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("1cef");function i(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(r["a"])(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){s=!0,o=e},f:function(){try{c||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}},df26:function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),o=new j(r||[]);return a._invoke=O(e,n,o),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(E){return{type:"throw",arg:E}}}e.wrap=l;var p="suspendedStart",f="suspendedYield",d="executing",h="completed",m={};function g(){}function v(){}function b(){}var y={};s(y,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(_([])));x&&x!==n&&r.call(x,a)&&(y=x);var k=b.prototype=g.prototype=Object.create(y);function D(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(i,a,o,c){var s=u(e[i],e,a);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"===typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,o,c)}),(function(e){n("throw",e,o,c)})):t.resolve(p).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,c)}))}c(s.arg)}var i;function a(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}this._invoke=a}function O(e,t,n){var r=p;return function(i,a){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw a;return $()}n.method=i,n.arg=a;while(1){var o=n.delegate;if(o){var c=S(o,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=u(e,t,n);if("normal"===s.type){if(r=n.done?h:f,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function _(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){while(++i<e.length)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:$}}function $(){return{value:t,done:!0}}return v.prototype=b,s(k,"constructor",b),s(b,"constructor",v),v.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},D(A.prototype),s(A.prototype,o,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new A(l(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},D(k),s(k,c,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return c.type="throw",c.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],c=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:_(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},ec26:function(e,t,n){"use strict";var r=n("751a");function i(e){return Object(r["d"])("/DxApplicationApplicationGroup/find/recursion",e)}function a(e){return Object(r["d"])("/DxApplication/saveApplication",e)}function o(e){return Object(r["e"])("/DxApplication/updateApplication",e)}function c(e,t){return Object(r["a"])("/DxApplication/deleteApplication/".concat(e,"/").concat(t))}t["a"]={getApps:i,addApp:a,editApp:o,delApp:c}},ed22:function(e,t,n){"use strict";n("20f3")},f725:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n("751a");function i(e){return Object(r["d"])("/DxApplicationMenu",e)}function a(e){return Object(r["e"])("/DxApplicationMenu",e)}function o(e,t,n){return Object(r["e"])("/DxApplicationMenu/batch/update",e)}function c(e){return Object(r["d"])("/DxApplicationMenu/delete",e)}t["c"]={add:i,edit:a,batchUpdate:o,batchDelete:c}}}]);