ganFlow-BKOWSIaX.js 2.7 KB

1
  1. import{_ as y}from"./index-C34hjiBT.js";import{d as c,g as x,h as E,j as m,Q as R,s as k,a as F,o as V,m as r,w as s,b as l,e as a,v as q,q as C}from"./index-C8jdngMH.js";import{a as B,E as D}from"./el-form-item-BBXPH-C8.js";import{_ as S}from"./index.vue_vue_type_style_index_0_lang-BFoNd2vs.js";import{E as j}from"./el-card-CrmPQ1Wx.js";import{c as N,d as O}from"./new-D-9l9rAw.js";import{g as T,j as z}from"./article-Ywav-JH1.js";import{u as A}from"./useDictOptions-CJwa4bEA.js";import"./_baseClone-sbqJ-rxe.js";import"./_Uint8Array-B6DtR79E.js";import"./_initCloneObject-DysMNCF0.js";import"./picker-PIwoN8fN.js";import"./index-BG8qwOXA.js";import"./index-8mvyCWYt.js";import"./index-Ru1AAeZA.js";import"./index.vue_vue_type_script_setup_true_lang-D46Z55lv.js";import"./el-tag-BdsnjDKk.js";import"./isEqual-OigS2XL6.js";import"./el-select-BndXJERi.js";import"./index-BfI6jP_0.js";import"./token-DI9FKtlJ.js";import"./el-table-column-YPYCowB1.js";import"./el-checkbox-Ch_28OZ8.js";import"./index-sUW7U8mf.js";import"./index-Dhz5FqSe.js";import"./el-text-Uz6Yl6nJ.js";import"./index.vue_vue_type_script_setup_true_lang-BK9EFJrK.js";import"./el-popover-jgmgcoME.js";import"./usePaging-D52o6vG9.js";const I={class:"article-edit"},L={class:"xl:flex"},M={class:"xl:ml-20"},Q=c({name:"articleListsEdit"}),we=c({...Q,setup(U){const i=x();E();const t=m({id:"",title:"",image:"",cid:"",desc:"",author:"",content:"",click_virtual:0,sort:0,is_show:1,abstract:""});R();const p=k(),_=m({title:[{required:!0,message:"请输入文章标题",trigger:"blur"}],cid:[{required:!0,message:"请选择文章栏目",trigger:"blur"}]}),d=async()=>{const o=await T({id:i.query.id});Object.keys(t).forEach(e=>{t[e]=o[e]})};A({article_cate:{api:z}});const u=async()=>{console.log(t,"formRef.valueformRef.valueformRef.value");let o={type:"2",bake_service:t.content};N(o).then(e=>{console.log(e,"ressss")})};return(()=>{O({type:1}).then(o=>{console.log(o,"获取流程"),t.content=o.bake_service})})(),i.query.id&&d(),(o,e)=>{const n=j,f=S,g=D,h=B,v=q,b=y;return V(),F("div",I,[r(n,{class:"!border-none",shadow:"never"},{default:s(()=>e[1]||(e[1]=[l("div",{style:{"font-size":"18px"}}," 烘干流程 ",-1)])),_:1,__:[1]}),r(n,{class:"mt-4 !border-none",shadow:"never"},{default:s(()=>[r(h,{ref_key:"formRef",ref:p,class:"ls-form",model:a(t),"label-width":"85px",rules:a(_)},{default:s(()=>[l("div",L,[l("div",M,[r(g,{label:"流程内容",prop:"content"},{default:s(()=>[r(f,{modelValue:a(t).content,"onUpdate:modelValue":e[0]||(e[0]=w=>a(t).content=w),height:667,width:375},null,8,["modelValue"])]),_:1})])])]),_:1},8,["model","rules"])]),_:1}),r(b,null,{default:s(()=>[r(v,{type:"primary",onClick:u},{default:s(()=>e[2]||(e[2]=[C("保存")])),_:1,__:[2]})]),_:1})])}}});export{we as default};