Browse Source

任务管理

ZaiZai 1 year ago
parent
commit
f28d1f73af
2 changed files with 4 additions and 4 deletions
  1. 3 3
      src/api/modules/tasks/hc-data.js
  2. 1 1
      src/views/tasks/hc-data.vue

+ 3 - 3
src/api/modules/tasks/hc-data.js

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

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

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