From 68155c57dff251d047081c972c3b3e5931a29bfa Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期四, 24 七月 2025 14:08:50 +0800
Subject: [PATCH] 技术鉴定工单页面列表增加自定义展示字段
---
src/views/system/modules/QuartzJobListModal.vue | 42 +++++++++++++++++++++++++++++++-----------
1 files changed, 31 insertions(+), 11 deletions(-)
diff --git a/src/views/system/modules/QuartzJobListModal.vue b/src/views/system/modules/QuartzJobListModal.vue
index 89f4297..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}姣`;
+ }
+
+ }
},
{
@@ -228,7 +248,7 @@
},
executeImmediately:function (record) {
this.$refs.modalForm.showDetails(record);
- this.$refs.modalForm.title = "鎶ラ敊淇℃伅";
+ this.$refs.modalForm.title = "鏃ュ織淇℃伅";
this.$refs.modalForm.disableSubmit = false;
},
handleExportXls(fileName){
--
Gitblit v1.9.3