test_lgq/niucloud/public/admin/assets/template-06b36e2e.js

2 lines
4.1 KiB
JavaScript
Raw Normal View History

2024-01-24 17:36:08 +08:00
import{d as j,O as S,f as q,n as I,r as y,a1 as $,h as d,c as f,a as s,t as l,u as e,e as a,w as n,N as t,i as m,y as z,I as M,F as O,G as R,aN as U,aD as W,aE as G,E as P,a2 as H,ar as J,ah as K,aj as Q,$ as X,a0 as Y,_ as Z}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as ee,f as te}from"./wechat-38ff6011.js";import{e as ae}from"./notice-b720dec8.js";const se={class:"main-container p-5"},le={class:"flex justify-between items-center mb-[20px]"},ne={class:"text-[20px]"},oe={class:"flex justify-between items-center"},ce={class:"text-[20px]"},ie={class:"flex"},re={class:"text-base"},pe={class:"text-base"},_e={class:"text-base"},de={class:"text-base"},me={class:"text-base"},ue={class:"mt-[10px]"},he=j({__name:"template",setup(be){const x=S(),k=q(),v=x.meta.title,i=I({loading:!0,data:[]}),u=y("/channel/wechat/message"),T=r=>{k.push({path:u.value})},h=(r=1)=>{i.loading=!0,ee().then(o=>{i.loading=!1,i.data=o.data}).catch(()=>{i.loading=!1})};h();const w=(r=null)=>{const o=U.service({lock:!0,background:"rgba(0, 0, 0, 0)"});te({keys:r?[r.key]:[]}).then(()=>{h(),o.close()}).catch(()=>{o.close()})},C=r=>{const o=y({key:"",type:"",status:0});o.value.status=r.is_wechat?0:1,o.value.key=r.key,o.value.type="wechat",i.loading=!0,ae(o.value).then(_=>{h()}).catch(()=>{i.loading=!1})};return(r,o)=>{const _=W,E=G,b=P,N=$("Warning"),B=H,D=J,p=K,V=Q,A=X,F=Y;return d(),f("div",se,[s("div",le,[s("span",ne,l(e(v)),1)]),a(E,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=c=>u.value=c),class:"demo-tabs",onTabChange:T},{default:n(()=>[a(_,{label:e(t)("wechatAccessFlow"),name:"/channel/wechat"},null,8,["label"]),a(_,{label:e(t)("customMenu"),name:"/channel/wechat/menu"},null,8,["label"]),a(_,{label:e(t)("wechatTemplate"),name:"/channel/wechat/message"},null,8,["label"])]),_:1},8,["modelValue"]),a(A,{class:"box-card !border-none",shadow:"never"},{default:n(()=>[s("div",oe,[s("span",ce,l(e(v)),1),a(b,{type:"primary",class:"w-[100px]",onClick:w},{default:n(()=>[m(l(e(t)("batchAcquisition")),1)]),_:1})]),a(D,{class:"warm-prompt !my-[20px]",type:"info"},{default:n(()=>[s("div",ie,[a(B,{class:"mr-2 mt-[2px]",size:"18"},{default:n(()=>[a(N)]),_:1}),s("div",null,[s("p",re,l(e(t)("operationTip")),1),s("p",pe,"1、"+l(e(t)("operationTipOne")),1),s("p",_e,"2、"+l(e(t)("operationTipTwo")),1),s("p",de,"3、"+l(e(t)("operationTipThree")),1),s("p",me,"4、"+l(e(t)("operationTipFour")),1)])])]),_:1}),s("div",ue,[z((d(),M(V,{data:i.data,size:"large"},{empty:n(()=>[s("span",null,l(i.loading?"":e(t)("emptyData")),1)]),default:n(()=>[a(p,{prop:"name","show-overflow-tooltip":!0,label:e(t)("name"),"min-width":"150"},null,8,["label"]),a(p,{label:e(t)("messageType"),"min-width":"100",align:"center"},{default:n(({row:c})=>[s("span",null,l(c.message_type==1?e(t)("buyerNews"):e(t)("sellerMessage")),1)]),_:1},8,["label"]),a(p,{label:e(t)("isStart"),"min-width":"100",align:"center"},{default:n(({row:c})=>[m(l(c.is_wechat==1?e(t)("startUsing"):e(t)("statusDeactivate")),1)]),_:1},8,["label"]),a(p,{label:e(t)("response"),"min-width":"180"},{default:n(({row:c})=>[(d(!0),f(O,null,R(c.wechat.content,(g,L)=>(d(),f("div",{key:"a"+L,class:"text-left"},l(g.join("")),1))),128))]),_:1},8,["label"]),a(p,{prop:"wechat_template_id",label:e(t)("serialNumber"),"min-width":"140"},null,8,["label"]),a(p,{label:e(t)("operation"),fixed:"right",align:"right",width:"200"},{default:n(({row:c})=>[a(b,{type:"primary",link:"",onClick:g=>C(c)},{default:n(()=>[m(l(c.is_wechat==1?e(t)("close"):e(t)("open")),1)]),_:2},1032,["onClick"]),a(b,{type:"primary",link:"",onClick:g=>w(c)},{default:n(()=>[m(l(e(t)("regain")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[F,i.loading]])])]),_:1})])}}});const Fe=Z(