multiStoreAdmin/build/store/assets/edit.b0fa9e35.js

2 lines
6.2 KiB
JavaScript
Raw Normal View History

2024-06-20 18:14:25 +08:00
import{_ as N}from"./index.ff137ca9.js";import{P as O,I as T,C as $,D as z,Q as j,R as G,v as H,G as L,H as M,F as P,w as S}from"./element-plus.61695454.js";import{_ as Q}from"./index.vue_vue_type_style_index_0_lang.89ade60c.js";import{_ as W}from"./picker.832550d5.js";import{u as J,a as K}from"./vue-router.43c06794.js";import{u as X}from"./useDictOptions.aa5d9c7d.js";import{g as Y,h as Z,i as ee,j as te}from"./article.11842954.js";import{e as oe}from"./index.1dd80bf2.js";import{d as w,a0 as b,s as le,o as d,c as V,W as e,O as u,u as a,a as r,V as ae,a7 as ue,M as re,T as p}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@wangeditor.db8cc219.js";import"./index.3446e7c2.js";import"./index.cb97c6de.js";import"./index.vue_vue_type_script_setup_true_lang.33ea11c1.js";import"./index.ae7d0ef2.js";import"./index.ebe9ee83.js";import"./index.vue_vue_type_script_setup_true_lang.09ad5ba8.js";import"./usePaging.d25ebf19.js";import"./vue3-video-play.4813c60b.js";import"./vuedraggable.5825c4b1.js";import"./vue.74758107.js";import"./sortablejs.275d9d20.js";import"./lodash.a2abcd4b.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";const ie={class:"article-edit"},se={class:"xl:flex"},ne={class:"w-80"},me={class:"w-80"},de={class:"w-80"},pe=r("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A240*180px",-1),_e={class:"w-80"},ce=r("div",{class:"form-tips"},"\u9ED8\u8BA4\u4E3A0\uFF0C \u6570\u503C\u8D8A\u5927\u8D8A\u6392\u524D",-1),fe={class:"xl:ml-20"},Ee=w({name:"articleListsEdit"}),_t=w({...Ee,setup(be){const m=J(),F=K(),t=b({id:"",title:"",image:"",cid:"",desc:"",author:"",content:"",click_virtual:0,sort:0,is_show:1,abstract:""}),{removeTab:v}=oe(),_=le(),B=b({title:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u7AE0\u6807\u9898",trigger:"blur"}],cid:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u7AE0\u680F\u76EE",trigger:"blur"}]}),g=async()=>{const s=await Y({id:m.query.id});Object.keys(t).forEach(o=>{t[o]=s[o]})},{optionsData:A}=X({article_cate:{api:Z}}),h=async()=>{var s;await((s=_.value)==null?void 0:s.validate()),m.query.id?await ee(t):await te(t),v(),F.back()};return m.query.id&&g(),(s,o)=>{const C=O,c=T,n=$,i=z,x=j,D=G,k=W,f=H,E=L,R=M,y=Q,U=P,q=S,I=N;return d(),V("div",ie,[e(c,{class:"!border-none",shadow:"never"},{default:u(()=>[e(C,{content:s.$route.meta.title,onBack:o[0]||(o[0]=l=>s.$router.back())},null,8,["content"])]),_:1}),e(c,{class:"mt-4 !border-none",shadow:"never"},{default:u(()=>[e(U,{ref_key:"formRef",ref:_,class:"ls-form",model:a(t),"label-width":"85px",rules:a(B)},{default:u(()=>[r("div",se,[r("div",null,[e(i,{label:"\u6587\u7AE0\u6807\u9898",prop:"title"},{default:u(()=>[r("div",ne,[e(n,{modelValue:a(t).title,"onUpdate:modelValue":o[1]||(o[1]=l=>a(t).title=l),placeholder:"\u8BF7\u8F93\u5165\u6587\u7AE0\u6807\u9898",type:"textarea",autosize:{minRows:3,maxRows:3},maxlength:"64","show-word-limit":"",clearable:""},null,8,["modelValue"])])]),_:1}),e(i,{label:"\u6587\u7AE0\u680F\u76EE",prop:"cid"},{default:u(()=>[e(D,{class:"w-80",modelValue:a(t).cid,"onUpdate:modelValue":o[2]||(o[2]=l=>a(t).cid=l),placeholder:"\u8BF7\u9009\u62E9\u6587\u7AE0\u680F\u76EE",clearable:""},{default:u(()=>[(d(!0),V(ae,null,ue(a(A).article_cate,l=>(d(),re(x,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1}