From 19aff1ac87030b21d2b01cdca5d5604c840ba7c0 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期一, 21 七月 2025 21:36:31 +0800 Subject: [PATCH] 维修工单 --- src/views/system/modules/QuartzJobListModal.vue | 52 +++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 41 insertions(+), 11 deletions(-) diff --git a/src/views/system/modules/QuartzJobListModal.vue b/src/views/system/modules/QuartzJobListModal.vue index 8b3d76e..8a79cab 100644 --- a/src/views/system/modules/QuartzJobListModal.vue +++ b/src/views/system/modules/QuartzJobListModal.vue @@ -20,12 +20,11 @@ </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> @@ -46,9 +45,7 @@ <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> @@ -173,7 +170,7 @@ }, { - title: '鎶ラ敊淇℃伅', + title: '鏃ュ織淇℃伅', dataIndex: 'action', align:"center", scopedSlots: { customRender: 'action' }, @@ -193,6 +190,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,9 +239,16 @@ }, 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 = "鎶ラ敊淇℃伅"; + this.$refs.modalForm.title = "鏃ュ織淇℃伅"; this.$refs.modalForm.disableSubmit = false; }, handleExportXls(fileName){ @@ -293,6 +320,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