Browse Source

行为优化

master
maochaoying 2 years ago
parent
commit
07490ef65f
  1. 11
      src/components/Task.vue
  2. 1
      src/pages/index.vue
  3. 3
      src/store/modules/task.js

11
src/components/Task.vue

@ -81,6 +81,17 @@ export default {
{
colKey: 'status',
title: '任务状态',
cell: (h, { row }) => {
if (row.status == 0) {
return <t-tag theme="success">开始任务</t-tag>
} else if (row.status == 1) {
return <t-tag theme="warning">进行中</t-tag>
} else if (row.status == 2) {
return <t-tag theme="primary">继续任务</t-tag>
} else {
return <t-tag theme="success">已完成</t-tag>
}
},
},
{
colKey: 'startTime',

1
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()

3
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) {

Loading…
Cancel
Save