From 6666ce5526b1ed17f5c3906c94620cad586745a5 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期五, 28 六月 2024 17:01:39 +0800
Subject: [PATCH] 优化代码

---
 src/views/monitor/job/index.vue |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue
index 45a7861..1f36520 100644
--- a/src/views/monitor/job/index.vue
+++ b/src/views/monitor/job/index.vue
@@ -331,15 +331,18 @@
     loading.value = false;
   });
 }
+
 /** 浠诲姟缁勫悕瀛楀吀缈昏瘧 */
 function jobGroupFormat(row, column) {
   return proxy.selectDictLabel(sys_job_group.value, row.jobGroup);
 }
+
 /** 鍙栨秷鎸夐挳 */
 function cancel() {
   open.value = false;
   reset();
 }
+
 /** 琛ㄥ崟閲嶇疆 */
 function reset() {
   form.value = {
@@ -354,22 +357,26 @@
   };
   proxy.resetForm("jobRef");
 }
+
 /** 鎼滅储鎸夐挳鎿嶄綔 */
 function handleQuery() {
   queryParams.value.pageNum = 1;
   getList();
 }
+
 /** 閲嶇疆鎸夐挳鎿嶄綔 */
 function resetQuery() {
   proxy.resetForm("queryRef");
   handleQuery();
 }
+
 // 澶氶�夋閫変腑鏁版嵁
 function handleSelectionChange(selection) {
   ids.value = selection.map(item => item.jobId);
   single.value = selection.length != 1;
   multiple.value = !selection.length;
 }
+
 // 鏇村鎿嶄綔瑙﹀彂
 function handleCommand(command, row) {
   switch (command) {
@@ -386,6 +393,7 @@
       break;
   }
 }
+
 // 浠诲姟鐘舵�佷慨鏀�
 function handleStatusChange(row) {
   let text = row.status === "0" ? "鍚敤" : "鍋滅敤";
@@ -397,6 +405,7 @@
     row.status = row.status === "0" ? "1" : "0";
   });
 }
+
 /* 绔嬪嵆鎵ц涓�娆� */
 function handleRun(row) {
   proxy.$modal.confirm('纭瑕佺珛鍗虫墽琛屼竴娆�"' + row.jobName + '"浠诲姟鍚�?').then(function () {
@@ -405,6 +414,7 @@
     proxy.$modal.msgSuccess("鎵ц鎴愬姛");})
   .catch(() => {});
 }
+
 /** 浠诲姟璇︾粏淇℃伅 */
 function handleView(row) {
   getJob(row.jobId).then(response => {
@@ -412,26 +422,31 @@
     openView.value = true;
   });
 }
+
 /** cron琛ㄨ揪寮忔寜閽搷浣� */
 function handleShowCron() {
   expression.value = form.value.cronExpression;
   openCron.value = true;
 }
+
 /** 纭畾鍚庡洖浼犲�� */
 function crontabFill(value) {
   form.value.cronExpression = value;
 }
+
 /** 浠诲姟鏃ュ織鍒楄〃鏌ヨ */
 function handleJobLog(row) {
   const jobId = row.jobId || 0;
   router.push('/monitor/job-log/index/' + jobId)
 }
+
 /** 鏂板鎸夐挳鎿嶄綔 */
 function handleAdd() {
   reset();
   open.value = true;
   title.value = "娣诲姞浠诲姟";
 }
+
 /** 淇敼鎸夐挳鎿嶄綔 */
 function handleUpdate(row) {
   reset();
@@ -442,6 +457,7 @@
     title.value = "淇敼浠诲姟";
   });
 }
+
 /** 鎻愪氦鎸夐挳 */
 function submitForm() {
   proxy.$refs["jobRef"].validate(valid => {
@@ -462,6 +478,7 @@
     }
   });
 }
+
 /** 鍒犻櫎鎸夐挳鎿嶄綔 */
 function handleDelete(row) {
   const jobIds = row.jobId || ids.value;
@@ -472,6 +489,7 @@
     proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
   }).catch(() => {});
 }
+
 /** 瀵煎嚭鎸夐挳鎿嶄綔 */
 function handleExport() {
   proxy.download("monitor/job/export", {

--
Gitblit v1.9.3