1 |
- import{Z as x,cr as B,S as m,_ as w,d as k,m as f,cv as M,r as l,o as h,A as g,x as i,h as c,u as p,D as P,a as S,cw as R}from"./index.56449854.js";import{u as W}from"./use-page-search.59eb5443.js";import{R as Y,M as d}from"./role-modal.babe8c43.js";import{a as N,b as H,c as I,d as j}from"./index.1b9de31e.js";import{d as T}from"./index.5b88f962.js";const _=[{value:"1",label:"\u5DF2\u5173\u6CE8",type:"success"},{value:"2",label:"\u5DF2\u51BB\u7ED3",type:"danger"},{value:"4",label:"\u672A\u5173\u6CE8",type:"warning"}],U=[{type:"selection",width:40,align:"center",hide:({checkList:t})=>!t.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",minWidth:60,align:"left",hide:({checkList:t})=>!t.includes("\u5E8F\u53F7\u5217")},{label:"ID",prop:"id",width:60},{label:"\u624B\u673A\u53F7",prop:"mobile",minWidth:120,align:"left"},{label:"\u540D\u79F0",prop:"nickname",minWidth:80},{label:"openid",prop:"openid",minWidth:150},{label:"\u5173\u6CE8\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:t})=>{var a;return x(B,{type:((a=_.find(({value:n})=>n===String(t.status)))==null?void 0:a.type)||"success"},{default:()=>{var n;return((n=_.find(({value:r})=>r===String(t.status)))==null?void 0:n.label)||"--"}})}},{label:"\u521B\u5EFA\u65F6\u95F4",minWidth:140,prop:"addtime",formatter:({addtime:t})=>m(t).format("YYYY-MM-DD HH:mm:ss")},{label:"\u5173\u6CE8\u65F6\u95F4",minWidth:140,prop:"addtime",formatter:({subscribe_time:t})=>m(t).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],V={title:"\u5FAE\u4FE1\u8D26\u53F7\u6743\u9650\u7BA1\u7406",columns:U,responseCode:0,deleteProp:"payNo",statusRowProp:({companyCode:t})=>({companyNo:t}),apis:{httpList:N,httpDelete:H,httpAdd:!0,httpStatus:I,httpUpdate:j}},v={formItems:[{field:"nickname",type:"input",placeholder:"\u771F\u5B9E\u59D3\u540D",trigger:"change"},{field:"username",type:"input",placeholder:"\u624B\u673A\u53F7",trigger:"change"}]},$="wechatManager",z=k({__name:"index",setup(t){const a=f(null),n=f(null),r=e=>({result:{...e||{}},deleteProp:[]}),F={pageSearchHook:()=>W(r,void 0,v)};M({success:()=>{var e;return(e=n.value)==null?void 0:e.onSearch()}});const y={content:{create:()=>{var e;return(e=a.value)==null?void 0:e.onDisplay(void 0,d.create)},preview:e=>{var o;return(o=a.value)==null?void 0:o.onDisplay(e,d.preview)},update:e=>{var o;return(o=a.value)==null?void 0:o.onDisplay(e,d.update)}}};async function C(e){R.confirm("\u662F\u5426\u786E\u8BA4\u89E3\u9664\u7ED1\u5B9A?").then(async()=>{var u;(await T({id:e})).code===1&&((u=n.value)==null||u.onSearch())})}return(e,o)=>{const u=l("el-button"),D=l("el-tooltip"),E=l("PageContainer"),b=l("PageAuth");return h(),g(b,{pageName:$},{default:i(()=>[c(E,{hooks:F,events:y,contentConfig:p(V),"search-config":p(v),"get-content-ref":s=>n.value=s},{content_action:i(({is_wx:s,id:A})=>[c(D,{content:"\u89E3\u9664\u5FAE\u4FE1\u7ED1\u5B9A"},{default:i(()=>[Number(s)===1?(h(),g(u,{key:0,type:"text",size:"mini",icon:p(P)("close"),onClick:L=>C(A)},null,8,["icon","onClick"])):S("v-if",!0)]),_:2},1024)]),_:1},8,["contentConfig","search-config","get-content-ref"]),c(Y,{ref_key:"roleModalRef",ref:a,onRefresh:o[0]||(o[0]=s=>n.value.onSearch())},null,512)]),_:1})}}});var O=w(z,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/system/wechatManager/index.vue"]]);export{O as default};
|