2 lines
5.9 KiB
JavaScript
2 lines
5.9 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[41234],{7867:function(M){M.exports={authmodalbox:"authmodalbox___2RM11"}},15285:function(M,v,d){"use strict";d.r(v),d.d(v,{default:function(){return s}});var E=d(66456),f=d(5322),g=d(34895),i=d(79508),O=d(51964),L=d.n(O),y=d(28216),A=d(67294),I=d(30672),C=d(7867),D=d.n(C),w=d(37406),e=d(85893),r,t,s=(r=(0,y.$j)(m=>{var c=m.common;return{common:c}}),r(t=class extends A.PureComponent{constructor(){super(...arguments);this.state={modelZindex:100,fullScreen:!1,current:1,total:0,target:{},getInfoLoading:!0,viewUrl:""}}componentDidMount(){var c=this}componentWillUnmount(){var c=this,l=this.props,R=l.dispatch,_=l.sourceID,p=l.iframeUrl,T=p===void 0?"":p,U=l.common,j=l.path,P=j===void 0?"":j,B=U.shareCode}render(){var c=this,l=c.props,R=l.dispatch,_=l.common,p=l.open,T=l.setOpenModel,U=l.videoOption,j=l.iframeUrl,P=l.iframeName,B=P===void 0?"":P,K=l.issmall,H=l.path,k=l.name,W=l.authData,z=W===void 0?{}:W,$=l.showIndex,V=_.sourceID,X=_.shareCode,b=_.authList,x=this.state,N=x.modelZindex,Z=x.fileInfo,Y=Z===void 0?{}:Z,G=x.fullScreen,J=x.getInfoLoading,Q=x.viewUrl,u=(0,I.lw)((0,I.Kd)()),F=h=>{c.setState({modelZindex:h})},S=[{title:u.formatMessage({id:"admin.menu.auth"}),dataIndex:"a",className:"tablecolums",key:"a",render:(h,a)=>{var n=a.auth||"",o=n.split(",");return(0,e.jsxs)("div",{className:"authUser",children:[(0,e.jsx)("div",{className:"authcolor",style:{background:a.label}}),(0,e.jsx)("div",{className:"authname",children:a.roleName})]})}},{title:u.formatMessage({id:"admin.auth.show"}),dataIndex:"b",key:"b",render:(h,a)=>{var n=a.auth||"",o=n.split(",");return(0,e.jsx)("div",{children:o.indexOf("1")>-1&&(0,e.jsx)(i.Z,{style:{color:"#722ed1"}})})}},{title:u.formatMessage({id:"admin.auth.view"}),dataIndex:"c",key:"c",render:(h,a)=>{var n=a.auth||"",o=n.split(",");return(0,e.jsx)("div",{children:o.indexOf("3")>-1&&(0,e.jsx)(i.Z,{style:{color:"#722ed1"}})})}},{title:u.formatMessage({id:"admin.auth.download"}),dataIndex:"d",key:"d",render:(h,a)=>{var n=a.auth||"",o=n.split(",");return(0,e.jsx)("div",{children:o.indexOf("4")>-1&&(0,e.jsx)(i.Z,{style:{color:"#722ed1"}})})}},{title:u.formatMessage({id:"common.upload"}),dataIndex:"e",key:"e",render:(h,a)=>{var n=a.auth||"",o=n.split(",");return(0,e.jsx)("div",{children:o.indexOf("5")>-1&&(0,e.jsx)(i.Z,{style:{color:"#722ed1"}})})}},{title:u.formatMessage({id:"admin.auth.edit"}),dataIndex:"f",key:"f",render:(h,a)=>{var n=a.auth||"",o=n.split(",");return(0,e.jsx)("div",{children:o.indexOf("8")>-1&&(0,e.jsx)(i.Z,{style:{color:"#722ed1"}})})}},{title:u.formatMessage({id:"common.delete"}),dataIndex:"g",key:"g",render:(h,a)=>{var n=a.auth||"",o=n.split(",");return(0,e.jsx)("div",{children:o.indexOf("10")>-1&&(0,e.jsx)(i.Z,{style:{color:"#722ed1"}})})}},{title:u.formatMessage({id:"common.share"}),dataIndex:"h",key:"h",render:(h,a)=>{var n=a.auth||"",o=n.split(",");return(0,e.jsx)("div",{children:o.indexOf("11")>-1&&(0,e.jsx)(i.Z,{style:{color:"#722ed1"}})})}},{title:u.formatMessage({id:"admin.auth.comment"}),dataIndex:"i",key:"i",render:(h,a)=>{var n=a.auth||"",o=n.split(",");return(0,e.jsx)("div",{children:o.indexOf("12")>-1&&(0,e.jsx)(i.Z,{style:{color:"#722ed1"}})})}},{title:u.formatMessage({id:"explorer.panel.logName"}),dataIndex:"j",key:"j",render:(h,a)=>{var n=a.auth||"",o=n.split(",");return(0,e.jsx)("div",{children:o.indexOf("13")>-1&&(0,e.jsx)(i.Z,{style:{color:"#722ed1"}})})}},{title:u.formatMessage({id:"admin.auth.root"}),dataIndex:"k",key:"k",render:(h,a)=>{var n=a.auth||"",o=n.split(",");return(0,e.jsx)("div",{children:o.indexOf("14")>-1&&(0,e.jsx)(i.Z,{style:{color:"#722ed1"}})})}}];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(g.Z,{open:p,issmall:K,modelZindex:N,showIndex:$,setOpenModel:T,setModelZindex:F,type:"authTable",title:u.formatMessage({id:"explorer.authDialog"}),children:(0,e.jsx)("div",{className:D().authmodalbox,children:(0,e.jsxs)(L(),{children:[(0,e.jsx)(f.Z,{bordered:!0,columns:S,size:"small",pagination:!1,dataSource:b,scroll:{y:400}}),(0,e.jsx)("div",{style:{margin:"8px 12px",color:"#999"},children:u.formatMessage({id:"explorer.authNote"})})]})})})})}})||t)},27678:function(M,v,d){"use strict";d.d(v,{g1:function(){return D},os:function(){return e}});var E=/margin|padding|width|height|max|min|offset/,f={left:!0,top:!0},g={cssFloat:1,styleFloat:1,float:1};function i(r){return r.nodeType===1?r.ownerDocument.defaultView.getComputedStyle(r,null):{}}function O(r,t,s){if(t=t.toLowerCase(),s==="auto"){if(t==="height")return r.offsetHeight;if(t==="width")return r.offsetWidth}return t in f||(f[t]=E.test(t)),f[t]?parseFloat(s)||0:s}function L(r,t){var s=arguments.length,m=i(r);return t=g[t]?"cssFloat"in r.style?"cssFloat":"styleFloat":t,s===1?m:O(r,t,m[t]||r.style[t])}function y(r,t,s){var m=arguments.length;if(t=g[t]?"cssFloat"in r.style?"cssFloat":"styleFloat":t,m===3)return typeof s=="number"&&E.test(t)&&(s="".concat(s,"px")),r.style[t]=s,s;for(var c in t)t.hasOwnProperty(c)&&y(r,c,t[c]);return i(r)}function A(r){return r===document.body?document.documentElement.clientWidth:r.offsetWidth}function I(r){return r===document.body?window.innerHeight||document.documentElement.clientHeight:r.offsetHeight}function C(){var r=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:r,height:t}}function D(){var r=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:r,height:t}}function w(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function e(r){var t=r.getBoundingClientRect(),s=document.documentElement;return{left:t.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}}}]);
|