import{H as e,u as a,a as t,_ as i}from"./index-9I638LJn.js";import{d as s,k as l,c as n,a0 as r,a3 as d,f as o,aa as c,a8 as m,v as u,ak as g,aj as h,a1 as p}from"./vendor-DezibNX8.js";import{R as D,J as y,j as _,F as v}from"./antd-CKo75OZH.js";import"./utils-D7vwahzQ.js";const S=s({components:{},setup(){const e=t();let i=l([]),s=l([]),r=l({});const{t:d}=a(),o=n(()=>[{title:d("adminSeDesignDetail.Email"),align:"center",dataIndex:"userEmail",key:"userEmail",width:200,fixed:"left"},{title:d("adminSeDesignDetail.UserId"),align:"center",ellipsis:!0,dataIndex:"accountId",key:"accountId",width:100},{title:d("adminSeDesignDetail.UserName"),align:"center",ellipsis:200,dataIndex:"userName",key:"userName",width:100},{title:d("adminSeDesignDetail.Frequency"),align:"center",ellipsis:!0,dataIndex:"designTimes",key:"designTimes",width:100},{title:d("adminSeDesignDetail.CreateTime"),align:"center",ellipsis:!0,dataIndex:"createTime",key:"createTime",width:200},{title:d("adminSeDesignDetail.Credits"),align:"center",ellipsis:!0,dataIndex:"credits",key:"credits",width:100}]);let c=n(()=>e.state.adminPage.allUserList),m=l([]),u=l("");return{rangePickerValue:i,rangeTimeValue:s,columns:o,dataList:l([]),allUserList:c,ids:m,email:u,renameData:r,status:l(0),filterOption:(e,a)=>a.label.toLowerCase().indexOf(e.toLowerCase())>=0}},data:()=>({currentPage:1,pageSize:10,total:0,historyTableHeight:0,handleResizeColumn:(e,a)=>{a.width=e}}),mounted(){let e=this.$refs.historyTable;this.historyTableHeight=e.clientHeight-200,this.gettrialList()},methods:{changePage(e){this.currentPage=e.current,this.pageSize=e.pageSize,this.gettrialList()},searchHistoryList(){this.currentPage=1,this.gettrialList()},gettrialList(){let a=this.rangeTimeValue[0]?this.rangeTimeValue[0]:"00:00:00",t=this.rangeTimeValue[1]?this.rangeTimeValue[1]:"23:59:59",i=this.rangePickerValue[0]?this.rangePickerValue[0]+" "+a:"",s={endTime:this.rangePickerValue[1]?this.rangePickerValue[1]+" "+t:"",startTime:i,ids:this.ids.join(","),email:this.email.trim()};e.axiosGet(e.httpUrls.getDesignStatistic,{params:s}).then(e=>{e&&(this.dataList=e)})}}}),k={class:"test_cli admin_page"},T={class:"admin_table_search"},f={class:"admin_state"},w={class:"admin_state_item"},x={class:"admin_state_item"},L={class:"admin_state_item"},P={class:"admin_state_item"},V={class:"admin_search"},C={class:"admin_table_content",ref:"historyTable"};const H=i(S,[["render",function(e,a,t,i,s,l){const n=D,S=y,H=_,I=v;return p(),r("div",k,[d("div",T,[d("div",f,[d("div",w,[d("span",null,c(e.$t("adminSeDesignDetail.StartDate"))+":",1),o(n,{style:{width:"250px"},class:"range_picker",value:e.rangePickerValue,"onUpdate:value":a[0]||(a[0]=a=>e.rangePickerValue=a),placeholder:[e.$t("HistoryPage.StartDate"),e.$t("HistoryPage.EndDate")],valueFormat:"YYYY-MM-DD"},{suffixIcon:m(()=>a[6]||(a[6]=[d("span",{class:"icon iconfont range_picker_icon icon-rili"},null,-1)])),_:1},8,["value","placeholder"])]),d("div",x,[d("span",null,c(e.$t("adminSeDesignDetail.StartTime"))+":",1),o(S,{style:{width:"250px"},class:"range_picker",valueFormat:"HH:mm:ss",value:e.rangeTimeValue,"onUpdate:value":a[1]||(a[1]=a=>e.rangeTimeValue=a)},null,8,["value"])]),d("div",L,[d("span",null,c(e.$t("adminSeDesignDetail.Email"))+":",1),u(d("input",{"onUpdate:modelValue":a[2]||(a[2]=a=>e.email=a),placeholder:"Please enter email",onKeydown:a[3]||(a[3]=h((...a)=>e.gettrialList&&e.gettrialList(...a),["enter"])),type:"text",style:{width:"250px"}},null,544),[[g,e.email]])]),d("div",P,[d("span",null,c(e.$t("adminSeDesignDetail.UserName"))+":",1),o(H,{value:e.ids,"onUpdate:value":a[4]||(a[4]=a=>e.ids=a),mode:"multiple",style:{width:"250px"},"filter-option":e.filterOption,placeholder:"Select Item...","max-tag-count":"responsive",options:e.allUserList,onKeydown:h(e.gettrialList,["enter"])},null,8,["value","filter-option","options","onKeydown"])])]),d("div",V,[d("div",{class:"admin_search_item",onClick:a[5]||(a[5]=(...a)=>e.searchHistoryList&&e.searchHistoryList(...a))},"Search")])]),d("div",C,[o(I,{onResizeColumn:e.handleResizeColumn,columns:e.columns,"data-source":e.dataList,scroll:{y:e.historyTableHeight},onChange:e.changePage,pagination:{showSizeChanger:!0,current:e.currentPage,pageSize:e.pageSize,total:e.total,showQuickJumper:!0,bordered:!1}},null,8,["onResizeColumn","columns","data-source","scroll","onChange","pagination"])],512)])}],["__scopeId","data-v-c42f6603"]]);export{H as default};
