From 57fdca64e4e6d2573f116917b87c4c9155053c23 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期一, 21 七月 2025 19:06:47 +0800 Subject: [PATCH] 定时任务日志信息字段展示与样式调整 --- src/views/system/QuartzJobList.vue | 2 src/views/system/modules/QuartzJobListModal.vue | 21 ++++------ src/views/system/modules/QuartzJobDetails.vue | 46 ++++++++-------------- 3 files changed, 27 insertions(+), 42 deletions(-) diff --git a/src/views/system/QuartzJobList.vue b/src/views/system/QuartzJobList.vue index 4e89a3d..69933b7 100644 --- a/src/views/system/QuartzJobList.vue +++ b/src/views/system/QuartzJobList.vue @@ -13,7 +13,7 @@ </a-col> <a-col :md="6" :sm="10"> <a-form-model-item label="浠诲姟鐘舵��" prop="status"> - <a-select style="width: 220px" v-model="queryParam.status" placeholder="璇烽�夋嫨鐘舵��"> + <a-select v-model="queryParam.status" placeholder="璇烽�夋嫨鐘舵��"> <a-select-option value="">鍏ㄩ儴</a-select-option> <a-select-option value="0">姝e父</a-select-option> <a-select-option value="-1">鍋滄</a-select-option> diff --git a/src/views/system/modules/QuartzJobDetails.vue b/src/views/system/modules/QuartzJobDetails.vue index d96e548..86db0a1 100644 --- a/src/views/system/modules/QuartzJobDetails.vue +++ b/src/views/system/modules/QuartzJobDetails.vue @@ -1,16 +1,10 @@ - <template> - <a-modal :title="title" width="100%" :visible="visible" :maskClosable="false" @ok="handleOk" @cancel="handleCancel" - cancelText="鍏抽棴"> + <j-modal :title="title" width="100%" :visible="visible" :maskClosable="false" @ok="handleOk" @cancel="handleCancel" + :okButtonProps="{ class:{'jee-hidden': true} }" cancelText="鍏抽棴"> <a-card :bordered="false"> - <div> - <pre> - {{textContent}} - </pre> - - </div> + <a-textarea :rows="3" v-model="textContent" readOnly/> </a-card> - </a-modal> + </j-modal> </template> <script> @@ -19,32 +13,26 @@ export default { name: 'QuartzJobDetails', // mixins: [JeecgListMixin], - components: { - - }, - props: { - - }, + components: {}, + props: {}, data() { return { - title:'', - visible:false, - textContent:'', + title: '', + visible: false, + textContent: '' } }, created() { }, - watch: { - - }, + watch: {}, methods: { - showDetails(record){ - // console.log(record) - this.visible = true - this.textContent = record.exceptionDetail - }, + showDetails(record) { + // console.log(record) + this.visible = true + this.textContent = record.exceptionDetail + }, close() { this.$emit('close') this.visible = false @@ -54,8 +42,8 @@ }, handleOk() { this.close() - }, - }, + } + } } </script> <style> diff --git a/src/views/system/modules/QuartzJobListModal.vue b/src/views/system/modules/QuartzJobListModal.vue index 3910b90..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> @@ -67,7 +64,7 @@ import JDictSelectTag from '@/components/dict/JDictSelectTag' import { deleteAction, - requestPut, + requestPut, getAction, downFile, postAction @@ -173,7 +170,7 @@ }, { - title: '鎶ラ敊淇℃伅', + title: '鏃ュ織淇℃伅', dataIndex: 'action', align:"center", scopedSlots: { customRender: 'action' }, @@ -251,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