index.a65f994f.js 2.8 KB

1
  1. import{ck as i,X as y,_ as w,d as k,m,cv as R,r as s,o as h,A as f,x as p,h as d,u as _,D as P,a as B,cw as b}from"./index.56449854.js";import{u as N}from"./use-page-search.59eb5443.js";import S from"./role-modal.4f0535b5.js";import{d as W}from"./index.5b88f962.js";import"./index.1b9de31e.js";const{VITE_PROXY_DOMAIN_REAL:Q,VITE_PROXY_USER_REAL:$}=y(),l=$+"/admin/commond/",I=e=>i.request("post",`${l}list`,{data:e}),q=e=>i.request("post",`${l}systemedit`,{data:e}),V=e=>i.request("post",`${l}menustatus`,{data:e}),L=e=>i.request("post",`${l}menudel`,{data:e}),O=[{type:"selection",width:40,align:"center",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",minWidth:60,align:"left",hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u540D\u79F0",prop:"rep_name",minWidth:150},{label:"\u8D77\u59CB\u65E5\u671F",minWidth:140,prop:"start"},{label:"\u7ED3\u675F\u65E5\u671F",minWidth:140,prop:"end"},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],U={title:"\u4E1A\u7EE9\u62A5\u8868\u91CD\u8BD5",columns:O,deleteProp:"payNo",statusRowProp:({companyCode:e})=>({companyNo:e}),apis:{httpList:I,httpDelete:L,httpAdd:!0,httpStatus:V,httpUpdate:q}},X={formItems:[{field:"nickname",type:"input",placeholder:"\u771F\u5B9E\u59D3\u540D",trigger:"change"},{field:"username",type:"input",placeholder:"\u624B\u673A\u53F7",trigger:"change"}]};var c=(e=>(e[e.update=0]="update",e[e.preview=1]="preview",e[e.create=2]="create",e))(c||{});const Y="wechatManager",j=k({__name:"index",setup(e){const o=m(null),u=m(null),g=t=>({result:{...t||{}},deleteProp:[]}),v={pageSearchHook:()=>N(g,void 0,X)};R({success:()=>{var t;return(t=u.value)==null?void 0:t.onSearch()}});const E={content:{create:()=>{var t;return(t=o.value)==null?void 0:t.onDisplay(void 0,c.create)},preview:t=>{var n;return(n=o.value)==null?void 0:n.onDisplay(t,c.preview)},update:t=>{var n;return(n=o.value)==null?void 0:n.onDisplay(t,c.update)}}};async function C(t){b.confirm("\u662F\u5426\u786E\u8BA4\u89E3\u9664\u7ED1\u5B9A?").then(async()=>{var r;(await W({id:t})).code===1&&((r=u.value)==null||r.onSearch())})}return(t,n)=>{const r=s("el-button"),D=s("el-tooltip"),A=s("PageContainer"),F=s("PageAuth");return h(),f(F,{pageName:Y},{default:p(()=>[d(A,{hooks:v,events:E,contentConfig:_(U),"get-content-ref":a=>u.value=a},{content_action:p(({is_wx:a,id:x})=>[d(D,{content:"\u89E3\u9664\u5FAE\u4FE1\u7ED1\u5B9A"},{default:p(()=>[Number(a)===1?(h(),f(r,{key:0,type:"text",size:"mini",icon:_(P)("close"),onClick:z=>C(x)},null,8,["icon","onClick"])):B("v-if",!0)]),_:2},1024)]),_:1},8,["contentConfig","get-content-ref"]),d(S,{ref_key:"roleModalRef",ref:o,onRefresh:n[0]||(n[0]=a=>u.value.onSearch())},null,512)]),_:1})}}});var Z=w(j,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/system/retryReport/index.vue"]]);export{Z as default};