From 487754376a1eb675d430a64b7a4aa9e7ffeb405b Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期五, 25 八月 2023 09:54:15 +0800 Subject: [PATCH] 调整 --- src/views/system/modules/QuartzJobListModal.vue | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/src/views/system/modules/QuartzJobListModal.vue b/src/views/system/modules/QuartzJobListModal.vue index 8b3d76e..b9e07b4 100644 --- a/src/views/system/modules/QuartzJobListModal.vue +++ b/src/views/system/modules/QuartzJobListModal.vue @@ -193,6 +193,29 @@ 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}姣`; + } + + } }, { @@ -219,6 +242,13 @@ }, methods: { + searchReset() { + let id = this.queryParam.jobId + this.queryParam = {} + this.dates = [] + this.queryParam.jobId = id + this.loadData(1); + }, executeImmediately:function (record) { this.$refs.modalForm.showDetails(record); this.$refs.modalForm.title = "鎶ラ敊淇℃伅"; @@ -293,6 +323,9 @@ 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); -- Gitblit v1.9.3