suyuan-breed/public/admin/assets/edit.cfdc3eaf.js

2 lines
6.2 KiB
JavaScript
Raw Normal View History

2024-01-15 10:41:48 +08:00
import{_ as N}from"./index.6faf88cc.js";import{R as O,J as T,B as $,C as z,G as I,H as j,v as G,O as H,P as J,D as L,w as P}from"./element-plus.0aa2c80d.js";import{_ as S}from"./index.vue_vue_type_style_index_0_lang.c7a7075f.js";import{_ as K}from"./picker.c37153eb.js";import{u as M,a as Q}from"./vue-router.ed788fee.js";import{a as W}from"./useDictOptions.53c0e829.js";import{g as X,h as Y,i as Z,j as ee}from"./article.fd1f4731.js";import{e as te}from"./index.d7311395.js";import{d as V,_ as E,s as oe,o as m,c as b,T as e,K as a,a as u,U as le,a6 as ae,u as ue,R as d,J as re}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.664390f6.js";import"./axios.4ebfdb3f.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@wangeditor.4fd390b4.js";import"./index.7e882bb4.js";import"./index.c5011b43.js";import"./index.vue_vue_type_script_setup_true_lang.0cb948f8.js";import"./index.5a4c823b.js";import"./index.a803994d.js";import"./index.vue_vue_type_script_setup_true_lang.c8459f18.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.38d35928.js";import"./vue.c38777e7.js";import"./sortablejs.8626b931.js";import"./lodash.e92d81a1.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.dbf33394.js";import"./color.e1b5fced.js";import"./clone.0a4e8ac3.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.f174a91e.js";import"./ms.a9ae1d6d.js";import"./nprogress.d7c3ab1b.js";import"./vue-clipboard3.add720e2.js";import"./clipboard.01ea18f5.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const ie={class:"article-edit"},se={class:"xl:flex"},ne={class:"w-80"},me={class:"w-80"},de={class:"w-80"},pe=u("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A240*180px",-1),_e={class:"w-80"},ce=u("div",{class:"form-tips"},"\u9ED8\u8BA4\u4E3A0\uFF0C \u6570\u503C\u8D8A\u5927\u8D8A\u6392\u524D",-1),fe=d("\u663E\u793A"),Ee=d("\u9690\u85CF"),be={class:"xl:ml-20"},Ve=d("\u4FDD\u5B58"),we=V({name:"articleListsEdit"}),Vt=V({...we,setup(Fe){const n=M(),w=Q(),t=E({id:"",title:"",image:"",cid:"",desc:"",author:"",content:"",click_virtual:0,sort:0,is_show:1,abstract:""}),{removeTab:F}=te(),p=oe(),v=E({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"}]}),B=async()=>{const i=await X({id:n.query.id});Object.keys(t).forEach(o=>{t[o]=i[o]})},{optionsData:g}=W({article_cate:{api:Y}}),A=async()=>{var i;await((i=p.value)==null?void 0:i.validate()),n.query.id?await Z(t):await ee(t),F(),w.back()};return n.query.id&&B(),(i,o)=>{const h=O,_=T,s=$,r=z,C=I,x=j,D=K,c=G,f=H,R=J,k=S,y=L,U=P,q=N;return m(),b("div",ie,[e(_,{class:"!border-none",shadow:"never"},{default:a(()=>[e(h,{content:i.$route.meta.title,onBack:o[0]||(o[0]=l=>i.$router.back())},null,8,["content"])]),_:1}),e(_,{class:"mt-4 !border-none",shadow:"never"},{default:a(()=>[e(y,{ref_key:"formRef",ref:p,class:"ls-form",model:t,"label-width":"85px",rules:v},{default:a(()=>[u("div",se,[u("div",null,[e(r,{label:"\u6587\u7AE0\u6807\u9898",prop:"title"},{default:a(()=>[u("div",ne,[e(s,{modelValue:t.title,"onUpdate:modelValue":o[1]||(o[1]=l=>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(r,{label:"\u6587\u7AE0\u680F\u76EE",prop:"cid"},{default:a(()=>[e(x,{class:"w-80",modelValue:t.cid,"onUpdate:modelValue":o[2]||(o[2]=l=>t.cid=l),placeholder:"\u8BF7\u9009\u62E9\u6587\u7AE0\u680F\u76EE",clearable:""},{default:a(()=>[(m(!0),b(le,null,ae(ue(g