mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-04 04:08:13 +00:00
2 lines
4.2 KiB
JavaScript
2 lines
4.2 KiB
JavaScript
import{E as N}from"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-6ef4c1c3.js";/* empty css *//* empty css *//* empty css */import{t as e}from"./index-e4761856.js";import{d as B,f as L}from"./wechat-ed8d1b45.js";import{e as D}from"./notice-2828befb.js";import{u as q}from"./vue-router-79053937.js";import{E as A}from"./index-71b8cde8.js";import{E as F}from"./index-bba9e58c.js";import{E as S}from"./index-d1bcad42.js";import{a as V,E as j}from"./index-92e1b5d5.js";import{E as z}from"./index-69523418.js";import{v as M}from"./directive-c0c3e9a3.js";import{d as W,M as $,Q as I,b as d,e as h,q as a,p as i,f as s,x as o,u as t,v as _,L as O,m as Q,F as R,t as U,r as G}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./common-6291c908.js";import"./common-2cf17469.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./_isIterateeCall-c579b126.js";const H={class:"main-container"},J={class:"flex justify-between items-center"},K={class:"text-[24px]"},P={class:"flex"},X={class:"text-base"},Y={class:"text-base"},Z={class:"text-base"},tt={class:"text-base"},et={class:"mt-[10px]"},Ht=W({__name:"template",setup(at){const g=q().meta.title,l=$({loading:!0,data:[]}),u=(p=1)=>{l.loading=!0,B().then(n=>{l.loading=!1,l.data=n.data}).catch(()=>{l.loading=!1})};u();const b=(p=null)=>{const n=A.service({lock:!0,background:"rgba(0, 0, 0, 0)"});L({keys:p?[p.key]:[]}).then(()=>{u(),n.close()}).catch(()=>{n.close()})},v=p=>{const n=G({key:"",type:"",status:0});n.value.status=p.is_wechat?0:1,n.value.key=p.key,n.value.type="wechat",l.loading=!0,D(n.value).then(m=>{u()}).catch(()=>{l.loading=!1})};return(p,n)=>{const m=F,y=I("Warning"),w=N,x=S,c=V,k=j,E=z,T=M;return d(),h("div",H,[a(E,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[s("div",J,[s("span",K,o(t(g)),1),a(m,{type:"primary",class:"w-[100px]",onClick:b},{default:i(()=>[_(o(t(e)("batchAcquisition")),1)]),_:1})]),a(x,{class:"warm-prompt !my-[20px]",type:"info"},{default:i(()=>[s("div",P,[a(w,{class:"mr-2 mt-[2px]",size:"18"},{default:i(()=>[a(y)]),_:1}),s("div",null,[s("p",X,o(t(e)("operationTip"))+" 1、"+o(t(e)("operationTipOne")),1),s("p",Y,"2、"+o(t(e)("operationTipTwo")),1),s("p",Z,"3、"+o(t(e)("operationTipThree")),1),s("p",tt,"4、"+o(t(e)("operationTipFour")),1)])])]),_:1}),s("div",et,[O((d(),Q(k,{data:l.data,size:"large"},{empty:i(()=>[s("span",null,o(l.loading?"":t(e)("emptyData")),1)]),default:i(()=>[a(c,{prop:"name","show-overflow-tooltip":!0,label:t(e)("name"),"min-width":"150"},null,8,["label"]),a(c,{label:t(e)("messageType"),"min-width":"100",align:"center"},{default:i(({row:r})=>[s("span",null,o(r.message_type==1?t(e)("buyerNews"):t(e)("sellerMessage")),1)]),_:1},8,["label"]),a(c,{label:t(e)("isStart"),"min-width":"100",align:"center"},{default:i(({row:r})=>[_(o(r.is_wechat==1?t(e)("startUsing"):t(e)("statusDeactivate")),1)]),_:1},8,["label"]),a(c,{label:t(e)("response"),"min-width":"180"},{default:i(({row:r})=>[(d(!0),h(R,null,U(r.wechat.content,(f,C)=>(d(),h("div",{key:"a"+C,class:"text-left"},o(f.join(":")),1))),128))]),_:1},8,["label"]),a(c,{prop:"wechat_template_id",label:t(e)("serialNumber"),"min-width":"140"},null,8,["label"]),a(c,{label:t(e)("operation"),fixed:"right",width:"200"},{default:i(({row:r})=>[a(m,{type:"primary",link:"",onClick:f=>v(r)},{default:i(()=>[_(o(r.is_wechat==1?t(e)("close"):t(e)("open")),1)]),_:2},1032,["onClick"]),a(m,{type:"danger",link:"",onClick:f=>b(r)},{default:i(()=>[_(o(t(e)("regain")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[T,l.loading]])])]),_:1})])}}});export{Ht as default};
|