You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
34 KiB
1 line
34 KiB
|
4 months ago
|
import{n as e,st as t}from"./axios-CiYFffbI.js";import{I as n,N as r,O as i,V as a,Y as o,_ as s,d as c,f as l,h as u,i as d,it as f,kt as p,nt as m,p as h,u as g,ut as _,v,y,z as b}from"./runtime-core.esm-bundler-CnFWH3R5.js";import{n as x}from"./http-LCi9aT1G.js";import{u as S}from"./index-BMlTSINt.js";import{t as ee}from"./RichEditorField-DLE_5ppz.js";import{n as C,t as te}from"./adminMediaLimits-B3DR_jid.js";import{t as ne}from"./listTableRowIndex-ekx2Z6yT.js";import{t as w}from"./mediaUrl-D5Z8dTjp.js";var re={key:1},ie={style:{color:`#f53f3f`}},ae={style:{color:`#f53f3f`}},oe={style:{color:`#f53f3f`}},se={style:{color:`#f53f3f`}},ce={style:{color:`#f53f3f`}},le={style:{color:`#f53f3f`}},ue={style:{color:`#f53f3f`}},de={style:{color:`#f53f3f`}},fe={style:{color:`#f53f3f`}},pe={style:{color:`#f53f3f`}},me={style:{color:`#f53f3f`}},he={style:{"margin-left":`8px`,color:`var(--color-text-3)`}},ge={style:{"margin-left":`8px`,color:`var(--color-text-3)`}},_e={style:{display:`flex`,gap:`16px`,width:`100%`}},ve={style:{flex:`1 1 50%`,"min-width":`0`}},ye={style:{flex:`1 1 50%`,"min-width":`0`}},be={key:0,class:`venue-gallery-grid`,style:{"margin-top":`8px`}},xe=[`src`,`onClick`],Se={key:0,style:{color:`#f53f3f`}},Ce={style:{color:`#f53f3f`}},we={class:`venue-address-coord-row`},Te={key:0,style:{color:`#f53f3f`}},Ee={class:`venue-cover-carousel-wrap`},De={class:`venue-cover-carousel-row__col`},Oe=[`src`],ke={key:0,style:{color:`#f53f3f`,"margin-top":`4px`,"font-size":`12px`}},Ae={class:`venue-cover-carousel-row__col`},je={style:{display:`flex`,"flex-direction":`column`,"align-items":`flex-start`,width:`100%`}},Me={style:{width:`100%`,"margin-bottom":`8px`}},Ne={class:`venue-gallery-grid`},Pe=[`src`,`onClick`],Fe=[`src`,`onClick`],Ie={key:0,style:{color:`#f53f3f`,"margin-top":`4px`,"font-size":`12px`}},Le={key:0,style:{color:`#f53f3f`}},Re=[`src`],ze=[`src`],Be={style:{display:`flex`,gap:`12px`}},Ve={style:{width:`280px`,height:`520px`,overflow:`auto`,border:`1px solid #e5e6eb`,padding:`8px`}},He=2060,T=S(y({__name:`VenueList`,setup(y){let S=f(!1),T=f(!1),E=f(!1),D=f(!1),O=f(!1),k=f(``),Ue=f([]),A=f(!1),j=f(null),We=f([]),M=f([]),N=f([]),Ge=f([]),Ke=f([]),P=f([]),F=f([]),qe=f(null),Je=f(null),Ye=f(0),Xe=f(!1),Ze=f(`image`),I=f(``),L=null,R=null,z=f(null),B={lat:31.299379,lng:120.585315},Qe={maxHeight:`70vh`,overflow:`auto`},V=m({name:``,venue_types:``,district:``,unit_name:``,ticket_type:``,booking_mode:``,open_mode:``,visit_form:``,open_time:``,consultation_hours:``,contact_phone:``,address:``,lat:``,lng:``,booking_method:``,ticket_content:``,cover_image:``,gallery_media:``,detail_html:``});function H(){Object.keys(V).forEach(e=>{V[e]=``})}let U=m({keyword:``,district:``,venue_type:``,ticket_type:``,booking_mode:``,open_mode:``,appointment_type:``,is_active:``,is_included_in_stats:``}),W=m({current:1,pageSize:10,total:0}),G=f(null),K=f(``),q=f(!1);function $e(e){if(e==null||e===``)return;let t=typeof e==`number`?e:parseFloat(String(e).trim());return Number.isFinite(t)?t:void 0}function et(){let t=this.quill,n=document.createElement(`input`);n.type=`file`,n.accept=`image/*`,n.onchange=async()=>{let r=n.files?.[0];if(!r)return;let i=C(r);if(i){e.warning(i);return}try{let n=await Q(r),i=t.getSelection(!0)?.index??Math.max(0,t.getLength()-1);t.insertEmbed(i,`image`,n,`user`),t.setSelection(i+1,0),e.success(`图片已上传并插入`)}catch(t){e.error(t?.response?.data?.message??`图片上传失败`)}},n.click()}function tt(){let t=this.quill,n=document.createElement(`input`);n.type=`file`,n.accept=`video/*`,n.onchange=async()=>{let r=n.files?.[0];if(r)try{let n=await Q(r),i=t.getSelection(!0)?.index??Math.max(0,t.getLength()-1);t.insertEmbed(i,`video`,n,`user`),t.setSelection(i+1,0),e.success(`视频已上传并插入`)}catch(t){e.error(t?.response?.data?.message??`视频上传失败`)}},n.click()}let J={toolbar:{container:[[{header:[1,2,3,!1]}],[`bold`,`italic`,`underline`,`strike`],[{color:[]},{background:[]}],[{list:`ordered`},{list:`bullet`}],[{align:[]}],[`link`,`image`,`video`],[`clean`]],handlers:{image:et,video:tt}}},nt=
|