| 1 |
- var k=(C,_,s)=>new Promise((c,u)=>{var h=o=>{try{n(s.next(o))}catch(p){u(p)}},w=o=>{try{n(s.throw(o))}catch(p){u(p)}},n=o=>o.done?c(o.value):Promise.resolve(o.value).then(h,w);n((s=s.apply(C,_)).next())});import{bT as $,a$ as e,M as v}from"./bootstrap-DToyB3NB.js";import{u as D}from"./vxe-table-CUI9f48R.js";import{a as A,b as G}from"./game_config-C3_SDPLX.js";import M from"./game_info-qSs4zrfA.js";import{C as S}from"./index-Dq5Jiszh.js";import{T as z}from"./index-CNGTjS_0.js";import{A as N}from"./index-Dx0pgApJ.js";import{_ as P}from"./page.vue_vue_type_script_setup_true_lang-B9AG8_A4.js";import{P as T,aa as q,ab as E,ac as r,x as l,a7 as a,aD as b,ai as g,aj as x}from"../jse/index-index-DT9LOzen.js";import{u as F}from"./use-modal-lagM6gqU.js";import L from"./index-fpA2VnvT.js";import"./BaseInput-BMiKlaTA.js";import"./useMergedState-CSp_NLTD.js";import"./EyeOutlined-CP8CXlx1.js";import"./index-D4N-d1Ur.js";import"./index-BZdYW4ni.js";import"./Trigger-9rl3uwfV.js";import"./vnode-BnfQlGo4.js";import"./ResizeObserver.es-CDE7jhPe.js";import"./hasIn-xKR4l25s.js";import"./isPlainObject-DFthBjJw.js";import"./responsiveObserve-B1KpUHrh.js";import"./useFlexGapSupport-BwYxYQsc.js";import"./collapse-BuqCI_Sc.js";import"./index-CJ5fembs.js";import"./colors-BOBahZj6.js";import"./collapseMotion-8qIXBZYb.js";import"./FormItemContext-3mlytLoO.js";import"./index-EwK6ohse.js";import"./index-jT6Ajdgq.js";import"./Overflow-B1VRHmlt.js";import"./index-CTQ58wcw.js";import"./isMobile-8sZ0LT6r.js";import"./DownOutlined-C7dxWgWx.js";import"./CheckOutlined-7_Qxoe8S.js";import"./SearchOutlined-nS-krto7.js";import"./move-DhrX4acr.js";import"./slide-Bnk1ZJBa.js";import"./statusUtils-DWkGALbL.js";import"./index-D7JMayln.js";import"./index-dKw1iYgR.js";import"./index-BhekRxfy.js";import"./shallowequal-B_H_B4yI.js";import"./useRefs-DxHtJkhV.js";import"./eagerComputed-Bknpjk6C.js";const O={class:"vp-raw w-full"},j={style:{"margin-left":".5rem",display:"inline-block"}},Pt={__name:"index",setup(C){const _=T([]);A().then(i=>{i.forEach(m=>{_.value.push({label:`【${m.game_id}】${m.title}`,value:m.game_id})})});const[s,c]=$({collapsed:!1,commonConfig:{componentProps:{class:"w-full"}},handleSubmit:u,handleReset:h,layout:"horizontal",schema:[{component:"Select",componentProps:{allowClear:!0,filterOption:!0,name:"game_id",options:_,placeholder:e("common.placeholder_select"),showSearch:!0},fieldName:"game_id",label:e("game_control.game")}],submitButtonOptions:{content:"查询"},wrapperClass:"grid-cols-1 md:grid-cols-2"});function u(i){o.reload()}function h(){c.resetForm(),o.reload()}const w={border:!0,stripe:!0,checkboxConfig:{highlight:!0},columns:[{fixed:"left",title:"序号",type:"seq",width:50},{field:"title",title:e("game_control.game_list.game_title"),width:250,slots:{default:"title"}},{field:"title_en",title:e("game_control.game_list.game_en_title"),width:200},{field:"game_id",title:e("game_control.game_list.game_id"),width:140},{field:"rtp",title:e("game_control.game_list.game_rtp"),width:140,slots:{default:"rtp"}},{field:"rtp_type_text",title:e("game_control.game_list.game_rtp_type"),width:140},{field:"free_game_status",title:e("game_control.game_list.buy_free"),width:150},{field:"max_multiple_count",title:e("game_control.game_list.max_gm"),width:150},{field:"deposit_list",title:e("game_control.game_list.bet_amount"),width:120},{field:"status_text",title:e("game_control.game_list.game_status"),width:120,slots:{default:"status"}},{fixed:"right",title:e("game_control.game_list.action"),width:220,slots:{default:"action"}}],exportConfig:{},keepSource:!0,proxyConfig:{ajax:{query:m=>k(null,[m],function*({page:i}){let t={page:i.currentPage,limit:i.pageSize};const f=yield c.getValues();f.game_id&&(t.game_id=f.game_id);const y=yield G(t);return{total:y.total,items:y.list}})}},rowConfig:{isHover:!0},toolbarConfig:{custom:!0,export:!0,refresh:!0,zoom:!0}},[n,o]=D({gridOptions:w}),[p,d]=F({connectedComponent:M,class:"w-[75%]",onClosed:function(){d.getData().is_reload&&o.reload()}}),V=i=>{d.setData({game_id:i.id,is_view:!0}).open(),d.setState({showConfirmButton:!1})},B=i=>{d.setData({game_id:i.id,is_view:!1}).open(),d.setState({showConfirmButton:!0})};return(i,m)=>(E(),q(a(P),null,{default:r(()=>[l(a(S),{class:"mb-5"},{default:r(()=>[l(a(s))]),_:1}),l(a(S),null,{default:r(()=>[b("div",O,[l(a(n),null,{title:r(({row:t})=>[b("div",null,[l(a(z),{color:"blue",size:"large"},{default:r(()=>[g(x(t.game_platform),1)]),_:2},1024),l(a(N),{shape:"square",src:t.image},null,8,["src"]),b("span",j,x(t.title),1)])]),action:r(({row:t})=>[l(a(v),{type:"link",onClick:f=>V(t)},{default:r(()=>m[0]||(m[0]=[g("查看配置")])),_:2,__:[0]},1032,["onClick"]),l(a(v),{type:"link",onClick:f=>B(t)},{default:r(()=>m[1]||(m[1]=[g("编辑配置")])),_:2,__:[1]},1032,["onClick"])]),rtp:r(({row:t})=>[g(x(t.rtp)+"% ",1)]),status:r(({row:t})=>[l(a(L),{checked:t.status==1},null,8,["checked"])]),_:1})])]),_:1}),l(a(p))]),_:1}))}};export{Pt as default};
|