/* empty css             *//* empty css                   */import{_ as e}from"./index-ec277c8c.js";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-e601cfd0.js";/* empty css                        *//* empty css                    *//* empty css               */import"./el-tooltip-4ed993c7.js";/* empty css                     *//* empty css                  */import{_ as l}from"./operate.vue_vue_type_script_setup_true_lang-6b1c85b1.js";import{_ as t}from"./search.vue_vue_type_script_setup_true_lang-8a36466d.js";/* empty css                 *//* empty css                  *//* empty css                     */import{_ as o}from"./create.vue_vue_type_script_setup_true_lang-1634e713.js";import r from"./depotsTransfer-5404c03a.js";import{u as s}from"./useGetList-33a80877.js";import{u as p}from"./useOpen-ae3f1df9.js";import{m}from"./index-47a02500.js";import{d as i,q as n,n as u,z as d,ao as _,o as c,c as f,e as v,a as j,w as b,f as g,F as y,p as w,l as V,Z as h,b as x,t as k,a9 as M,a5 as C,a6 as U,B as z,D as q,aa as A,ak as D,X as I,ab as O,a2 as B}from"./index-545c1a76.js";/* empty css                  *//* empty css                   */import"./index-b347df0b.js";import"./add.vue_vue_type_script_setup_true_lang-90917888.js";/* empty css                  *//* empty css                   *//* empty css                          */import"./http-795fd5dc.js";const E={class:"flex flex-col justify-between w-full sm:flex-row"},F={class:"w-full"},G={class:"table-default"},H=v("br",null,null,-1),L={key:1},N=i({__name:"index",setup(i){const N="/manage/miniprogram/index",Q=n(!1),R=n({});n([]);const S=n([]),{data:T,query:X,search:Z,reset:J,loading:K}=s(N),{open:P,close:W,title:Y,visible:$,id:ee}=p(),ae=u((()=>{var e;return null==(e=T.value)?void 0:e.data}));return d((()=>{m().then((e=>{S.value=e.data})),Z()})),(s,p)=>{const m=C,i=U,n=z,u=q,d=t,T=l,le=A,te=D,oe=I,re=O,se=a,pe=e,me=_("action"),ie=B;return c(),f("div",E,[v("div",F,[j(d,{search:g(Z),reset:g(J)},{body:b((()=>[j(i,{label:"小程序名称"},{default:b((()=>[j(m,{modelValue:g(X).name,"onUpdate:modelValue":p[0]||(p[0]=e=>g(X).name=e),clearable:""},null,8,["modelValue"])])),_:1}),j(i,{label:"对应剧场名称"},{default:b((()=>[j(m,{modelValue:g(X).play_name,"onUpdate:modelValue":p[1]||(p[1]=e=>g(X).play_name=e),clearable:""},null,8,["modelValue"])])),_:1}),j(i,{label:"类型"},{default:b((()=>[j(u,{modelValue:g(X).type,"onUpdate:modelValue":p[2]||(p[2]=e=>g(X).type=e),clearable:"",filterable:"",placeholder:"请选择"},{default:b((()=>[(c(!0),f(y,null,w(S.value,((e,a)=>(c(),V(n,{key:a,label:e.name,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),v("div",G,[h(j(T,{show:g(P)},null,8,["show"]),[[me,"manage.MinprogramManage.MinprogramManageAdd"]]),h((c(),V(re,{data:g(ae),class:"mt-3"},{default:b((()=>[j(le,{prop:"id",label:"ID"}),j(le,{prop:"name",label:"小程序名称"},{default:b((e=>[e.row.remark?(c(),V(te,{key:0,placement:"top"},{content:b((()=>[x(k(e.row.remark),1),H])),default:b((()=>[v("span",null,k(e.row.name),1)])),_:2},1024)):(c(),f("span",L,k(e.row.name),1))])),_:1}),j(le,{prop:"play_name",label:"对应剧场名称"}),j(le,{prop:"status_name",label:"状态"}),j(le,{prop:"type_name",label:"类型"}),j(le,{label:"操作",width:"200"},{default:b((e=>[h((c(),V(oe,{link:"",type:"primary",size:"small",onClick:a=>{return l=e.row,Q.value=!0,void(R.value=l);var l}},{default:b((()=>[x("分配")])),_:2},1032,["onClick"])),[[me,"manage.MinprogramManage.MinprogramManageAllocation"]]),h((c(),V(oe,{link:"",type:"primary",size:"small",onClick:a=>g(P)(e.row.id)},{default:b((()=>[x("编辑")])),_:2},1032,["onClick"])),[[me,"manage.MinprogramManage.MinprogramManageEdit"]])])),_:1})])),_:1},8,["data"])),[[ie,g(K)]]),j(se)]),j(pe,{width:"800px",modelValue:Q.value,"onUpdate:modelValue":p[4]||(p[4]=e=>Q.value=e),title:"分配","destroy-on-close":""},{default:b((()=>[j(r,{onClose:p[3]||(p[3]=e=>(Q.value=!1,void Z())),primary:R.value},null,8,["primary"])])),_:1},8,["modelValue"]),j(pe,{modelValue:g($),"onUpdate:modelValue":p[6]||(p[6]=e=>M($)?$.value=e:null),title:g(Y),"destroy-on-close":""},{default:b((()=>[j(o,{onClose:p[5]||(p[5]=e=>g(W)(g(Z))),primary:g(ee),api:N},null,8,["primary"])])),_:1},8,["modelValue","title"])])])}}});export{N as default};
