1 |
- import{d as D,b as g,r as V,p as A,c as s,e as C,f as I,g as u,h as e,i,u as t,a1 as k,m as f,t as B,F as z,R as N,S as U,_ as P}from"./index.76214426.js";import{A as K}from"./index.e8855bbf.js";import{a as L}from"./helibao.477334e4.js";import{u as T}from"./useAgent.769391df.js";import"./install.412476cc.js";import"./list.b7393bbf.js";const j=r=>(N("data-v-04520687"),r=r(),U(),r),q={class:"filter-form"},H=f("\u67E5\u8BE2"),R={class:"data"},$=j(()=>u("div",{class:"operation-container"},[u("div",{class:"operation-btn"})],-1)),G={class:"table"},J={class:"bottom"},M={class:"pagination"},O=D({setup(r){const{getAgentList:b,getAgentTitle:v}=T();b();const o=g({keyword:"",page:1,limit:10}),d=g({list:[],devices:[],count:0});let h=V([]);const c=()=>{L(o).then(p=>{d.list=p.list,d.count=p.count})};c();const m=()=>{c()},F=p=>{h.value=p.map(l=>String(l.id))};return A(()=>[o.page,o.limit],()=>{c()}),(p,l)=>{const E=s("el-input"),_=s("el-form-item"),y=s("el-button"),S=s("el-form"),n=s("el-table-column"),w=s("el-table"),x=s("el-pagination");return C(),I(z,null,[u("div",q,[e(S,{model:t(o),"label-width":"90px"},{default:i(()=>[e(_,{class:"tn-el-form-item",label:"\u641C\u7D22"},{default:i(()=>[e(E,{modelValue:t(o).keyword,"onUpdate:modelValue":l[0]||(l[0]=a=>t(o).keyword=a),placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0",onKeyup:l[1]||(l[1]=k(a=>m(),["enter"]))},null,8,["modelValue"])]),_:1}),e(_,{class:"tn-el-form-item",label:"\u4EE3\u7406\u533A\u57DF"},{default:i(()=>[e(t(K),{modelValue:t(o).agentid,"onUpdate:modelValue":l[2]||(l[2]=a=>t(o).agentid=a)},null,8,["modelValue"])]),_:1}),e(_,null,{default:i(()=>[e(y,{class:"tn-el-form-item--item tn-button tn-button--blue",onClick:m},{default:i(()=>[H]),_:1})]),_:1})]),_:1},8,["model"])]),u("div",R,[$,u("div",G,[e(w,{data:t(d).list,onSelectionChange:F},{default:i(()=>[e(n,{label:"ID",prop:"id"}),e(n,{label:"\u4EE3\u7406",prop:"agentid"},{default:i(({row:a})=>[f(B(t(v)(a.agentid)),1)]),_:1}),e(n,{label:"sid",prop:"sid"}),e(n,{prop:"store_name",label:"\u5546\u6237\u540D\u79F0"}),e(n,{prop:"merchantNo",label:"\u5546\u6237\u53F7"}),e(n,{prop:"channel1",label:"\u6E20\u90531"}),e(n,{prop:"wx_mchid",label:"\u5FAE\u4FE1\u5546\u6237\u53F7"}),e(n,{prop:"ali_pid",label:"\u652F\u4ED8\u5B9Dpid"})]),_:1},8,["data"])])]),u("div",J,[u("div",M,[e(x,{currentPage:t(o).page,"onUpdate:currentPage":l[3]||(l[3]=a=>t(o).page=a),"page-size":t(o).limit,"onUpdate:page-size":l[4]||(l[4]=a=>t(o).limit=a),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:t(d).count},null,8,["currentPage","page-size","total"])])])],64)}}});const te=P(O,[["__scopeId","data-v-04520687"]]);export{te as default};
|