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 | 66 +++++++++++++++++++++++++------- 1 files changed, 51 insertions(+), 15 deletions(-) diff --git a/src/views/system/modules/QuartzJobListModal.vue b/src/views/system/modules/QuartzJobListModal.vue index d695b19..b9e07b4 100644 --- a/src/views/system/modules/QuartzJobListModal.vue +++ b/src/views/system/modules/QuartzJobListModal.vue @@ -10,7 +10,7 @@ <a-col :md="6" :sm="6"> <a-form-item label="浠诲姟鍚嶇О"> - <a-input placeholder="璇疯緭鍏ヤ换鍔″悕绉�" v-model="queryParam.jobClassName"></a-input> + <a-input placeholder="璇疯緭鍏ヤ换鍔″悕绉�" v-model="queryParam.jobName"></a-input> </a-form-item> </a-col> @@ -19,8 +19,10 @@ <a-range-picker show-time @change="dateParamChange" :disabledDate="disabledDate" format="YYYY-MM-DD HH:mm:ss" v-model="dates"/> </a-form-item> </a-col> - <a-col :md="2" :sm="2"> + <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> @@ -137,6 +139,7 @@ superQueryParams: '', /** 楂樼骇鏌ヨ鎷兼帴鏂瑰紡 */ superQueryMatchType: 'and', + columns: [ { title: '#', @@ -148,27 +151,27 @@ return parseInt(index) + 1; } }, + // { + // title: '浠诲姟鍚嶇О', + // align: 'center', + // dataIndex: 'jobClassName', + // }, + // { + // title: 'cron琛ㄨ揪寮�', + // align: 'center', + // dataIndex: 'cronExpression', + // }, { - title: '浠诲姟鍚嶇О', align: 'center', - dataIndex: 'jobClassName', - }, - { - title: 'cron琛ㄨ揪寮�', - align: 'center', - dataIndex: 'cronExpression', + dataIndex: 'jobName' }, { title: '鍙傛暟', align: 'center', dataIndex: 'parameter' }, - { - title: '鎻忚堪', - align: 'center', - dataIndex: 'description' - }, + { title: '鎶ラ敊淇℃伅', dataIndex: 'action', @@ -190,10 +193,33 @@ 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}姣`; + } + + } }, { - title: '鍒涘缓鏃堕棿', + title: '浠诲姟鎵ц鏃堕棿', align: 'center', dataIndex: 'createTime' }, @@ -216,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 = "鎶ラ敊淇℃伅"; @@ -290,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