| 1 |
- import{_ as y}from"./index-B7oXAN67.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-C7Yboh5J.js";import{a as $,E as j}from"./el-form-item-DLyd8kXw.js";import{_ as F}from"./index.vue_vue_type_style_index_0_lang-Dk4XQcde.js";import{E as N}from"./el-card-qSyqQYYx.js";import{E as O}from"./el-page-header-kaEgLwDg.js";import{c as S}from"./new-B0v3auEH.js";import{g as T,j as A}from"./article-efHMNc7a.js";import{u as H}from"./useDictOptions-CsK2WJja.js";import"./_baseClone-C76nFNlq.js";import"./_Uint8Array-DajsfUC5.js";import"./_initCloneObject-hQ0Hv4OE.js";import"./picker-B6xKX_55.js";import"./index-znDHo7YA.js";import"./index-DAcIlXiV.js";import"./index-_ZtKA-z4.js";import"./index.vue_vue_type_script_setup_true_lang-DoF1y6Fr.js";import"./el-tag-DTfoz--e.js";import"./isEqual-C0whiDlb.js";import"./el-select-DXnB4gqN.js";import"./index-CtQ-T4Sx.js";import"./token-DI9FKtlJ.js";import"./el-table-column-QEzDzfnG.js";import"./el-checkbox-CMcb-7pL.js";import"./index-vm_QFHEe.js";import"./index-tjj8bFJU.js";import"./el-text-CSUx_Th5.js";import"./index.vue_vue_type_script_setup_true_lang-eU1cgmQU.js";import"./el-popover-A-rT8DSB.js";import"./usePaging-jhnk0eUD.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};
|