feiFlow-Dd55gJy3.js 2.7 KB

1
  1. import{_ as y}from"./index-tfGc4Wdo.js";import{d as p,g as R,h as k,j as m,y as x,s as V,a as q,o as B,m as t,w as s,e as a,b as c,v as C,q as D}from"./index-CLEwgRtx.js";import{a as $,E as j}from"./el-form-item-D4XhETha.js";import{_ as F}from"./index.vue_vue_type_style_index_0_lang-CbnbTZCt.js";import{E as N}from"./el-card-BKAwDEAt.js";import{E as O}from"./el-page-header-D35k4dIU.js";import{c as S}from"./new-DDRrRBZV.js";import{g as T,j as A}from"./article-CcacbAwO.js";import{u as H}from"./useDictOptions--gMt2R5c.js";import"./_baseClone-BIneKdCm.js";import"./_Uint8Array-CBz-WFvM.js";import"./_initCloneObject-BRivHnIp.js";import"./picker-BsTL6SAE.js";import"./index-A6lifSVA.js";import"./index-X1XxDTj0.js";import"./index-CHETAl1n.js";import"./index.vue_vue_type_script_setup_true_lang-Dfz44nWL.js";import"./el-tag-CB84Ivti.js";import"./isEqual-D1Fd96h9.js";import"./el-select-ByUZpQIV.js";import"./index-CuBy7JHW.js";import"./token-DI9FKtlJ.js";import"./el-table-column-CzWz-9Ls.js";import"./el-checkbox-BjoDT03U.js";import"./index-DKaCjtaM.js";import"./index-CdYZikG5.js";import"./el-text-DSh33K4N.js";import"./index.vue_vue_type_script_setup_true_lang-DnkyOy2Y.js";import"./el-popover-CWuZjQBS.js";import"./usePaging-C3849W2i.js";const I={class:"article-edit"},L={class:"xl:flex"},M={class:"xl:ml-20"},P=p({name:"articleListsEdit"}),we=p({...P,setup(U){const l=R();k();const o=m({id:"",title:"",image:"",cid:"",desc:"",author:"",content:"",click_virtual:0,sort:0,is_show:1,abstract:""});x();const _=V(),d=m({title:[{required:!0,message:"请输入文章标题",trigger:"blur"}],cid:[{required:!0,message:"请选择文章栏目",trigger:"blur"}]}),u=async()=>{const r=await T({id:l.query.id});Object.keys(o).forEach(e=>{o[e]=r[e]})};H({article_cate:{api:A}});const f=async()=>{console.log(o,"formRef.valueformRef.valueformRef.value");let r={type:"3",air_service:o.content};S(r).then(e=>{console.log(e,"ressss")})};return l.query.id&&u(),(r,e)=>{const g=O,n=N,v=F,b=j,h=$,E=C,w=y;return B(),q("div",I,[t(n,{class:"!border-none",shadow:"never"},{default:s(()=>[t(g,{content:r.$route.meta.title,onBack:e[0]||(e[0]=i=>r.$router.back())},null,8,["content"])]),_:1}),t(n,{class:"mt-4 !border-none",shadow:"never"},{default:s(()=>[t(h,{ref_key:"formRef",ref:_,class:"ls-form",model:a(o),"label-width":"85px",rules:a(d)},{default:s(()=>[c("div",L,[c("div",M,[t(b,{label:"流程内容",prop:"content"},{default:s(()=>[t(v,{modelValue:a(o).content,"onUpdate:modelValue":e[1]||(e[1]=i=>a(o).content=i),height:667,width:375},null,8,["modelValue"])]),_:1})])])]),_:1},8,["model","rules"])]),_:1}),t(w,null,{default:s(()=>[t(E,{type:"primary",onClick:f},{default:s(()=>e[2]||(e[2]=[D("保存")])),_:1,__:[2]})]),_:1})])}}});export{we as default};