chunk-b06fd398.f1bc4983.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b06fd398"],{"04d1":function(e,t,a){var r=a("342f"),s=r.match(/firefox\/(\d+)/i);e.exports=!!s&&+s[1]},"4e82":function(e,t,a){"use strict";var r=a("23e7"),s=a("e330"),o=a("59ed"),l=a("7b0b"),n=a("07fa"),i=a("083a"),c=a("577e"),u=a("d039"),m=a("addb"),p=a("a640"),d=a("04d1"),f=a("d998"),h=a("2d00"),y=a("512ce"),v=[],b=s(v.sort),g=s(v.push),w=u((function(){v.sort(void 0)})),_=u((function(){v.sort(null)})),x=p("sort"),k=!u((function(){if(h)return h<70;if(!(d&&d>3)){if(f)return!0;if(y)return y<603;var e,t,a,r,s="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(r=0;r<47;r++)v.push({k:t+r,v:a})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),s.charAt(s.length-1)!==t&&(s+=t);return"DGBEFHACIJK"!==s}})),P=w||!_||!x||!k,S=function(e){return function(t,a){return void 0===a?-1:void 0===t?1:void 0!==e?+e(t,a)||0:c(t)>c(a)?1:-1}};r({target:"Array",proto:!0,forced:P},{sort:function(e){void 0!==e&&o(e);var t=l(this);if(k)return void 0===e?b(t):b(t,e);var a,r,s=[],c=n(t);for(r=0;r<c;r++)r in t&&g(s,t[r]);m(s,S(e)),a=n(s),r=0;while(r<a)t[r]=s[r++];while(r<c)i(t,r++);return t}})},"512ce":function(e,t,a){var r=a("342f"),s=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!s&&+s[1]},addb:function(e,t,a){var r=a("4dae"),s=Math.floor,o=function(e,t){var a=e.length,i=s(a/2);return a<8?l(e,t):n(e,o(r(e,0,i),t),o(r(e,i),t),t)},l=function(e,t){var a,r,s=e.length,o=1;while(o<s){r=o,a=e[o];while(r&&t(e[r-1],a)>0)e[r]=e[--r];r!==o++&&(e[r]=a)}return e},n=function(e,t,a,r){var s=t.length,o=a.length,l=0,n=0;while(l<s||n<o)e[l+n]=l<s&&n<o?r(t[l],a[n])<=0?t[l++]:a[n++]:l<s?t[l++]:a[n++];return e};e.exports=o},d998:function(e,t,a){var r=a("342f");e.exports=/MSIE|Trident/.test(r)},fed5:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"68px"}},[a("el-form-item",{attrs:{label:"系统模块",prop:"title"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入系统模块",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.title,callback:function(t){e.$set(e.queryParams,"title",t)},expression:"queryParams.title"}})],1),a("el-form-item",{attrs:{label:"操作人员",prop:"operName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入操作人员",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.operName,callback:function(t){e.$set(e.queryParams,"operName",t)},expression:"queryParams.operName"}})],1),a("el-form-item",{attrs:{label:"类型",prop:"businessType"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"操作类型",clearable:""},model:{value:e.queryParams.businessType,callback:function(t){e.$set(e.queryParams,"businessType",t)},expression:"queryParams.businessType"}},e._l(e.dict.type.sys_oper_type,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"操作状态",clearable:""},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.dict.type.sys_common_status,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"操作时间"}},[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:operlog:remove"],expression:"['system:operlog:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:operlog:remove"],expression:"['system:operlog:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini"},on:{click:e.handleClean}},[e._v("清空")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:operlog:export"],expression:"['system:operlog:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),a("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tables",attrs:{data:e.list,"default-sort":e.defaultSort},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),a("el-table-column",{attrs:{label:"日志编号",align:"center",prop:"operId"}}),a("el-table-column",{attrs:{label:"系统模块",align:"center",prop:"title"}}),a("el-table-column",{attrs:{label:"操作类型",align:"center",prop:"businessType"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dict-tag",{attrs:{options:e.dict.type.sys_oper_type,value:t.row.businessType}})]}}])}),a("el-table-column",{attrs:{label:"请求方式",align:"center",prop:"requestMethod"}}),a("el-table-column",{attrs:{label:"操作人员",align:"center",prop:"operName",width:"110","show-overflow-tooltip":!0,sortable:"custom","sort-orders":["descending","ascending"]}}),e._v(" "),a("el-table-column",{attrs:{label:"主机",align:"center",prop:"operIp",width:"130","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"操作状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dict-tag",{attrs:{options:e.dict.type.sys_common_status,value:t.row.status}})]}}])}),a("el-table-column",{attrs:{label:"操作日期",align:"center",prop:"operTime",width:"180",sortable:"custom","sort-orders":["descending","ascending"]},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.operTime)))])]}}])}),a("el-table-column",{attrs:{label:"消耗时间",align:"center",prop:"costTime",width:"110","show-overflow-tooltip":!0,sortable:"custom","sort-orders":["descending","ascending"]},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.costTime)+"毫秒")])]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:operlog:query"],expression:"['system:operlog:query']"}],attrs:{size:"mini",type:"text",icon:"el-icon-view"},on:{click:function(a){return e.handleView(t.row,t.index)}}},[e._v("详细")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:"操作日志详细",visible:e.open,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",size:"mini"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"操作模块:"}},[e._v(e._s(e.form.title)+" / "+e._s(e.typeFormat(e.form)))]),a("el-form-item",{attrs:{label:"登录信息:"}},[e._v(e._s(e.form.operName)+" / "+e._s(e.form.operIp))])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"请求地址:"}},[e._v(e._s(e.form.operUrl))]),a("el-form-item",{attrs:{label:"请求方式:"}},[e._v(e._s(e.form.requestMethod))])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"操作方法:"}},[e._v(e._s(e.form.method))])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"请求参数:"}},[e._v(e._s(e.form.operParam))])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"返回参数:"}},[e._v(e._s(e.form.jsonResult))])],1),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"操作状态:"}},[0===e.form.status?a("div",[e._v("正常")]):1===e.form.status?a("div",[e._v("失败")]):e._e()])],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"消耗时间:"}},[e._v(e._s(e.form.costTime)+"毫秒")])],1),a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"操作时间:"}},[e._v(e._s(e.parseTime(e.form.operTime)))])],1),a("el-col",{attrs:{span:24}},[1===e.form.status?a("el-form-item",{attrs:{label:"异常信息:"}},[e._v(e._s(e.form.errorMsg))]):e._e()],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.open=!1}}},[e._v("关 闭")])],1)],1)],1)},s=[],o=a("5530"),l=(a("4e82"),a("d81d"),a("b775"));function n(e){return Object(l["a"])({url:"/system/operlog/list",method:"get",params:e})}function i(e){return Object(l["a"])({url:"/system/operlog/"+e,method:"delete"})}function c(){return Object(l["a"])({url:"/system/operlog/clean",method:"delete"})}var u=a("2da1"),m={name:"Operlog",dicts:["sys_oper_type","sys_common_status"],data:function(){return{loading:!0,ids:[],multiple:!0,showSearch:!0,total:0,list:[],open:!1,dateRange:[],defaultSort:{prop:"operTime",order:"descending"},form:{},queryParams:{pageNum:1,pageSize:10,title:void 0,operName:void 0,businessType:void 0,status:void 0}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,n(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.list=t.data,e.total=t.total,e.loading=!1}))},typeFormat:function(e,t){return this.selectDictLabel(this.dict.type.sys_oper_type,e.businessType)},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.queryParams.pageNum=1,this.$refs.tables.sort(this.defaultSort.prop,this.defaultSort.order)},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.operId})),this.multiple=!e.length},handleSortChange:function(e,t,a){this.queryParams.orderByColumn=e.prop,this.queryParams.isAsc=e.order,this.getList()},handleView:function(e){this.open=!0,this.form=e},handleDelete:function(e){var t=this,a=e.operId||this.ids;this.$modal.confirm("是否确认删除当前日志数据项?").then((function(){return i(a)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))},handleClean:function(){var e=this;this.$modal.confirm("是否确认清空所有操作日志数据项?").then((function(){return c()})).then((function(){e.getList(),e.$modal.msgSuccess("清空成功")})).catch((function(){}))},handleExport:function(){this.download("system/operlog/export",Object(o["a"])({},this.queryParams),"操作日志_".concat(Object(u["f"])((new Date).getTime(),"{y}-{m}-{d}"),".xlsx"))}}},p=m,d=a("2877"),f=Object(d["a"])(p,r,s,!1,null,null,null);t["default"]=f.exports}}]);