mirror of https://github.com/go-sonic/sonic.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
2 years ago
|
"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[379],{24379:function(e,t,a){a.r(t),a.d(t,{default:function(){return S}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("page-view",[a("a-row",{attrs:{gutter:12,align:"middle",type:"flex"}},[a("a-col",{staticClass:"pb-3",attrs:{span:24}},[a("a-card",{attrs:{bodyStyle:{padding:"16px"},bordered:!1}},[a("div",{staticClass:"table-page-search-wrapper"},[a("a-form",{attrs:{layout:"inline"}},[a("a-row",{attrs:{gutter:48}},[a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"关键词:"}},[a("a-input",{attrs:{allowClear:""},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.list.params.keyword,callback:function(t){e.$set(e.list.params,"keyword",t)},expression:"list.params.keyword"}})],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"分组:"}},[a("a-select",{attrs:{allowClear:""},on:{change:function(t){return e.handleQuery()}},model:{value:e.list.params.team,callback:function(t){e.$set(e.list.params,"team",t)},expression:"list.params.team"}},e._l(e.computedTeams,(function(t,n){return a("a-select-option",{key:n,attrs:{value:t}},[e._v(" "+e._s(t)+" ")])})),1)],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("span",{staticClass:"table-page-search-submitButtons"},[a("a-space",[a("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleQuery()}}},[e._v("查询")]),a("a-button",{on:{click:function(t){return e.handleResetParam()}}},[e._v("重置")])],1)],1)])],1)],1)],1),a("div",{staticClass:"table-operator mb-0"},[a("a-dropdown",{scopedSlots:e._u([{key:"overlay",fn:function(){return[a("a-menu",[a("a-menu-item",{key:"single",on:{click:function(t){return e.handleOpenForm({})}}},[e._v(" 添加")]),a("a-menu-item",{key:"batch",on:{click:function(t){e.attachmentSelectModal.visible=!0}}},[e._v(" 批量添加")])],1)]},proxy:!0}])},[a("a-button",{attrs:{icon:"plus",type:"primary"}},[e._v(" 添加 "),a("a-icon",{attrs:{type:"down"}})],1)],1),a("a-button",{directives:[{name:"show",rawName:"v-show",value:e.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"check-circle",type:"primary"},on:{click:e.handleSelectAll}},[e._v(" 全选 ")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:e.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"delete",type:"danger"},on:{click:e.handleDeletePhotoInBatch}},[e._v(" 删除 ")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:e.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"delete"},on:{click:e.handleOpenUpdateTeamForm}},[e._v(" 更改分组 ")]),a("a-button",{directives:[{name:"show",rawName:"v-show",value:e.list.selected.length,expression:"list.selected.length"}],attrs:{icon:"close"},on:{click:function(t){e.list.selected=[]}}},[e._v(" 取消")])],1)])],1),a("a-col",{attrs:{span:24}},[a("a-spin",{attrs:{spinning:e.list.loading}},[a("div",{staticClass:"grid grid-cols-2 gap-x-2 gap-y-3 sm:grid-cols-3 md:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10",attrs:{role:"list"}},e._l(e.list.data,(function(t,n){return a("div",{key:n,staticClass:"relative cursor-pointer overflow-hidden rounded-sm border-solid bg-white transition-all hover:shadow-sm",class:e.isItemSelect(t)?"border-blue-600":"border-white",on:{click:function(a){return e.handleItemClick(t)},mouseenter:function(a){return e.$set(t,"hover",!0)},mouseleave:function(a){return e.$set(t,"hover",!1)}}},[a("div",{staticClass:"group aspect-w-10 aspect-h-7 block w-full overflow-hidden bg-white"},[a("img",{staticClass:"pointer-events-none overflow-hidden object-cover transition-opacity group-hover:opacity-70",attrs:{alt:t.name,src:t.thumbnail,loading:"lazy"}})]),a("a-tooltip",{attrs:{title:t.name}},[a("div",{staticClass:"block truncate p-1.5 text-xs font-medium text-gray-500"},[a("span",{staticClass:"mr-1"},[e._v(" "+e._s(t.name)+" ")]),t.team?a("span",[e._v("#"+e._s(t.team))]):e._e()])]),a("a-icon",{directives:[{name:"show",rawN
|