niucloud-admin/niucloud/public/admin/assets/template-a8a43f1e.js
2023-11-15 15:57:04 +08:00

2 lines
5.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import"./index-7eafba5f.js";/* empty css *//* empty css *//* empty css */import{t}from"./index-0ca94763.js";import{d as S,f as j}from"./wechat-c03caa2e.js";import{e as q}from"./notice-c1ad68e7.js";import{u as z,a as M}from"./vue-router-48fdc1e3.js";import{E as R}from"./index-d65f2de8.js";import{a as I,E as O}from"./index-24fb848e.js";import{E as U}from"./index-c5914bde.js";import{E as W}from"./index-cf9a2dd7.js";import{E as $}from"./index-c7cfbec6.js";import{a as P,E as G}from"./index-fe3867fe.js";import{E as H}from"./index-9ecd3f93.js";import{v as J}from"./directive-64fb15dc.js";import{d as K,O as Q,r as x,$ as X,e as d,f as g,g as o,B as s,u as e,y as a,x as l,i as Y,A as u,M as Z,v as ee,F as te,z as ae}from"./plugin-vue_export-helper-85a4d40b.js";import{_ as oe}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-c3be41fd.js";import"./index-bcd7a424.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./index-b9e5f5cb.js";import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";import"./el-form-item-1b16c9fc.js";import"./_baseClone-3dbf39d6.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";import"./strings-53351eda.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./_isIterateeCall-47526406.js";import"./debounce-6c3123a6.js";import"./index-bd04154b.js";const se={class:"main-container p-5"},le={class:"flex justify-between items-center mb-[20px]"},ne={class:"text-[20px]"},ie={class:"flex justify-between items-center"},re={class:"text-[20px]"},ce={class:"flex"},pe={class:"text-base"},me={class:"text-base"},_e={class:"text-base"},de={class:"text-base"},ue={class:"text-base"},he={class:"mt-[10px]"},fe=K({__name:"template",setup(be){const y=z(),k=M(),w=y.meta.title,r=Q({loading:!0,data:[]});let m=x("/website/channel/wechat/message");const E=c=>{k.push({path:m.value})},h=(c=1)=>{r.loading=!0,S().then(n=>{r.loading=!1,r.data=n.data}).catch(()=>{r.loading=!1})};h();const v=(c=null)=>{const n=R.service({lock:!0,background:"rgba(0, 0, 0, 0)"});j({keys:c?[c.key]:[]}).then(()=>{h(),n.close()}).catch(()=>{n.close()})},T=c=>{const n=x({key:"",type:"",status:0});n.value.status=c.is_wechat?0:1,n.value.key=c.key,n.value.type="wechat",r.loading=!0,q(n.value).then(_=>{h()}).catch(()=>{r.loading=!1})};return(c,n)=>{const _=I,C=O,f=U,N=X("Warning"),B=W,A=$,p=P,V=G,D=H,F=J;return d(),g("div",se,[o("div",le,[o("span",ne,s(e(w)),1)]),a(C,{modelValue:e(m),"onUpdate:modelValue":n[0]||(n[0]=i=>Y(m)?m.value=i:m=i),class:"demo-tabs",onTabChange:E},{default:l(()=>[a(_,{label:e(t)("wechatAccessFlow"),name:"/website/channel/wechat"},null,8,["label"]),a(_,{label:e(t)("customMenu"),name:"/website/channel/wechat/menu"},null,8,["label"]),a(_,{label:e(t)("wechatTemplate"),name:"/website/channel/wechat/message"},null,8,["label"])]),_:1},8,["modelValue"]),a(D,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[o("div",ie,[o("span",re,s(e(w)),1),a(f,{type:"primary",class:"w-[100px]",onClick:v},{default:l(()=>[u(s(e(t)("batchAcquisition")),1)]),_:1})]),a(A,{class:"warm-prompt !my-[20px]",type:"info"},{default:l(()=>[o("div",ce,[a(B,{class:"mr-2 mt-[2px]",size:"18"},{default:l(()=>[a(N)]),_:1}),o("div",null,[o("p",pe,s(e(t)("operationTip")),1),o("p",me,"1、"+s(e(t)("operationTipOne")),1),o("p",_e,"2、"+s(e(t)("operationTipTwo")),1),o("p",de,"3、"+s(e(t)("operationTipThree")),1),o("p",ue,"4、"+s(e(t)("operationTipFour")),1)])])]),_:1}),o("div",he,[Z((d(),ee(V,{data:r.data,size:"large"},{empty:l(()=>[o("span",null,s(r.loading?"":e(t)("emptyData")),1)]),default:l(()=>[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:l(({row:i})=>[o("span",null,s(i.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:l(({row:i})=>[u(s(i.is_wechat==1?e(t)("startUsing"):e(t)("statusDeactivate")),1)]),_:1},8,["label"]),a(p,{label:e(t)("response"),"min-width":"180"},{default:l(({row:i})=>[(d(!0),g(te,null,ae(i.wechat.content,(b,L)=>(d(),g("div",{key:"a"+L,class:"text-left"},s(b.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:l(({row:i})=>[a(f,{type:"primary",link:"",onClick:b=>T(i)},{default:l(()=>[u(s(i.is_wechat==1?e(t)("close"):e(t)("open")),1)]),_:2},1032,["onClick"]),a(f,{type:"primary",link:"",onClick:b=>v(i)},{default:l(()=>[u(s(e(t)("regain")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[F,r.loading]])])]),_:1})])}}});const ht=oe(fe,[["__scopeId","data-v-21af9fe0"]]);export{ht as default};