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