"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[85556],{85556:function(e,t,a){a.r(t),a.d(t,{default:function(){return c}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"g-pa-md g-bg-white"},[t("el-form",{attrs:{inline:"",model:e.form}},[t("el-form-item",{attrs:{label:"创建时间"}},[t("el-date-picker",{attrs:{type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss",clearable:""},model:{value:e.form.time,callback:function(t){e.$set(e.form,"time",t)},expression:"form.time"}})],1),t("el-form-item",{attrs:{label:"平台"}},[t("el-select",{attrs:{clearable:""},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[t("el-option",{attrs:{label:"app",value:1}}),t("el-option",{attrs:{label:"pc",value:2}})],1)],1),t("el-form-item",{attrs:{label:"是否训练"}},[t("el-select",{attrs:{clearable:""},model:{value:e.form.trainedStatus,callback:function(t){e.$set(e.form,"trainedStatus",t)},expression:"form.trainedStatus"}},[t("el-option",{attrs:{label:"未训练",value:0}}),t("el-option",{attrs:{label:"已训练",value:1}})],1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("搜索")])],1)],1),t("el-table",{attrs:{data:e.dataSource.records}},[t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"id",label:"id"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"userId",label:"用户id"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"deviceCode",label:"设备号"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",label:"图片",width:"120px"},scopedSlots:e._u([{key:"default",fn:function(e){return[t("el-image",{staticStyle:{width:"120px",height:"120px"},attrs:{fit:"contain",src:e.row.imageUrl,"preview-src-list":[e.row.imageUrl]}})]}}])}),t("el-table-column",{attrs:{"header-align":"center",align:"center",label:"平台"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(1===t.row.type?"app":"pc")+" ")]}}])}),t("el-table-column",{attrs:{"header-align":"center",align:"center",label:"是否训练"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0===t.row.trainedStatus?"未训练":"已训练")+" ")]}}])}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"createTime",label:"创建时间"}})],1),t("div",{staticClass:"g-pagination-container"},[t("el-pagination",{attrs:{"current-page":e.dataSource.pageNow,"page-sizes":[10,20,50],"page-size":e.dataSource.pageSize,layout:"sizes, prev, pager, next, jumper",background:"",total:e.dataSource.rowCount},on:{"size-change":function(t){return e.doPageChange(null,t)},"current-change":function(t){return e.doPageChange(t)}}})],1)],1)},l=[],n={components:{},data(){const e=new Date,t=new Date;return t.setTime(t.getTime()-12096e5),t.setHours(0,0,0,0),{form:{time:[t,e]},dataSource:{records:[]},pageNow:1,pageSize:20}},mounted(){this.doSearch()},methods:{doSearch(){this.pageNow=1,this.getList()},doPageChange(e,t){e&&(this.pageNow=e),t&&(this.pageSize=t),this.getList()},getList(){const e={...this.form,pageNow:this.pageNow,pageSize:this.pageSize},{time:t}=e;t&&t.length>0&&(e.createTimeStart=t[0],e.createTimeEnd=t[1],delete e.time),this.$store.dispatch({type:"openAI/searchRecords",payload:e}).then((e=>{e&&(this.dataSource=e)}))}}},o=n,i=a(81656),s=(0,i.A)(o,r,l,!1,null,"316af2f8",null),c=s.exports}}]);