import{_ as B,P as S}from"./page-content.e0c7af12.js";import{u as b}from"./use-page-search.0f272301.js";import{S as C}from"./status.2b37e8be.js";import{c as P,r as x}from"./column-helper.64ceba17.js";import{h as y,a as F,b as R,_ as A}from"./edit-dialog.vue_vue_type_script_setup_true_lang.5f7ffad5.js";import{u as w}from"./usePermission.8064505c.js";import{a as D,r as N,b as m,c,j as d,h as r,f as a,u as t,x as $,l as T}from"./index.4d061c66.js";import"./remote-select.36ee67a3.js";import"./useAsync.df7387ce.js";import"./useNav.5e73c372.js";import"./image.e35d846c.js";import"./hooks.9f8f44e2.js";/* empty css */import"./image.4c97dbe3.js";/* empty css */import"./index.e63aea62.js";import"./responseHandle.fe68d5aa.js";import"./btnList.6c44b4ef.js";const E={formItems:[{field:"status",type:"select",placeholder:"\u89C6\u9891\u72B6\u6001",options:P(C)},{field:"video_name",type:"input",placeholder:"\u89C6\u9891\u540D\u79F0"},{field:"video_url",type:"input",placeholder:"\u89C6\u9891\u5730\u5740"}]},f=E,I=[{prop:"id",label:"ID",width:"100px"},{prop:"video_name",label:"\u89C6\u9891\u540D\u79F0"},{prop:"status",label:"\u72B6\u6001",...x(C)},{prop:"video_url",label:"\u89C6\u9891\u94FE\u63A5"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4"},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],O={title:"\u89C6\u9891\u7BA1\u7406",columns:I,apis:{httpDelete:y,httpStatus:F,httpList:R}},V=O,ie=D({__name:"index",setup(U){const s=N(null),u="good",{pageContentRef:p,handleResetClick:h,handleSearchClick:_}=b(void 0,void 0,f),{hasPermissionWithCode:g,permissions:k}=w(u);function n(l,e,i){s.value.show(l,e,i)}return(l,e)=>{const i=m("el-button"),v=m("PageAuth");return c(),d(v,{pageName:u},{default:r(()=>[a(t(B),{"form-config":t(f),onSearchBtnClick:t(_),onResetBtnClick:t(h)},{action:r(()=>[t(g)("002")?(c(),d(i,{key:0,type:"primary",onClick:e[0]||(e[0]=o=>n({},"","create"))},{default:r(()=>[$(" \u65B0\u589E ")]),_:1})):T("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(t(S),{ref_key:"pageContentRef",ref:p,powers:t(k),"content-config":t(V),onPreviewBtnClick:e[1]||(e[1]=o=>n(o,o.id,"view")),onUpdateBtnClick:e[2]||(e[2]=o=>n(o,o.id,"edit"))},null,8,["powers","content-config"]),a(A,{ref_key:"modelRef",ref:s,onReload:e[3]||(e[3]=o=>t(p).onSearch())},null,512)]),_:1})}}});export{ie as default};