张卓
2022-09-20 5aead44ba1be31db948dfd8362c2bfcbedbbce29
1
2
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c0fc4"],{"43b1":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-card",{staticStyle:{"margin-top":"24px"},attrs:{bordered:!1}},[a("div",{staticClass:"tableList"},[a("div",{staticClass:"tableListForm"},[a("a-form",{attrs:{layout:"horizontal"}},[a("a-row",{attrs:{gutter:{md:4,lg:24,xl:12}}},[a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"帐号",labelCol:{span:8},wrapperCol:{span:15}}},[a("a-input",{attrs:{placeholder:"请输入帐号"},model:{value:e.searchInform.account,callback:function(t){e.$set(e.searchInform,"account",t)},expression:"searchInform.account"}})],1)],1),a("a-col",{attrs:{md:6,sm:24}},[a("a-form-item",{attrs:{label:"类型",labelCol:{span:5},wrapperCol:{span:15}}},[a("a-select",{attrs:{mode:"multiple",placeholder:"选择类型"},on:{change:e.handleChange},model:{value:e.selectTypeIds,callback:function(t){e.selectTypeIds=t},expression:"selectTypeIds"}},e._l(e.selectTypes,(function(t,n){return a("a-select-option",{key:n},[e._v(e._s(t))])})),1)],1)],1),a("a-col",{attrs:{md:3,sm:24}},[a("a-date-picker",{staticStyle:{"margin-top":"4px"},attrs:{placeholder:"开始日期"},on:{change:e.onStartTimeChange},model:{value:e.searchInform.startTime,callback:function(t){e.$set(e.searchInform,"startTime",t)},expression:"searchInform.startTime"}})],1),a("a-col",{attrs:{md:3,sm:24}},[a("a-date-picker",{staticStyle:{"margin-top":"4px"},attrs:{placeholder:"结束日期"},on:{change:e.onEndTimeChange},model:{value:e.searchInform.endTime,callback:function(t){e.$set(e.searchInform,"endTime",t)},expression:"searchInform.endTime"}})],1),a("a-col",{attrs:{md:6,sm:24}},[a("span",{staticStyle:{"margin-top":"4px"}},[a("a-button",{staticStyle:{"margin-top":"4px"},attrs:{type:"primary"},on:{click:this.handleSearch}},[e._v("查询")]),a("a-button",{staticStyle:{"margin-left":"8px","magrin-top":"4px"},on:{click:this.handleFormReset}},[e._v("重置")])],1)])],1)],1)],1),a("a-table",{attrs:{dataSource:e.dataSource,loading:e.tableLoading,pagination:e.pagination,columns:e.columns},on:{change:e.handlerTableChange},scopedSlots:e._u([{key:"content1",fn:function(t){return a("span",{},e._l(t,(function(t,n){return a("h5",{key:n},[e._v(e._s(t))])})),0)}}])})],1)])],1)},c=[],s=a("d4ec"),r=a("bee2"),o=a("262e"),i=a("2caf"),l=(a("d3b7"),a("25f0"),a("9ab4")),h=a("60a3"),u=a("c5cc"),d=function(e){Object(o["a"])(a,e);var t=Object(i["a"])(a);function a(){var e;return Object(s["a"])(this,a),e=t.apply(this,arguments),e.dataSource=[],e.pagination={total:0,current:0,pageSize:5,showSizeChanger:!1,showQuickJumper:!1},e.searchFormLayout={labelCol:{span:5},wrapperCol:{span:18,offset:1}},e.searchInform={account:null,startTime:null,endTime:null},e.selectedRowKeys=[],e.selectedRows=[],e.selectTypes=[],e.selectTypeIds=[],e.tableLoading=!1,e.columns=[{title:"帐号",dataIndex:"account"},{title:"用户名",dataIndex:"userName",width:100},{title:"类型",dataIndex:"type",width:100},{title:"ip地址",dataIndex:"ip"},{title:"创建时间",dataIndex:"createTime",width:120},{title:"内容",dataIndex:"content",scopedSlots:{customRender:"content1"}}],e}return Object(r["a"])(a,[{key:"changeAccount",value:function(e,t){e||this.searchNull()}},{key:"changeStartTime",value:function(e,t){e||this.searchNull()}},{key:"changeEndTime",value:function(e,t){e||this.searchNull()}},{key:"changeSelectTypeIds",value:function(e,t){e.toString()||this.searchNull()}},{key:"searchNull",value:function(){this.searchInform.account||this.selectTypeIds.toString()||this.searchInform.startTime||this.searchInform.endTime||this.loadData(1)}},{key:"handleFormReset",value:function(){this.searchInform.account=null,this.searchInform.startTime=null,this.searchInform.endTime=null,this.handleChange([]),this.loadData(1)}},{key:"handlerTableChange",value:function(e,t,a){this.searchInform.account||this.searchInform.startTime&&this.searchInform.endTime||this.selectTypeIds?this.searchContentHttp(e.current):this.loadData(e.current)}},{key:"handlerSelectChange",value:function(e,t){this.selectedRows=t}},{key:"created",value:function(){var e=this;this.loadData(1),Object(u["a"])("dict/data/query?type=operateType",{}).then((function(t){e.selectTypes=t.data.data})).catch((function(e){console.log(e)}))}},{key:"loadData",value:function(e){var t=this;Object(u["a"])("system/log/query",{page:e,size:10,order:"createTime",orderType:1}).then((function(e){t.dataSource=e.data.data.manageLogs,t.pagination.current=e.data.data.current,t.pagination.total=e.data.data.total,t.pagination.pageSize=e.data.data.size})).catch((function(e){console.log(e)}))}},{key:"searchContentHttp",value:function(e){var t=this;Object(u["a"])("system/log/query",{page:e,size:10,order:"createTime",orderType:1,account:this.searchInform.account?this.searchInform.account:null,type:this.selectTypeIds?this.selectTypeIds.toString():null,startTime:this.searchInform.startTime?this.searchInform.startTime:null,endTime:this.searchInform.endTime?this.searchInform.endTime:null}).then((function(e){t.dataSource=e.data.data.manageLogs,t.pagination.current=e.data.data.current,t.pagination.total=e.data.data.total,t.pagination.pageSize=e.data.data.size}))}},{key:"handleSearch",value:function(){(this.searchInform.account||this.searchInform.startTime&&this.searchInform.endTime||this.selectTypeIds)&&this.searchContentHttp(1)}},{key:"onStartTimeChange",value:function(e,t){this.searchInform.startTime=t}},{key:"onEndTimeChange",value:function(e,t){this.searchInform.endTime=t}},{key:"popupScroll",value:function(){}},{key:"handleChange",value:function(e){this.selectTypeIds=e}}]),a}(h["e"]);Object(l["a"])([Object(h["f"])("searchInform.account")],d.prototype,"changeAccount",null),Object(l["a"])([Object(h["f"])("searchInform.startTime")],d.prototype,"changeStartTime",null),Object(l["a"])([Object(h["f"])("searchInform.endTime")],d.prototype,"changeEndTime",null),Object(l["a"])([Object(h["f"])("selectTypeIds")],d.prototype,"changeSelectTypeIds",null),d=Object(l["a"])([Object(h["a"])({})],d);var m=d,p=m,f=a("2877"),y=Object(f["a"])(p,n,c,!1,null,null,null);t["default"]=y.exports}}]);
//# sourceMappingURL=chunk-2d0c0fc4.1635e76a.js.map