(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d8c4744c","chunk-2d0c91d2"],{5881:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("a-drawer",{attrs:{width:"750px",placement:"right",closable:!1,visible:e.openView},on:{close:e.onCloseView}},[t("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"操作信息",layout:"vertical",column:3,bordered:""}},[t("a-descriptions-item",{attrs:{label:"操作模块"}},[e._v(" "+e._s(e.form.title)+" ")]),t("a-descriptions-item",{attrs:{label:"登录信息"}},[e._v(" "+e._s(e.form.operName)+" / "+e._s(e.form.operIp)+" / "+e._s(e.form.operLocation)+" ")]),t("a-descriptions-item",{attrs:{label:"请求方式"}},[e._v(" "+e._s(e.form.requestMethod)+" ")]),t("a-descriptions-item",{attrs:{label:"请求地址"}},[e._v(" "+e._s(e.form.operUrl)+" ")]),t("a-descriptions-item",{attrs:{label:"操作方法",span:2}},[t("div",{staticStyle:{"word-break":"break-all"}},[e._v(e._s(e.form.method))])])],1),t("a-divider"),t("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"接口信息",layout:"vertical",column:3,bordered:""}},[t("a-descriptions-item",{attrs:{label:"请求参数",span:3}},[e._v(" "+e._s(e.form.operParam)+" ")]),t("a-descriptions-item",{attrs:{label:"返回参数",span:3}},[e._v(" "+e._s(e.form.jsonResult)+" ")]),t("a-descriptions-item",{attrs:{label:"操作状态"}},[0===e.form.status?t("a-badge",{attrs:{status:"processing",text:"正常"}}):e._e(),1===e.form.status?t("a-badge",{attrs:{status:"error",text:"失败"}}):e._e()],1),t("a-descriptions-item",{attrs:{label:"操作时间"}},[e._v(" "+e._s(e.parseTime(e.form.operTime))+" ")]),t("a-descriptions-item",{attrs:{label:"耗时"}},[e._v(" "+e._s(e.form.takeUpTime)+"毫秒 ")]),1===e.form.status?t("a-descriptions-item",{attrs:{label:"异常信息"}},[e._v(" "+e._s(e.form.errorMsg)+" ")]):e._e()],1),null!==e.form.logContent?t("a-divider"):e._e(),null!==e.form.logContent?t("a-descriptions",{staticStyle:{"word-break":"break-all","word-wrap":"break-word"},attrs:{title:"变更记录",layout:"vertical",column:3,bordered:""}},[t("a-descriptions-item",{attrs:{label:"表单ID",span:3}},[e._v(" "+e._s(e.form.formId)+" ")]),t("a-descriptions-item",{attrs:{label:"变更情况",span:3}},[e._v(" "+e._s(e.form.logContent)+" ")])],1):e._e()],1)},o=[],s={name:"ViewForm",props:{},data:function(){return{form:{},openView:!1}},filters:{},created:function(){},computed:{},watch:{},methods:{handleView:function(e){this.openView=!0,this.form=e},onCloseView:function(){this.openView=!1}}},n=s,i=a("2877"),l=Object(i["a"])(n,r,o,!1,null,null,null);t["default"]=l.exports},"8b78":function(e,t,a){"use strict";a.r(t);a("99af");var r=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:48}},[t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"系统模块"}},[t("a-input",{attrs:{placeholder:"请输入系统模块","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.title,callback:function(t){e.$set(e.queryParam,"title",t)},expression:"queryParam.title"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"操作人员"}},[t("a-input",{attrs:{placeholder:"请输入操作人员","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.operName,callback:function(t){e.$set(e.queryParam,"operName",t)},expression:"queryParam.operName"}})],1)],1),t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"类型"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"操作类型","allow-clear":""},model:{value:e.queryParam.businessType,callback:function(t){e.$set(e.queryParam,"businessType",t)},expression:"queryParam.businessType"}},e._l(e.typeOptions,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1)],1),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"状态"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{placeholder:"操作状态","allow-clear":""},model:{value:e.queryParam.status,callback:function(t){e.$set(e.queryParam,"status",t)},expression:"queryParam.status"}},e._l(e.statusOptions,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.dictValue}},[e._v(e._s(a.dictLabel))])})),1)],1)],1):e._e(),e.advanced?t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:"操作时间"}},[t("a-range-picker",{staticStyle:{width:"100%"},attrs:{valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD","allow-clear":""},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1)],1):e._e(),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v("查询")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v("重置")],1),t("a",{staticStyle:{"margin-left":"8px"},on:{click:e.toggleAdvanced}},[e._v(" "+e._s(e.advanced?"收起":"展开")+" "),t("a-icon",{attrs:{type:e.advanced?"up":"down"}})],1)],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("view-form",{ref:"viewForm"}),t("advance-table",{attrs:{columns:e.columns,"data-source":e.list,title:"系统参数",loading:e.loading,rowKey:"id",tableKey:"monitor-operlog-Operlog-table",isTableConfig:!1,isShowSetBtn:!1,size:"middle","format-conditions":!0,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange},pagination:{current:e.queryParam.pageNum,pageSize:e.queryParam.pageSize,total:e.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(e,t){return"第 ".concat(t[0],"-").concat(t[1]," 条，总计 ").concat(e," 条")},onChange:e.changeSize,onShowSizeChange:e.onSizeChange}},on:{refresh:e.getList},scopedSlots:e._u([{key:"businessType",fn:function(a){var r=a.text,o=a.record;return t("span",{},[t("a-tag",{attrs:{color:e._f("operTypeFilter")(r)}},[e._v(" "+e._s(e.typeFormat(o))+" ")])],1)}},{key:"status",fn:function(a){a.text;var r=a.record;return t("span",{},[t("a-badge",{attrs:{status:"0"==r.status?"processing":"error",text:e.statusFormat(r)}})],1)}},{key:"operation",fn:function(a){a.text;var r=a.record;return t("span",{},[t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:query"],expression:"['monitor:operlog:query']"}],on:{click:function(t){return e.$refs.viewForm.handleView(r)}}},[t("a-icon",{attrs:{type:"eye",theme:"twoTone"}}),e._v("详细 ")],1)])}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[e.multiple?e._e():t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger",disabled:e.multiple},on:{click:e.handleDelete}},[t("a-icon",{attrs:{type:"delete"}}),e._v("删除 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{type:"danger"},on:{click:e.handleClean}},[t("a-icon",{attrs:{type:"delete"}}),e._v("清空 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:config:export"],expression:"['system:config:export']"}],on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v("导出 ")],1)],1)])],1)],1)},o=[],s=(a("d81d"),a("b775"));function n(e){return Object(s["b"])({url:"/monitor/operlog/page",method:"get",params:e})}function i(e){return Object(s["b"])({url:"/monitor/operlog/"+e,method:"post"})}function l(){return Object(s["b"])({url:"/monitor/operlog/clean",method:"post"})}function c(e){return Object(s["b"])({url:"/monitor/operlog/export",method:"get",params:e})}var u=a("5881"),d=a("5d9e"),p={name:"Operlog",components:{ViewForm:u["default"],AdvanceTable:d["a"]},data:function(){return{list:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,ids:[],loading:!1,sunloading:!1,total:0,statusOptions:[],typeOptions:[],labelCol:{span:6},wrapperCol:{span:18},dateRange:[],queryParam:{pageNum:1,pageSize:10,title:void 0,operName:void 0,businessType:void 0,status:void 0},addModalRefName:"addModal",columns:[{title:"系统模块",dataIndex:"title",align:"center"},{title:"操作类型",dataIndex:"businessType",scopedSlots:{customRender:"businessType"},align:"center"},{title:"请求方式",dataIndex:"requestMethod",align:"center"},{title:"操作人员",dataIndex:"operName",align:"center"},{title:"主机",dataIndex:"operIp",align:"center"},{title:"操作地点",dataIndex:"operLocation",align:"center"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"},align:"center"},{title:"耗时",dataIndex:"takeUpTime",align:"center"},{title:"操作日期",dataIndex:"operTime",align:"center"},{title:"操作",dataIndex:"operation",scopedSlots:{customRender:"operation"},align:"center"}]}},filters:{operTypeFilter:function(e){var t="blue";return 3!==e&&7!==e&&9!==e||(t="orange"),t}},created:function(){var e=this;this.getList(),this.getDicts("sys_common_status").then((function(t){e.statusOptions=t.data})),this.getDicts("sys_oper_type").then((function(t){e.typeOptions=t.data}))},computed:{},watch:{},methods:{onSizeChange:function(e,t){this.queryParam.pageNum=1,this.queryParam.pageSize=t,this.getList()},getList:function(){var e=this;this.loading=!0,n(this.addDateRange(this.queryParam,this.dateRange)).then((function(t){e.list=t.data.list,e.total=t.data.total,e.loading=!1}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},typeFormat:function(e,t){return this.selectDictLabel(this.typeOptions,e.businessType)},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.queryParam={pageNum:1,pageSize:10,title:void 0,operName:void 0,businessType:void 0,status:void 0},this.handleQuery()},onShowSizeChange:function(e,t){this.queryParam.pageSize=t,this.getList()},changeSize:function(e,t){this.queryParam.pageNum=e,this.queryParam.pageSize=t,this.getList()},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.id})),this.multiple=!e.length},toggleAdvanced:function(){this.advanced=!this.advanced},handleDelete:function(e){var t=this,a=e.id||this.ids;this.$confirm({title:"确认删除所选中数据?",content:"当前选中编号为"+a+"的数据",onOk:function(){return i(a).then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("删除成功",3)}))},onCancel:function(){}})},handleClean:function(){var e=this;this.$confirm({title:"是否确认清空?",content:"此操作将会清空所有操作日志数据项",onOk:function(){return l().then((function(){e.onSelectChange([],[]),e.getList(),e.$message.success("清空成功",3)}))},onCancel:function(){}})},handleExport:function(){var e=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return c(e.queryParam).then((function(t){e.download(t.msg),e.$message.success("导出成功",3)}))},onCancel:function(){}})}}},m=p,h=a("2877"),f=Object(h["a"])(m,r,o,!1,null,null,null);t["default"]=f.exports}}]);