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 lines
4.3 KiB
1 lines
4.3 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f8564c6c"],{"1a98":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard"},[a("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small",inline:"","label-width":"85px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"管理员ID:",prop:"admin_id"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.admin_id,callback:function(e){t.$set(t.tableFrom,"admin_id",e)},expression:"tableFrom.admin_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"请求方式:",prop:"method"}},[a("el-select",{staticClass:"selWidth",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 a("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"操作时间:"}},[a("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间",clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),a("el-card",{staticClass:"mt14"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"admin_id",label:"管理员ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"admin_name",label:"管理员名称","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"menu.menu_name",label:"权限名称","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"route",label:"请求","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{prop:"method",label:"请求方式","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"url",label:"链接","min-width":"250"}}),t._v(" "),a("el-table-column",{attrs:{prop:"ip",label:"IP","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"操作时间","min-width":"120"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},l=[],n=a("90e7"),s={name:"SystemLog",data:function(){return{isChecked:!1,listLoading:!0,tableData:{data:[],total:0},timeVal:[],section_time:[],importanceOptions:["POST","DELETE"],tableFrom:{page:1,limit:20,admin_id:"",method:"",date:""}}},mounted:function(){this.getList("")},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["f"])(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)},onChange:function(t){null==t?(this.tableFrom.section_startTime="",this.tableFrom.section_endTime=""):(this.tableFrom.section_startTime=t[0],this.tableFrom.section_endTime=t[1]),this.getList("")},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")}}},o=s,r=(a("f1b7"),a("2877")),m=Object(r["a"])(o,i,l,!1,null,"7e3605ca",null);e["default"]=m.exports},"1cca":function(t,e,a){},f1b7:function(t,e,a){"use strict";a("1cca")}}]); |