import{P as B}from"./page.3b4d44cb.js";import{g as C,a as E}from"./category.d6885772.js";import{d as v,a4 as h,b7 as k,b as _,c as d,e as A,k as T,i as u,g as p,t as D,u as n,h as t,m as F,E as L,_ as x}from"./index.0308b213.js";import{M as N}from"./index.dfdc0704.js";import"./index.vue_vue_type_style_index_0_scoped_f00ed21d_lang.2c48f49b.js";import"./vuedraggable.umd.405b1bec.js";import"./index.35b8c9ab.js";import"./index.9e8820cd.js";import"./sort_out.2008c10d.js";const S={class:"container"},U={class:"title-box"},w={class:"title"},M=F("\u63D0\u4EA4"),I=v({setup(P){const c=h(),f=k(),r=Number(c.query.id),b=()=>{setTimeout(()=>{f.go(-1)},1e3)},s=_({loading:!0,btnLoading:!1,checkList:[],parentTitle:"",page_title:"\u65B0\u589E"}),o=_({title:"",description:"",thumb:"",displayorder:"",parentid:r||0});r&&C({id:r}).then(l=>{s.parentTitle=l.data.title}).finally(()=>{s.loading=!1});const g=()=>{console.log("\u63D0\u4EA4",o),s.btnLoading=!0,E(o).then(l=>{console.log("\u6570\u636E",l),L.success("\u63D0\u4EA4\u6210\u529F"),b()}).finally(()=>{s.btnLoading=!1})};return(l,e)=>{const m=d("el-input"),i=d("el-form-item"),y=d("el-button"),V=d("el-form");return A(),T(B,{showBorder:!1,loading:l.loading},{main:u(()=>[p("div",S,[p("div",U,[p("h2",w,D(n(s).page_title)+"\u5B50\u5206\u7C7B",1)]),t(V,{"label-width":"150px",class:"form-container"},{default:u(()=>[t(i,{label:"\u7236\u7EA7\u5206\u7C7B"},{default:u(()=>[t(m,{disabled:!0,modelValue:l.parentTitle,"onUpdate:modelValue":e[0]||(e[0]=a=>l.parentTitle=a)},null,8,["modelValue"])]),_:1}),t(i,{label:"\u5B50\u5206\u7C7B\u540D\u79F0"},{default:u(()=>[t(m,{modelValue:n(o).title,"onUpdate:modelValue":e[1]||(e[1]=a=>n(o).title=a)},null,8,["modelValue"])]),_:1}),t(i,{label:"\u5B50\u5206\u7C7B\u56FE\u6807"},{default:u(()=>[t(N,{modelValue:n(o).thumb,"onUpdate:modelValue":e[2]||(e[2]=a=>n(o).thumb=a)},null,8,["modelValue"])]),_:1}),t(i,{label:"\u5B50\u5206\u7C7B\u6392\u5E8F"},{default:u(()=>[t(m,{modelValue:n(o).displayorder,"onUpdate:modelValue":e[3]||(e[3]=a=>n(o).displayorder=a),type:"number"},null,8,["modelValue"])]),_:1}),t(y,{type:"primary",loading:l.btnLoading,onClick:e[4]||(e[4]=a=>g())},{default:u(()=>[M]),_:1},8,["loading"])]),_:1})])]),_:1},8,["loading"])}}});const O=x(I,[["__scopeId","data-v-c92dbf27"]]);export{O as default};
