"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[2659],{18714:function(e,s,a){a.r(s),a.d(s,{default:function(){return w}});var l=a(66252),i=a(3577);const t=e=>((0,l.dD)("data-v-0814bf35"),e=e(),(0,l.Cn)(),e),n={class:"left-panel"},c=(0,l.Uk)("添加人脸数据"),d=t((()=>(0,l._)("div",{class:"right-panel"},null,-1))),u={class:"faceList"},o={class:"head"},r={class:"image-slot"},p={class:"name"},m={class:"time"};function g(e,s,a,t,g,v){const f=(0,l.up)("el-button"),_=(0,l.up)("el-header"),h=(0,l.up)("icon-picture"),w=(0,l.up)("el-icon"),k=(0,l.up)("el-image"),y=(0,l.up)("el-empty"),z=(0,l.up)("el-scrollbar"),D=(0,l.up)("el-main"),W=(0,l.up)("el-container"),S=(0,l.up)("save-dialog");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(W,{class:"mainBox"},{default:(0,l.w5)((()=>[(0,l.Wm)(_,null,{default:(0,l.w5)((()=>[(0,l._)("div",n,[(0,l.Wm)(f,{size:g.size,type:"primary",onClick:v.add},{default:(0,l.w5)((()=>[c])),_:1},8,["size","onClick"]),(0,l.Wm)(f,{size:g.size,type:"danger",plain:"",icon:"el-icon-delete"},null,8,["size"])]),d])),_:1}),(0,l.Wm)(D,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(z,null,{default:(0,l.w5)((()=>[(0,l._)("div",u,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(g.list,((e,s)=>((0,l.wg)(),(0,l.iD)("div",{class:"faceItem",key:s},[(0,l._)("div",o,[(0,l.Wm)(k,{class:"img",src:e.image_url,fit:"cover",lazy:""},{error:(0,l.w5)((()=>[(0,l._)("div",r,[(0,l.Wm)(w,null,{default:(0,l.w5)((()=>[(0,l.Wm)(h)])),_:1})])])),_:2},1032,["src"])]),(0,l._)("div",p,(0,i.toDisplayString)(e.user_name),1),(0,l._)("div",m,(0,i.toDisplayString)(e.updated_at),1)])))),128))]),g.list&&0===g.list.length?((0,l.wg)(),(0,l.j4)(y,{key:0,description:"无数据","image-size":80})):(0,l.kq)("",!0)])),_:1})])),_:1})])),_:1}),g.dialog.save?((0,l.wg)(),(0,l.j4)(S,{key:0,ref:"saveDialog",onSuccess:v.handleSaveSuccess,onClosed:s[0]||(s[0]=e=>g.dialog.save=!1)},null,8,["onSuccess"])):(0,l.kq)("",!0)],64)}var v=a(37838),f={name:"index",components:{saveDialog:v["default"]},data(){return{size:"small",list:[],dialog:{save:!1}}},mounted(){this.getList()},methods:{handleSaveSuccess(){},add(){this.dialog.save=!0,this.$nextTick((()=>{this.$refs.saveDialog.open()}))},async getList(){const e=await this.$API.system.face.list.post();200==e.code&&(this.list=e.data.rows)}}},_=a(83744);const h=(0,_.Z)(f,[["render",g],["__scopeId","data-v-0814bf35"]]);var w=h}}]);