Portal/potal_admin/up-portal-admin-1.0.1/js/chunk-2d0f1561.a414ec2e.js

1 line
2.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f1561"],{"9fca":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.visible,title:e.$t("schedule.log"),"close-on-click-modal":!1,"close-on-press-escape":!1,width:"75%"},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getDataList()}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:e.$t("schedule.jobId"),clearable:""},model:{value:e.dataForm.jobId,callback:function(t){e.$set(e.dataForm,"jobId",t)},expression:"dataForm.jobId"}})],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.getDataList()}}},[e._v(e._s(e.$t("query")))])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:"",height:"460"},on:{"sort-change":e.dataListSortChangeHandle}},[a("el-table-column",{attrs:{prop:"jobId",label:e.$t("schedule.jobId"),"header-align":"center",align:"center",width:"80"}}),a("el-table-column",{attrs:{prop:"beanName",label:e.$t("schedule.beanName"),"header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"params",label:e.$t("schedule.params"),"header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"status",label:e.$t("schedule.status"),"header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.status?a("el-tag",{attrs:{size:"small"}},[e._v(e._s(e.$t("schedule.statusLog1")))]):a("el-tag",{staticStyle:{cursor:"pointer"},attrs:{type:"danger",size:"small"},nativeOn:{click:function(a){return e.showErrorInfo(t.row.id)}}},[e._v(e._s(e.$t("schedule.statusLog0")))])]}}])}),a("el-table-column",{attrs:{prop:"times",label:e.$t("schedule.times"),"header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"createDate",label:e.$t("schedule.createDate"),"header-align":"center",align:"center",width:"180"}})],1),a("el-pagination",{attrs:{"current-page":e.page,"page-sizes":[10,20,50,100],"page-size":e.limit,total:e.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.pageSizeChangeHandle,"current-change":e.pageCurrentChangeHandle}})],1)},l=[],r=a("e1a5"),i={mixins:[r["a"]],data:function(){return{visible:!1,mixinViewModuleOptions:{getDataListURL:"/job/scheduleLog/page",getDataListIsPage:!0},dataForm:{jobId:""}}},methods:{init:function(){this.visible=!0,this.getDataList()},showErrorInfo:function(e){var t=this;this.$http.get("/job/scheduleLog/".concat(e)).then((function(e){var a=e.data;if(0!==a.code)return t.$message.error(a.msg);t.$alert(a.data.error)})).catch((function(){}))}}},s=i,o=a("2877"),c=Object(o["a"])(s,n,l,!1,null,null,null);t["default"]=c.exports}}]);