Browse Source

任务管理

ZaiZai 1 year ago
parent
commit
096d696a1a
3 changed files with 13 additions and 5 deletions
  1. 1 1
      public/version.json
  2. 10 2
      src/api/modules/tasks/hc-data.js
  3. 2 2
      src/views/tasks/hc-data.vue

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20231229143635"
+  "value": "20240102110525"
 }

+ 10 - 2
src/api/modules/tasks/hc-data.js

@@ -1,14 +1,22 @@
 import { HcApi } from '../../request/index'
 
 export default {
-    //获取任务类型或任务状态
-    async queryTaskTypeStatus() {
+    //获取任务类型
+    async queryTaskType() {
         return HcApi({
             url: '/api/blade-system/dict/dictionary?code=meter_task_type',
             method: 'get',
             params: {},
         }, false)
     },
+    //获取任务状态
+    async queryTaskStatus(form) {
+        return HcApi({
+            url: '/api/blade-business/task/query-task-type-status',
+            method: 'get',
+            params: form,
+        }, false)
+    },
     //获取当前合同段的上报批次
     async queryBatchList(form) {
         return HcApi({

+ 2 - 2
src/views/tasks/hc-data.vue

@@ -102,14 +102,14 @@ const searchForm = ref({
 //获取任务类型
 const tasksType = ref([])
 const queryTaskType = async () => {
-    const { data } = await mainApi.queryTaskTypeStatus()
+    const { data } = await mainApi.queryTaskType()
     tasksType.value = getArrValue(data)
 }
 
 //获取任务状态
 const tasksStatus = ref([])
 const queryTaskStatus = async () => {
-    const { data } = await mainApi.queryTaskTypeStatus({ typeOrStatus: 'task_status' })
+    const { data } = await mainApi.queryTaskStatus({ typeOrStatus: 'task_status' })
     tasksStatus.value = getArrValue(data)
 }