zx/public/mer/js/chunk-2d0b5a65.2ddd3728.js

1 line
4.0 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b5a65"],{"1a98":function(t,e,a){"use strict";a.r(e);var l=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","label-width":"85px",inline:""}},[a("el-form-item",{attrs:{label:"管理员ID",prop:"admin_id"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入管理员ID"},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:""},on:{change:function(e){return t.getList(1)}},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",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},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","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"log_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"admin_name",label:"管理员名称","min-width":"120"}}),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":"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"method",label:"请求方式","min-width":"100"}}),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":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}})],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)},i=[],n=a("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:{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["e"])(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("")}}},s=o,r=a("2877"),m=Object(r["a"])(s,l,i,!1,null,"f180e992",null);e["default"]=m.exports}}]);