RoomRuleController-d1897ea2.js 1.7 KB

1
  1. var t=(e,o,l)=>new Promise((M,d)=>{var g=a=>{try{n(l.next(a))}catch(s){d(s)}},I=a=>{try{n(l.throw(a))}catch(s){d(s)}},n=a=>a.done?M(a.value):Promise.resolve(a.value).then(g,I);n((l=l.apply(e,o)).next())});import{F as r,__tla as h}from"./index-b5895273.js";let u,i,m,c,p,f,R,b,y=Promise.all([(()=>{try{return h}catch(e){}})()]).then(()=>t(void 0,null,function*(){u=[{title:"\u89C4\u5219\u540D\u79F0",dataIndex:"name",width:150},{title:"\u7ED1\u5B9A\u697C\u680B",dataIndex:"buildNames",align:"left"},{title:"\u95E8\u724C\u53F7",dataIndex:"houseNumber",width:120},{title:"\u64CD\u4F5C",dataIndex:"action",width:200,slots:{customRender:"action"}}],f=[{label:"id",field:"id",component:"Input",show:!1},{label:"\u89C4\u5219\u540D\u79F0",field:"name",component:"Input",required:!0,colProps:{span:24}},{label:"\u89C4\u5219\u914D\u7F6E",field:"rule",component:"Input",required:!0,slot:"postRoomRoomRule",colProps:{span:24}}],m=[{label:"\u697C\u680B\u9009\u62E9",field:"buildIds",component:"Input",slot:"postRoomRuleBindBuilds",colProps:{span:24}}],c=function(e,o="modal"){return t(this,null,function*(){return r.post({url:"/room/roomRule",data:e},{errorMessageMode:o})})},i=function(e,o="modal"){return t(this,null,function*(){return r.put({url:"/room/roomRule",data:e},{errorMessageMode:o})})},p=function(e,o="modal"){return t(this,null,function*(){return r.delete({url:"/room/roomRule",data:e},{errorMessageMode:o})})},b=function(e,o="modal"){return t(this,null,function*(){return r.post({url:"/room/roomRule/bind-builds",data:e},{errorMessageMode:o})})},R=function(e,o="modal"){return t(this,null,function*(){return r.get({url:"/room/roomRule/page",params:e},{errorMessageMode:o})})}}));export{u as T,y as __tla,i as a,m as b,c,p as d,f,R as g,b as p};