index.77e6cb5c.js 4.4 KB

1
  1. import{B as h}from"./TableImg.dc9e3263.js";import{T as B}from"./index.772bb79c.js";import{u as x}from"./useTable.46780a65.js";import{n as C}from"./index.f6601185.js";import{bR as o,a as T,aN as y,a_ as R,o as k,h as w,n as e,y as u,z as v,i as r,cM as I,cN as N,e1 as d}from"./index.386d9fb7.js";import{A as S}from"./index.d3334f45.js";import{u as M}from"./index.b36a1201.js";import O from"./WebsiteDrawer.91fc7152.js";import"./index.d1a867f8.js";import"./Checkbox.ac2c3bae.js";import"./index.099bcd75.js";import"./index.02f194d7.js";import"./eagerComputed.49b57638.js";import"./FileOutlined.4755ce7d.js";import"./BasicForm.a06b71db.js";/* empty css *//* empty css */import"./index.aed3fcbc.js";import"./index.02a610c8.js";import"./index.bb9930d5.js";import"./index.2741d802.js";import"./get.b8c3006a.js";import"./DeleteOutlined.852ea9a3.js";import"./transButton.819dbf15.js";import"./index.28a5cbb8.js";import"./index.2adf5889.js";import"./Col.7f949b31.js";import"./useFlexGapSupport.587c05ca.js";import"./index.74294103.js";import"./Form.91d201f3.js";import"./_baseIteratee.3f358b05.js";import"./useSize.1400bc25.js";import"./uniqBy.3999e323.js";import"./index.02535309.js";import"./useWindowSizeFn.b46c26df.js";import"./FullscreenOutlined.9b13e7c7.js";import"./useForm.67940d69.js";import"./index.d521ae0a.js";import"./index.507c21d5.js";import"./useContentViewHeight.c723fc13.js";import"./ArrowLeftOutlined.f1e0008b.js";import"./index.2e8270ab.js";import"./FormOutlined.ef8f8f88.js";import"./index.d77b16ba.js";import"./index.aa276cac.js";import"./useRefs.4d8307d4.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.0f4a624f.js";import"./index.2e642baa.js";import"./fromPairs.84aabb58.js";import"./scrollTo.1ba74922.js";import"./index.e1927454.js";import"./Group.e744a08a.js";import"./index.dc654e6b.js";import"./index.d184e3ed.js";import"./download.65105715.js";import"./base64Conver.08b9f4ec.js";import"./index.0fd57566.js";import"./Editor.d78acf51.js";import"./index.cb3cbbaa.js";import"./index.581efe0b.js";import"./PlusOutlined.a5dd0864.js";import"./gallery.e67b7d30.js";import"./index.fb2db0bc.js";import"./index.1a1e98a0.js";import"./TabPane.cca26f83.js";import"./UploadOutlined.d45940c8.js";import"./EditOutlined.1e7f2d47.js";import"./Meta.f2a866c3.js";import"./index.d1d33b5d.js";import"./audio.8fd7fb85.js";import"./video.90aad8f2.js";import"./file.a3a64e08.js";const z=[{title:"\u5206\u7C7B",dataIndex:"category_id",customRender:({record:t})=>t.relate_1?o("span",t.relate_1.name):o("div","-")},{title:"TAG",dataIndex:"tag"},{title:"\u6807\u9898",dataIndex:"title",width:150},{title:"\u4EA7\u54C1",dataIndex:"category_id",customRender:({record:t})=>t.relate_0?o("span",[o(S,{src:t.relate_0.logo,style:{marginRight:"5px"}}),o("span",t.relate_0.title)]):o("div","-")}],F={title:"\u5E7F\u544A\u5217\u8868",titleHelpMessage:"\u6BD4\u5982:\u540E\u53F0\u7BA1\u7406\u6A21\u5757,\u524D\u53F0\u7BA1\u7406\u6A21\u5757\uFF0C\u547D\u540D\u7A7A\u95F4\u5FC5\u987B\u4E0E\u4EE3\u7801\u6A21\u5757\u4FDD\u6301\u4E00\u81F4\uFF01",api:t=>C("position_list",t),columns:z,bordered:!0,showTableSetting:!0,loading:!0,pagination:{defaultPageSize:20},actionColumn:{width:160,title:"\u64CD\u4F5C",dataIndex:"action",slots:{customRender:"action"}}},P={class:"p-4"},uo=T({__name:"index",setup(t){var p,s;const n=(s=(p=y().query)==null?void 0:p.pmid)!=null?s:"";n&&(F.beforeFetch=()=>({pmid:n}));const[_,{openDrawer:a}]=M(),[f,{reload:m}]=x(F);function g(i){a(!0,{record:i,isUpdate:!0})}function D(){m()}function E(){a(!0,{isUpdate:!1})}const b=i=>{I.confirm({title:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u5417?",icon:e(N),content:e("div",{style:"color:red;"},"\u6CE8\uFF1A\u5220\u9664\u540E\uFF0C\u8BE5\u6570\u636E\u5C06\u65E0\u6CD5\u6062\u590D\uFF01"),okText:"\u5220\u9664",okType:"danger",onOk(){C("position_list_del",{mid:i.mid}).then(l=>{l.error?d.error("\u64CD\u4F5C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"):(m(),d.success("\u64CD\u4F5C\u6210\u529F\uFF01"))})}})};return(i,l)=>{const A=R("a-button");return k(),w("div",P,[e(r(h),{onRegister:r(f)},{toolbar:u(()=>[e(A,{type:"primary",onClick:E},{default:u(()=>[v(" \u65B0\u589E\u5E7F\u544A ")]),_:1})]),action:u(({record:c})=>[e(r(B),{actions:[{label:"\u7F16\u8F91",icon:"clarity:note-edit-line",color:"success",onClick:g.bind(null,c)},{label:"\u5220\u9664",icon:"ic:outline-delete-outline",color:"error",onClick:b.bind(null,c)}]},null,8,["actions"])]),_:1},8,["onRegister"]),e(O,{onRegister:r(_),onSuccess:D},null,8,["onRegister"])])}}});export{uo as default};