multiStoreAdmin/build/store/assets/edit.181a864d.js

2 lines
6.2 KiB
JavaScript
Raw Normal View History

2024-09-19 11:09:33 +08:00
import{_ as I}from"./index.d5f74f82.js";import{Q as N,J as z,D as O,F as S,R as T,S as j,v as G,H,I as L,G as P,w as Q}from"./element-plus.6b125791.js";import{_ as J}from"./index.vue_vue_type_style_index_0_lang.04f26e0c.js";import{_ as M}from"./picker.4479ef05.js";import{u as W,a as K}from"./vue-router.9ddb0e92.js";import{u as X}from"./useDictOptions.6c2237c9.js";import{g as Y,h as Z,i as ee,j as te}from"./article.1908d87a.js";import{e as oe}from"./index.8eb121a3.js";import{d as w,$ as b,s as le,o as d,c as V,W as e,Q as u,u as a,a as r,F as ae,a9 as ue,P as re,U as p}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.6b964ca4.js";import"./axios.ebd1d4d0.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./@wangeditor.2e5c8ceb.js";import"./index.7acb2098.js";import"./index.fa70a7ab.js";import"./index.vue_vue_type_script_setup_true_lang.305bb481.js";import"./index.81fe361e.js";import"./index.f7872853.js";import"./index.vue_vue_type_script_setup_true_lang.236700ef.js";import"./usePaging.fff444fa.js";import"./vue3-video-play.fb56db8a.js";import"./vuedraggable.d9ca47e8.js";import"./vue.46727b3c.js";import"./sortablejs.ae45557f.js";import"./lodash.ab1d8f92.js";import"./pinia.97fe9b12.js";import"./css-color-function.7a4c1284.js";import"./color.10b8b3bd.js";import"./clone.623e4e2d.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.518a19eb.js";import"./vue-clipboard3.c098b37d.js";import"./clipboard.a67a48a7.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.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"}),ct=w({...Ee,setup(be){const m=W(),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 x=N,c=z,n=O,i=S,C=T,D=j,k=M,f=G,E=H,R=L,y=J,U=P,q=Q,$=I;return d(),V("div",ie,[e(c,{class:"!border-none",shadow:"never"},{default:u(()=>[e(x,{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(C,{key:l.id,label:l.name,value:l.id},null,8,["la