Files
sbnews/server/public/admin/assets/index-ylVTebcz.js
T

2 lines
2.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{L as y,i as x,I as b}from"./element-plus-BluzIk5z.js";import{u as w,a as k}from"./vue-router-DifUqGFW.js";import{i as B}from"./match-Dcab7t5B.js";import{_ as C}from"./MatchLiveTable.vue_vue_type_script_setup_true_lang-BOp_r0YY.js";import{d as u,b as c,a0 as N,l as V,a1 as $,c as D,o as l,U as r,L as s,a as m,S as p,K as E,P as I,R as _,u as S}from"./@vue-DjVelRet.js";import"./@element-plus-RuzzlbSF.js";import"./lodash-es-VsDguZh5.js";import"./dayjs-Mv9jwnDt.js";import"./@popperjs-D_chPuIy.js";import"./async-validator-9PlIezaS.js";import"./@ctrl-r5W6hzzQ.js";import"./normalize-wheel-es-BQoi3Ox2.js";import"./index-CRoe5vjT.js";import"./nprogress-DYbUr3Ql.js";import"./pinia-D1_qSsvX.js";import"./axios-DIsA03vz.js";import"./lodash-wrSAtCJj.js";import"./@vueuse-DbKvT5Ch.js";import"./css-color-function-DsMtFL6v.js";import"./balanced-match-BdS7OldZ.js";import"./color-DYO1E7y4.js";import"./clone-Ddk2tjDh.js";import"./color-convert-DsNsD289.js";import"./color-name-Dju3oUBS.js";import"./color-string-pUQDDJII.js";import"./ms-CzQ2E3wO.js";import"./vue-clipboard3-DXsJvHIW.js";import"./clipboard-DPX9bJ1T.js";import"./echarts-CXZcVnUo.js";import"./tslib-BDyQ-Jie.js";import"./zrender-DO4NV0px.js";import"./highlight.js--xG_hASo.js";import"./@highlightjs-DcY7_PRf.js";const j={class:"match-live-page"},L={class:"flex items-center justify-between gap-4"},R={class:"text-sm text-tx-secondary"},M={class:"flex items-center gap-3"},T=u({name:"matchLiveManage"}),yt=u({...T,setup(q){const d=w(),f=k(),o=c(()=>Number(d.query.id||0)),a=N({league_name:"",home_team:"",away_team:"",match_time_str:""}),v=c(()=>{if(!o.value)return"未指定赛事";const t=[a.home_team,a.away_team].filter(Boolean).join(" VS "),e=a.match_time_str||"时间待定";return t?`${t} · ${e}`:`赛事ID${o.value}`}),i=async()=>{if(!o.value)return;const t=await B({id:o.value});Object.assign(a,{league_name:t.league_name||"",home_team:t.home_team||"",away_team:t.away_team||"",match_time_str:t.match_time_str||""})};return V(()=>{i()}),$(()=>{i()}),(t,e)=>{const h=y,g=x,n=b;return l(),D("div",j,[r(n,{class:"!border-none",shadow:"never"},{default:s(()=>[m("div",L,[m("div",null,[e[1]||(e[1]=m("div",{class:"text-lg font-semibold text-primary mb-2"},"直播线路管理",-1)),m("div",R,p(v.value),1)]),m("div",M,[a.league_name?(l(),E(h,{key:0,type:"info"},{default:s(()=>[_(p(a.league_name),1)]),_:1})):I("",!0),r(g,{onClick:e[0]||(e[0]=A=>S(f).back())},{default:s(()=>e[2]||(e[2]=[_("返回赛事列表")])),_:1})])])]),_:1}),r(n,{class:"!border-none mt-4",shadow:"never"},{default:s(()=>[r(C,{"match-id":o.value},null,8,["match-id"])]),_:1})])}}});export{yt as default};