You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
3.4 KiB
JavaScript
2 lines
3.4 KiB
JavaScript
var R=(x,_,o)=>new Promise((h,s)=>{var b=t=>{try{r(o.next(t))}catch(m){s(m)}},d=t=>{try{r(o.throw(t))}catch(m){s(m)}},r=t=>t.done?h(t.value):Promise.resolve(t.value).then(b,d);r((o=o.apply(x,_)).next())});import{P as $}from"./index-CnbNoayZ.js";import{u as D,_ as T}from"./useTable-CUkvZ0go.js";import{_ as P}from"./index-DVy1eUzr.js";import{f as B,g as N,h as v}from"./index-DI9OeJDn.js";import{b as S}from"./download-Cu3oizbN.js";import{u as W}from"./index-fya05jI8.js";import{f as V,c as A,_ as L}from"./AcademicWarningModal.vue_vue_type_script_setup_true_lang-ysszJ1OC.js";import{_ as F}from"./AcademicWarningImportModal.vue_vue_type_script_setup_true_lang-Dhl0hwoi.js";import{I as w}from"./entry/index-C2Ijy48E-1723706691540.js";import{d as G,aa as K,n as j,_ as n,a8 as i,a9 as a,k,u as e,m as f,G as g,ac as q}from"./vue-aEZWZQSa.js";import"./useContentViewHeight-BBd42TOY.js";import"./useWindowSizeFn-CjdUjzGl.js";import"./antd-BY-1PcYE.js";import"./onMountedOrActivated-BIJ0U1R1.js";import"./useForm-fILnWqWp.js";import"./FormItem.vue_vue_type_script_lang-CKJUw6EQ.js";import"./componentMap-zBHKqdNc.js";import"./RadioButtonGroup.vue_vue_type_script_setup_true_lang-CVQ-sEzT.js";import"./copyTextToClipboard-BBFF3Y3I.js";import"./style-apcQnL4e.js";import"./helper-D0Efh3UP.js";import"./BasicForm.vue_vue_type_style_index_0_lang-D499EpF5.js";import"./sortable.esm-CnNXHMH-.js";import"./useSortable-Bra4jKJL.js";import"./useLoading-C2GeNIUj.js";import"./dict-1X4Pwk-Z.js";import"./useRender-C6_44OXE.js";import"./index-JkNHdZh2.js";const Ce=G({name:"AcademicWarning",__name:"index",setup(x){const[_,{reload:o,multipleRemove:h,selected:s}]=D({rowSelection:{type:"checkbox"},title:"学业警示列表",api:B,showIndexColumn:!1,rowKey:"id",useSearchForm:!0,formConfig:{schemas:V,baseColProps:{xs:24,sm:24,md:24,lg:6}},columns:A,actionColumn:{width:200,title:"操作",key:"action",fixed:"right"}}),[b,{openModal:d}]=W(),[r,{openModal:t}]=W();function m(){t(!0)}function E(l){d(!0,{record:l,update:!0})}function I(){d(!0,{update:!1})}function M(l){return R(this,null,function*(){yield v([l.id]),yield o()})}return(l,p)=>{const c=K("a-button"),u=j("auth");return n(),i(e($),{dense:""},{default:a(()=>[k(e(T),{onRegister:e(_)},{toolbar:a(()=>[f((n(),i(c,{onClick:m},{default:a(()=>[g("导入")]),_:1})),[[u,"student:academicWarning:import"]]),f((n(),i(c,{onClick:p[0]||(p[0]=y=>e(S)(e(N),"学业警示数据"))},{default:a(()=>[g("导出")]),_:1})),[[u,"student:academicWarning:export"]]),f((n(),i(c,{type:"primary",danger:"",onClick:p[1]||(p[1]=y=>e(h)(e(v))),disabled:!e(s)},{default:a(()=>[g("删除")]),_:1},8,["disabled"])),[[u,"student:academicWarning:remove"]]),f((n(),i(c,{type:"primary",onClick:I},{default:a(()=>[g("新增")]),_:1})),[[u,"student:academicWarning:add"]])]),bodyCell:a(({column:y,record:C})=>[y.key==="action"?(n(),i(e(P),{key:0,stopButtonPropagation:"",actions:[{label:"修改",icon:e(w).EDIT,type:"primary",ghost:!0,auth:"student:academicWarning:edit",onClick:E.bind(null,C)},{label:"删除",icon:e(w).DELETE,type:"primary",danger:!0,ghost:!0,auth:"student:academicWarning:remove",popConfirm:{placement:"left",title:"是否删除学业警示["+C.id+"]?",confirm:M.bind(null,C)}}]},null,8,["actions"])):q("",!0)]),_:1},8,["onRegister"]),k(L,{onRegister:e(b),onReload:e(o)},null,8,["onRegister","onReload"]),k(F,{onRegister:e(r),onReload:e(o)},null,8,["onRegister","onReload"])]),_:1})}}});export{Ce as default};
|