From 07490ef65fecf9a96938f6b54d56800c49477da6 Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Fri, 30 Jun 2023 11:31:39 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E4=B8=BA=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Task.vue | 11 +++++++++++
src/pages/index.vue | 1 -
src/store/modules/task.js | 3 +++
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/components/Task.vue b/src/components/Task.vue
index b8172fb..c296c92 100644
--- a/src/components/Task.vue
+++ b/src/components/Task.vue
@@ -81,6 +81,17 @@ export default {
{
colKey: 'status',
title: '任务状态',
+ cell: (h, { row }) => {
+ if (row.status == 0) {
+ return 开始任务
+ } else if (row.status == 1) {
+ return 进行中
+ } else if (row.status == 2) {
+ return 继续任务
+ } else {
+ return 已完成
+ }
+ },
},
{
colKey: 'startTime',
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 8c2b79d..29e4d52 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -263,7 +263,6 @@ import Task from 'cpns/Task'
import Publish from 'cpns/Publish'
import User from 'cpns/User'
import Debug from 'cpns/Debug'
-import { getNuclearExcelApi } from '@/api'
const accountStore = useAccountStore()
const taskStore = useTaskStore()
diff --git a/src/store/modules/task.js b/src/store/modules/task.js
index b2917d9..f6b562e 100644
--- a/src/store/modules/task.js
+++ b/src/store/modules/task.js
@@ -15,6 +15,9 @@ export const useTaskStore = defineStore({
this.currentTaskId = currentTaskId
},
updateType(type) {
+ if (type == 0 && this.currentTaskId == null) {
+ this.excelData = []
+ }
this.type = type
},
updateExcelData(excelData) {