(window["webpackJsonp_direwolf"]=window["webpackJsonp_direwolf"]||[]).push([["qrtzFailLogsList"],{"63c9":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper-cont",attrs:{id:"qrtzFailLogsList"}},[a("el-card",{staticClass:"box-card search-content",attrs:{shadow:"never"}},[a("el-form",{attrs:{"label-position":"right",size:"small","label-width":"100px",id:"qrtzFailLogsSearchForm",model:e.searchParams}},[a("el-row",{attrs:{gutter:15}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"状态"}},[a("el-input",{attrs:{placeholder:"请输入状态"},model:{value:e.searchParams.state,callback:function(t){e.$set(e.searchParams,"state",t)},expression:"searchParams.state"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"等级"}},[a("el-input",{attrs:{placeholder:"请输入等级"},model:{value:e.searchParams.level,callback:function(t){e.$set(e.searchParams,"level",t)},expression:"searchParams.level"}})],1)],1)],1),a("el-row",{attrs:{gutter:15}},[a("el-col",{attrs:{offset:16,span:8}},[a("el-form-item",{staticClass:"search-content-button-container"},[a("el-button-group",[a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-search"},on:{click:e.search}},[e._v("查询\n ")]),a("el-button",{attrs:{size:"small",icon:"el-icon-refresh"},on:{click:e.resetSearchParam}},[e._v("重置\n ")])],1)],1)],1)],1)],1)],1),a("el-card",{staticClass:"box-card",attrs:{shadow:"hover"}},[e.inViewMode?e._e():a("el-button-group",[e.hasPermission("view")?a("el-button",{attrs:{size:"mini",icon:"el-icon-tickets"},on:{click:e.viewSelectedQrtzFailLogs}},[e._v("查看\n ")]):e._e()],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.qrtzFailLogsTableLoading,expression:"qrtzFailLogsTableLoading"}],ref:"qrtzFailLogsTable",staticStyle:{width:"100%","margin-top":"15px","margin-bottom":"15px"},attrs:{size:"medium",stripe:"",border:"","tooltip-effect":"dark",data:e.qrtzFailLogsTablePage.list},on:{"row-click":e.handleRowClick,"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"parameter",label:"参数",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"errorMessage",label:"错误信息",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"state",label:"状态",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"level",label:"等级",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间",sortable:"custom","show-overflow-tooltip":""}})],1),a("el-pagination",{attrs:{layout:"total, sizes, ->, prev, pager, next, jumper","pager-count":5,"hide-on-single-page":"",total:e.qrtzFailLogsTablePage.count,"page-sizes":[5,10,15,20],"page-size":e.searchParams.limit,background:""},on:{"size-change":e.handleTableSizeChange,"current-change":e.handleTableCurrentChange}})],1)],1)},r=[],i=(a("ac6a"),a("28a5"),a("55dd"),a("6071")),o=a("cbb1"),l=JSON.stringify({state:"",system:"",level:"",schedulerId:"",limit:5,offset:0,order:"",sort:""}),n={name:"qrtzFailLogsList",data:function(){var e=this;return{searchParams:JSON.parse(l),editType:e.$$utils.getQueryString("editType"),qrtzFailLogsTablePage:{},qrtzFailLogsTableLoading:!1}},computed:{inViewMode:function(){return"view"===this.editType||!this.hasPermission("add")&&!this.hasPermission("edit")&&!this.hasPermission("del")}},methods:{hasPermission:function(e){return this.$$utils.permission.hasPermission("".concat(o["b"]).concat(e))},search:function(){this.searchParams.offset=0,this.refreshTable()},refreshTable:function(){var e=this;e.qrtzFailLogsTableLoading=!0,e.searchParams.schedulerId=e.$route.query.schedulerId,i["a"].getQrtzFailLogsList(e.searchParams).then((function(t){e.qrtzFailLogsTablePage=t,e.qrtzFailLogsTableLoading=!1}))},resetSearchParam:function(){this.searchParams=JSON.parse(l),this.refreshTable()},handleRowClick:function(e,t,a){this.$$utils.eleTableClickSelection(this.$refs.qrtzFailLogsTable,e,a)},handleTableSizeChange:function(e){this.searchParams.limit=e,this.refreshTable()},handleTableCurrentChange:function(e){this.searchParams.offset=this.searchParams.limit*(e-1),this.refreshTable()},handleSortChange:function(e){null===e.prop||null===e.order?(this.searchParams.sort=l.sort,this.searchParams.order=l.order):(this.searchParams.sort=e.prop,this.searchParams.order=e.order.split("ending")[0]),this.refreshTable()},addNewQrtzFailLogs:function(){this.showFormDialog({editType:"add"})},viewSelectedQrtzFailLogs:function(){var e=this,t=e.$refs.qrtzFailLogsTable.selection;1===t.length?e.showFormDialog({editType:"view",failLogsId:t[0].failLogsId}):e.$$utils.direwolfCommonTips("warning","仅能选择一条记录进行查看")},showFormDialog:function(e){var t=this;t.$$utils.openLayerDialog({el:"qrtzFailLogsForm",url:"".concat(o["c"],"/qrtzFailLogsForm"),props:e,title:"".concat(t.$$utils.getEditTypeName(e.editType),"错误日志"),onConfirm:function(a,s){"view"!==e.editType?a.save((function(){t.refreshTable(),s()})):s()}})},deleteSelectedQrtzFailLogs:function(){var e=this,t=e.$refs.qrtzFailLogsTable.selection;0!==t.length?e.$$utils.direwolfCommonConfirm({title:"删除提醒",message:"数据删除后不可恢复,确定继续删除吗?"},(function(){var a=[];t.forEach((function(e){e.id&&a.push(e.id)})),a.length>0&&i["a"].deleteAllQrtzFailLogs(a).then((function(t){e.refreshTable(),e.$$utils.direwolfCommonTips("success","删除错误日志成功")}))})):e.$$utils.direwolfCommonTips("warning","请选择要删除的记录")},editSelectedQrtzFailLogs:function(){var e=this,t=this.$refs.qrtzFailLogsTable.selection;1===t.length?e.showFormDialog({editType:"edit",id:t[0].id}):e.$$utils.direwolfCommonTips("warning","仅能选择一条记录进行修改")},qrtzFailLogsRecordEdit:function(e){this.showFormDialog({editType:"edit",failLogsId:e.row.failLogsId})},qrtzFailLogsRecordRemove:function(e){var t=this;t.$$utils.direwolfCommonConfirm({title:"删除提醒",message:"数据删除后不可恢复,确定继续删除吗?"},(function(){var a="删除错误日志";i["a"].deleteQrtzFailLogs(e.row.failLogsId).then((function(e){t.refreshTable(),t.$$utils.direwolfCommonTips("success","".concat(a,"成功"))}))}))},handleSelectionChange:function(e){}},created:function(){var e=this;i["a"].checkListPermission("List").then((function(t){e.refreshTable()}))}},c=n,h=a("2877"),d=Object(h["a"])(c,s,r,!1,null,"f6346598",null);t["default"]=d.exports}}]);