|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9116],{23272:function(Q,P,r){"use strict";r.r(P),r.d(P,{default:function(){return ht}});var g=r(71194),V=r(50146),T=r(14965),p=r(91774),j=r(88983),Z=r(47933),E=r(47673),i=r(4107),d=r(39428),M=r(3182),I=r(57663),R=r(71577),N=r(62350),X=r(24565),nt=r(34792),w=r(48086),et=r(9715),F=r(55843),A=r(2824),rt=r(402),J=r(56256),v=r(67294),h=r(28790),b=r(49101),at=r(16894),u=r(27484),n=r.n(u),t=r(72540),s=r.n(t),e=r(96036),o=r.n(e),a=r(48971),l=r(96690);function $(O){return f.apply(this,arguments)}function f(){return f=(0,M.Z)((0,d.Z)().mark(function O(D){return(0,d.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,a.WY)((0,l.w)()+"/api/authorization/pageauthorization",{method:"POST",data:D}));case 1:case"end":return c.stop()}},O)})),f.apply(this,arguments)}function S(O){return k.apply(this,arguments)}function k(){return k=(0,M.Z)((0,d.Z)().mark(function O(D){return(0,d.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,a.WY)((0,l.w)()+"/api/authorization/addauthorization",{method:"POST",data:D}));case 1:case"end":return c.stop()}},O)})),k.apply(this,arguments)}function W(O){return L.apply(this,arguments)}function L(){return L=(0,M.Z)((0,d.Z)().mark(function O(D){return(0,d.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,a.WY)((0,l.w)()+"/api/authorization/updateauthorization?id="+D,{method:"POST",data:D}));case 1:case"end":return c.stop()}},O)})),L.apply(this,arguments)}function G(O){return H.apply(this,arguments)}function H(){return H=(0,M.Z)((0,d.Z)().mark(function O(D){return(0,d.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,a.WY)((0,l.w)()+"/api/authorization/updateauthtime",{method:"POST",data:D}));case 1:case"end":return c.stop()}},O)})),H.apply(this,arguments)}function x(O){return z.apply(this,arguments)}function z(){return z=(0,M.Z)((0,d.Z)().mark(function O(D){return(0,d.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,a.WY)((0,l.w)()+"/api/authorization/delauthorization?id="+D,{method:"POST",data:D}));case 1:case"end":return c.stop()}},O)})),z.apply(this,arguments)}var m=r(85893);n().extend(s()),n().extend(o());var K="YYYY/MM/DD",dt=J.Z.Paragraph,$t=J.Z.Text,lt=function(){var D=(0,v.useRef)(),q=(0,v.useState)(!1),c=(0,A.Z)(q,2),ct=c[0],_=c[1],ft=(0,v.useState)(),ut=(0,A.Z)(ft,2),gt=ut[0],mt=ut[1],yt=F.Z.useForm(),pt=(0,A.Z)(yt,1),it=pt[0],vt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u6388\u6743\u7801",dataIndex:"key",valueType:"textarea",search:!1,render:function(C){return(0,m.jsx)(dt,{style:{display:"inline"},copyable:!0,children:C})}},{title:"\u6709\u6548\u65E5\u671F",dataIndex:"periodValidity",valueType:"textarea",width:200,search:!1,render:function(C,y){var B=n()(y.periodValidity,K).format("YYYY-MM-DD");return(0,m.jsx)("span",{children:y.periodValidity==null?"\u957F\u671F\u6709\u6548":B})}},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updateAt",valueType:"textarea",width:200,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",fixed:"right",width:300,render:function(C,y){return[(0,m.jsx)(X.Z,{type:"primary",title:"\u786E\u8BA4\u66F4\u65B0\u5417?",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){W(y.id).then(function(Y){Y.statusCode==200&&Y.data?(D.current.reload(),w.default.success("\u4FEE\u6539\u6210\u529F")):w.default.error(Y.errors||"\u4FEE\u6539\u5931\u8D25")})},onCancel:function(){},children:(0,m.jsx)("a",{href:"#",children:"\u66F4\u65B0\u6388\u6743\u7801"})},"primary"),(0,m.jsx)("a",{href:"#",onClick:function(){mt(y);var Y=y.periodValidity==null?"cqyx":"gdsj",st=y.periodValidity==null?null:n()(y.periodValidity,K);it.setFieldsValue({id:y.id,autho:Y,periodValidity:st}),_(!0)},children:"\u66F4\u65B0\u6388\u6743\u65F6\u95F4"}),(0,m.jsx)(X.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417?",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){x(y.id).then(function(Y){Y.statusCode==200&&Y.data?(D.current.reload(),w.default.success("\u5220\u9664\u6210\u529F")):w.default.error(Y.errors||"\u5220\u9664\u5931\u8D25")})},onCancel:function(){},children:(0,m.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,m.jsxs)(h.ZP,{host:!0,header:{title:"",breadcrumb:{}},children:[(0,m.jsx)(at.ZP,{actionRef:D,rowKey:"id",pagination:{defaultPageSize:10},search:{labelWidth:120},toolBarRender:function(){return[(0,m.jsxs)(R.Z,{type:"primary",onClick:function(){_(!0),it.setFieldsValue({id:null,autho:"cqyx",periodValidity:null})},children:[(0,m.jsx)(b.Z,{})," \u6DFB\u52A0\u6388\u6743\u7801"]},"primary")]},request:function(){var U=(0,M.Z)((0,d.Z)().mark(function C(y){var B,Y;return(0,d.Z)().wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return B=[],Y=0,tt.next=4,$(y).then(function(ot){Y=ot.data.total,B=ot.data.data});case 4:return tt.abrupt("return",{data:B,success:!0,total:Y});case 5:case"end":return tt.stop()}},C)}));return function(C){return U.apply(this,arguments)}}(),columns:vt}),(0,m.jsx)(V.Z,{title:"\u6388\u6743\u64CD\u4F5C",open:ct,onOk:function(){it.submit()},onCancel:function(){_(!1)},children:(0,m.jsxs)(F.Z,{form:it,onFinish:function(C){C.id?G(C).then(function(y){y.statusCode==200&&y.data?(w.default.success("\u4FEE\u6539\u6210\u529F"),D.current.reload(),_(!1)):w.default.error(y.errors||"\u4FEE\u6539\u5931\u8D25")}):S(C).then(function(y){y.statusCode==200&&y.data?(w.default.success("\u6DFB\u52A0\u6210\u529F"),D.current.reload(),_(!1)):w.default.error(y.errors||"\u6DFB\u52A0\u5931\u8D25")})},style:{maxWidth:600},children:[(0,m.jsx)(F.Z.Item,{name:"id",hidden:!0,children:(0,m.jsx)(i.Z,{})}),(0,m.jsx)(F.Z.Item,{name:"autho",label:"\u6388\u6743\u65F6\u95F4",rules:[{required:!0}],children:(0,m.jsxs)(Z.ZP.Group,{children:[(0,m.jsx)(Z.ZP,{value:"cqyx",children:" \u957F\u671F\u6709\u6548 "}),(0,m.jsx)(Z.ZP,{value:"gdsj",children:" \u56FA\u5B9A\u65F6\u95F4 "})]})}),(0,m.jsx)(F.Z.Item,{noStyle:!0,shouldUpdate:function(C,y){return C.autho!==y.autho},children:function(C){var y=C.getFieldValue;return y("autho")=="gdsj"?(0,m.jsx)(F.Z.Item,{name:"periodValidity",label:"\u56FA\u5B9A\u65F6\u95F4",rules:[{required:!0}],children:(0,m.jsx)(p.Z,{style:{width:"300px"}})}):null}})]})})]})},ht=lt},27484:function(Q){(function(P,r){Q.exports=r()})(this,function(){"use strict";var P=1e3,r=6e4,g=36e5,V="millisecond",T="second",p="minute",j="hour",Z="day",E="week",i="month",d="quarter",M="year",I="date",R="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,nt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(u){var n=["th","st","nd","rd"],t=u%100;return"["+u+(n[(t-20)%10]||n[t]||n[0])+"]"}},w=function(u,n,t){var s=String(u);return!s||s.length>=n?u:""+Array(n+1-s.length).join(t)+u},et={s:w,z:function(u){var n=-u.utcOffset(),t=Math.abs(n),s=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+w(s,2,"0")+":"+w(e,2,"0")},m:function u(n,t){if(n.date()<t.date())return-u(t,n);var s=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(s,i),o=t-e<0,a=n.clone().add(s+(o?-1:1),i);return+(-(s+(t-e)/(o?e-a:a-e))||0)},a:function(u){return u<0?Math.ceil(u)||0:Math.floor(u)},p:function(u){return{M:i,y:M,w:E,d:Z,D:I,h:j,m:p,s:T,ms:V,Q:d}[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(u){return u===void 0}},F="en",A={};A[F]=nt;var rt=function(u){return u instanceof b},J=function u(n,t,s){var e;if(!n)return F;if(typeof n=="string"){var o=n.toLowerCase();A[o]&&(e=o),t&&(A[o]=t,e=o);var a=n.split("-");if(!e&&a.length>1)return u(a[0])}else{var l=n.name;A[l]=n,e=l}return!s&&e&&(F=e),e||!s&&F},v=function(u,n){if(rt(u))return u.clone();var t=typeof n=="object"?n:{};return t.date=u,t.args=arguments,new b(t)},h=et;h.l=J,h.i=rt,h.w=function(u,n){return v(u,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var b=function(){function u(t){this.$L=J(t.locale,null,!0),this.parse(t)}var n=u.prototype;return n.parse=function(t){this.$d=function(s){var e=s.date,o=s.utc;if(e===null)return new Date(NaN);if(h.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var a=e.match(N);if(a){var l=a[2]-1||0,$=(a[7]||"0").substring(0,3);return o?new Date(Date.UTC(a[1],l,a[3]||1,a[4]||0,a[5]||0,a[6]||0,$)):new Date(a[1],l,a[3]||1,a[4]||0,a[5]||0,a[6]||0,$)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return h},n.isValid=function(){return this.$d.toString()!==R},n.isSame=function(t,s){var e=v(t);return this.startOf(s)<=e&&e<=this.endOf(s)},n.isAfter=function(t,s){return v(t)<this.startOf(s)},n.isBefore=function(t,s){return this.endOf(s)<v(t)},n.$g=function(t,s,e){return h.u(t)?this[s]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,s){var e=this,o=!!h.u(s)||s,a=h.p(t),l=function(H,x){var z=h.w(e.$u?Date.UTC(e.$y,x,H):new Date(e.$y,x,H),e);return o?z:z.endOf(Z)},$=function(H,x){return h.w(e.toDate()[H].apply(e.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(x)),e)},f=this.$W,S=this.$M,k=this.$D,W="set"+(this.$u?"UTC":"");switch(a){case M:return o?l(1,0):l(31,11);case i:return o?l(1,S):l(0,S+1);case E:var L=this.$locale().weekStart||0,G=(f<L?f+7:f)-L;return l(o?k-G:k+(6-G),S);case Z:case I:return $(W+"Hours",0);case j:return $(W+"Minutes",1);case p:return $(W+"Seconds",2);case T:return $(W+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,s){var e,o=h.p(t),a="set"+(this.$u?"UTC":""),l=(e={},e[Z]=a+"Date",e[I]=a+"Date",e[i]=a+"Month",e[M]=a+"FullYear",e[j]=a+"Hours",e[p]=a+"Minutes",e[T]=a+"Seconds",e[V]=a+"Milliseconds",e)[o],$=o===Z?this.$D+(s-this.$W):s;if(o===i||o===M){var f=this.clone().set(I,1);f.$d[l]($),f.init(),this.$d=f.set(I,Math.min(this.$D,f.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},n.set=function(t,s){return this.clone().$set(t,s)},n.get=function(t){return this[h.p(t)]()},n.add=function(t,s){var e,o=this;t=Number(t);var a=h.p(s),l=function(S){var k=v(o);return h.w(k.date(k.date()+Math.round(S*t)),o)};if(a===i)return this.set(i,this.$M+t);if(a===M)return this.set(M,this.$y+t);if(a===Z)return l(1);if(a===E)return l(7);var $=(e={},e[p]=r,e[j]=g,e[T]=P,e)[a]||1,f=this.$d.getTime()+t*$;return h.w(f,this)},n.subtract=function(t,s){return this.add(-1*t,s)},n.format=function(t){var s=this,e=this.$locale();if(!this.isValid())return e.invalidDate||R;var o=t||"YYYY-MM-DDTHH:mm:ssZ",a=h.z(this),l=this.$H,$=this.$m,f=this.$M,S=e.weekdays,k=e.months,W=function(x,z,m,K){return x&&(x[z]||x(s,o))||m[z].slice(0,K)},L=function(x){return h.s(l%12||12,x,"0")},G=e.meridiem||function(x,z,m){var K=x<12?"AM":"PM";return m?K.toLowerCase():K},H={YY:String(this.$y).slice(-2),YYYY:this.$y,M:f+1,MM:h.s(f+1,2,"0"),MMM:W(e.monthsShort,f,k,3),MMMM:W(k,f),D:this.$D,DD:h.s(this.$D,2,"0"),d:String(this.$W),dd:W(e.weekdaysMin,this.$W,S,2),ddd:W(e.weekdaysShort,this.$W,S,3),dddd:S[this.$W],H:String(l),HH:h.s(l,2,"0"),h:L(1),hh:L(2),a:G(l,$,!0),A:G(l,$,!1),m:String($),mm:h.s($,2,"0"),s:String(this.$s),ss:h.s(this.$s,2,"0"),SSS:h.s(this.$ms,3,"0"),Z:a};return o.replace(X,function(x,z){return z||H[x]||a.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,s,e){var o,a=h.p(s),l=v(t),$=(l.utcOffset()-this.utcOffset())*r,f=this-l,S=h.m(this,l);return S=(o={},o[M]=S/12,o[i]=S,o[d]=S/3,o[E]=(f-$)/6048e5,o[Z]=(f-$)/864e5,o[j]=f/g,o[p]=f/r,o[T]=f/P,o)[a]||f,e?S:h.a(S)},n.daysInMonth=function(){return this.endOf(i).$D},n.$locale=function(){return A[this.$L]},n.locale=function(t,s){if(!t)return this.$L;var e=this.clone(),o=J(t,s,!0);return o&&(e.$L=o),e},n.clone=function(){return h.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},u}(),at=b.prototype;return v.prototype=at,[["$ms",V],["$s",T],["$m",p],["$H",j],["$W",Z],["$M",i],["$y",M],["$D",I]].forEach(function(u){at[u[1]]=function(n){return this.$g(n,u[0],u[1])}}),v.extend=function(u,n){return u.$i||(u(n,b,v),u.$i=!0),v},v.locale=J,v.isDayjs=rt,v.unix=function(u){return v(1e3*u)},v.en=A[F],v.Ls=A,v.p={},v})},96036:function(Q){(function(P,r){Q.exports=r()})(this,function(){"use strict";return function(P,r,g){var V=r.prototype,T=function(i){return i&&(i.indexOf?i:i.s)},p=function(i,d,M,I,R){var N=i.name?i:i.$locale(),X=T(N[d]),nt=T(N[M]),w=X||nt.map(function(F){return F.slice(0,I)});if(!R)return w;var et=N.weekStart;return w.map(function(F,A){return w[(A+(et||0))%7]})},j=function(){return g.Ls[g.locale()]},Z=function(i,d){return i.formats[d]||function(M){return M.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,R,N){return R||N.slice(1)})}(i.formats[d.toUpperCase()])},E=function(){var i=this;return{months:function(d){return d?d.format("MMMM"):p(i,"months")},monthsShort:function(d){return d?d.format("MMM"):p(i,"monthsShort","months",3)},firstDayOfWeek:function(){return i.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):p(i,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):p(i,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):p(i,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return Z(i.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};V.localeData=function(){return E.bind(this)()},g.localeData=function(){var i=j();return{firstDayOfWeek:function(){return i.weekStart||0},weekdays:function(){return g.weekdays()},weekdaysShort:function(){return g.weekdaysShort()},weekdaysMin:function(){return g.weekdaysMin()},months:function(){return g.months()},monthsShort:function(){return g.monthsShort()},longDateFormat:function(d){return Z(i,d)},meridiem:i.meridiem,ordinal:i.ordinal}},g.months=function(){return p(j(),"months")},g.monthsShort=function(){return p(j(),"monthsShort","months",3)},g.weekdays=function(i){return p(j(),"weekdays",null,null,i)},g.weekdaysShort=function(i){return p(j(),"weekdaysShort","weekdays",3,i)},g.weekdaysMin=function(i){return p(j(),"weekdaysMin","weekdays",2,i)}}})},72540:function(Q){(function(P,r){Q.exports=r()})(this,function(){"use strict";return function(P,r){r.prototype.weekday=function(g){var V=this.$locale().weekStart||0,T=this.$W,p=(T<V?T+7:T)-V;return this.$utils().u(g)?p:this.subtract(p,"day").add(g,"day")}}})}}]);
|