"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[6063],{76063:function(e,t,a){a.r(t),a.d(t,{default:function(){return x}});var i=a(66252),s=a(49963);const l=e=>((0,i.dD)("data-v-038eb165"),e=e(),(0,i.Cn)(),e),n={class:"test_cli admin_page"},r={class:"admin_table_search"},d={class:"admin_state"},c={class:"admin_state_item"},o=l((()=>(0,i._)("span",null,"Start Date:",-1))),u=l((()=>(0,i._)("span",{class:"icon iconfont range_picker_icon icon-rili"},null,-1))),m={class:"admin_state_item"},h=l((()=>(0,i._)("span",null,"Start Time:",-1))),g={class:"admin_state_item"},p=l((()=>(0,i._)("span",null,"Email:",-1))),_={class:"admin_state_item"},v=l((()=>(0,i._)("span",null,"User Name:",-1))),y={class:"admin_search"},k={class:"admin_table_content",ref:"historyTable"};function w(e,t,a,l,w,T){const f=(0,i.up)("a-range-picker"),H=(0,i.up)("a-time-range-picker"),L=(0,i.up)("a-select"),P=(0,i.up)("a-table");return(0,i.wg)(),(0,i.iD)("div",n,[(0,i._)("div",r,[(0,i._)("div",d,[(0,i._)("div",c,[o,(0,i.Wm)(f,{style:{width:"250px"},class:"range_picker",value:e.rangePickerValue,"onUpdate:value":t[0]||(t[0]=t=>e.rangePickerValue=t),placeholder:[e.$t("HistoryPage.StartDate"),e.$t("HistoryPage.EndDate")],valueFormat:"YYYY-MM-DD"},{suffixIcon:(0,i.w5)((()=>[u])),_:1},8,["value","placeholder"])]),(0,i._)("div",m,[h,(0,i.Wm)(H,{style:{width:"250px"},class:"range_picker",valueFormat:"HH:mm:ss",value:e.rangeTimeValue,"onUpdate:value":t[1]||(t[1]=t=>e.rangeTimeValue=t)},null,8,["value"])]),(0,i._)("div",g,[p,(0,i.wy)((0,i._)("input",{"onUpdate:modelValue":t[2]||(t[2]=t=>e.email=t),placeholder:"Please enter email",onKeydown:t[3]||(t[3]=(0,s.D2)(((...t)=>e.gettrialList&&e.gettrialList(...t)),["enter"])),type:"text",style:{width:"250px"}},null,544),[[s.nr,e.email]])]),(0,i._)("div",_,[v,(0,i.Wm)(L,{value:e.ids,"onUpdate:value":t[4]||(t[4]=t=>e.ids=t),mode:"multiple",style:{width:"250px"},"filter-option":e.filterOption,placeholder:"Select Item...","max-tag-count":"responsive",options:e.allUserList,onKeydown:(0,s.D2)(e.gettrialList,["enter"])},null,8,["value","filter-option","options","onKeydown"])])]),(0,i._)("div",y,[(0,i._)("div",{class:"admin_search_item",onClick:t[5]||(t[5]=(...t)=>e.searchHistoryList&&e.searchHistoryList(...t))},"Search")])]),(0,i._)("div",k,[(0,i.Wm)(P,{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)])}var T=a(2262),f=a(33907),H=a(74961),L=(0,i.aZ)({components:{},setup(){const e=(0,f.oR)();let t=(0,T.iH)([]),a=(0,T.iH)([]),s=(0,T.iH)({});const l=(0,i.Fl)((()=>[{title:"Email",align:"center",dataIndex:"userEmail",key:"userEmail",width:200,fixed:"left"},{title:"User Id",align:"center",ellipsis:!0,dataIndex:"accountId",key:"accountId",width:100},{title:"User Name",align:"center",ellipsis:200,dataIndex:"userName",key:"userName",width:100},{title:"Frequency",align:"center",ellipsis:!0,dataIndex:"designTimes",key:"designTimes",width:100},{title:"Create Time",align:"center",ellipsis:!0,dataIndex:"createTime",key:"createTime",width:200},{title:"Credits",align:"center",ellipsis:!0,dataIndex:"credits",key:"credits",width:100}]));let n=(0,i.Fl)((()=>e.state.adminPage.allUserList)),r=(0,T.iH)([]),d=(0,T.iH)(""),c=(0,T.iH)([]),o=(0,T.iH)(0),u=(e,t)=>t.label.toLowerCase().indexOf(e.toLowerCase())>=0;return{rangePickerValue:t,rangeTimeValue:a,columns:l,dataList:c,allUserList:n,ids:r,email:d,renameData:s,status:o,filterOption:u}},data(){return{currentPage:1,pageSize:10,total:0,historyTableHeight:0,handleResizeColumn:(e,t)=>{t.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 e=this.rangeTimeValue[0]?this.rangeTimeValue[0]:"00:00:00",t=this.rangeTimeValue[1]?this.rangeTimeValue[1]:"23:59:59",a=this.rangePickerValue[0]?this.rangePickerValue[0]+" "+e:"",i=this.rangePickerValue[1]?this.rangePickerValue[1]+" "+t:"",s=this.ids.join(","),l={endTime:i,startTime:a,ids:s,email:this.email.trim()};H.V.axiosGet(H.V.httpUrls.getDesignStatistic,{params:l}).then((e=>{e&&(this.dataList=e)}))}}}),P=a(83744);const V=(0,P.Z)(L,[["render",w],["__scopeId","data-v-038eb165"]]);var x=V}}]);