| 1 |
- var p=(c,l,t)=>new Promise((i,a)=>{var r=e=>{try{o(t.next(e))}catch(u){a(u)}},n=e=>{try{o(t.throw(e))}catch(u){a(u)}},o=e=>e.done?i(e.value):Promise.resolve(e.value).then(r,n);o((t=t.apply(c,l)).next())});import{a as F,B as f}from"./index.3ccc18ac.js";import{B}from"./BasicForm.d58d202f.js";import{u as C}from"./useForm.e55162bc.js";import{H as h}from"./filters.39437beb.js";import{a as I,o as x,Q as E,x as g,i as b,h as s,R as D}from"./index.ae52ebae.js";const A=[{title:"\u6267\u884C\u7ED3\u679C",dataIndex:"success",width:150,slots:{customRender:"success"},fixed:!0},{title:"\u6D88\u606Fid",dataIndex:"msgId"},{title:"\u6807\u8BC6\u7801(\u8BBE\u5907,\u75C5\u53F7)",dataIndex:"identityCode"},{title:"\u4FE1\u606F\u7C7B\u578B",dataIndex:"type",slots:{customRender:"type"}},{title:"\u8F93\u5165\u53C2\u6570",dataIndex:"input"},{title:"\u6570\u636E\u5904\u7406\u7ED3\u679C",dataIndex:"result"},{title:"\u9519\u8BEF\u6D88\u606F",dataIndex:"message"},{title:"\u8017\u65F6(ms)",dataIndex:"useTime",width:100},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",width:150},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updateTime",width:150}],H=[{field:"success",label:"\u811A\u672C\u6267\u884C",component:"Select",componentProps:{options:[{label:"\u6210\u529F",value:1},{label:"\u5931\u8D25",value:0}]}},{field:"identityCode",label:"\u6807\u8BC6\u7801",component:"Input"},{field:"type",label:"\u4FE1\u606F\u7C7B\u578B",component:"Select",componentProps:{options:h}},{field:"createTime",label:"\u65F6\u95F4\u8303\u56F4",component:"RangePicker",componentProps:{format:"YYYY-MM-DD HH:mm:ss",placeholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"],showTime:{format:"HH:mm:ss"}}}],T=[{field:"identityCode",label:"\u6807\u8BC6\u7801",component:"Input"},{field:"infoType",label:"\u4FE1\u606F\u7C7B\u578B",component:"Input"},{field:"msgId",label:"\u6D88\u606Fid",component:"Input"},{field:"input",label:"\u8F93\u5165\u53C2\u6570",component:"InputTextArea",componentProps:{placeholder:"\u8F93\u5165\u53C2\u6570",autosize:!0}},{field:"result",label:"\u6570\u636E\u5904\u7406\u7ED3\u679C",component:"InputTextArea",componentProps:{placeholder:"\u8F93\u5165\u6570\u636E\u5904\u7406\u7ED3\u679C",autosize:!0}},{field:"message",label:"\u9519\u8BEF\u6D88\u606F",component:"InputTextArea",componentProps:{placeholder:"\u8BF7\u8F93\u5165\u9519\u8BEF\u6D88\u606F"}}],_=I({__name:"FormModal",setup(c){const l="\u67E5\u770B\u8BE6\u60C5",[t,{setFieldsValue:i,resetFields:a}]=C({labelWidth:100,schemas:T,showActionButtonGroup:!1,actionColOptions:{span:23}}),[r,{setModalProps:n,closeModal:o}]=F(u=>p(this,null,function*(){var m;yield a(),n({confirmLoading:!1});let d=u.record;d.infoType=(m=u.record.type)==null?void 0:m.text,yield i(d)}));function e(){n({confirmLoading:!1}),o()}return(u,d)=>(x(),E(s(f),D(u.$attrs,{title:l,showFooter:!0,onOk:e,onRegister:s(r),width:"50%",showCancelBtn:!1,okText:"\u5173\u95ED"}),{default:g(()=>[b(s(B),{onRegister:s(t)},null,8,["onRegister"])]),_:1},16,["onRegister"]))}});var k=Object.freeze(Object.defineProperty({__proto__:null,default:_},Symbol.toStringTag,{value:"Module"}));export{k as F,_,A as c,H as s};
|