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
13 KiB
JavaScript
1 line
13 KiB
JavaScript
2 years ago
|
"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[766],{24766:function(t,e,a){a.r(e),a.d(e,{default:function(){return y}});var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("page-view",[a("a-row",[a("a-col",{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",{on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery()}},model:{value:t.list.params.keyword,callback:function(e){t.$set(t.list.params,"keyword",e)},expression:"list.params.keyword"}})],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"状态:"}},[a("a-select",{attrs:{placeholder:"请选择状态"},on:{change:function(e){return t.handleQuery()}},model:{value:t.list.params.type,callback:function(e){t.$set(t.list.params,"type",e)},expression:"list.params.type"}},t._l(Object.keys(t.list.journalType),(function(e){return a("a-select-option",{key:e,attrs:{value:e}},[t._v(" "+t._s(t.list.journalType[e].text)+" ")])})),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(e){return t.handleQuery()}}},[t._v("查询")]),a("a-button",{on:{click:function(e){return t.handleResetParam()}}},[t._v("重置")])],1)],1)])],1)],1)],1),a("div",{staticClass:"table-operator"},[a("a-button",{attrs:{icon:"plus",type:"primary"},on:{click:t.handleOpenPublishModal}},[t._v("写日志")])],1),a("a-divider"),a("div",{staticClass:"mt-4"},[t.list.loading||0!==t.list.data.length?a("a-list",{attrs:{dataSource:t.list.data,loading:t.list.loading,pagination:!1,itemLayout:"vertical"},scopedSlots:t._u([{key:"renderItem",fn:function(e,n){return[a("a-list-item",{key:n,scopedSlots:t._u([{key:"actions",fn:function(){return[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[a("a-icon",{attrs:{type:"like-o"}}),t._v(" "+t._s(e.likes)+" ")],1),a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return t.handleOpenJournalCommentsDrawer(e)}}},[a("a-icon",{attrs:{type:"message"}}),t._v(" "+t._s(e.commentCount)+" ")],1),"INTIMATE"===e.type?a("a-button",{staticClass:"!p-0",staticStyle:{color:"grey"},attrs:{type:"link"},on:{click:function(a){return t.handleJournalTypeUpdate(e)}}},[a("a-icon",{attrs:{type:"lock"}})],1):a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return t.handleJournalTypeUpdate(e)}}},[a("a-icon",{attrs:{type:"unlock"}})],1)]},proxy:!0},{key:"extra",fn:function(){return[a("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:function(a){return t.handleOpenEditModal(e)}}},[t._v("编辑")]),a("a-divider",{attrs:{type:"vertical"}}),a("a-popconfirm",{attrs:{cancelText:"取消",okText:"确定",title:"你确定要删除这条日志?"},on:{confirm:function(a){return t.handleDelete(e.id)}}},[a("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("删除")])],1)]},proxy:!0}],null,!0)},[a("a-list-item-meta",{scopedSlots:t._u([{key:"description",fn:function(){return[a("div",{staticClass:"journal-list-content",domProps:{innerHTML:t._s(e.content)}})]},proxy:!0},{key:"title",fn:function(){return[a("span",[t._v(t._s(t._f("moment")(e.createTime)))])]},proxy:!0},{key:"avatar",fn:function(){return[a("a-avatar",{attrs:{src:t.user.avatar,size:"large"}})]},proxy:!0}],null,!0)})],1)]}}])},[a("div",{staticClass:"page-wrapper"},[a("a-pagination",{staticClass:"pagination",attrs:{current:t.pagination.page,defaultPageSize:t.pagination.size,pageSizeOptions:["10","20","50","100"],total:t.pagination.total,showLessItems:"",showSizeChanger:""},on:{change:t.handlePageChange,showSizeChange:t.handlePageSizeChange}})],1)]):a("a-empty")],1)],1)],1)],1),a("div",{staticStyle:{position:"fixed",bottom:"30px",right:"30px"}},[a("a-button",{attrs:{icon:"setting",shape:"circle",size:"large"
|