1 |
- document.write("<script src='/scm-app/common-assets/js/common-scripts.js'></script><link href='/scm-app/common-assets/css/chunk/async-commons-1.3.10.css' rel='stylesheet'><script src='/scm-app/common-assets/js/chunk/chunk-vendors-1.3.10.js'></script><script src='/scm-app/common-assets/js/chunk/chunk-common-1.3.10.js'></script>");(function(e){function t(t){for(var i,a,o=t[0],l=t[1],c=t[2],u=0,d=[];u<o.length;u++)a=o[u],r[a]&&d.push(r[a][0]),r[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);h&&h(t);while(d.length)d.shift()();return s.push.apply(s,c||[]),n()}function n(){for(var e,t=0;t<s.length;t++){for(var n=s[t],i=!0,a=1;a<n.length;a++){var o=n[a];0!==r[o]&&(i=!1)}i&&(s.splice(t--,1),e=l(l.s=n[0]))}return e}var i={},a={"direwolf-library":0},r={"direwolf-library":0},s=[];function o(e){return l.p+"common-assets/js/chunk/"+e+"-1.3.10.js"}function l(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,l),n.l=!0,n.exports}l.e=function(e){var t=[],n={"async-commons":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var i="common-assets/css/chunk/"+e+"-1.3.10.css",r=l.p+i,s=document.getElementsByTagName("link"),o=0;o<s.length;o++){var c=s[o],u=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(u===i||u===r))return t()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){c=d[o],u=c.getAttribute("data-href");if(u===i||u===r)return t()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=t,h.onerror=function(t){var i=t&&t.target&&t.target.src||r,s=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");s.code="CSS_CHUNK_LOAD_FAILED",s.request=i,delete a[e],h.parentNode.removeChild(h),n(s)},h.href=r;var f=document.getElementsByTagName("head")[0];f.appendChild(h)})).then((function(){a[e]=0})));var i=r[e];if(0!==i)if(i)t.push(i[2]);else{var s=new Promise((function(t,n){i=r[e]=[t,n]}));t.push(i[2]=s);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,l.nc&&u.setAttribute("nonce",l.nc),u.src=o(e),c=function(t){u.onerror=u.onload=null,clearTimeout(d);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src,s=new Error("Loading chunk "+e+" failed.\n("+i+": "+a+")");s.type=i,s.request=a,n[1](s)}r[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},l.m=e,l.c=i,l.d=function(e,t,n){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)l.d(n,i,function(t){return e[t]}.bind(null,i));return n},l.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="/scm-app/",l.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp_direwolf"]=window["webpackJsonp_direwolf"]||[],u=c.push.bind(c);c.push=t,c=c.slice();for(var d=0;d<c.length;d++)t(c[d]);var h=u;s.push([2,"chunk-vendors","chunk-common"]),n()})({"012c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dashboard",attrs:{id:"dashboard_"+e.id}},[e.layout.length>0?n("grid-layout",{ref:"grid",attrs:{layout:e.layout,"col-num":24,"row-height":40,"is-draggable":!e.readonly,"is-resizable":!e.readonly,"is-mirrored":!1,"vertical-compact":!0,margin:e.marginArr,"use-css-transforms":!0},on:{"update:layout":function(t){e.layout=t},"layout-ready":e.layoutReadyEvent,"layout-updated":e.layoutUpdatedEvent}},e._l(e.widgetList,(function(t){return n("grid-item",e._b({key:t.id,attrs:{dragAllowFrom:e.getDragHandler(t),dragIgnoreFrom:".dashboard .el-card__header .widget-controls"},on:{resized:e.gridItemResized,moved:e.movedEvent}},"grid-item",e.getLayout(t),!1),[n("el-button-group",{staticClass:"widget-controls"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"拖动窗口",placement:"bottom"}},[e.readonly||!1!==t.parameters.showTitle?e._e():n("el-button",{staticClass:"drag-handler-button",attrs:{type:"text",icon:"el-icon-rank"}})],1),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"更换窗口内容",placement:"bottom"}},[e.readonly?e._e():n("el-button",{attrs:{type:"text",icon:"el-icon-sort"},on:{click:function(){return e.$emit("replace-content",t.id)}}})],1),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"跳转到详情页",placement:"bottom"}},[t.parameters.redirectTo?n("el-button",{attrs:{type:"text",icon:"el-icon-share"},on:{click:function(){return e.$emit("redirect-from-widget",t.id)}}}):e._e()],1),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.isLocked?"解锁窗口移动位置":"锁定后位置不可移动",placement:"bottom"}},[e.readonly?e._e():n("el-button",{attrs:{type:"text",icon:t.isLocked?"el-icon-unlock":"el-icon-lock"},on:{click:function(){return e.$emit("toggle-lock-widget",t.id)}}})],1),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.isCollapsed?"展开":"收起",placement:"bottom"}},[n("el-button",{attrs:{type:"text",icon:t.isCollapsed?"el-icon-caret-right":"el-icon-caret-bottom"},on:{click:function(){return e.$emit("toggle-collapse-widget",t.id)}}})],1),n("el-tooltip",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"item",attrs:{effect:"dark",content:t.isMaximized?"还原":"最大化",placement:"bottom"}},[n("el-button",{attrs:{type:"text",icon:t.isMaximized?"el-icon-bottom-left":"el-icon-top-right"},on:{click:function(){return e.$emit("toggle-maximize-widget",t.id)}}})],1),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"关闭",placement:"bottom"}},[e.readonly?e._e():n("el-button",{attrs:{type:"text",icon:"el-icon-close"},on:{click:function(){return e.closeWidget(t.id)}}})],1)],1),n("widget",e._b({ref:"widget",refInFor:!0},"widget",t,!1))],1)})),1):e._e()],1)},a=[],r=(n("7514"),n("ac6a"),n("a481"),n("c5f6"),n("6762"),n("2fdb"),n("4fb3")),s=n.n(r),o=n("4506"),l={name:"Dashboard",components:{Widget:o["default"],GridLayout:s.a.GridLayout,GridItem:s.a.GridItem},props:{id:String,layoutJson:{default:function(){return[]}},title:String,description:String,css:String,readonly:{default:!0},widgetList:{default:function(){return[]}},margin:{default:function(){return[10,10]}},onLayoutChange:{default:function(){}}},data:function(){return{layout:[],widgetDisplaying:[]}},computed:{marginArr:function(){if(this.margin&&this.margin.includes(",")){var e=this.margin.indexOf(",");return[Number(this.margin.substring(0,e)),Number(this.margin.substring(e+1,this.margin.length))]}return[10,10]}},watch:{layoutJson:function(e,t){if(JSON.stringify(e)!==JSON.stringify(t)){var n=[];"string"===typeof this.layoutJson?n=this.$$utils.tryParseJSON(this.layoutJson.replace(/"/g,'"'))||[]:this.layoutJson instanceof Array&&(n=this.layoutJson),this.layout=n;var i=this;this.$nextTick((function(){i.$refs.widget&&i.$refs.widget.forEach((function(e){return e.resetStyle()}))}))}}},methods:{getDragHandler:function(e){return!1===e.parameters.showTitle?".dashboard .drag-handler-button":".dashboard .el-card__header"},getLayout:function(e){var t=this.layout.find((function(t){return t.i===e.id}));return t.isResizable=!this.readonly,t},layoutReadyEvent:function(e){this.$refs.widget&&this.$refs.widget.forEach((function(e){return e.resetStyle()}))},layoutUpdatedEvent:function(e){this.$refs.widget&&this.$refs.widget.forEach((function(e){return e.resetStyle()}))},movedEvent:function(e){this.$refs.widget&&this.$refs.widget.forEach((function(e){return e.resetStyle()}))},gridItemResized:function(e,t,n,i,a){this.$refs.widget.find((function(t){return t.id===e})).resetHeight(i)},closeWidget:function(e){var t=this;this.$$utils.direwolfCommonConfirm({message:"确定要关闭窗口吗?窗口关闭后可通过重置设计恢复。",title:"关闭提示"},(function(){return t.$emit("close-widget",e)}))}},mounted:function(){this.layout=this.layoutJson,this.widgetDisplaying=this.widgetList}},c=l,u=(n("5e2d"),n("2877")),d=Object(u["a"])(c,i,a,!1,null,null,null);t["default"]=d.exports},"0234":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-card",{ref:"visCard",attrs:{id:e.id,"body-style":e.getBodyStyle}},[e.displayTitle?n("div",{attrs:{slot:"header"},slot:"header"},[n("span",[e._v(e._s(e.title))]),n("el-popover",{attrs:{placement:"right",width:"200",trigger:"hover",content:e.description}},[e.description?n("i",{staticClass:"title-description-icon el-icon-info",attrs:{slot:"reference"},slot:"reference"}):e._e()])],1):e._e(),e._t("default")],2)},a=[],r=n("cebc"),s={name:"BaseVis",props:{id:{default:"widget_".concat((new Date).getTime())},title:{default:"baseVis"},showTitle:{default:!0},bodyStyle:{},description:{default:""},parameters:Object,isFragment:{default:!1}},computed:{displayTitle:function(){return!this.isFragment&&this.showTitle&&!1!==this.parameters.showTitle},getBodyStyle:function(){return Object(r["a"])({},this.bodyStyle)},getExtra:function(){return""}},methods:{}},o=s,l=n("2877"),c=Object(l["a"])(o,i,a,!1,null,"ccc5438a",null);t["default"]=c.exports},"100e":function(e,t,n){},"118a":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{fullScreen:e.isFullScreen}},[n("div",{staticClass:"errPage-container"},[n("el-row",[n("el-col",{attrs:{span:12}},[n("h1",{staticClass:"text-jumbo text-ginormous"},[e._v("抱歉,"),n("strong",[e._v(e._s(e.statusDesc))])]),n("h2",{staticClass:"text-primary",staticStyle:{"margin-bottom":"15px"}},[e._v(e._s(e.title))]),n("h3",{staticStyle:{"margin-bottom":"15px"}},[e._v(e._s(e.desc))])]),n("el-col",{attrs:{span:12}},[n("img",{attrs:{src:e.assetsContext+"/img/error.gif",width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1)],1)])},a=[],r=(n("c5f6"),n("f61f")),s={name:"ErrorPage",props:{},data:function(){return{title:"",desc:"",status:this.$route.meta.status||this.$route.query.status,indexPath:"".concat(r["a"].adminPath,"/"),statusDesc:"",assetsContext:r["a"].assetsContext}},computed:{isFullScreen:function(){return this.$route.meta.fullscreen||top===self}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:this.indexPath}):this.$router.go(-1)}},created:function(){this.desc="如需帮助,请联系管理员";var e=sessionStorage.getItem("errorTitle");switch(sessionStorage.removeItem("errorTitle"),Number(this.status)){case 404:this.statusDesc="页面未找到",this.title=e||"服务器没有指定资源";break;case 401:this.statusDesc="权限异常",this.title=e||"您没有权限查看当前资源";break;case 500:this.statusDesc="服务异常",this.title=e||"服务器内部错误";break;default:this.statusDesc="页面异常",this.title="页面无法正常显示";break}}},o=s,l=(n("b050"),n("2877")),c=Object(l["a"])(o,i,a,!1,null,"920e2240",null);t["default"]=c.exports},"12c2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"select-panel"},[n("div",{staticClass:"left-panel",style:{width:e.leftPanelWidth}},[e._t("source",[n("el-row",{attrs:{gutter:15}},[e._t("sourceQuery")],2)])],2),n("div",{staticClass:"button-column"},[n("div",{staticClass:"vertical-button-group"},[n("el-button",{class:["el-transfer__button","is-with-texts"],staticStyle:{width:"117px"},attrs:{type:"primary",disabled:0===e.rightChecked.length},nativeOn:{click:function(t){return e.cancelSelect(t)}}},[n("i",{staticClass:"el-icon-arrow-left"}),n("span",{domProps:{innerHTML:e._s(e.rightSelectButtonText)}})]),n("el-button",{class:["el-transfer__button","is-with-texts"],staticStyle:{width:"117px"},attrs:{type:"primary",disabled:0===e.rightData.length},nativeOn:{click:function(t){return e.cancelAllSelect(t)}}},[n("i",{staticClass:"el-icon-d-arrow-left"}),n("span",[e._v("全部取消")])]),"function"===typeof e.getAllDataLength?n("el-button",{class:["el-transfer__button","is-with-texts"],staticStyle:{width:"117px"},attrs:{type:"primary",disabled:0===e.getAllDataLength()},nativeOn:{click:function(t){return e.selectAll(t)}}},[n("span",[e._v("全部选择")]),n("i",{staticClass:"el-icon-d-arrow-right"})]):e._e(),n("el-button",{class:["el-transfer__button","is-with-texts"],staticStyle:{width:"117px"},attrs:{type:"primary",disabled:0===e.leftCheckedLength},nativeOn:{click:function(t){return e.confirmSelect(t)}}},[n("span",{domProps:{innerHTML:e._s(e.leftSelectButtonText)}}),n("i",{staticClass:"el-icon-arrow-right"})])],1)]),n("div",{staticClass:"right-table-panel"},[n("el-table",{staticStyle:{width:"100%","margin-bottom":"15px"},attrs:{size:"medium",stripe:"",border:"","tooltip-effect":"dark",data:e.rightPageData},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55px"}}),e._l(e.resultColumns,(function(t){return n("el-table-column",e._b({key:t.prop,attrs:{"show-overflow-tooltip":""}},"el-table-column",t,!1))}))],2),n("el-pagination",{attrs:{layout:"total, ->, prev, next, jumper","hide-on-single-page":"",total:e.dataCount,"current-page":e.currentResultPage,"page-size":e.searchParams.limit,background:""},on:{"update:currentPage":function(t){e.currentResultPage=t},"update:current-page":function(t){e.currentResultPage=t},"current-change":e.handleTableCurrentChange}})],1)])},a=[],r=n("75fc"),s=n("bd86"),o=n("cebc"),l=(n("ac6a"),n("5df3"),{name:"SelectPanel",props:{value:{default:function(){return[]}},resultColumns:{default:function(){return[]},required:!0},resultAntiDupl:{default:function(){return[]}},getAllData:{default:function(){return[]}},leftChecked:{default:function(){return[]}},getDataList:{default:function(){},required:!0},getAllDataLength:{default:function(){return 0},required:!0},listKey:{default:"list"},valueKey:{default:"id"},resultExtraParam:{default:function(){}},resultValuesKey:{default:"matchIds"},leftPanelWidth:{default:"calc(60% - 80px)"}},data:function(){return{rightData:[],rightChecked:[],loadingResult:!1,dataCount:0,currentResultPage:1,searchParams:{offset:0,limit:20,order:"asc",sort:"a.id"}}},computed:{leftCheckedLength:function(){return this.leftChecked.length},values:function(){var e=this;return this.rightData.map((function(t){return t[e.valueKey]}))},leftSelectButtonText:function(){return 0===this.leftCheckedLength?"选 择":"选择(".concat(this.leftCheckedLength,")")},rightSelectButtonText:function(){return 0===this.rightChecked.length?"取 消":"取消(".concat(this.rightChecked.length,")")},rightPageData:function(){var e=this.searchParams,t=e.offset,n=e.limit;return this.rightData.slice(t,t+n)}},watch:{value:function(e,t){t&&t.length||this.rightData&&this.rightData.length||this.loadingResult||this.initSelections()}},methods:{initSelections:function(){var e=this,t=this;t.loadingResult=!0;var n=t.value?t.value.filter((function(e){return e})):[];if(n.length){for(var i=this.searchParams.limit,a=[],r=0;r<Math.ceil(n.length/i);r++)a.push(n.slice(r*i,r*i+i));var l=[];Promise.all(a.map((function(t){return e.getDataList(Object(o["a"])(Object(s["a"])({},e.resultValuesKey,t.join(",")),e.resultExtraParam))}))).then((function(e){e.forEach((function(e){return l=l.concat(e[t.listKey])})),t.loadingResult=!1,t.setRightData(l)}))}else t.rightData=[],t.loadingResult=!1},emitChange:function(){this.$emit("input",this.values),this.$emit("change",this.rightData)},cancelSelect:function(){var e=this;this.rightChecked.forEach((function(t){return e.rightData.splice(e.rightData.indexOf(t),1)})),this.dataCount=this.rightData.length,Math.ceil(this.rightData.length/this.searchParams.limit)<this.currentResultPage&&this.currentResultPage>1&&this.handleTableCurrentChange(--this.currentResultPage),this.emitChange()},setRightData:function(e){this.rightData=e,this.dataCount=this.rightData.length},cancelAllSelect:function(){this.setRightData([]),this.emitChange()},selectAll:function(){var e=this;function t(){e.getAllData().then((function(t){e.appendToRight(t[e.listKey]),e.emitChange()}))}"function"===typeof e.getAllData?"function"===typeof e.getAllDataLength&&e.getAllDataLength()>100?e.$$utils.direwolfCommonConfirm({message:"数据量过大将导致系统页面卡顿,确认要继续选择全部数据吗?",title:"操作提示"},t):t():e.$$utils.direwolfCommonTips("warning","未提供全部选择方法")},confirmSelect:function(){this.appendToRight(this.leftChecked),this.$emit("update:leftChecked",[]),this.emitChange()},appendToRight:function(e){var t=this;if("function"===typeof this.resultAntiDupl)this.resultAntiDupl(e,this.rightData).then((function(e){t.setRightData(Object(r["a"])(e))}));else{var n=this.values,i=[];e.forEach((function(e){-1===n.indexOf(e[t.valueKey])&&i.push(e)})),this.setRightData(this.rightData.concat(i))}},handleSelectionChange:function(e){this.rightChecked=e},handleTableCurrentChange:function(e){this.searchParams.offset=this.searchParams.limit*(e-1)}},mounted:function(){this.initSelections()}}),c=l,u=(n("2f73f"),n("2877")),d=Object(u["a"])(c,i,a,!1,null,"14362155",null);t["default"]=d.exports},1422:function(e,t,n){},"19eba":function(e,t,n){},"1d55":function(e,t,n){"use strict";var i=n("100e"),a=n.n(i);a.a},2:function(e,t,n){e.exports=n("4ccb")},"2af9":function(e,t,n){"use strict";n.r(t),n.d(t,"widgetUtils",(function(){return T}));var i=n("471d"),a=n("6d15"),r=n("e630"),s=n("f097"),o=n("79bc"),l=n("f1ba"),c=n("58e5"),u=n("44a6"),d=n("fdc2"),h=n("12c2"),f=n("596d"),p=n("e08b"),m=n("aba7"),g=n("118a"),v=n("4a32"),b=n("e8de"),y=n("8799"),w=n("a3c2"),x=n("cfde"),C=n("f844"),k=n("4520"),$=n("c7e0"),S=n("abb1"),I=n("f38d"),T={componentRegistry:S["default"]};t["default"]={BlankPage:v["default"],BodyFooter:y["default"],DashboardDisplay:$["default"],DraggableButton:i["default"],ErrorPage:g["default"],FileUploader:s["default"],IFramePage:b["default"],NavBar:w["default"],OrgSelector:l["default"],PageContainer:x["default"],ScrollPane:a["default"],SideMenu:C["default"],UserSelector:c["default"],TreeSelector:o["default"],ZTree:r["default"],RoleSelectPanel:u["default"],OrgSelectPanel:d["default"],SelectPanel:h["default"],TableSelectPanel:f["default"],TriDimensionSelector:p["default"],UserSelectPanel:m["default"],TopoGraph:k["default"],SvgMarker:I["default"]}},"2f73f":function(e,t,n){"use strict";var i=n("e92b"),a=n.n(i);a.a},"312d":function(e,t,n){},3416:function(e,t,n){"use strict";var i=n("da5a"),a=n.n(i);a.a},3445:function(e,t,n){"use strict";n.r(t),n.d(t,"getLayout",(function(){return a}));n("a481");var i=n("40ca");function a(e){return e instanceof Array?e:"string"===typeof e&&i["a"].tryParseJSON(e.replace(/"/g,'"'))||[]}t["default"]={getLayout:a}},"3f1e":function(e,t,n){"use strict";var i=n("19eba"),a=n.n(i);a.a},"44a6":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table-select-panel",e._g({ref:"rolePanel",attrs:{sourceParams:{roleName:e.roleName,roleCode:e.roleCode,orgId:e.orgId},sourceColumns:e.sourceColumns,resultColumns:e.resultColumns,"list-key":"rows","total-key":"total",value:e.value,"source-custom-sort":e.sortFixMethod,"get-data-list":e.getDataList},on:{change:e.roleRecordChange},scopedSlots:e._u([{key:"sourceQuery",fn:function(){return[n("el-col",{attrs:{span:8}},[n("el-input",{attrs:{placeholder:"名称"},on:{change:e.search},model:{value:e.roleName,callback:function(t){e.roleName=t},expression:"roleName"}})],1),n("el-col",{attrs:{span:8}},[n("el-input",{attrs:{placeholder:"类型"},on:{change:e.search},model:{value:e.roleCode,callback:function(t){e.roleCode=t},expression:"roleCode"}})],1),n("el-col",{attrs:{span:8}},[n("org-selector",{attrs:{rootId:e.companyId,name:"部门"},on:{change:e.search},model:{value:e.orgId,callback:function(t){e.orgId=t},expression:"orgId"}})],1)]},proxy:!0}])},e.$listeners))},a=[],r=(n("55dd"),n("386d"),n("4131")),s=n("596d"),o=n("f1ba"),l={name:"RoleSelectPanel",components:{TableSelectPanel:s["default"],OrgSelector:o["default"]},props:{value:{default:function(){return[]}}},data:function(){var e=this;return{roleName:"",roleCode:"",orgId:"",dictMap:{},sourceColumns:[{prop:"roleName",label:"名称"},{prop:"roleCode",label:"类型",formatter:function(t,n){return e.$$utils.eleTableColumnFormatter({row:t,column:n},e.dictMap["role_code"])}},{prop:"orgName",label:"单位"}],resultColumns:[{prop:"roleName",label:"名称"}],selectedData:[]}},computed:{companyId:function(){return this.$$utils.user.getLoginUser().companyId},getDataList:function(){return r["a"].role.getRoleList}},methods:{search:function(){this.$refs.rolePanel.search()},sortFixMethod:function(e){return"orgName"===e.sort&&(e.sort="org_id"),e},roleRecordChange:function(e){this.selectedData=e,this.$emit("change",this.selectedData)},getSelectedData:function(){return this.selectedData}},created:function(){var e=this;this.$$utils.param.getDictByCodes("role_code").then((function(t){var n=t.data;return e.dictMap=n}))},mounted:function(){this.orgId||this.roleName||this.roleCode||this.search()}},c=l,u=n("2877"),d=Object(u["a"])(c,i,a,!1,null,"836b4d24",null);t["default"]=d.exports},"44f3":function(e,t,n){},4506:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"widget",staticClass:"widget"},["bar"===e.vizType?n("chart-vis",{style:e.style,attrs:{id:"widget_"+e.id,"body-style":e.bodyStyle,title:e.title,description:e.description}}):e._e(),"iframe"===e.vizType?n("base-vis",{ref:"baseVis",style:e.style,attrs:{id:"widget_"+e.id,"body-style":e.bodyStyle,title:e.title,description:e.description,parameters:e.parameters}},[n("IFramePage",{attrs:{url:e.urlWithParams,height:Number.parseFloat(e.style.height)-40+"px"}})],1):n("base-vis",{ref:"baseVis",style:e.style,attrs:{id:"widget_"+e.id,"body-style":e.bodyStyle,title:e.title,description:e.description,parameters:e.parameters}})],1)},a=[],r=(n("c5f6"),n("0234")),s=n("c35d"),o=n("5e42"),l=n("e8de"),c={name:"Widget",components:{IFramePage:l["default"],ChartVis:s["default"],BaseVis:r["default"]},props:{id:String,title:String,description:String,vizType:String,businessPrefix:String,parameters:Object,vNode:Object,height:Number},data:function(){return{style:{height:"100%"},bodyStyle:{}}},computed:{widgetHeight:function(){return this.$el.parentElement.offsetHeight},urlWithParams:function(){var e=this.$$utils.user.getLoginUser(),t=e.orgId,n=e.id,i=e.companyId,a="orgId=".concat(t,"&userId=").concat(n,"&companyId=").concat(i);return this.$$utils.appendParamStr(this.parameters.url,a)}},methods:{resetHeight:function(e){this.style={height:"".concat(e,"px")},this.changeBodyDisplay(e)},resetStyle:function(){var e=this;this.$nextTick((function(){var t=e.$el.parentElement.offsetHeight;e.style={height:"".concat(t,"px")},e.changeBodyDisplay(t)}))},changeBodyDisplay:function(e){this.bodyStyle={display:e<=40?"none":"block"}}},mounted:function(){var e=this;"vNode"===this.vizType&&Object(o["a"])(this.vNode)&&(this.$refs.baseVis.$slots.default=this.vNode,this.$refs.baseVis.$forceUpdate()),this.$nextTick((function(){e.style.height="".concat(e.$el.parentElement.offsetHeight,"px")}))}},u=c,d=(n("5676"),n("2877")),h=Object(d["a"])(u,i,a,!1,null,null,null);t["default"]=h.exports},4520:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"graphContainer",class:e.classNames,style:e.containerStyle})},a=[],r=n("7618"),s=(n("5df3"),n("4f7f"),n("ac6a"),n("7f7f"),{name:"TopoGraph",props:{value:{default:function(){return{node:[],line:[]}}},customStyle:{default:function(){}},classNames:{default:function(){return[]}}},data:function(){return{graph:null,backupNodes:[],backupLines:[],nodes:this.value.node,lines:this.value.line,vertexMap:{},mxGraph:null,containerStyle:this.customStyle,markVertex:[],markEdge:[]}},watch:{value:function(e,t){JSON.stringify(e)!==JSON.stringify(t)&&(this.nodes=e.node,this.lines=e.line,this.graph.removeCells(this.graph.getChildVertices(this.graph.getDefaultParent())),this.draw())},customStyle:function(e,t){JSON.stringify(e)!==JSON.stringify(t)&&(this.containerStyle=e)}},methods:{initGraph:function(){var e=this.$refs.graphContainer;this.graph=new mxGraph(e),mxGraphHandler.prototype.guidesEnabled=!0,this.graph.setCellsResizable(!1),mxGraph.prototype.isCellMovable=function(e){return!e.edge},mxGraph.prototype.isCellSelectable=function(e){return!e.edge},this.graph.setCellsBendable(!1);var t=this.graph.getStylesheet().getDefaultVertexStyle();t[mxConstants.STYLE_ROUNDED]=!0,t[mxConstants.STYLE_EDITABLE]=0,this.graph.setHtmlLabels(!0),t[mxConstants.STYLE_WHITE_SPACE]="wrap";var n=this.graph.getStylesheet().getDefaultEdgeStyle();n[mxConstants.STYLE_CURVED]="1",n[mxConstants.STYLE_EDITABLE]=0,n[mxConstants.STYLE_MOVABLE]=0;var i=this;i.graph.setCellsMovable(!1),i.graph.setAutoSizeCells(!0),i.graph.setPanning(!0),i.graph.centerZoom=!1,i.graph.panningHandler.useLeftButtonForPanning=!0,mxEvent.disableContextMenu(e),this.graph.popupMenuHandler.autoExpand=!0,this.graph.popupMenuHandler.factoryMethod=function(t,n,a){n&&n.vertex&&(t.addItem("隐藏节点",null,(function(){i.backupLines.length||(i.backupLines=i.lines,i.backupNodes=i.nodes),i.lines=i.lines.filter((function(e){var t=e.source,i=e.target;return t!==n.id&&i!==n.id})),i.nodes=i.nodes.filter((function(e){return e.name!==n.id})),i.graph.removeCells(i.graph.getChildVertices(i.graph.getDefaultParent())),i.draw()})),t.addSeparator()),i.backupNodes.length&&(t.addItem("恢复节点",null,(function(){i.lines=i.backupLines,i.nodes=i.backupNodes,i.backupLines=[],i.backupNodes=[],i.graph.removeCells(i.graph.getChildVertices(i.graph.getDefaultParent())),i.draw()})),t.addSeparator()),t.addItem("导出图片",null,(function(){var t=i.graph.getView().getScale();i.graph.getView().setScale(5);var n=e.getElementsByTagName("svg")[0];i.$$utils.covertSVG2Image(n,"导出-".concat((new Date).getTime()),n.scrollWidth,n.scrollHeight),i.graph.getView().setScale(t)}))}},draw:function(){var e=this,t=this.graph;t.getModel().beginUpdate();var n=t.getDefaultParent();try{var i=new mxHierarchicalLayout(t,mxConstants.DIRECTION_WEST),a="";this.nodes.forEach((function(i){a=i.focus?"fillColor=#6482b9;strokeColor=#6482b9;fontColor=#d6e6ff;":"",e.vertexMap[i.name]=t.insertVertex(n,i.name,i.title,0,0,80,30,a)})),this.lines.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.source&&e.target instanceof Array&&e.target.length>0})).forEach((function(i){var a=i.source,r=i.target,s=e.vertexMap[a];s&&new Set(r).forEach((function(i){var a=e.vertexMap[i];a&&t.insertEdge(n,null,"",s,a)}))})),i.execute(n)}finally{t.getModel().endUpdate()}},addMouseWheelListener:function(){var e=this;function t(e,t){"object"===Object(r["a"])(e)&&"function"===typeof t&&(mxClient.IS_IE?e.attachEvent("onmousewheel",t):e.addEventListener("mousewheel",t,!1))}function n(t){var n;n=t.wheelDelta?t.wheelDelta>0?1:0:t.detail<0?1:0,n?e.graph.zoomIn():e.graph.zoomOut(),window.event?(t.returnValue=!1,window.event.cancelBubble=!0):(t.preventDefault(),t.stopPropagation())}mxEvent.addMouseWheelListener=function(e){},window.onload=function(){t(e.$refs.graphContainer,n)}},addMouseClickListener:function(){var e=this;e.graph.addListener(mxEvent.CLICK,(function(t,n){var i=n.getProperty("cell");if(n.consumed&&!i||(e.markEdge.length&&e.changeLineColor(e.markEdge),e.markVertex.length&&e.changeNodeColor(e.markVertex)),i)if(i.vertex){var a=[];a.push(i),e.markEdge=i.edges;var r=[],s=[],o=[],l=[];e.markEdge.forEach((function(e){e.source.id===i.id?(a.push(e.target),s.push(e),l.push(e.target)):e.target.id===i.id&&(a.push(e.source),r.push(e),o.push(e.source))})),e.markVertex=a,e.changeLineColor(r,"#75B5B4"),e.changeLineColor(s,"#F3AAAA"),e.changeNodeColor(o,"#75B5B4"),e.changeNodeColor(l,"#F3AAAA"),e.changeNodeColor([i],"#FD5354")}else i.edge&&(e.markEdge=[i],e.changeLineColor(e.markEdge,"#FD5354"))}))},changeLineColor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#6482b9";this.graph.setCellStyle("strokeColor=".concat(t),e)},changeNodeColor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#c3d9ff",n=e.filter((function(e){return-1===e.style.indexOf("fontColor=#d6e6ff;")}));this.graph.setCellStyle("fillColor=".concat(t,";strokeColor=#6482b9;"),n)}},mounted:function(){"undefined"!==typeof mxGraph?(this.initGraph(),this.draw(),this.addMouseWheelListener(),this.addMouseClickListener()):this.$$utils.direwolfCommonTips("error","请引入MXGRAPH相关文件再使用组件")}}),o=s,l=n("2877"),c=Object(l["a"])(o,i,a,!1,null,"794abd98",null);t["default"]=c.exports},"471d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"draggableButton",style:{top:e.top,right:e.right}},[n("div",{attrs:{id:e.id}})])},a=[],r=(n("ac6a"),n("d225")),s=n("b0b4"),o={name:"DraggableButton",props:{id:{default:"myMenu"},initialButton:{type:Array,default:function(){return[]}},top:{default:"130px"},right:{default:"40px"},locomotiveIcon:{default:"fa fa-cogs"},locomotiveTitle:{default:"设置"}},methods:{drag:function(){var e,t=this,n=function(){function t(n){var i=n.id,a=n.icon,s=n.backgroundColor,o=n.title,l=n.color,c=n.onClick;Object(r["a"])(this,t),this.$element=$(document.createElement("div")),this.$element.attr("id",i),this.$element.attr("title",o),this.icon=a,this.$element.addClass("item"),this.$element.css("background-color",s),this.$element.css("color",l);var u=document.createElement("i");$(u).addClass(a),this.$element.append(u),this.prev=null,this.next=null,this.isMoving=!1;var d=this;this.$element.on("mousemove",(function(){clearTimeout(e),e=setTimeout((function(){d.next&&d.isMoving&&d.next.moveTo(d)}),10)})),"function"===typeof c&&this.$element.on("click",c)}return Object(s["a"])(t,[{key:"moveTo",value:function(e){anime({targets:this.$element[0],left:e.$element.css("left"),top:e.$element.css("top"),duration:700,elasticity:500}),this.next&&this.next.moveTo(e)}},{key:"updatePosition",value:function(){anime({targets:this.$element[0],left:this.prev.$element.css("left"),top:this.prev.$element.css("top"),duration:200}),this.next&&this.next.updatePosition()}}]),t}(),i=function(){function e(t){Object(r["a"])(this,e),this.$element=$(t),this.size=0,this.first=null,this.last=null,this.timeOut=null,this.hasMoved=!1,this.status="closed"}return Object(s["a"])(e,[{key:"add",value:function(e){var t=this;null==this.first?(this.first=e,this.last=e,this.first.$element.on("mouseup",(function(){t.first.isMoving?t.first.isMoving=!1:t.click()})),e.$element.draggable({start:function(){t.close(),e.isMoving=!0}},{drag:function(){e.next&&e.next.updatePosition()}},{stop:function(){e.isMoving=!1,e.next.moveTo(e)}})):(this.last.next=e,e.prev=this.last,this.last=e),this.$element.after(e.$element)}},{key:"open",value:function(){this.status="open";var e=this.first.next,t=1,n=this.first,i=n.$element.css("left")>n.$element.css("right")?1:-1;while(null!=e)anime({targets:e.$element[0],left:parseInt(n.$element.css("left"),10)+i*(50*t),top:n.$element.css("top"),duration:500}),t++,e=e.next}},{key:"close",value:function(){this.status="closed";var e=this.first.next,t=this.first;while(null!=e)anime({targets:e.$element[0],left:t.$element.css("left"),top:t.$element.css("top"),duration:500}),e=e.next}},{key:"click",value:function(){this.first===this.last?t.$$utils.direwolfCommonTips("warning","未注册更多功能"):"closed"===this.status?this.open():this.close()}}]),e}(),a=new i("#myMenu");a.add(new n({id:"config",icon:this.locomotiveIcon,title:this.locomotiveTitle})),this.initialButton.forEach((function(e){a.add(new n(e))}))}},mounted:function(){this.drag()}},l=o,c=(n("4981"),n("2877")),u=Object(c["a"])(l,i,a,!1,null,null,null);t["default"]=u.exports},4981:function(e,t,n){"use strict";var i=n("acaf"),a=n.n(i);a.a},"4a2a":function(e,t,n){},"4a32":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("router-view")},a=[],r={name:"Blank"},s=r,o=n("2877"),l=Object(o["a"])(s,i,a,!1,null,"c981d00e",null);t["default"]=l.exports},"4ccb":function(e,t,n){"use strict";n.r(t);n("14c6"),n("08c1"),n("4842"),n("d9fc");var i,a=n("f61f"),r=n("cebc"),s=n("a8db"),o=n("088b"),l=n("9435"),c=o["a"].ws,u=o["a"].router,d=(o["a"].pattern,o["a"].axiosErrorTips,Object(s["a"])(o["a"],["ws","router","pattern","axiosErrorTips"])),h=(u.initUserData,u.appendRouterIntoAdmin,u.generateRouteByInfo,u.redirectToChangePassword,Object(s["a"])(u,["initUserData","appendRouterIntoAdmin","generateRouteByInfo","redirectToChangePassword"])),f=(l["a"].getBackServerUrl,Object(s["a"])(l["a"],["getBackServerUrl"])),p=Object(r["a"])({},d,{router:h,ws:c,resource:f}),m=n("2af9");function g(){return i||(window.Vue&&(window.Vue.prototype.$$utils=p,window.Vue.prototype.$$config=a["a"],window.Vue.prototype.$$components=m["default"],window.Vue.prototype.$$widgetUtils=m["widgetUtils"],window.Vue.config.productionTip=!1,window.Vue.use(window.VueSlimScroll),window.Vue.use(window.ELEMENT),window.Vue.use(window.VueRouter)),i={$$utils:p,$$config:a["a"],$$components:m["default"],getWidgetUtils:function(){return m["widgetUtils"]}}),i}function v(){return g()}"undefined"!==typeof window&&(window.getDirewolfLibrary=g,window.DirewolfLibrary=v)},"4fb3":function(e,t){e.exports=VueGridLayout},5611:function(e,t,n){"use strict";var i=n("4a2a"),a=n.n(i);a.a},5676:function(e,t,n){"use strict";var i=n("95c7"),a=n.n(i);a.a},5722:function(e,t,n){"use strict";var i=n("5a4c"),a=n.n(i);a.a},"58e5":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-input",{attrs:{placeholder:"请选择"+e.name,readonly:"",disabled:e.disabled},model:{value:e.selection.name,callback:function(t){e.$set(e.selection,"name",t)},expression:"selection.name"}},[n("el-button",{attrs:{slot:e.disabled?"":"append",icon:"el-icon-search"},on:{click:e.showUserSelectDialog},slot:e.disabled?"":"append"})],1)},a=[],r=(n("7514"),n("7f7f"),n("f61f")),s=n("088b"),o=n("4131"),l=n("796d"),c=n.n(l),u={name:"UserSelector",props:{name:{default:"用户"},disabled:{default:!1},value:{default:""},rootId:{default:""},type:{default:""}},data:function(){return{selection:{name:""}}},watch:{value:function(e){this.selection.id!==e&&this.initData()}},methods:{getUserById:function(e){return o["a"].user.getCommonUserList({id:e})},initData:function(){var e=this;e.value?e.getUserById(e.value).then((function(t){t&&t.list&&t.list[0]&&(e.selection.name=t.list[0].userName)})):e.selection.name=""},showUserSelectDialog:function(){var e=this,t="".concat(r["a"].sysBackendContext,"/sys"),n="".concat(t,"/org/getOrgTree?");e.rootId&&(n+="pId=".concat(e.rootId,"&")),e.type&&(n+="type=".concat(e.type,"&"));var i={url:encodeURI(n),idKey:"id",nameKey:"name",checkedId:e.value||"",expendURL:"".concat(t,"/user/getUserTreeListOfExpand"),parentKeyOfLeaf:"orgId",searchUrl:"".concat(t,"/role/searchUserList"),pIdKeyOfParent:"pId",nameKeyOfParent:"name"},a=e.$$utils.getLayerInstance();$(document.activeElement).blur(),a.open({skin:"layer-ext-moon",extend:"moon/style.css",title:"选择".concat(e.name),type:2,btn:["确定","关闭"],maxmin:!1,zIndex:s["a"].getTopIndex(),content:"".concat(r["a"].assetsContext,"/pages/lazyTreeSelect.html?").concat(c.a.stringify(i)),area:["250px","500px"],yes:function(t,n){var i=n.find("iframe")[0].contentWindow.tree,r=i.getSelectedNodes();if(r.length>0){var o=r[0];if(o.isParent)return void s["a"].direwolfCommonTips("warning","不能选择父节点!");e.selection=o,e.$emit("input",e.selection.id),e.getUserById(e.selection.id).then((function(t){e.$emit("change",t.list[0])}))}return a.close(t),!0}})}},mounted:function(){this.initData()}},d=u,h=n("2877"),f=Object(h["a"])(d,i,a,!1,null,"234abeec",null);t["default"]=f.exports},"596d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("select-panel",e._g(e._b({attrs:{value:e.value,"get-all-data":e.getAllData,"get-all-data-length":e.getAllDataLength,"value-key":e.valueKey,"get-data-list":e.getDataList,"list-key":e.listKey,"left-checked":e.leftChecked},on:{"update:leftChecked":function(t){e.leftChecked=t},"update:left-checked":function(t){e.leftChecked=t}},scopedSlots:e._u([{key:"source",fn:function(){return[n("el-row",{attrs:{gutter:15}},[e._t("sourceQuery")],2),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],ref:"sourceTable",staticStyle:{width:"100%","margin-top":"15px","margin-bottom":"15px"},attrs:{size:"medium",stripe:"",border:"","tooltip-effect":"dark",data:e.tablePage.list},on:{"row-click":e.handleRowClick,"sort-change":e.handleSortChange,select:e.handleSourcePageSelect,"select-all":e.handleSourcePageSelect}},[n("el-table-column",{attrs:{type:"selection",width:"55px"}}),e._l(e.sourceColumns,(function(t){return n("el-table-column",e._b({key:t.prop,attrs:{sortable:"custom","show-overflow-tooltip":""}},"el-table-column",t,!1))}))],2),n("el-pagination",{attrs:{layout:"total, sizes, ->, prev, next, jumper","hide-on-single-page":"","page-sizes":[5,10,15,20],total:e.tablePage.count,"page-size":e.searchParams.limit,background:""},on:{"size-change":e.handleTableSizeChange,"current-change":e.handleTableCurrentChange}})]},proxy:!0}],null,!0)},"select-panel",e.$attrs,!1),e.$listeners))},a=[],r=n("75fc"),s=(n("5df3"),n("4f7f"),n("28a5"),n("ac6a"),n("386d"),n("cebc")),o=n("12c2"),l={name:"TableSelectPanel",components:{SelectPanel:o["default"]},props:{value:{default:function(){return[]}},sourceColumns:{default:function(){return[]}},valueKey:{default:"id"},listKey:{default:"list"},totalKey:{default:"count"},getDataList:{default:function(){}},sourceCustomSort:{default:function(){}},sourceParams:{default:function(){}}},data:function(){return{leftData:[],leftChecked:[],tableLoading:!0,tablePage:{},searchParams:Object(s["a"])({limit:5,offset:0,order:"",sort:""},this.sourceParams)}},watch:{sourceParams:function(e,t){(JSON.stringify(e)!==JSON.stringify(t)||this.tableLoading)&&(this.searchParams=Object(s["a"])({},this.searchParams,e),this.search())},leftChecked:function(e){var t=this;this.tablePage.list.forEach((function(n){var i=e.map((function(e){return e[t.valueKey]})).indexOf(n[t.valueKey])>-1;t.$refs.sourceTable.toggleRowSelection(n,i)}))}},methods:{getAllData:function(){return this.getDataList(Object(s["a"])({},this.searchParams,{limit:-1,offset:0}))},getAllDataLength:function(){return this.tablePage.count},handleRowClick:function(e,t,n){this.$$utils.eleTableClickSelection(this.$refs.sourceTable,e,n),this.handleSourcePageSelect([e])},handleSortChange:function(e){null===e.prop?(this.searchParams.sort="",this.searchParams.order=""):(this.searchParams.sort=e.prop,this.searchParams.order=e.order.split("ending")[0]),"function"===typeof this.sourceCustomSort&&(this.searchParams=this.sourceCustomSort(this.searchParams)),this.refreshTable()},handleTableSizeChange:function(e){this.searchParams.limit=e,this.refreshTable()},handleTableCurrentChange:function(e){this.searchParams.offset=this.searchParams.limit*(e-1),this.refreshTable()},search:function(){this.searchParams.offset=0,this.refreshTable()},refreshTable:function(){var e=this;e.tableLoading=!0,e.getDataList(e.searchParams).then((function(t){e.tablePage={list:t[e.listKey],count:t[e.totalKey]},e.tableLoading=!1,e.$nextTick((function(){t[e.listKey].forEach((function(t){e.leftChecked.map((function(t){return t[e.valueKey]})).indexOf(t[e.valueKey])>-1&&e.$refs.sourceTable.toggleRowSelection(t,!0)}))}))}))},handleSourcePageSelect:function(e){var t=this;this.tablePage.list.forEach((function(n){return t.toggleLeftChecked(n,e.indexOf(n)>-1?"add":"remove")}))},toggleLeftChecked:function(e,t){var n=new Set(this.leftChecked);"add"===t?n.add(e):n.delete(e),this.leftChecked=Object(r["a"])(n)}}},c=l,u=n("2877"),d=Object(u["a"])(c,i,a,!1,null,"0fa6187d",null);t["default"]=d.exports},"5a4c":function(e,t,n){},"5a75":function(e,t,n){"use strict";var i=n("a4fa"),a=n.n(i);a.a},"5e2d":function(e,t,n){"use strict";var i=n("44f3"),a=n.n(i);a.a},6678:function(e,t){e.exports=VueECharts},6816:function(e,t,n){"use strict";var i=n("312d"),a=n.n(i);a.a},"6d15":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"scrollContainer",staticClass:"scroll-container",on:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[n("div",{ref:"scrollWrapper",staticClass:"scroll-wrapper",style:{left:e.left+"px"}},[e._t("default")],2)])},a=[],r=15,s={name:"ScrollPane",data:function(){return{left:0}},methods:{handleScroll:function(e){var t=e.wheelDelta||3*-e.deltaY,n=this.$refs.scrollContainer,i=n.offsetWidth,a=this.$refs.scrollWrapper,s=a.offsetWidth;t>0?this.left=Math.min(0,this.left+t):i-r<s?this.left<-(s-i+r)?this.left=this.left:this.left=Math.max(this.left+t,i-s-r):this.left=0},moveToTarget:function(e){var t=this.$refs.scrollContainer,n=t.offsetWidth,i=e.offsetLeft,a=e.offsetWidth;i<-this.left?this.left=-i+r:i+r>-this.left&&i+a<-this.left+n-r||(this.left=-(i-(n-a)+r))}}},o=s,l=(n("5611"),n("2877")),c=Object(l["a"])(o,i,a,!1,null,"56dc3291",null);t["default"]=c.exports},"722d":function(e,t,n){"use strict";var i=n("9d32"),a=n("a8a7"),r=n("f61f"),s=r["a"].dashboardServiceConfig,o=s.adminPath,l=s.gatewayRoute,c="".concat(l).concat(o),u="".concat(c,"/dashboard/sWsDashboard"),d={checkListPermission:function(){return a["a"].checkPagePermission("".concat(u,"/checkSWsDashboardListPermission"))},getEntity:function(e){return Object(i["a"])("".concat(u,"/getEntity"),"获取dashboard","get",e)},save:function(e){return Object(i["a"])("".concat(u,"/save"),"保存dashboard","post",e,{showLoading:!0})},saveDefault:function(e){return Object(i["a"])("".concat(u,"/saveDefault"),"保存dashboard","post",e,{showLoading:!0})},getSWsDashboardList:function(e){return Object(i["a"])("".concat(u,"/getSWsDashboardList"),"获取Dashboard信息记录","GET",e)},getUserDashboard:function(){return Object(i["a"])("".concat(u,"/userDashboard"),"获取用户Dashboard信息")},deleteAllSWsDashboard:function(e){return Object(i["a"])("".concat(u,"/deleteAll?ids=").concat(e),"删除Dashboard信息","POST")},deleteSWsDashboard:function(e){return Object(i["a"])("".concat(u,"/delete?id=").concat(e),"删除Dashboard信息","POST",{showLoading:!0})}},h="".concat(c,"/dashboard/sWsWidgets"),f={getSWsWidgetsList:function(e){return Object(i["a"])("".concat(h,"/getSWsWidgetsList"),"获取Widget信息记录","GET",e)},getSWsWidgetsEntity:function(e){return Object(i["a"])("".concat(h,"/getEntity"),"获取Widget信息","GET",{id:e})},deleteAllSWsWidgets:function(e){return Object(i["a"])("".concat(h,"/deleteAll"),"删除Widget信息","POST",e)},deleteSWsWidgets:function(e){return Object(i["a"])("".concat(h,"/delete?id=").concat(e),"删除Widget信息","POST")},saveSWsWidgets:function(e){return Object(i["a"])("".concat(h,"/save"),"保存Widget信息","POST",e,{showLoading:!0})},saveAll:function(e){return Object(i["a"])("".concat(h,"/saveAll"),"批量保存Widget信息","POST",e,{showLoading:!0})},getWidgetsByRole:function(e){return Object(i["a"])("".concat(h,"/getWidgetsByRole"),"根据角色获取Widget列表","GET",{roleIds:e})},saveRoleRelation:function(e,t){return Object(i["a"])("".concat(h,"/saveRoleRelation"),"保存角色关联Widget列表","GET",{widgetIds:e,roleId:t})}};t["a"]={dashboard:d,widget:f}},"796d":function(e,t){e.exports=Qs},"79bc":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-input",{attrs:{placeholder:"请选择"+e.name,readonly:"",disabled:e.disabled},model:{value:e.selection.name,callback:function(t){e.$set(e.selection,"name",t)},expression:"selection.name"}},[n("el-button",{attrs:{slot:e.disabled?"":"append",icon:"el-icon-search"},on:{click:e.showSelectDialog},slot:e.disabled?"":"append"})],1)},a=[],r=(n("7514"),n("7f7f"),n("f61f")),s=n("796d"),o=n.n(s),l={name:"TreeSelector",props:{name:{default:"树节点"},disabled:{default:!1},value:{default:""},idKey:{default:"id"},nameKey:{default:"name"},pIdKey:{default:"pId"},rootId:{default:"0"},disabledIds:{default:function(){return[]}},recordUrl:{default:""},listUrl:{default:"",required:!0},dataKey:{default:"data"},dataIdKey:{default:"id"},dataNameKey:{default:"name"},width:{default:"250px"},height:{default:"500px"}},data:function(){return{selection:{name:""}}},watch:{value:function(e){this.selection[this.idKey]!==e&&this.initData()}},methods:{getDataById:function(e){var t=this,n=this.recordUrl||this.listUrl;return n=t.$$utils.appendParamStr(n,"".concat(this.dataIdKey,"=").concat(e,"&rootId=").concat(this.rootId)),t.$$utils.axiosRequest(n,"获取".concat(t.name,"指定数据"))},initData:function(){var e=this;e.value?e.getDataById(e.value).then((function(t){if(t){var n=t[e.dataNameKey];!n&&t[0]&&t[0][e.dataIdKey]===e.value&&(n=t[0][e.nameKey]||t[0][e.dataNameKey]),!n&&t.list&&t.list[0][e.dataIdKey]===e.value&&(n=t.list[0][e.dataNameKey]),e.selection[e.nameKey]=n}else e.selection[e.nameKey]=""})):e.selection[e.nameKey]=""},showSelectDialog:function(){var e=this,t={url:encodeURI(e.listUrl),idKey:e.idKey,nameKey:e.nameKey,selectId:e.value||""};e.$$utils.openLayerDialog({title:"选择".concat(e.name),width:e.width,height:e.height,url:"".concat(r["a"].assetsContext,"/pages/treeSelect.html?").concat(o.a.stringify(t)),maxmin:!1,closeBtn:0,yes:function(t,n){var i=n.find("iframe")[0].contentWindow.tree,a=i.getSelectedNodes();return a.length>0&&(e.selection=a[0],e.$emit("input",e.selection[e.idKey]),e.getDataById(e.selection[e.idKey]).then((function(t){e.$emit("change",t)}))),e.$$utils.getLayerInstance().close(t),!0},btn2:function(){e.$emit("input",null),e.$emit("change",null)}})}},mounted:function(){this.initData()}},c=l,u=n("2877"),d=Object(u["a"])(c,i,a,!1,null,"a8f88f2c",null);t["default"]=d.exports},"7a41":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dashboard-container"},[e.readonly?e._e():n("draggable-button",{attrs:{"initial-button":e.buttons,top:"100px",right:"2px","locomotive-title":"面板设置"}}),n("dashboard",e._b({ref:"dashboard",attrs:{readonly:e.readonly},on:{"close-widget":e.closeWidget,"redirect-from-widget":e.redirectToUrl,"toggle-lock-widget":e.toggleLockWidget,"toggle-collapse-widget":e.toggleCollapseWidget,"replace-content":e.replaceNodeInWidget}},"dashboard",e.dashboard,!1))],1)},a=[],r=n("bd86"),s=n("01c8"),o=(n("8615"),n("20d6"),n("55dd"),n("7514"),n("ac6a"),n("75fc")),l=n("cebc"),c=(n("c5f6"),n("6762"),n("2fdb"),n("aef6"),n("a481"),n("722d")),u=n("012c"),d=n("3445"),h=n("471d"),f={name:"DashboardContainer",components:{DraggableButton:h["default"],Dashboard:u["default"]},props:{id:{type:String,required:!0},accessType:{default:"view"},title:String,margin:{default:"10, 10"},onSaveDesign:{default:function(){}},viewMode:{default:"display"},widgetList:Array,layoutJson:String,css:String,reloadInterval:{default:0},componentRegistry:Object},data:function(){var e=this;return{buttons:[{id:"reset-design",title:"重置设计",icon:"el-icon-refresh-left",onClick:function(){e.dashboard=e.$$utils.jsonCopy(e.initialDashboard)}},{id:"change-widgets",title:"变更窗口",icon:"el-icon-money",onClick:function(){e.showWidgetSelectDialog({initialSelected:e.dashboard.widgetList.map((function(e){return e.id})).join(",")},e.regeneratorWidgetList)}},{id:"save-design",title:"保存设计",icon:"el-icon-finished",onClick:e.saveDesign},{id:"change-dashboard",title:"更换Dashboard",icon:"el-icon-s-grid",onClick:e.showDashboardSelector}],dashboard:{},initialDashboard:{},breakpoint:"lg",initialCss:this.css,initialLayouts:this.layouts,tempLayouts:[],initialWidgetsInfo:this.widgetsInfo,initialInterval:-1,currentCss:this.css,currentLayouts:[],currentWidgetsInfo:this.widgetsInfo,currentInterval:-1,maxModalVisible:!1,maxWidgetInfo:{},minimizedWidgets:{},intervalIns:null}},computed:{readonly:function(){return"view"===this.accessType},layouts:function(){var e=[];return this.layoutJson&&(e="string"===typeof this.layoutJson?this.$$utils.tryParseJSON(this.dashboard.layoutJson.replace(/;/g)):this.layoutJson),e},widgetsInfo:function(){var e=this;return this.widgetList?this.widgetList.map((function(t){return e.genWidgetInfo(t,e.accessType.endsWith("Edit"))})):[]},marginArr:function(){if(this.margin&&this.margin.includes(",")){var e=this.margin.indexOf(",");return[Number(this.margin.substring(0,e)),Number(this.margin.substring(e+1,this.margin.length))]}return[10,10]}},watch:{id:function(e){this.getEntity(e)}},methods:{getEntity:function(e){var t=this,n=this;if("string"===typeof e&&(e={id:e}),e.id)return c["a"].dashboard.getEntity(e).then((function(e){var i=e.data;n.dashboard=t.initDashboard(i),n.initialDashboard=t.initDashboard(i)}))},initDashboard:function(e){var t=Object(d["getLayout"])(e.layoutJson);this.initialLayouts=this.$$utils.jsonCopy(t);var n=this.componentRegistry.getComponentList().filter((function(e){return t.map((function(e){return e.i})).indexOf(e.id)>-1}));return Object(l["a"])({},e,{layoutJson:t,widgetList:this.enrichWidget([].concat(Object(o["a"])(e.widgetList),Object(o["a"])(n)),t)})},changeWidgets:function(){this.showWidgetSelectDialog({initialSelected:this.dashboard.widgetList.map((function(e){return e.id})).join(",")},this.regeneratorWidgetList)},showDashboardSelector:function(){var e=this;e.$$utils.openLayerDialog({title:"变更Dashboard",width:"265px",height:"410px",el:"dashboardTree",url:"/dashboard/dashboardSelectForm",props:{initialChecked:e.dashboard.id},onConfirm:function(t,n){e.getEntity(t.value).then((function(e){n()}))}})},showWidgetSelectDialog:function(e,t){var n=this;n.$$utils.openLayerDialog({title:"变更窗口",width:"565px",height:"410px",el:"widgetSelectForm",url:"/dashboard/widgetSelectForm",props:e,onConfirm:function(e,n){t(e.selectedWidgets,n)}})},regeneratorWidgetList:function(e,t){var n=this,i=[],a=[];if(e.length>0){var r=[];e.forEach((function(e){var t=n.dashboard.widgetList.find((function(t){return t.id===e.id}));if(t){i.push(t);var s=Object(d["getLayout"])(n.$refs.dashboard.layout).find((function(e){return e.i===t.id}));s?a.push(s):r.push(t)}else i.push(e),r.push(e)})),r.length>0&&r.forEach((function(e){var t=e.parameters,i=t.recommendWidth,r=t.recommendHeight,s=t.static,o=t.isCollapsed,l=n.findRightBottom(a,0),c=l.x,u=l.y;a.push({i:e.id,x:c,y:u,w:i||6,h:o?1:r||6,static:s||o})}))}n.dashboard=Object(l["a"])({},n.dashboard,{layoutJson:a,widgetList:n.enrichWidget(i,a)}),t()},findRightBottom:function(e,t){var n=e.filter((function(e){return e.x===t})).sort((function(e,t){return t.y-e.y}));if(n[0]){var i=n[0],a=i.x,r=i.y,s=i.w;return a+s+4>=12?{x:0,y:r+7}:this.findRightBottom(e,a+s)}return{x:t,y:0}},calcNextLayout:function(e,t){return e+=4,e>=12&&(e-=12,t+=7),e<0&&(e=0),{x:e,y:t}},saveDesign:function(){var e=Object(l["a"])({},this.dashboard,{layoutJson:JSON.stringify(this.dashboard.layoutJson)});e.widgetList.forEach((function(e){delete e.vNode,delete e.instance}));var t=this;c["a"].dashboard.save(e).then((function(e){"success"===e.type&&(t.$$utils.direwolfCommonTips("success","保存Dashboard设计成功"),t.dashboard.lockVersion+=1)}))},resetLayout:function(){this.dashboard=Object(l["a"])({},this.initialDashboard)},closeWidget:function(e){var t=this.dashboard,n=t.layoutJson,i=t.widgetList,a=n.findIndex((function(t){return t.i===e}));n.splice(a,1);var r=i.findIndex((function(t){return t.id===e}));i.splice(r,1)},redirectToUrl:function(e){var t=this.$$config.adminPath,n=this.dashboard.widgetList.find((function(t){return t.id===e})),i="".concat(t).concat(n.parameters.redirectTo),a=this.$$utils.resource.getUserMenuMap(t),r=Object.values(a).map((function(e){return e.path}));r.indexOf(i)>-1?this.$router.push(i):this.$$utils.getTargetWindow().open(n.parameters.redirectTo)},enrichWidget:function(e,t){var n=this;return t.forEach((function(t){var i=e.find((function(e){return e.id===t.i}));if(i){if("string"===typeof i.parameters&&(i.parameters=JSON.parse(i.parameters.replace(/"/g,'"'))),"vNode"===i.vizType){var a=n.componentRegistry.getComponent(i.id);i.vNode=n.$createElement(a.instance,{props:a.props})}i.isLocked=t.static||!1,i.isCollapsed=1===t.h||!1}})),e},toggleLockWidget:function(e){var t=this.dashboard.widgetList.find((function(t){return t.id===e}));t.isLocked=!t.isLocked;var n=this.dashboard.layoutJson.find((function(e){return e.i===t.id}));n.static=!n.static},toggleCollapseWidget:function(e){var t=this.dashboard.widgetList.find((function(t){return t.id===e}));t.isCollapsed=!t.isCollapsed;var n=this.dashboard.layoutJson.find((function(e){return e.i===t.id}));if(t.isCollapsed)this.tempLayouts=this.$$utils.jsonCopy(this.dashboard.layoutJson),n.h=1,!this.readonly&&(n.isResizable=!1);else{var i,a=this.tempLayouts.find((function(e){return e.i===t.id}));a||(a=this.initialLayouts.find((function(e){return e.i===t.id}))),i=a&&1!==a.h?a.h:t.recommendHeight||6,n.h=i<2?6:i,!this.readonly&&(n.isResizable=!0)}this.$refs.dashboard.$refs.grid.layoutUpdate(),this.$refs.dashboard.$refs.widget.find((function(t){return t.id===e})).resetStyle()},replaceNodeInWidget:function(e){var t=this;this.showWidgetSelectDialog({disabledItems:t.dashboard.widgetList.map((function(e){return e.id})),params:{excludes:[e]}},(function(n,i){var a=Object(s["a"])(n),r=a[0],o=a.slice(1);if(o.length>0)t.$$utils.direwolfCommonTips("warning","只能选择一项");else{var l=t.dashboard.widgetList.findIndex((function(e){return e.id===r.id}));if(l>-1&&t.$$utils.direwolfCommonTips("warning","选择的组件已添加"),r&&r.id!==e){var c=t.dashboard.layoutJson.find((function(t){return t.i===e}));c.i=r.id;var u=t.dashboard.widgetList.findIndex((function(t){return t.id===e}));t.dashboard.widgetList.splice(u,1,r);var d=t.dashboard.widgetList[u].parameters,h=d.recommendWidth,f=d.recommendHeight;h&&f&&(h!==c.w||f!==c.h)&&t.$$utils.direwolfCommonTips("warning","选择的组件建议宽高与当前Widget不符"),i()}else t.$$utils.direwolfCommonTips("warning","未选择任何新组件")}}))},genWidgetInfo:function(e,t){return Object(l["a"])({key:e.id},e,{editable:t,onDisableDragging:this.onDisableDragging,onMaximized:this.onWidgetMaximized,onMinimized:this.onWidgetMinimized,showCloseBtn:!this.isFragment&&this.showTitle,onClose:this.onWidgetClose,eventForward:this.eventForward,eventLaunching:{},dashboardId:this.id})},eventForward:function(e,t,n){"function"===typeof e&&e(t,n)},onWidgetMaximized:function(e,t){var n=this.currentWidgetsInfo,i=this.maxWidgetInfo;if(e===i.id)this.maxModalVisible=!1,this.maxWidgetInfo={},this.currentWidgetsInfo=n?n.map((function(n){return n.id===e?Object(l["a"])({},n,{aspectState:t}):n})):[];else{var a=n.find((function(t){return t.id===e}));this.maxModalVisible=!0,this.maxWidgetInfo=Object(l["a"])({},a,{aspectState:t})}},onWidgetMinimized:function(e){var t=Object.assign({},this.minimizedWidgets),n=2,i=this.state,a=i.breakpoint,s=i.initialLayouts,o=this.currentLayouts[a]||[],l=s[a].find((function(t){return t.i===e})).h,c=o.find((function(t){return t.i===e}))["h"];e in t?c>2?t[e]=2:(n=t[e],2===n&&(n=l),delete t[e]):2!==c?t[e]=c:n=l,this.minimizedWidgets=t,this.currentLayouts=Object(r["a"])({},a,o.map((function(t){return t.i===e?Object.assign({},t,{h:n}):t})))},onWidgetClose:function(e){var t=this.currentWidgetsInfo.filter((function(t){return t.id!==e})),n={currentLayouts:Object(r["a"])({},this.breakpoint,this.currentLayouts[this.breakpoint].filter((function(t){return t.i!==e}))),currentWidgetsInfo:t};this.returnNewDesign(n)},returnNewDesign:function(e){var t=this.props.onDesignChanged;"function"===typeof t&&t(e)},onLayoutChange:function(e,t){var n=this.props.onLayoutChange;"function"===typeof n&&n(e,t)},onCustomizeStyle:function(){},onChangeInterval:function(){var e=this,t=this.currentInterval||-1,n=-1===t||0===t?"不自动刷新":"刷新间隔为".concat(t,"秒");this.$prompt("当前Dashboard".concat(n,",请在输入框中输入新的间隔时间(秒):"),"重设刷新间隔",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"number",inputValidator:function(t){e.$$utils.validator.checkNumberWithRules({},t)}}).then((function(t){var n=t.value;e.currentInterval=n,e.$$utils.direwolfCommonTips("success","保存设计后刷新页面,使刷新间隔生效"),e.returnNewDesign({currentInterval:n})})).catch((function(){}))}},mounted:function(){this.getEntity({id:this.id})}},p=f,m=(n("5722"),n("2877")),g=Object(m["a"])(p,i,a,!1,null,null,null);t["default"]=g.exports},8593:function(e,t,n){"use strict";var i=n("e268"),a=n.n(i);a.a},8799:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footer"},[e.showVersion?n("div",{staticClass:"version",domProps:{innerHTML:e._s(e.versionText)}}):e._e(),e.showcopyright?n("span",{domProps:{innerHTML:e._s(e.copyrightText)}}):e._e()])},a=[],r={name:"Footer",props:{copyright:{default:""},version:{default:""},showVersion:{default:!0},showcopyright:{default:!0}},computed:{copyrightText:function(){return this.copyright||"Copyright © 2018-".concat(this.$$utils.getFormattedDate("yyyy")," ").concat(this.$$config.siteName,".")},versionText:function(){return this.version||"<b>Version</b> ".concat(this.$$config.version)}}},s=r,o=(n("6816"),n("2877")),l=Object(o["a"])(s,i,a,!1,null,null,null);t["default"]=l.exports},"8bbf":function(e,t){e.exports=Vue},"8cd4":function(e,t,n){},9170:function(e,t,n){"use strict";var i=n("1422"),a=n.n(i);a.a},"947c":function(e,t,n){"use strict";var i=n("b821"),a=n.n(i);a.a},"95c7":function(e,t,n){},a3c2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{ref:"navBar",staticClass:"nav-bar"},[n("scroll-pane",{staticClass:"nav-bar-scroll"},e._l(e.navsInBar,(function(t,i){return n("router-link",{key:i.path,staticClass:"nav-bar-tag",class:e.$route.path===t.path?" active":"",attrs:{to:t.path},nativeOn:{contextmenu:function(n){return n.preventDefault(),e.openMenu(t,i,n)}}},[n("i",{staticClass:"point"}),e._v("\n "+e._s(t.title)+"\n "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.path!==e.indexPath&&t.path!==e.indexPath+"/",expression:"v.path !== indexPath && v.path !== `${indexPath}/`"}],staticClass:"close-box"},[n("span",{staticClass:"el-icon-close",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.closeSelectedTag(i)}}})])])})),1),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.contextMenuVisible,expression:"contextMenuVisible"}],staticClass:"nav-bar-context-menu",style:{left:e.left+"px",top:e.top+"px"}},[n("li",{on:{click:function(t){return e.showInNewTab()}}},[e._v("在新页签打开")]),n("li",{on:{click:function(t){return e.refreshSelectedTag()}}},[e._v("刷新")]),n("li",{directives:[{name:"show",rawName:"v-show",value:e.showCloseMenu,expression:"showCloseMenu"}],on:{click:function(t){return e.closeSelectedTag()}}},[e._v("关闭")]),n("li",{on:{click:function(t){return e.closeOthersTags()}}},[e._v("关闭其他")]),n("li",{on:{click:function(t){return e.closeAllTags()}}},[e._v("关闭所有")])])],1)},a=[],r=(n("ac6a"),n("75fc")),s=(n("a481"),n("20d6"),n("aef6"),n("6d15")),o={name:"NavBar",components:{ScrollPane:s["default"]},props:{indexUrl:{default:""},indexTitle:{default:"首页"}},data:function(){return{navsInBar:[],selectedTag:-1,contextMenuVisible:!1,showCloseMenu:!1,top:0,left:0}},computed:{indexPath:function(){var e=this.indexUrl||this.$$config.adminIndex;return e.endsWith("/")?e.substring(0,e.length-1):e}},watch:{$route:{handler:function(){var e=this.$route,t=e.path,n=e.meta,i=n.title,a=n.id,r=e.matched,s=this.navsInBar.findIndex((function(e){return e.path===t}));-1!==s||r.length>2||this.navsInBar.push({path:t,title:i,id:a})},deep:!0},contextMenuVisible:function(e){e?document.body.addEventListener("click",this.closeMenu):document.body.removeEventListener("click",this.closeMenu)}},methods:{closeSelectedTag:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedTag,t=this.navsInBar[e],n=t.path;this.$emit("nav-close",t.id),this.navsInBar.splice(e,1),n===this.$route.path&&this.$router.push(this.navsInBar[this.navsInBar.length-1].path)},showInNewTab:function(){var e=this.navsInBar[this.selectedTag];if(e){var t=this.$$config,n=t.adminPath,i=t.projectContext;window.open("".concat(i).concat(e.path.substr(n.length)),"_blank")}},refreshSelectedTag:function(){var e=this.navsInBar[this.selectedTag];e&&this.$router.replace({path:e.path,query:{t:Date.now()}})},openMenu:function(e,t,n){var i=this.$el.getBoundingClientRect().left,a=n.clientX+15,r=this.$refs.navBar;r.className.indexOf("fixedNavBar")>-1?(this.left=a-i,this.top=n.clientY-50):(this.left=a,this.top=n.clientY),this.showCloseMenu=t>0,this.selectedTag=t,this.contextMenuVisible=!0},closeOthersTags:function(){this.closeTags(!1)},closeAllTags:function(){this.closeTags(!0)},closeTags:function(e){var t=this,n=Object(r["a"])(Array(t.navsInBar.length).keys());n.splice(t.selectedTag,e?0:1),n.reverse().pop(),n.forEach((function(e){return t.closeSelectedTag(e)}))},closeMenu:function(){var e=this;this.contextMenuVisible=!1,this.selectedTag=this.navsInBar.findIndex((function(t){return t.id===e.$route.meta.id}))}},mounted:function(){var e=this.indexPath,t=this.navsInBar,n=this.$route,i=n.path,a=n.meta,r=a.title,s=a.id,o=this.$$config;if(e&&t.push({path:e,title:this.indexTitle}),i!==o.portalPath&&i!==e&&i!=="".concat(e,"/")){var l=this.navsInBar.findIndex((function(e){return e.path===i}));-1===l&&t.push({path:i,title:r,id:s})}}},l=o,c=(n("1d55"),n("2877")),u=Object(c["a"])(l,i,a,!1,null,"46d2392c",null);t["default"]=u.exports},a4fa:function(e,t,n){},aba7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table-select-panel",e._g({ref:"userPanel",attrs:{sourceParams:{userAccount:e.userAccount,userName:e.userName,orgId:e.orgIdData,roleId:e.roleId},sourceColumns:e.sourceColumns,resultColumns:e.resultColumns,value:e.value,"source-custom-sort":e.sortFixMethod,"get-data-list":e.getDataList,"result-extra-param":{injectCompany:"0"}},on:{input:e.processValueChange,change:e.userRecordChange},scopedSlots:e._u([{key:"sourceQuery",fn:function(){return[n("el-col",{attrs:{span:8}},[n("el-input",{attrs:{placeholder:"账号"},on:{change:e.search},model:{value:e.userAccount,callback:function(t){e.userAccount=t},expression:"userAccount"}})],1),n("el-col",{attrs:{span:8}},[n("el-input",{attrs:{placeholder:"姓名"},on:{change:e.search},model:{value:e.userName,callback:function(t){e.userName=t},expression:"userName"}})],1),n("el-col",{attrs:{span:8}},[n("org-selector",{attrs:{rootId:e.companyId,name:"部门"},on:{change:e.search},model:{value:e.orgIdData,callback:function(t){e.orgIdData=t},expression:"orgIdData"}})],1)]},proxy:!0}])},e.$listeners))},a=[],r=(n("55dd"),n("386d"),n("f1ba")),s=n("596d"),o={name:"UserSelectPanel",components:{OrgSelector:r["default"],TableSelectPanel:s["default"]},props:{value:{default:function(){return[]}},roleId:{default:""},orgId:{default:""}},data:function(){return{userAccount:"",userName:"",orgIdData:"",sourceColumns:[{prop:"userName",label:"姓名"},{prop:"userAccount",label:"账号"},{prop:"companyName",label:"单位"},{prop:"orgName",label:"部门"}],resultColumns:[{prop:"userName",label:"姓名"},{prop:"userAccount",label:"账号"}],selections:this.value,selectedData:[]}},computed:{companyId:function(){return this.orgId||this.$$utils.user.getLoginUser().companyId},getDataList:function(){return this.$$utils.user.getCommonUserList}},watch:{orgId:function(e){this.orgIdData=e},value:function(e){this.selections=e}},methods:{search:function(){this.$refs.userPanel.search()},processValueChange:function(e){this.selections=e,this.$emit("input",e)},getSelectionIds:function(){return this.selections},sortFixMethod:function(e){return"companyName"===e.sort?e.sort="company_code":"orgName"===e.sort&&(e.sort="org_id"),e},userRecordChange:function(e){this.selectedData=e,this.$emit("change",this.selectedData)},getSelectedData:function(){return this.selectedData}}},l=o,c=(n("8593"),n("2877")),u=Object(c["a"])(l,i,a,!1,null,"781f8ebc",null);t["default"]=u.exports},abb1:function(e,t,n){"use strict";n.r(t);n("7514");var i=n("cebc"),a=(n("ac6a"),n("a8ee")),r=n("40ca"),s=[];function o(e){e.length>0&&e.forEach((function(e){return l(e)}))}function l(e){var t=e.parameters,n=void 0===t?{}:t,o=e.title,l=e.instance,c=e.id;if(!o||!l)return Object(a["e"])("error","请传入组件的参数、标题和实例"),!1;if("undefined"===typeof l.render)return Object(a["e"])("error","请传入Vue组件实例"),!1;if(s.map((function(e){return e.id})).indexOf(c)>-1)return r["a"].platformWarning("注册的组件名称".concat(c,"已存在,重复组件已被跳过")),!1;var u=e;u.vizType="vNode",u.parameters=Object(i["a"])({recommendHeight:e.recommendHeight||6,recommendWidth:e.recommendWidth||8,showTitle:!1!==e.showTitle},n),s.push(Object(i["a"])({},e,{vizType:"vNode"}))}function c(){return[].concat(s)}function u(e){var t=s.find((function(t){return t.id===e}));return t||(Object(a["e"])("error","指定的窗口组件不存在,无法正常显示"),{})}t["default"]={getComponent:u,getComponentList:c,registerComponent:l,registerComponents:o}},acaf:function(e,t,n){},b050:function(e,t,n){"use strict";var i=n("8cd4"),a=n.n(i);a.a},b821:function(e,t,n){},c35d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-vis",{attrs:{name:e.name}},[n("v-chart",{attrs:{options:e.polar}})],1)},a=[],r=n("6678"),s=n.n(r),o=n("0234"),l=(n("ef97"),n("2f73"),{name:"ChartVis",components:{BaseVis:o["default"],"v-chart":s.a},props:{id:{default:"".concat((new Date).getTime())},name:{default:"baseVis"},showTitle:{default:!0},bodyStyle:{},description:{default:""},isFragment:{default:!1}},data:function(){for(var e=[],t=0;t<=360;t++){var n=t/180*Math.PI,i=Math.sin(2*n)*Math.cos(2*n);e.push([i,t])}return{polar:{title:{text:"极坐标双数值轴"},legend:{data:["line"]},polar:{center:["50%","54%"]},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},angleAxis:{type:"value",startAngle:0},radiusAxis:{min:0},series:[{coordinateSystem:"polar",name:"line",type:"line",showSymbol:!1,data:e}],animationDuration:2e3}}}}),c=l,u=n("2877"),d=Object(u["a"])(c,i,a,!1,null,"50b5b1f6",null);t["default"]=d.exports},c7e0:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("dashboard-container",{attrs:{id:e.id,accessType:e.accessType,"component-registry":e.componentRegistry}})},a=[],r=n("722d"),s=n("7a41"),o={name:"DashboardDisplay",props:{accessType:{default:"view"}},components:{DashboardContainer:s["default"]},data:function(){return{id:"",componentRegistry:this.$$widgetUtils.componentRegistry}},mounted:function(){var e=this;r["a"].dashboard.getUserDashboard().then((function(t){var n=t.data;if(n.userDashboard){var i=n.userDashboard.filter((function(e){return"1"===e.defaultOrNot}));i.length>0?e.id=i[0].id:n.adminDashboard&&n.adminDashboard[0]?e.id=n.adminDashboard[0].id:e.$$utils.direwolfCommonTips("error","请设置默认展示的Dashboard")}}))}},l=o,c=n("2877"),u=Object(c["a"])(l,i,a,!1,null,"f5bb0c08",null);t["default"]=u.exports},cd6c:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navMenu"},[e._l(e.navMenus,(function(t){return[t.children?n("el-submenu",{directives:[{name:"show",rawName:"v-show",value:"1"===t.visiable,expression:"navMenu.visiable === '1'"}],key:t.path,class:e.showIcon?"show-icon":"",attrs:{index:t.path}},[n("template",{slot:"title"},[n("i",{class:t.menuIcon&&["fa",t.menuIcon]}),n("span",[e._v(e._s(t.resName))])]),n("NavMenu",{attrs:{"show-icon":!0,navMenus:t.children}})],2):n("el-menu-item",{directives:[{name:"show",rawName:"v-show",value:"1"===t.visiable,expression:"navMenu.visiable === '1'"}],key:t.path,attrs:{index:t.path}},[n("i",{class:t.menuIcon&&["fa",t.menuIcon]}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.resName))])])]}))],2)},a=[],r={name:"NavMenu",props:["navMenus","showIcon"],data:function(){return{}},methods:{}},s=r,o=(n("5a75"),n("2877")),l=Object(o["a"])(s,i,a,!1,null,null,null);t["default"]=l.exports},cebe:function(e,t){e.exports=axios},cfde:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-body",style:{marginLeft:this.leftMenuWidth+"px"}},[n("nav-bar",{directives:[{name:"show",rawName:"v-show",value:e.showTabs,expression:"showTabs"}],class:{fixedNavBar:e.fixedTabs},style:"margin-top: "+this.headerHeight+"px; width: "+e.navBarWidth,attrs:{id:"nav-bar","index-url":e.indexUrl,"index-title":e.indexTitle},on:{"nav-close":e.handleNavClose}}),n("div",{class:["main-container"].concat(e.classNames),style:{minHeight:"calc(100vh - "+e.bodyMinusHeight+"px)",marginTop:e.bodyMinusTop+"px"},attrs:{id:"mainContainer"}},[n("transition",{attrs:{name:"fade"}},[n("el-card",{staticClass:"box-card"},[n("keep-alive",[n("router-view",{directives:[{name:"show",rawName:"v-show",value:!e.$route.meta.isIFrame,expression:"!$route.meta.isIFrame"}],key:e.routerViewKey})],1),n("el-tabs",{directives:[{name:"show",rawName:"v-show",value:e.$route.meta.isIFrame,expression:"$route.meta.isIFrame"}],style:{minHeight:e.bodyMinHeight},attrs:{id:"iframe-parent"},model:{value:e.activeIframe,callback:function(t){e.activeIframe=t},expression:"activeIframe"}},e._l(Object.entries(e.iframeStore),(function(t){var i=t[0],a=t[1];return n("el-tab-pane",{key:i,attrs:{name:i}},[n("IFramePage",{attrs:{url:a,id:i,"min-height":e.bodyMinHeight}})],1)})),1)],1)],1)],1),e.showFooter?n("body-footer",e._b({},"body-footer",e.$attrs,!1)):e._e()],1)},a=[],r=n("cebc"),s=n("e8de"),o=n("8799"),l=n("a3c2"),c={name:"PageContainer",components:{BodyFooter:o["default"],IFramePage:s["default"],NavBar:l["default"]},props:{indexUrl:{default:""},indexTitle:{default:"首页"},classNames:{default:function(){return[]}},showTabs:{default:!0},fixedTabs:{default:!0},leftMenuWidth:{default:200},headerHeight:{default:50},showFooter:{default:!0}},data:function(){return{iframeStore:{},activeIframe:""}},computed:{routerViewKey:function(){return this.$route.fullPath},bodyMinusTop:function(){return this.fixedTabs?this.headerHeight+(this.showTabs?38:0):0},bodyMinusHeight:function(){return this.bodyMinusTop+50+1},bodyMinHeight:function(){return"calc(100vh - ".concat(this.bodyMinusHeight+48,"px)")},navBarWidth:function(){return this.fixedTabs&&this.leftMenuWidth?"calc(100% - ".concat(this.leftMenuWidth,"px)"):"100%"}},methods:{handleNavClose:function(e){delete this.iframeStore[e],this.iframeStore=Object(r["a"])({},this.iframeStore)},createNewIframe:function(e){var t=e.query,n=e.meta,i=n.id,a=n.url,r=this,s=r.$$utils.appendParamStr(a,r.$$utils.stringifyQueryParams(t)),o=t.t;if(o&&r.iframeStore[i])return r.$set(r.iframeStore,i,s),void(r.activeIframe!==i&&r.$nextTick((function(){r.activeIframe=i})));if(!r.iframeStore[i]){var l=r.$$utils.getQueryObject(s),c=sessionStorage.getItem("soaConnected");if(l&&"T"===l.soa&&"T"!==c)return void r.$$utils.axiosRequest(r.$$utils.resource.getBackServerUrl("getAccessJWTUrl"),"获取认证信息").then((function(e){a="".concat(s,"&token=").concat(e.data),sessionStorage.setItem("soaConnected","T"),r.$set(r.iframeStore,i,s),r.$nextTick((function(){r.activeIframe=i}))}));r.$set(r.iframeStore,i,s)}r.$nextTick((function(){r.activeIframe=i}))},createOrRefreshIframe:function(e){e.meta.isIFrame&&this.createNewIframe(e)}}},u=c,d=(n("947c"),n("2877")),h=Object(d["a"])(u,i,a,!1,null,null,null);t["default"]=h.exports},da5a:function(e,t,n){},e08b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-tabs",{staticStyle:{"box-shadow":"none"},attrs:{type:"border-card"},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[n("el-tab-pane",{attrs:{label:"用户选择",name:"userSelectPanel"}},[n("user-select-panel",{attrs:{value:e.userIds},on:{input:e.userSelectionChange,change:e.userRecordChange}})],1),n("el-tab-pane",{attrs:{label:"角色选择",name:"roleSelectPanel",lazy:""}},[n("role-select-panel",{attrs:{value:e.roleIds},on:{input:e.roleSelectionChange,change:e.roleRecordChange}})],1),n("el-tab-pane",{attrs:{label:"单位选择",name:"orgSelectPanel",lazy:""}},[n("org-select-panel",{attrs:{value:e.orgIds},on:{input:e.orgSelectionChange,change:e.orgRecordChange}})],1)],1)},a=[],r=n("aba7"),s=n("44a6"),o=n("fdc2"),l={name:"TriDimensionSelector",components:{RoleSelectPanel:s["default"],UserSelectPanel:r["default"],OrgSelectPanel:o["default"]},props:{value:{default:function(){return{userIds:[],roleIds:[],orgIds:[]}}}},data:function(){return{activeTab:"userSelectPanel",userIds:[],roleIds:[],orgIds:[],selectedData:{}}},computed:{selections:function(){return{userIds:this.userIds,roleIds:this.roleIds,orgIds:this.orgIds}}},watch:{value:function(e,t){JSON.stringify(e)!==JSON.stringify(t)&&JSON.stringify(e)!==JSON.stringify(this.selections)&&(this.userIds=e.userIds,this.roleIds=e.roleIds,this.orgIds=e.orgIds)}},methods:{userSelectionChange:function(e){this.userIds=e,this.$emit("input",this.selections)},roleSelectionChange:function(e){this.roleIds=e,this.$emit("input",this.selections)},orgSelectionChange:function(e){this.orgIds=e,this.$emit("input",this.selections)},userRecordChange:function(e){this.selectedData.users=e,this.$emit("change",this.selectedData)},roleRecordChange:function(e){this.selectedData.roles=e,this.$emit("change",this.selectedData)},orgRecordChange:function(e){this.selectedData.orgs=e,this.$emit("change",this.selectedData)},getSelectionIds:function(){return this.selections},getSelectedData:function(){return this.selectedData}}},c=l,u=n("2877"),d=Object(u["a"])(c,i,a,!1,null,"591c89c6",null);t["default"]=d.exports},e268:function(e,t,n){},e630:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ztree",staticStyle:{padding:"15px 20px"},attrs:{id:"tree"}})},a=[],r=(n("7514"),n("28a5"),n("ac6a"),n("9d32")),s={name:"ZTree",props:{selections:{default:function(){return[]}},multiple:{default:!1},checkboxType:{default:function(){return{Y:"ps",N:"ps"}}},enableQuickSelect:{default:!1},extIds:{default:""},idKey:{default:"id"},url:{default:"",required:!0},pIdKey:{default:"pId"},rootPId:{default:"0"},nameKey:{default:"name"}},data:function(){return{selectionsData:this.selections,treeObj:null}},watch:{selections:function(e){var t=this;JSON.stringify(e)!==JSON.stringify(this.selectionsData)&&(this.selectionsData=e,e&&(this.treeObj.checkAllNodes(!1),e.forEach((function(n){var i=e.map((function(e){return e.id})).indexOf(n.id)>-1;t.toggleNodeSelection(n,i)}))))}},methods:{toggleNodeSelection:function(e,t){this.multiple?("undefined"===typeof t&&(t=-1===this.selectionsData.indexOf(e.id)),this.treeObj.checkNode(e,t,!1,!1)):t?this.treeObj.selectNode(e):this.treeObj.cancelSelectedNode(e)},checkTreeNodes:function(){var e=this;this.selectionsData.length?this.selectionsData.forEach((function(t){var n=e.treeObj.getNodeByParam("id",t,null);n&&(e.multiple?(e.treeObj.checkNode(n,!0,!1,!1),n.getParentNode()&&!n.getParentNode().open&&e.treeObj.expandNode(n.getParentNode(),!0)):(e.treeObj.selectNode(n),e.treeObj.expandNode(n,!0,!1,!0)))})):this.treeObj.expandNode(this.treeObj.getNodes()[0],!0)}},mounted:function(){var e=this,t=this.extIds.split(","),n={view:{selectedMulti:!1,dblClickExpand:!1},check:{enable:!1},data:{simpleData:{enable:!0,idKey:this.idKey,pIdKey:this.pIdKey,rootPId:this.rootPId},key:{name:this.nameKey}},callback:{onDblClick:function(e,n,i){if(i&&this.enableQuickSelect){if(-1!==$.inArray(i.id,t))return;top.$("#layui-layer"+top.layer.index).find(".layui-layer-btn0").click()}},onClick:function(t,n,i){e.$emit("node-click",i)},beforeClick:function(t,n){if(e.multiple)return e.treeObj.checkNode(n,!n.checked,!0,!0),!1},onCheck:function(){var t=e.treeObj.getCheckedNodes(!0);e.selectionsData=t.map((function(e){var t=e.id;return t})),e.$emit("nodes-check",e.selectionsData,t)}}};e.multiple&&(n.check={enable:e.multiple,chkStyle:"checkbox",nocheck:!1,chkboxType:e.checkboxType}),Object(r["a"])(this.url,"获取信息").then((function(t){var i=t.list?t.list:t.data?t.data:t;e.$emit("node-change",i),e.treeObj=$.fn.zTree.init($("#tree"),n,i),e.checkTreeNodes()}))}},o=s,l=n("2877"),c=Object(l["a"])(o,i,a,!1,null,"3468dae3",null);t["default"]=c.exports},e8de:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("iframe",{ref:e.id,style:{display:e.display,position:e.position,width:e.width,height:e.height},attrs:{src:e.targetUrl}})},a=[],r=(n("386d"),n("a481"),n("3b2b"),n("ffc1"),n("ac6a"),n("28a5"),n("768b")),s=(n("c5f6"),n("04ff"),{name:"IFramePage",props:{id:{default:"IFRAME_".concat(Math.ceil(1e8*Math.random()))},url:String,minHeight:String,display:{default:"initial"},position:{default:"relative"},width:{default:"100%"},height:String},data:function(){return{elementId:"",resizeIntervalIndex:-1,paintIntervalIndex:-1,runTimes:0,themeUpdated:!1,currentTheme:this.$$utils.theme.getDefaultThemeColor(),targetUrl:""}},watch:{url:function(e){this.targetUrl=this.activeEnableDebugger(e)}},methods:{resizeIframe:function(e){var t=this;t.runTimes>10&&window.clearInterval(this.resizeIntervalIndex);try{if(e.src&&t.getOrigin(e.src)===location.origin&&e.contentWindow&&e.contentWindow.document){var n=e.contentWindow,i=n.document,a=n.stopResizing;if(a)return void window.clearInterval(this.resizeIntervalIndex);if(i.body){var r=Number.parseInt(e.style.height),s=i.body.scrollHeight;r!==s?(e.style.height="".concat(s,"px"),i.body.style.overflowY="hidden",t.runTimes++):t.runTimes=0}return}window.clearInterval(this.resizeIntervalIndex)}catch(o){throw window.clearInterval(this.resizeIntervalIndex),o}},paintIframe:function(e){var t=this;try{if(e.src&&t.getOrigin(e.src)===location.origin&&e.contentWindow&&e.contentWindow.document){var n=e.contentWindow,i=n.document,a=n.stopPainting;if(a)return void window.clearInterval(this.paintIntervalIndex);var r=t.$$utils.theme.getCurrentTheme();r!==t.currentTheme&&(t.themeUpdated=!1);var s=i.getElementById("chalk-style");return void(t.themeUpdated&&s||(t.themeUpdated=!0,t.$$utils.theme.changeTheme(i,{newTheme:r,oldTheme:t.currentTheme}),t.currentTheme=r))}window.clearInterval(this.paintIntervalIndex)}catch(o){throw window.clearInterval(this.paintIntervalIndex),o}},getOrigin:function(e){var t=e.split("//"),n=Object(r["a"])(t,2),i=n[0],a=n[1];if(i&&a)return"".concat(i,"//").concat(a.split("/")[0])},activeEnableDebugger:function(e){return e=this.$$utils.injectParams(e),Object.entries(this.$route.params).forEach((function(t){var n=Object(r["a"])(t,2),i=n[0],a=n[1],s=new RegExp(":".concat(i),"g");e=e.replace(s,a)})),e=this.$$utils.appendParamStr(e,"v=".concat(this.$$utils.project.getCurrentVersion())),"".concat(e).concat(-1===location.search.indexOf("enableDebugger")?"":"&enableDebugger")}},mounted:function(){var e=this,t=e.url||e.$route.meta.url;e.targetUrl=e.activeEnableDebugger(t);var n=e.$refs[e.id];n.style.minHeight=e.minHeight,e.resizeIntervalIndex=setInterval((function(){e.resizeIframe(n)}),200),e.paintIntervalIndex=setInterval((function(){e.paintIframe(n)}),200)}}),o=s,l=(n("3416"),n("2877")),c=Object(l["a"])(o,i,a,!1,null,"246bf168",null);t["default"]=c.exports},e92b:function(e,t,n){},f097:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-upload",{ref:"upload",attrs:{"auto-upload":!1,name:"fileInput",headers:{Authorization:e.$$utils.permission.getAuthorization(),contentType:"multipart/form-data"},action:e.action,accept:e.isPictureCard?"image/*":e.accept,"on-remove":e.handleRemove,"on-change":e.handleChange,"on-success":e.handleSuccess,"on-error":e.handleError,"before-upload":e.handleBeforeUpload,"before-remove":e.handleBeforeRemove,"file-list":e.fileList,disabled:e.disabled,limit:e.limit,"http-request":e.uploadFileWithInfo,"list-type":e.listType,"on-exceed":e.handleExceed},on:{"hook:updated":e.handleUploadUpdated},scopedSlots:e._u([{key:"file",fn:function(t){var i=t.file;return e.isPictureCard?[n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:i.url,alt:""}}),e.isPictureCard?n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.previewPicture(t,i)}}},[n("i",{staticClass:"el-icon-zoom-in"})]),n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.saveFileToLocal(i)}}},[n("i",{staticClass:"el-icon-download"})]),e.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleBeforeRemove(i)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()]:void 0}}],null,!0)},[e.isPictureCard||e.autoUpload||e.disabled?e._e():n("el-button",{staticClass:"el-upload__extra-button",attrs:{size:"small",type:"primary",icon:"el-icon-upload"},on:{click:e.submitUpload}},[e._v("开始上传\n ")]),e.isPictureCard||e.disabled?e._e():n("el-button",{staticClass:"el-upload__extra-button",attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:e.clearAllFiles}},[e._v("清空全部\n ")]),e.isPictureCard?e._e():n("el-button",{staticClass:"el-upload__extra-button",attrs:{icon:"el-icon-download",size:"small"},on:{click:e.downloadCheckedFiles}},[e._v("下载文件\n ")]),e.isPictureCard||e.hideImagePreviewButton?e._e():n("el-button",{staticClass:"el-upload__extra-button",attrs:{icon:"el-icon-picture",size:"small"},on:{click:e.previewPicture}},[e._v("图片预览\n ")]),e.isPictureCard||e.disabled?e._e():n("el-button",{attrs:{slot:"trigger",icon:"el-icon-plus",size:"small"},slot:"trigger"},[e._v("选择文件\n ")]),e.isPictureCard&&!e.disabled?n("i",{staticClass:"el-icon-plus"}):e._e(),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},domProps:{innerHTML:e._s(this.assembleTip())},slot:"tip"})],1),n("el-image-viewer",{directives:[{name:"show",rawName:"v-show",value:e.showImageViewer,expression:"showImageViewer"}],attrs:{"url-list":e.previewSrcList,"on-close":e.closeImageViewer}})],1)},a=[],r=(n("5df3"),n("1c4c"),n("f559"),n("20d6"),n("75fc")),s=(n("7514"),n("cebc")),o=(n("28a5"),n("7f7f"),n("ac4d"),n("8a81"),n("ac6a"),n("3c76")),l=n("f61f"),c=n("38d5"),u=n("d974"),d=n("08a9"),h="".concat(o["a"],"/sys/attachment"),f={name:"fileUploader",components:{ElImageViewer:d["a"]},props:{value:String,accept:String,tip:String,limit:{default:10},listType:{default:"picture"},autoUpload:{default:!1},disabled:{default:!1},hideImagePreviewButton:{default:!1},maxSize:{default:0},beforeUpload:{default:void 0},storeType:{default:l["a"].storeType,validator:function(e){return!("file"===e&&"msa"===l["a"].backServerType)}},workspace:{default:""},uploadUrl:String,columns:{default:1}},data:function(){return{md5Check:!1,fileIdArr:[],fileDataStore:{},checkedFiles:[],fileList:[],showImageViewer:!1,previewSrcList:[]}},computed:{isPictureCard:function(){return"picture-card"===this.listType},action:function(){return l["a"].proxyPath+(this.uploadUrl||"".concat(h,"/uploadAttachment"))}},watch:{value:function(e){this.fileIdArr.join(",")!==e&&this.initFileList(e)},disabled:function(e){this.setTriggerVisibility(!e)}},methods:{setTriggerVisibility:function(e){var t=this;if(t.isPictureCard){var n=!0,i=!1,a=void 0;try{for(var r,s=t.$el.getElementsByClassName("el-upload")[Symbol.iterator]();!(n=(r=s.next()).done);n=!0){var o=r.value;o.style.display=e?"inline-block":"none"}}catch(l){i=!0,a=l}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}}},assembleTip:function(){var e="";if(this.disabled)e+="共 <b>".concat(this.fileList.length,"</b> 个文件");else if(!this.tip&&this.isPictureCard&&(e="只能上传图片文件"),e+=" 限制上传 <b>".concat(this.limit,"</b> 个文件,当前"),this.fileList.length>0?e+="已添加 <b>".concat(this.fileList.length,"</b> 个文件"):e+="未添加任何文件",this.maxSize>0){var t=this.maxSize/1024;e+=" 当前限制选择单个文件大小不得超过",e+=t<1?"<b>".concat(this.maxSize,"K</b>"):"<b>".concat(Math.floor(t),"M</b>")}return this.checkedFiles.length>0&&(e+=",已选中 <b>".concat(this.checkedFiles.length,"</b> 个文件")),e},handleChange:function(e,t){var n=this;if("ready"===e.status){if(this.maxSize>0&&e.size/1024>this.maxSize)return n.$$utils.direwolfCommonTips("error","文件大小超出限制,不允许上传"),t.pop(),!1;var i=u["a"].checkSameNameInList(t,e.name);if(i>-1&&i!==t.length-1)return n.$$utils.direwolfCommonTips("warning","相同名称的文件已经被选择"),void t.pop();var a=e.name.split(".").pop();u["a"].isPicture(a)||(e.url=u["a"].getThumbnailByExt(a)),n.fileList=t;var r={id:e.uid,name:e.name,type:e.raw.type,lastModifiedDate:e.raw.lastModified,size:e.size,workspace:n.workspace,storeType:n.storeType,path:n.$$utils.getFormattedDate("yyyy/MM/dd")};n.md5Check?u["a"].appendMD5IntoFileObject(e,(function(e){n.fileDataStore[r.id]=Object(s["a"])({md5:e.md5},r),(n.autoUpload||n.isPictureCard)&&n.$nextTick((function(){return n.submitUpload()}))})):(n.fileDataStore[r.id]=r,(n.autoUpload||n.isPictureCard)&&n.$nextTick((function(){return n.submitUpload()})))}},handleBeforeUpload:function(e){var t=e.uid,n=this;return new Promise((function(e,i){var a=n.fileList.find((function(e){return e.uid===t}));if(n.md5Check){var r=a.md5;n.$$utils.axiosRequest("".concat(h,"/md5Check"),"文件秒传检查","POST",r,{headers:{"Content-Type":"application/json"}}).then((function(t){t.md5?(a.percentage=100,a.status="success",a.response=t,u["a"].isPicture(t.ext)||(a.url=t.url),n.handleSuccess(t,a)):n.customBeforeUpload(a,e,i)}))}else n.customBeforeUpload(a,e,i)}))},customBeforeUpload:function(e,t,n){"function"===typeof this.beforeUpload?this.beforeUpload(e,t,n):t(e)},uploadFileWithInfo:function(e){var t=this;return e.data=t.fileDataStore[e.file.uid],Object(c["a"])(e)},handleSuccess:function(e,t){var n=this;-1===n.fileIdArr.indexOf(e.id)&&(n.fileIdArr.push(e.id),n.$emit("input",n.fileIdArr.join(","))),n.$emit("file-uploaded",t)},handleBeforeRemove:function(e){var t=this;return"success"===e.status?t.deleteFiles([e]):t.removeFileFromData(e),!1},clearAllFiles:function(){this.deleteFiles(this.fileList)},deleteFiles:function(e){var t=this;e.length>0?t.$$utils.direwolfCommonConfirm({message:"确定要删除文件吗?",title:"删除提示"},(function(){return Object(r["a"])(e).forEach((function(e){e.uid&&e.response&&(e=e.response);var n=e,i=n.id;i&&!t.md5Check?t.$$utils.axiosRequest("".concat(h,"/deleteAttachment"),"删除文件","GET",{id:i}).then((function(){return t.removeFileFromData(e)})):t.removeFileFromData(e)}))})):t.$$utils.direwolfCommonTips("warning","没有需要删除的文件")},removeFileFromData:function(e){var t=this,n=e.id||e.uid;t.fileIdArr.splice(t.fileIdArr.findIndex((function(e){return e===n})),1),t.fileList.splice(t.fileList.findIndex((function(e){return(e.id||e.uid)===n})),1),t.checkedFiles.splice(t.checkedFiles.findIndex((function(e){return e===n})),1),t.$emit("input",t.fileIdArr.join(",")),t.$emit("file-removed",e)},handleRemove:function(e,t){},submitUpload:function(){this.fileList.length?this.$refs.upload.submit():this.$$utils.direwolfCommonTips("warning","请点击选择文件按钮添加文件后,再开始上传")},previewPicture:function(e,t){var n=this;if(!t){if(1!==n.checkedFiles.length)return void n.$$utils.direwolfCommonTips("warning","请选择一张图片进行预览");var i=n.checkedFiles[0];t=n.fileList.find((function(e){return e.id===i||e.uid===i})),t=t.response||t}if(t.ext=t.ext||t.name.split(".").pop(),u["a"].isPicture(t.ext)){var a="";if(t.uid)a=t.url;else{if(!t.id)return void n.$$utils.direwolfCommonTips("error","无法获取图片地址");a="".concat(l["a"].proxyPath).concat(h,"/download?id=").concat(t.id)}n.showImageViewer=!0,n.previewSrcList=[a]}else n.$$utils.direwolfCommonTips("warning","只能选择图片进行预览")},closeImageViewer:function(){this.showImageViewer=!1},saveFileToLocal:function(e){var t=e.id,n=e.name;t?(this.$emit("file-downloading",[t]),u["a"].downloadAttachment({id:t,fileName:n})):this.$$utils.direwolfCommonTips("warning","选中的文件未上传至服务器")},downloadCheckedFiles:function(){this.checkedFiles.length?this.fileList.find((function(e){return"success"!==e.status&&e.url.startsWith("blob")}))?this.$$utils.direwolfCommonTips("warning","选中的文件未上传至服务器"):(this.$emit("file-downloading",this.checkedFiles),u["a"].downloadAttachments(this.checkedFiles,this.fileList)):this.$$utils.direwolfCommonTips("warning","未选中任何文件")},getAttachmentInfo:function(e){return e.path?e:e.response&&e.response.path?e.response:null},handleExceed:function(){this.$$utils.direwolfCommonTips("warning","选择文件数量已经达到最大限制")},handleError:function(e,t){var n=this;n.$emit("file-uploaded-error",e,t),n.$$utils.direwolfCommonTips("error","上传文件出错"),n.removeFileFromData(t)},initFileList:function(e){var t=this;if(t.checkedFiles=[],!e)return t.fileList=[],void(t.fileIdArr=[]);u["a"].getFileListFromServer(e).then((function(e){t.fileList=e,t.fileIdArr=e.map((function(e){return e.id})),u["a"].initThumbnail(t,t.fileList)}))},getListVNode:function(){return Array.from(this.$refs.upload.$children.find((function(e){return e.files})).$children[0].children)},handleUploadUpdated:function(){var e=this;if(!this.isPictureCard){var t=this.getListVNode(),n=t.findIndex((function(e){return"1"!==e.elm.getAttribute("data-click-bind")}));if(n>-1){var i=t[n].elm;if(i){i.setAttribute("data-click-bind","1");var a=this.fileList[n];if(a){var r=a.id||a.uid;i.setAttribute("data-file-id",r),i.addEventListener("click",(function(){return e.handleCheck(a)}))}}}}},handleCheck:function(e){var t=this,n=t.getListVNode(),i=e.id||e.uid,a=n.find((function(e){return e.elm.getAttribute("data-file-id")==="".concat(i)})).elm;"1"===a.getAttribute("data-checked-status")?a.setAttribute("data-checked-status","0"):a.setAttribute("data-checked-status","1");var r=this.checkedFiles.indexOf(i);r>-1?this.checkedFiles.splice(r,1):this.checkedFiles.push(i)},customizeLiStyle:function(){var e="upload-li-style",t=document.getElementById(e);t||(t=document.createElement("style"),t.setAttribute("id",e),document.head.appendChild(t)),t.innerText=".el-upload-list--picture .el-upload-list__item, .el-upload-list--text .el-upload-list__item{width:calc(".concat(100/this.columns,'% - 10px);float:left;margin:5px}\n .el-upload-list--picture .el-upload-list__item[data-checked-status="1"]::after, .el-upload-list--text .el-upload-list__item[data-checked-status="1"]::after{content:\'\';border-width: 1px;border-style: solid; position:absolute;left:0;border-radius:6px;top:0;width:calc(100% - 2px);height:calc(100% - 2px);z-index:-10;}\n .el-upload-list--picture .el-upload-list__item[data-checked-status="1"], .el-upload-list--text .el-upload-list__item[data-checked-status="1"]{border:1px solid rgba(0,0,0,0);}\n .el-upload-list--text .el-upload-list__item[data-checked-status="1"]::after{left:-5px;width:calc(100% + 2px);}\n .el-upload-list--text .el-upload-list__item[data-checked-status="1"]{border:1px solid rgba(0,0,0,0);}\n .el-upload-list--text .el-upload-list__item-name, .el-upload-list--picture .el-upload-list__item-name{margin-left: -5px;position:relative;word-break:break-all;}\n .el-upload-list--picture .el-upload-list__item-name{margin-top:10px;height: 50px;white-space: normal;}\n .el-upload-list--picture .el-upload-list__item-name i {display:none;}\n .el-upload-list--text .el-upload-list__item{margin-top:10px;z-index:0;}\n .el-upload-list--picture .el-upload-list__item-name::before {float: left;width: 5px;content: \'\';height: 70px;}\n .el-upload-list--picture .el-upload-list__item-name::after{float: right;content: "...";height: 1.8em;line-height: 1.8em;width: 3em;margin-left: -3em;text-align:right;position: relative;left: calc(100% - 174px);top: -3.6em;padding-right: 5px;background: -webkit-linear-gradient(left, transparent, #fff 55%);background: -o-linear-gradient(right, transparent, #fff 55%);background: -moz-linear-gradient(right, transparent, #fff 55%);background: linear-gradient(to right, transparent, #fff 55%)}'),this.$once("hook:beforeDestroy",(function(){document.head.removeChild(t)}))}},mounted:function(){var e=this;e.initFileList(e.value),e.disabled&&this.setTriggerVisibility(!1),e.isPictureCard||e.customizeLiStyle()}},p=f,m=n("2877"),g=Object(m["a"])(p,i,a,!1,null,"b30d1a0a",null);t["default"]=g.exports},f1ba:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=this,n=t.$createElement,i=t._self._c||n;return i("tree-selector",{attrs:{disabled:t.disabled,name:t.name,"list-url":t.listUrl,"record-url":t.dataUrl,"root-id":t.rootId,value:t.org,"data-name-key":"orgName"},on:{input:function(t){e.org=t,e.$emit("input",t)},change:function(e){return t.$emit("change",e)}}})},a=[],r=n("f61f"),s=n("4131"),o=n("79bc"),l={name:"OrgSelector",components:{TreeSelector:o["default"]},props:{name:{default:"单位"},disabled:{default:!1},value:{default:""},rootId:{default:""},type:{default:""}},data:function(){return{org:this.value}},watch:{value:function(e){this.org=e}},computed:{listUrl:function(){var e="".concat(r["a"].sysBackendContext,"/sys"),t="".concat(e,"/org/getOrgTree?");return this.rootId&&(t+="pId=".concat(this.rootId,"&")),this.type&&(t+="type=".concat(this.type,"&")),t},dataUrl:function(){return s["a"].org.orgURL.getOrg}}},c=l,u=n("2877"),d=Object(u["a"])(c,i,a,!1,null,"26e11ca1",null);t["default"]=d.exports},f38d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-button-group",[e._t("loadSvgButton"),e.disabled?e._e():n("el-button",{attrs:{size:"small"},on:{click:e.addMark}},[e._v("新增标注")]),e.disabled?e._e():n("el-button",{attrs:{size:"small"},on:{click:e.saveButtonClick}},[e._v("保存标注")]),e.disabled?e._e():n("el-button",{attrs:{size:"small"},on:{click:e.removeAllMarks}},[e._v("移除全部")])],2),n("span",{directives:[{name:"show",rawName:"v-show",value:e.errorMessage,expression:"errorMessage"}],staticClass:"svg-marker--error"},[e._v(e._s(e.errorMessage))]),n("div",{ref:"svgContainer",staticClass:"svg-container",style:e.containerStyle}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.markMenuVisible,expression:"markMenuVisible"}]},[n("el-menu",{ref:"markMenu",staticClass:"svg-mark-context-menu",style:"top: "+e.menuTop+"; left: "+e.menuLeft,nativeOn:{mouseleave:function(t){return e.hideMarkContextMenu(t)}}},[n("el-menu-item",{attrs:{index:"1"},on:{click:e.deleteMark}},[e._v("删除")]),n("el-menu-item",{attrs:{index:"2"},on:{click:e.editMarkInfo}},[e._v("修改")]),n("el-menu-item",{attrs:{index:"3"},on:{click:e.viewMarkInfo}},[e._v("查看")])],1)],1)],1)},a=[],r=(n("6c7b"),n("cebc")),s=(n("8615"),n("7514"),n("ac6a"),{name:"SvgMarker",props:{url:{default:""},disabled:{default:!0},markDataList:{default:function(){return[]}},containerStyle:{default:""}},data:function(){return{svgLoading:!1,markMenuVisible:!1,eventStack:[],markDataStore:{},errorMessage:"",minification:40,currentType:"bubble",svgWidth:0,menuTop:0,menuLeft:0,selectedMark:{},markTypes:{bubble:{path:"M515.2 339c-44.8 0-81 36.3-81 81 0 44.8 36.3 81 81 81s81-36.3 81-81-36.3-81-81-81z m0-243.1c-179 0-324.1 145.1-324.1 324.1 0 135.5 270.2 540.5 324.1 540.2 53 0.3 324.1-406.5 324.1-540.2 0-179-145.1-324.1-324.1-324.1z m0 459.2c-74.6 0-135.1-60.5-135.1-135.1s60.5-135.1 135.1-135.1S650.3 345.4 650.3 420c-0.1 74.6-60.5 135.1-135.1 135.1z",getXOffset:function(e){return e/2+260},getYOffset:function(e){return e/2+500}}},ctm:{}}},watch:{url:function(e){var t=this.getSvgEl();this.eventStack=[],t&&Snap(t).remove(),e?this.loadSvg(e):this.errorMessage="图像未加载"},markDataList:function(e,t){var n=this;JSON.stringify(e)!==JSON.stringify(t)&&(this.svgLoading?this.appendEventStack([this.removeAllMarks,function(){return n.appendMarks(e)}]):(this.removeAllMarks(),this.appendMarks(e)))}},methods:{getSvgEl:function(){return this.$refs.svgContainer.getElementsByTagName("svg")[0]},appendEventStack:function(e){this.eventStack=e},invokeEventStack:function(){this.eventStack.length&&(this.eventStack.forEach((function(e){setTimeout(e(),0)})),this.eventStack=[])},getRealPosition:function(e,t){return{x:(e.offsetX-t.e)/t.a,y:(e.offsetY-t.f)/t.a}},loadSvg:function(e){var t=this;this.svgLoading=!0;var n=this.$refs.svgContainer;Snap.load(e,(function(e){n.appendChild(e.node),t.initEvent()}),n)},initEvent:function(){var e=this,t=e.getSvgEl();if(t){this.errorMessage="",e.svgWidth=t.width.baseVal.value;var n=svgPanZoom(t,{zoomEnabled:!0,controlIconsEnabled:!1,dblClickZoomEnabled:!1,center:!0,minZoom:.1,onUpdatedCTM:function(t){e.ctm=t}}),i=this.$refs.svgContainer.offsetWidth/2;n.zoomAtPoint(i/e.svgWidth,{x:i,y:0}),t.addEventListener("contextmenu",(function(e){return e.preventDefault&&e.preventDefault(),!1})),t.onmousemove=function(t){var n=Object.values(e.markDataStore).find((function(e){return e.moving}));if(n){var i=Snap(document.getElementById("".concat(n.id)));i.node.style.opacity=1;var a=e.getRealPosition(t,e.ctm),s=a.x,o=a.y;e.transferMarkTo(i,Object(r["a"])({},n,{x:s,y:o}))}},this.svgLoading=!1,this.invokeEventStack()}else this.errorMessage="图像加载失败"},removeAllMarks:function(){Snap.selectAll(".mark-path").remove(),this.markStore={},this.selectedMark={},this.$emit("delete-all-mark")},appendMarks:function(e){var t=this;(e||[]).forEach((function(e){t.markDataStore[e.id]=e,t.createMark(Object(r["a"])({},e,{type:"bubble",moving:!1,opacity:.3}))}))},deleteMark:function(){var e=this;this.$$utils.direwolfCommonConfirm({title:"删除确认",message:"标注删除后不可恢复,确认继续吗"},(function(){e.$emit("delete-mark",e.selectedMark)}))},editMarkInfo:function(){this.$emit("edit-mark-info",this.selectedMark)},viewMarkInfo:function(){this.$emit("view-mark-info",this.selectedMark)},moveMark:function(){this.hideMarkContextMenu()},changeMarkType:function(){this.hideMarkContextMenu()},hideMarkContextMenu:function(){this.markMenuVisible=!1,this.selectedMark={}},addMark:function(){var e=this.$$utils.getUUIDShort(),t={id:e,type:this.currentType,moving:!0,stroke:"red",fill:"red",opacity:0};this.markDataStore[e]=t,this.createMark(t)},transferMarkTo:function(e,t){var n=t.type,i=t.x,a=t.y,r=e.getBBox(),s=r.x,o=r.y,l=this.markTypes[n]||{},c=l.width,u=l.getXOffset,d=l.getYOffset,h=e.transform().string,f=e.node.getBoundingClientRect(),p=f.width,m=f.height;e.transform("".concat(h,"t").concat((i-s)*c-u(p),",").concat((a-o)*c-d(m)))},createMark:function(e){var t=e||{},n=t.type,i=t.stroke,a=t.fill,r=t.opacity,s=t.id,o=this.markTypes[n]||{},l=o.path;if(l){var c=Snap.select(".svg-pan-zoom_viewport").path(l).attr({id:s,stroke:i,fill:a,opacity:r,class:"mark-path"}),u=c.node,d=u.getBoundingClientRect(),h=d.width,f=this.svgWidth/this.minification;this.markTypes[n].width=h/f;var p=new Snap.Matrix;p.scale(1/this.markTypes[n].width,1/this.markTypes[n].width),c.transform(p),r&&this.transferMarkTo(c,e);var m=this;return u.addEventListener("contextmenu",(function(t){return m.markMenuVisible=!0,m.menuTop="".concat(t.pageY,"px"),m.menuLeft="".concat(t.pageX,"px"),m.selectedMark=e,!1})),c.click((function(t){var n=m.markDataStore[e.id];n.moving=!n.moving,n.moving||(c.node.style.opacity=.3);var i=m.getRealPosition(t,m.ctm),a=i.x,r=i.y;n.x=a,n.y=r,m.$emit("mark-clicked",e,c,m.disabled?"view":"edit",t)})),c.dblclick((function(t){m.$emit("mark-dblclicked",e,c,m.disabled?"view":"edit",t)})),c.mouseover((function(){c.node.style.opacity=1})),c.mouseout((function(){c.node.style.opacity=.3})),c}this.errorMessage="错误的标注类型"},saveButtonClick:function(){this.$emit("save",Object.values(this.markDataStore))}}}),o=s,l=(n("9170"),n("2877")),c=Object(l["a"])(o,i,a,!1,null,"1818c2be",null);t["default"]=c.exports},f844:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["aside"].concat(e.classNames),style:{height:e.sideHeight,marginTop:e.headerHeight+"px",width:e.menuWidth+"px"}},[n("div",{directives:[{name:"slimscroll",rawName:"v-slimscroll",value:e.scrollOptions,expression:"scrollOptions"}]},[n("div",{staticClass:"menu"},[n("el-menu",{style:{width:e.menuWidth+"px"},attrs:{router:"","default-active":e.$route.path,collapse:e.isCollapse},on:{open:e.handleOpen,close:e.handleClose}},[n("NavMenu",{attrs:{navMenus:e.menuTree}})],1)],1)]),e.showToggle?n("div",{staticClass:"sidebar-toggle",on:{click:e.sidebarToggle}},[n("el-tooltip",{attrs:{placement:"top",content:"点击切换展示模式"}},[n("div",{staticClass:"icon-left"},[n("i",{staticClass:"el-icon-back"})])])],1):e._e()])},a=[],r=(n("6762"),n("2fdb"),n("cd6c")),s={name:"SideMenu",components:{NavMenu:r["default"]},props:{classNames:{default:function(){return[]}},menuTree:{default:function(){return[]}},hidden:{default:!1},headerHeight:{default:50},showToggle:{default:!0}},data:function(){return{isCollapse:!1,scrollOptions:{height:"calc(100vh - ".concat(this.headerHeight+(this.showToggle?50:0)-10,"px)"),size:"4px",color:"rgb(48, 65, 86)"}}},computed:{sideHeight:function(){return"calc(100% - ".concat(this.headerHeight+(this.showToggle?50:0),"px)")},menuWidth:function(){return this.isHidden?0:this.isCollapse?64:this.$$config.homeMenuWidth},isHidden:function(){return this.hidden}},methods:{handleOpen:function(e,t){e&&!e.includes("$$blank")&&(this.$router.push(e),this.$emit("menuOpened",e))},handleClose:function(e,t){},sidebarToggle:function(e){e.preventDefault(),this.$$utils.toggleElementClass(document.body,"sidebar-hidden"),this.isCollapse=!this.isCollapse,this.$emit("side-menu-collapse",this.menuWidth)}},mounted:function(){this.isCollapse?this.$$utils.addElementClass(document.body,"sidebar-hidden"):this.$$utils.removeElementClass(document.body,"sidebar-hidden")}},o=s,l=(n("3f1e"),n("2877")),c=Object(l["a"])(o,i,a,!1,null,"03182cdb",null);t["default"]=c.exports},fdc2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("select-panel",e._g({ref:"orgPanel",attrs:{value:e.value,"get-all-data-length":e.getAllDataLength,"get-data-list":e.getDataList,"result-columns":e.resultColumns,"result-values-key":"matchIds","left-panel-width":"400px","get-all-data":e.getAllData,"left-checked":e.leftChecked},on:{"update:leftChecked":function(t){e.leftChecked=t},"update:left-checked":function(t){e.leftChecked=t},change:e.orgRecordChange},scopedSlots:e._u([{key:"source",fn:function(){return[n("z-tree",{ref:"zTree",attrs:{"parent-mutex":!0,"checkbox-type":{Y:"",N:""},selections:e.selections,multiple:!0,url:e.url},on:{"node-change":e.handleNodeChange,"nodes-check":e.handleNodesCheck}})]},proxy:!0}])},e.$listeners))},a=[],r=(n("386d"),n("7f7f"),n("cebc")),s=n("4131"),o=n("e630"),l=n("12c2"),c=n("f61f"),u={name:"OrgSelectPanel",components:{SelectPanel:l["default"],ZTree:o["default"]},props:{value:{default:function(){return[]}}},data:function(){return{orgName:"",orgCode:"",parentId:"",allDataLength:0,allData:[],dictMap:{},leftChecked:[],selections:[],resultColumns:[{prop:"orgName",label:"名称"}],selectedData:[]}},computed:{companyId:function(){return this.$$utils.user.getLoginUser().companyId},getDataList:function(){return s["a"].org.getOrgList},url:function(){var e="".concat(c["a"].sysBackendContext,"/sys"),t="".concat(e,"/org/getOrgTree?pId=").concat(this.companyId,"&");return this.type&&(t+="type=".concat(this.type,"&")),t}},watch:{leftChecked:function(e){this.selections=e.map((function(e){var t=e.id;return t}))}},methods:{handleNodeChange:function(e){this.allDataLength=e.length,this.allData=e},handleNodesCheck:function(e,t){this.leftChecked=t.filter((function(t){return-1===e.indexOf(t.pId)})).map((function(e){return Object(r["a"])({},e,{orgName:e.name})}))},getAllDataLength:function(){return this.allDataLength},getAllData:function(){var e=this;return new Promise((function(t){return t({list:e.allData.filter((function(e){var t=e.pId;return"0"===t})).map((function(e){return Object(r["a"])({},e,{orgName:e.name})}))})}))},search:function(){this.$refs.orgPanel.search()},orgRecordChange:function(e){this.selectedData=e,this.$emit("change",this.selectedData)},getSelectedData:function(){return this.selectedData}},created:function(){var e=this;this.$$utils.param.getDictByCodes("org_type").then((function(t){var n=t.data;return e.dictMap=n}))}},d=u,h=n("2877"),f=Object(h["a"])(d,i,a,!1,null,"278eef10",null);t["default"]=f.exports}});
|