index.8e8103c8.js 4.4 KB

1
  1. import{B as h}from"./TableImg.597584e6.js";import{T as B}from"./index.8dc260b3.js";import{u as x}from"./useTable.b17172ac.js";import{n as C}from"./index.8ae74a87.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.e732a6c4.js";import{A as S}from"./index.131a0cf6.js";import{u as M}from"./index.0d21dfda.js";import O from"./WebsiteDrawer.299c76e8.js";import"./index.52a860e2.js";import"./Checkbox.cd11793f.js";import"./index.67c9fd33.js";import"./index.48dc9414.js";import"./eagerComputed.d8debd6e.js";import"./FileOutlined.a9bd2925.js";import"./BasicForm.fe571845.js";/* empty css *//* empty css */import"./index.7a5d609f.js";import"./index.fe26b69e.js";import"./index.f3ce990d.js";import"./index.aeafc823.js";import"./get.cddfc9f0.js";import"./DeleteOutlined.9453861b.js";import"./transButton.9d7d2b69.js";import"./index.40d1aea5.js";import"./index.9abce0d5.js";import"./Col.f597069f.js";import"./useFlexGapSupport.b687f8e8.js";import"./index.676f2157.js";import"./Form.31f13834.js";import"./_baseIteratee.9ce959b8.js";import"./useSize.251fd95d.js";import"./uniqBy.1074b370.js";import"./index.c44e7998.js";import"./useWindowSizeFn.ef03f01e.js";import"./FullscreenOutlined.67299bdd.js";import"./useForm.d622c54a.js";import"./index.3b7c359a.js";import"./index.5f78f2da.js";import"./useContentViewHeight.b55f3b98.js";import"./ArrowLeftOutlined.ed827216.js";import"./index.edd35c1d.js";import"./FormOutlined.07da32a7.js";import"./index.bc95baf4.js";import"./index.cc5ad1da.js";import"./useRefs.c7c3b4e2.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.2f084204.js";import"./index.f193ab6e.js";import"./fromPairs.84aabb58.js";import"./scrollTo.41659aa7.js";import"./index.bd4bde1e.js";import"./Group.94ed732f.js";import"./index.87a8710f.js";import"./index.2b4dfc13.js";import"./download.23a01323.js";import"./base64Conver.08b9f4ec.js";import"./index.040d81ad.js";import"./Editor.2fdc03d9.js";import"./index.3deca667.js";import"./index.3b319fd0.js";import"./PlusOutlined.4b135b37.js";import"./gallery.f3917ebf.js";import"./index.f06e9979.js";import"./index.85ccf554.js";import"./TabPane.1757a2dd.js";import"./UploadOutlined.434748d7.js";import"./EditOutlined.13f8ad8f.js";import"./Meta.98b69b9f.js";import"./index.ae0cee0e.js";import"./audio.5fac67dc.js";import"./video.7bc752aa.js";import"./file.29c6f240.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};