data.config-5d486c93.js 3.7 KB

1
  1. var o=(e,t,a)=>new Promise((l,d)=>{var h=n=>{try{p(a.next(n))}catch(i){d(i)}},P=n=>{try{p(a.throw(n))}catch(i){d(i)}},p=n=>n.done?l(n.value):Promise.resolve(n.value).then(h,P);p((a=a.apply(e,t)).next())});import{h as g,bj as I,fy as s,E as _,__tla as y}from"./index-b5895273.js";import{f as r,__tla as w}from"./index-f35bbafa.js";import{b as v,__tla as x}from"./EvaluateTemplateController-53477ab1.js";let c,u,m,b,f,C=Promise.all([(()=>{try{return y}catch(e){}})(),(()=>{try{return w}catch(e){}})(),(()=>{try{return x}catch(e){}})()]).then(()=>o(void 0,null,function*(){f=[{title:"\u6A21\u677F\u540D\u79F0",dataIndex:"name",align:"left",width:200},{title:"\u8BC4\u4EF7\u7C7B\u578B",dataIndex:"evaluateType",align:"left",width:120},{title:"\u4F7F\u7528\u90E8\u95E8",dataIndex:"deptNames",align:"left",width:150},{title:"\u8BC4\u4EF7\u5206\u6570",dataIndex:"total",width:80},{title:"\u8BF4\u660E",dataIndex:"remark",align:"left"},{title:"\u72B6\u6001",dataIndex:"status",customRender:({record:e})=>(Reflect.has(e,"pendingStatus")||(e.pendingStatus=!1),g(I,{checked:e.status===1,checkedChildren:"\u5DF2\u542F\u7528",unCheckedChildren:"\u5DF2\u7981\u7528",loading:e.pendingStatus,onChange(t){e.pendingStatus=!0;const a=t?1:0,{createMessage:l}=_();v({id:e.id,status:a}).then(()=>{e.status=a,l.success("\u5DF2\u6210\u529F\u4FEE\u6539\u89D2\u8272\u72B6\u6001")}).catch(()=>{l.error("\u4FEE\u6539\u89D2\u8272\u72B6\u6001\u5931\u8D25")}).finally(()=>{e.pendingStatus=!1})}})),width:90}],b=[{field:"deptIds",label:"\u4F7F\u7528\u90E8\u95E8",component:"ApiSelect",colProps:{span:8},componentProps:()=>({getPopupContainer:()=>document.body,multiple:!0,api:()=>o(void 0,null,function*(){const e=(yield s({url:"educational/abutment/org-info"})).map(t=>({value:t.id,label:t.name}));return e.unshift({value:"0",label:"\u901A\u7528"}),e})})},{field:"evaluateType",label:"\u8BC4\u4EF7\u7C7B\u578B",component:"ApiSelect",colProps:{span:8},componentProps:{api:()=>r({code:"evaluate_type"}),getPopupContainer:()=>document.body}},{field:"name",label:"\u6A21\u677F\u540D\u79F0",component:"Input",colProps:{span:8}},{field:"status",label:"\u72B6\u6001",component:"Select",colProps:{span:8},componentProps:{options:[{label:"\u542F\u7528",value:"1"},{label:"\u7981\u7528",value:"0"}],getPopupContainer:()=>document.body}}],m=[{label:"\u6A21\u677F\u540D\u79F0",field:"name",component:"Input",required:!0,colProps:{span:12}},{label:"\u8BC4\u4EF7\u7C7B\u578B",field:"evaluateType",component:"ApiSelect",required:!0,colProps:{span:12},componentProps:{api:()=>r({code:"evaluate_type"}),getPopupContainer:()=>document.body}},{label:"\u4F7F\u7528\u90E8\u95E8",field:"deptIds",required:!0,component:"ApiSelect",colProps:{span:12},componentProps:()=>({getPopupContainer:()=>document.body,mode:"multiple",api:()=>o(void 0,null,function*(){const e=(yield s({url:"educational/abutment/org-info"})).map(t=>({value:t.id,label:t.name}));return e.unshift({value:"0",label:"\u901A\u7528"}),e})})},{label:"\u8BC4\u4EF7\u603B\u5206",field:"total",component:"InputNumber",required:!0,colProps:{span:12}},{label:"\u5907\u6CE8",field:"remark",component:"InputTextArea",colProps:{span:24}}],c=[{label:"\u6807\u9898\u540D\u79F0",field:"field0",component:"Input",colProps:{span:22},required:!0},{field:"0",component:"Input",label:"",colProps:{span:2},slot:"add"},{label:"",field:"table0",component:"Input",colProps:{span:24},required:!0,slot:"table"}],u=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"problem",editRow:!0,editRule:!0,align:"left"},{title:"\u5206\u6570",dataIndex:"score",width:80,editRow:!0,editComponent:"InputNumber"},{title:"\u5FC5\u586B",dataIndex:"inputNotNull",width:80,editRow:!0,editComponent:"Switch",editValueMap:e=>e?"\u662F":"\u5426"}]}));export{C as __tla,c as a,u as b,m as f,b as s,f as t};