/* empty css             *//* empty css                   *//* empty css                     *//* empty css                  *//* empty css                 *//* empty css               *//* empty css                  *//* empty css                     *//* empty css                  */import"./el-tooltip-4ed993c7.js";/* empty css                */import{d as e,m as a,at as l,x as s,X as t,o as i,l as o,w as r,a as d,e as m,b as n,f as p,aE as c,c as u,F as f,y as _,a5 as v,J as j,ak as h,a3 as b,a4 as g,A as y,B as w,U as k,Z as x,a0 as I,av as z,aw as A,_ as O}from"./index-0ffeeea6.js";import{w as V}from"./index-5ea39eae.js";import{b as D}from"./index-45735d90.js";/* empty css                 *//* empty css                   */import"./http-ffb58baa.js";/* empty css                   */const L=e=>(z("data-v-f3d47c49"),e=e(),A(),e),P={class:"flex items-center"},q=L((()=>m("span",null,"测试ID即测试公众号的openid，需与测试公众号保持一致（公众号内发送pk，即可获得openid）",-1))),U=L((()=>m("br",null,null,-1))),C=L((()=>m("span",null,"测试ID",-1))),E={class:"flex justify-end"},F=O(e({__name:"testSend",props:{primary:null|Object},emits:["close"],setup(e,{emit:z}){const A=e;a([]);const O=a([]),L=a([]);l("rolesIdentify");const F=a(),B=(e,a)=>{if("wechatPlatformOfficialAccountList"===e)V({limit:999,...a}).then((e=>{L.value=e.data}))};return A.primary&&(A.primary,O.value.message_id=A.primary.id),s((()=>{B("wechatPlatformOfficialAccountList")})),(e,a)=>{const l=j,s=h,A=b,V=g,H=y,J=w,S=k,X=x,Z=I;return t((i(),o(X,{model:p(O),"label-width":"120px",ref_key:"form",ref:F,class:"pr-4"},{default:r((()=>[d(V,{label:"测试ID",prop:"openid",rules:[{required:!0,message:"测试ID必须填写"}]},{label:r((()=>[m("div",P,[d(s,{placement:"top"},{content:r((()=>[q,n(),U])),default:r((()=>[d(l,null,{default:r((()=>[d(p(c))])),_:1})])),_:1}),C])])),default:r((()=>[d(A,{placeholder:"请输入测试ID",modelValue:p(O).openid,"onUpdate:modelValue":a[0]||(a[0]=e=>p(O).openid=e),clearable:""},null,8,["modelValue"])])),_:1}),d(V,{label:"公众号",prop:"gzh_id",rules:[{required:!0,message:"公众号必须选择"}]},{default:r((()=>[d(J,{modelValue:p(O).gzh_id,"onUpdate:modelValue":a[1]||(a[1]=e=>p(O).gzh_id=e),filterable:"",remote:"",clearable:"","remote-method":e=>{((e,a)=>{"wechatPlatformOfficialAccountList"===a&&B("wechatPlatformOfficialAccountList",{nick_name:e})})(e,"wechatPlatformOfficialAccountList")}},{default:r((()=>[(i(!0),u(f,null,_(p(L),(e=>(i(),o(H,{key:e.id,label:e.nick_name,value:e.id},null,8,["label","value"])))),128))])),_:1},8,["modelValue","remote-method"])])),_:1}),m("div",E,[d(S,{type:"primary",onClick:a[2]||(a[2]=e=>{var a;(a=p(F))&&a.validate((e=>{var a,l,s;if(e){O.value;let e={message_id:null==(a=O.value)?void 0:a.message_id,gzh_id:null==(l=O.value)?void 0:l.gzh_id,openid:null==(s=O.value)?void 0:s.openid};D(e).then((e=>{v.success(e.message),z("close")})).catch((e=>{}))}})).then((()=>{}))})},{default:r((()=>[n("确定")])),_:1})])])),_:1},8,["model"])),[[Z,e.loading]])}}}),[["__scopeId","data-v-f3d47c49"]]);export{F as default};
