You can not 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
6.1 KiB
1 line
6.1 KiB
12 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f0a8813a"],{"1a98":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"filter-container"},[n("div",{staticClass:"demo-input-suffix"},[t._v("\n 管理员ID:\n "),n("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleFilter(e)}},model:{value:t.tableFrom.admin_id,callback:function(e){t.$set(t.tableFrom,"admin_id",e)},expression:"tableFrom.admin_id"}}),t._v(" "),n("el-select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择",clearable:""},model:{value:t.tableFrom.method,callback:function(e){t.$set(t.tableFrom,"method",e)},expression:"tableFrom.method"}},t._l(t.importanceOptions,(function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})})),1),t._v(" "),n("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}}),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")])],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"log_id",label:"ID","min-width":"60"}}),t._v(" "),n("el-table-column",{attrs:{prop:"admin_name",label:"管理员名称","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{prop:"route",label:"请求","min-width":"200"}}),t._v(" "),n("el-table-column",{attrs:{prop:"method",label:"请求方式","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"url",label:"链接","min-width":"250"}}),t._v(" "),n("el-table-column",{attrs:{prop:"ip",label:"IP","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},r=[],i=n("90e7"),o={name:"SystemLog",data:function(){return{isChecked:!1,listLoading:!0,timeVal:[],tableData:{data:[],total:0},section_time:[],importanceOptions:["POST","DELETE"],tableFrom:{page:1,limit:20,admin_id:"",method:"",date:""}}},mounted:function(){this.getList("")},methods:{getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["d"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")}}},u=o,l=n("2877"),c=Object(l["a"])(u,a,r,!1,null,"fff1b9f2",null);e["default"]=c.exports},"90e7":function(t,e,n){"use strict";n.d(e,"m",(function(){return r})),n.d(e,"u",(function(){return i})),n.d(e,"x",(function(){return o})),n.d(e,"v",(function(){return u})),n.d(e,"w",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return s})),n.d(e,"g",(function(){return d})),n.d(e,"b",(function(){return m})),n.d(e,"f",(function(){return f})),n.d(e,"e",(function(){return p})),n.d(e,"d",(function(){return g})),n.d(e,"A",(function(){return h})),n.d(e,"B",(function(){return b})),n.d(e,"j",(function(){return v})),n.d(e,"k",
|