import{P as A}from"./page.3b4d44cb.js";import{A as z}from"./index.1d26a072.js";import{d as S,a6 as N,b as v,r as D,p as L,c as d,at as R,e as p,k as _,i as n,g as r,u as e,A as j,h as o,f as q,j as O,F as T,w as M,q as $,m as y,E as G,y as H,R as J,S as K,_ as Q}from"./index.0308b213.js";import{E as W,e as X,g as Y}from"./EditDialog.6823eda0.js";import"./install.524ae6f2.js";import"./useAgent.c0cb1751.js";import"./list.5526c7ef.js";const Z=c=>(J("data-v-df529b65"),c=c(),K(),c),ee={style:{display:"flex","padding-bottom":"20px"},class:"filter-form"},te=Z(()=>r("div",{style:{"margin-left":"30px"},class:"grid-content ep-bg-purple"},null,-1)),ae=y("\u67E5\u8BE2"),le={style:{"margin-left":"30px"},class:"grid-content ep-bg-purple"},oe=y("\u5BFC\u51FA"),ne={class:"container"},ie=y("\u67E5\u770B\u8BE6\u60C5"),se={style:{"margin-top":"20px"},class:"pagination"},de=S({setup(c){const{OpPlatform:x}=N(),t=v({agentid:"",page:1,limit:10,diyid:"",keyword:""}),i=v({loading:!1,delLoading:!1,tableData:[],selectIds:[],diys:[],count:0});let u=D(!1),b=D(0);const F=()=>{if(!t.diyid){G({message:"\u8BF7\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u9875\u9762\uFF01",type:"warning"});return}X({diyid:t.diyid}).then(s=>{const l=s.data;window.open(l)})},w=()=>{t.page=1,m()},m=()=>{Y(t).then(s=>{i.diys=s.diys,i.tableData=s.lists,i.count=s.count})};m(),L(()=>[t.page,t.limit,t.agentid,t.diyid],()=>{m()},{deep:!0});const C=s=>{b.value=s,H(()=>{u.value=!0})},h=()=>{u.value=!1};return(s,l)=>{const B=d("el-option"),V=d("el-select"),g=d("el-button"),f=d("el-table-column"),k=d("el-table"),E=d("el-pagination"),I=d("el-col"),P=d("el-row"),U=R("loading");return p(),_(A,{showBorder:!1,loading:e(i).loading},{main:n(()=>[r("div",ee,[e(x)==="shangpu"?(p(),_(e(z),{key:0,modelValue:e(t).agentid,"onUpdate:modelValue":l[0]||(l[0]=a=>e(t).agentid=a)},null,8,["modelValue"])):j("",!0),r("div",null,[o(V,{modelValue:e(t).diyid,"onUpdate:modelValue":l[1]||(l[1]=a=>e(t).diyid=a),clearable:"",placeholder:"\u7B5B\u9009\u9875\u9762",style:{width:"240px","margin-left":"20px"}},{default:n(()=>[(p(!0),q(T,null,O(e(i).diys,a=>(p(),_(B,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),te,o(g,{class:"tn-el-form-item--item tn-button tn-button--blue",onClick:l[2]||(l[2]=a=>m())},{default:n(()=>[ae]),_:1}),r("div",le,[o(g,{onClick:F,class:"tn-el-form-item--item tn-button tn-button--blue"},{default:n(()=>[oe]),_:1})])]),r("div",ne,[o(P,null,{default:n(()=>[o(I,null,{default:n(()=>[M((p(),_(k,{border:"",data:e(i).tableData,style:{width:"100%"}},{default:n(()=>[o(f,{align:"center",prop:"diy_title",label:"\u6807\u9898"}),o(f,{align:"center",prop:"addttime_cn",label:"\u63D0\u4EA4\u65F6\u95F4"}),o(f,{align:"center",label:"\u64CD\u4F5C"},{default:n(a=>[o(g,{onClick:ue=>C(a.row.id),ype:"primary"},{default:n(()=>[ie]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[U,e(i).loading]]),r("div",se,[o(E,{currentPage:e(t).page,"onUpdate:currentPage":l[3]||(l[3]=a=>e(t).page=a),"page-size":e(t).limit,"onUpdate:page-size":l[4]||(l[4]=a=>e(t).limit=a),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:e(i).count},null,8,["currentPage","page-size","total"])])]),_:1})]),_:1})]),o(W,{modelValue:e(u),"onUpdate:modelValue":l[5]||(l[5]=a=>$(u)?u.value=a:u=a),onRefreshData:w,id:e(b),onOnClose:h,diyId:e(t).diyid},null,8,["modelValue","id","diyId"])]),_:1},8,["loading"])}}});const ye=Q(de,[["__scopeId","data-v-df529b65"]]);export{ye as default};
