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
1.9 KiB
JavaScript

var i=(p,l,o)=>new Promise((r,t)=>{var c=e=>{try{a(o.next(e))}catch(n){t(n)}},m=e=>{try{a(o.throw(e))}catch(n){t(n)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(c,m);a((o=o.apply(p,l)).next())});import{a as M,B as y}from"./index-DVEqH4Di.js";import{i as h}from"./index-BkzFoE48.js";import{u as I,_ as b}from"./useTable--thsDsLA.js";import"./index-B4wZYO02.js";import{d as C,k as d,ad as D}from"./vue-aEZWZQSa.js";import"./entry/index-CwTXVJ2d-1723001953242.js";import"./antd-BY-1PcYE.js";import"./useWindowSizeFn-C93ItSr2.js";import"./useForm-Ca7JThS8.js";import"./FormItem.vue_vue_type_script_lang-DhGC9etS.js";import"./componentMap-S705cJLS.js";import"./RadioButtonGroup.vue_vue_type_script_setup_true_lang-Cx2YeHC7.js";import"./copyTextToClipboard-BBFF3Y3I.js";import"./onMountedOrActivated-BIJ0U1R1.js";import"./style-DTWqfx8n.js";import"./helper-BPjqq6ZQ.js";import"./BasicForm.vue_vue_type_style_index_0_lang-D34fDasZ.js";import"./sortable.esm-CnNXHMH-.js";import"./useSortable-BAwH_r98.js";import"./download-Da_OLLnH.js";import"./useLoading-B4X4QuoY.js";const J=C({name:"DeleteMultiInstanceModal",emits:["selectDone","register"],setup(p,{attrs:l,emit:o}){const[r,{modalLoading:t,closeModal:c}]=M(m);function m(s){return i(this,null,function*(){t(!0);const w=yield h(s);e(w),t(!1)})}const[a,{setTableData:e,getSelectRows:n,setSelectedRowKeys:f}]=I({showIndexColumn:!0,showTableSetting:!1,pagination:!1,size:"small",canResize:!1,rowKey:"assignee",clickToRowSelect:!0,columns:[{title:"任务名称",dataIndex:"name"},{title:"办理人",dataIndex:"assigneeName"}],rowSelection:{type:"checkbox"}});function g(){return i(this,null,function*(){try{t(!0);const s=n();if(!s.length)return;u(),o("selectDone",s)}catch(s){}finally{t(!1)}})}function u(){return i(this,null,function*(){c(),f([])})}return()=>d(y,D(l,{title:"减签人员",width:600,onRegister:r,onOk:g,onCancel:u}),{default:()=>[d(b,{onRegister:a},null)]})}});export{J as default};