Files
shz-admin/shihezi/p__Tool__Gen__edit.5c4188b4.async.js

2 lines
30 KiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7144,7629,2531],{90672:function(q,R,t){var Z=t(1413),d=t(91),B=t(67294),i=t(43495),T=t(85893),l=["fieldProps","proFieldProps"],f=function(I,K){var v=I.fieldProps,O=I.proFieldProps,G=(0,d.Z)(I,l);return(0,T.jsx)(i.Z,(0,Z.Z)({ref:K,valueType:"textarea",fieldProps:v,proFieldProps:O},G))};R.Z=B.forwardRef(f)},33867:function(q,R,t){t.d(R,{iK:function(){return Z},zc:function(){return B}});var Z=function(i){return i[i.SUCCESS=200]="SUCCESS",i[i.ERROR=-1]="ERROR",i[i.TIMEOUT=401]="TIMEOUT",i.TYPE="success",i}({}),d=function(i){return i.GET="GET",i.POST="POST",i.PUT="PUT",i.DELETE="DELETE",i}({}),B=function(i){return i.JSON="application/json;charset=UTF-8",i.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",i.FORM_DATA="multipart/form-data;charset=UTF-8",i}({})},35400:function(q,R,t){t.r(R);var Z=t(15009),d=t.n(Z),B=t(99289),i=t.n(B),T=t(5574),l=t.n(T),f=t(77569),x=t(71230),I=t(15746),K=t(2453),v=t(83622),O=t(67294),G=t(76772),_=t(19035),M=t(97269),h=t(5966),E=t(90672),o=t(85893),P=function(g){var c,Q,J,V,b,S=f.Z.useForm(),A=l()(S,1),D=A[0],U=g.onStepSubmit;(0,O.useEffect)(function(){D.resetFields(),D.setFieldsValue({tableName:g.values.tableName})});var p=function(){var y=i()(d()().mark(function m(){var u;return d()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,D.validateFields();case 2:u=w.sent,U&&U("base",u);case 4:case"end":return w.stop()}},m)}));return function(){return y.apply(this,arguments)}}();return(0,o.jsxs)(O.Fragment,{children:[(0,o.jsx)(x.Z,{children:(0,o.jsx)(I.Z,{span:24,children:(0,o.jsxs)(M.A,{form:D,onFinish:i()(d()().mark(function y(){return d()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:K.ZP.success("\u63D0\u4EA4\u6210\u529F");case 1:case"end":return u.stop()}},y)})),initialValues:{tableName:(c=g.values)===null||c===void 0?void 0:c.tableName,tableComment:(Q=g.values)===null||Q===void 0?void 0:Q.tableComment,className:(J=g.values)===null||J===void 0?void 0:J.className,functionAuthor:(V=g.values)===null||V===void 0?void 0:V.functionAuthor,remark:(b=g.values)===null||b===void 0?void 0:b.remark},submitter:{resetButtonProps:{style:{display:"none"}},submitButtonProps:{style:{display:"none"}}},children:[(0,o.jsxs)(x.Z,{children:[(0,o.jsx)(I.Z,{span:12,order:1,children:(0,o.jsx)(h.Z,{name:"tableName",label:"\u8868\u540D\u79F0",rules:[{required:!0,message:"\u8868\u540D\u79F0\u4E0D\u53EF\u4E3A\u7A7A\u3002"}]})}),(0,o.jsx)(I.Z,{span:12,order:2,children:(0,o.jsx)(h.Z,{name:"tableComment",label:"\u8868\u63CF\u8FF0"})})]}),(0,o.jsxs)(x.Z,{children:[(0,o.jsx)(I.Z,{span:12,order:1,children:(0,o.jsx)(h.Z,{name:"className",label:"\u5B9E\u4F53\u7C7B\u540D\u79F0",rules:[{required:!0,message:"\u5B9E\u4F53\u7C7B\u540D\u79F0\u4E0D\u53EF\u4E3A\u7A7A\u3002"}]})}),(0,o.jsx)(I.Z,{span:12,order:2,children:(0,o.jsx)(h.Z,{name:"functionAuthor",label:"\u4F5C\u8005"})})]}),(0,o.jsx)(x.Z,{children:(0,o.jsx)(I.Z,{span:24,children:(0,o.jsx)(E.Z,{name:"remark",label:"\u5907\u6CE8"})})})]})})}),(0,o.jsxs)(x.Z,{justify:"center",children:[(0,o.jsx)(I.Z,{span:4,children:(0,o.jsx)(v.ZP,{type:"primary",className:_.Z.step_buttons,onClick:function(){G.history.back()},children:"\u8FD4\u56DE"})}),(0,o.jsx)(I.Z,{span:4,children:(0,o.jsx)(v.ZP,{type:"primary",onClick:p,children:"\u4E0B\u4E00\u6B65"})})]})]})};R.default=P},41842:function(q,R,t){t.r(R);var Z=t(97857),d=t.n(Z),B=t(5574),i=t.n(B),T=t(67294),l=t(84567),f=t(66309),x=t(71230),I=t(15746),K=t(83622),v=t(76772),O=t(19035),G=t(50727),_=t(85893),M=[{label:"true",value:"1"},{label:"false",value:"0"}],h=function(o){var P=(0,T.useRef)(),L=(0,T.useState)(),g=i()(L,2),c=g[0],Q=g[1],J=(0,T.useState)([]),V=i()(J,2),b=V[0],S=V[1],A=o.data,D=o.dictData,U=o.onStepSubmit,p=[{title:"\u7F16\u53F7",dataIndex:"columnId",editable:!1,width:80},{title:"\u5B57\u6BB5\u540D",dataIndex:"columnName",editable:!1},{title:"\u5B57\u6BB5\u63CF\u8FF0",dataIndex:"columnComment",hideInForm:!0,hideInSearch:!0,width:200},{title:"\u5B57\u6BB5\u7C7B\u578B",dataIndex:"columnType",editable:!1},{t