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

4 weeks 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-C7AchV-2.js";import{t as ee}from"./RichEditorField-BqNwwbb8.js";import{t as te}from"./listTableRowIndex-Bl-nc9Qt.js";import{t as C}from"./mediaUrl-CPV6u7br.js";var ne={key:1},re={style:{color:`#f53f3f`}},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:{"margin-left":`8px`,color:`var(--color-text-3)`}},he={style:{"margin-left":`8px`,color:`var(--color-text-3)`}},ge={style:{display:`flex`,gap:`16px`,width:`100%`}},_e={style:{flex:`1 1 50%`,"min-width":`0`}},ve={style:{flex:`1 1 50%`,"min-width":`0`}},ye={key:0,class:`venue-gallery-grid`,style:{"margin-top":`8px`}},be=[`src`,`onClick`],xe={key:0,style:{color:`#f53f3f`}},Se={style:{color:`#f53f3f`}},Ce={class:`venue-address-coord-row`},we={key:0,style:{color:`#f53f3f`}},Te={class:`venue-cover-carousel-wrap`},Ee={class:`venue-cover-carousel-row__col`},De=[`src`],Oe={key:0,style:{color:`#f53f3f`,"margin-top":`4px`,"font-size":`12px`}},ke={class:`venue-cover-carousel-row__col`},Ae={style:{display:`flex`,"flex-direction":`column`,"align-items":`flex-start`,width:`100%`}},je={style:{width:`100%`,"margin-bottom":`8px`}},Me={class:`venue-gallery-grid`},Ne=[`src`,`onClick`],Pe=[`src`,`onClick`],Fe={key:0,style:{color:`#f53f3f`,"margin-top":`4px`,"font-size":`12px`}},Ie={key:0,style:{color:`#f53f3f`}},Le=[`src`],Re=[`src`],ze={style:{display:`flex`,gap:`12px`}},Be={style:{width:`280px`,height:`520px`,overflow:`auto`,border:`1px solid #e5e6eb`,padding:`8px`}},Ve=2060,w=S(y({__name:`VenueList`,setup(y){let S=f(!1),w=f(!1),T=f(!1),E=f(!1),D=f(!1),O=f(``),k=f([]),A=f(!1),j=f(null),He=f([]),M=f([]),N=f([]),P=f([]),F=f([]),I=f([]),L=f([]),Ue=f(null),We=f(null),Ge=f(0),Ke=f(!1),qe=f(`image`),R=f(``),z=null,B=null,V=f(null),H={lat:31.299379,lng:120.585315},Je={maxHeight:`70vh`,overflow:`auto`},U=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 W(){Object.keys(U).forEach(e=>{U[e]=``})}let G=m({keyword:``,district:``,venue_type:``,ticket_type:``,booking_mode:``,open_mode:``,appointment_type:``,is_active:``,is_included_in_stats:``}),K=m({current:1,pageSize:10,total:0}),q=f(null),Ye=f(``),Xe=f(!1);function J(e){if(e==null||e===``)return;let t=typeof e==`number`?e:parseFloat(String(e).trim());return Number.isFinite(t)?t:void 0}function Ze(){let t=this.quill,n=document.createElement(`input`);n.type=`file`,n.accept=`image/*`,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,`image`,n,`user`),t.setSelection(i+1,0),e.success(`图片已上传并插入`)}catch(t){e.error(t?.response?.data?.message??`图片上传失败`)}},n.click()}function Qe(){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 $e={toolbar:{container:[[{header:[1,2,3,!1]}],[`bold`,`italic`,`underline`,`strike`],[{color:[]},{background:[]}],[{list:`ordered`},{list:`bullet`}],[{align:[]}],[`link`,`image`,`video`],[`clean`]],handlers:{image:Ze,video:Qe}}},et={modules:$e,placeholder:`请输入场馆详情内容`},tt={modules:$e,placeholder:``},Y=m({name:``,venue_