| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="4" :sm="4"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
| | | |
| | | </a-col> |
| | | <a-col :md="2" :sm="2"> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('执行日志导出')">导出</a-button> |
| | | <a-space> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload">重置</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('执行日志导出')">导出</a-button> |
| | | </a-space> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | <a-tag v-if="isSuccess==-1" color="red">失败</a-tag> |
| | | </template> |
| | | <span slot="action" slot-scope="text, record"> |
| | | |
| | | <a v-if="record.isSuccess == -1" @click="executeImmediately(record)">查看详情</a> |
| | | |
| | | <a @click="executeImmediately(record)">查看详情</a> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | |
| | | }, |
| | | |
| | | { |
| | | title: '报错信息', |
| | | title: '日志信息', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | scopedSlots: { customRender: 'action' }, |
| | |
| | | title: '执行时间(毫秒)', |
| | | align: 'center', |
| | | dataIndex: 'executionTime', |
| | | customRender:(t,r,index) =>{ |
| | | var milliseconds = parseInt(t) |
| | | let hours = Math.floor(milliseconds / 3600000); |
| | | milliseconds = milliseconds % 3600000; |
| | | let minutes = Math.floor(milliseconds / 60000); |
| | | milliseconds = milliseconds % 60000; |
| | | let seconds = Math.floor(milliseconds / 1000); |
| | | milliseconds = milliseconds % 1000; |
| | | if(hours == 0){ |
| | | if(minutes == 0){ |
| | | if(seconds == 0) { |
| | | return `${milliseconds}毫秒` |
| | | }else{ |
| | | return `${seconds}秒 ${milliseconds}毫秒` |
| | | } |
| | | }else{ |
| | | return `${minutes}分钟 ${seconds}秒 ${milliseconds}毫秒`; |
| | | } |
| | | }else{ |
| | | return `${hours}小时 ${minutes}分钟 ${seconds}秒 ${milliseconds}毫秒`; |
| | | } |
| | | |
| | | } |
| | | |
| | | }, |
| | | { |
| | |
| | | }, |
| | | executeImmediately:function (record) { |
| | | this.$refs.modalForm.showDetails(record); |
| | | this.$refs.modalForm.title = "报错信息"; |
| | | this.$refs.modalForm.title = "日志信息"; |
| | | this.$refs.modalForm.disableSubmit = false; |
| | | }, |
| | | handleExportXls(fileName){ |
| | |
| | | param.field = this.getQueryField(); |
| | | param.pageNo = this.ipagination.current; |
| | | param.pageSize = this.ipagination.pageSize; |
| | | param.jobId = this.queryParam.jobId; |
| | | param.startTime = this.queryParam.startTime; |
| | | param.endTime = this.queryParam.endTime; |
| | | //获取用户定制的参数属性 |
| | | // if (this.getCustomQueryParams) { |
| | | // param = this.getCustomQueryParams(param); |