From d7d7da5c09340eafcd2e2c672e6b2c001a4cc0be Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期五, 08 十一月 2024 08:38:40 +0800 Subject: [PATCH] 基础数据产品-场景清单,监管清单 --- src/api/fysp/taskApi.js | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/api/fysp/taskApi.js b/src/api/fysp/taskApi.js index d7f918b..98c4c90 100644 --- a/src/api/fysp/taskApi.js +++ b/src/api/fysp/taskApi.js @@ -22,6 +22,13 @@ return $fysp.get('task/alltask/0').then((res) => res.data); }, + /** + * 鑾峰彇椤跺眰浠诲姟鍜屾棩浠诲姟 + */ + getTopTaskWithDayTask() { + return $fysp.get('task/alltask/1').then((res) => res.data); + }, + getLastTopTask(task){ return $fysp.post(`task/lastTask`, task).then((res) => res.data); }, @@ -119,9 +126,11 @@ /** * 閫氳繃鎬讳换鍔d鍜屾椂闂村尯闂磋幏鍙栧瓙浠诲姟鍒楄〃 */ - async getByTopTaskAndDate({startTime, endTime, sceneTypeId, topTaskId}) { - const params = `?startTime=${startTime}&endTime=${endTime}&sceneTypeId=${sceneTypeId}&topTaskId=${topTaskId}`; - return await $fysp.get(`subtask/getSubTask${params}`).then((res) => res.data); + async getByTopTaskAndDate({startTime = null, endTime = null, sceneTypeId = null, topTaskId}) { + // const params = `?startTime=${startTime}&endTime=${endTime}&sceneTypeId=${sceneTypeId}&topTaskId=${topTaskId}`; + return await $fysp.get(`subtask/getSubTask`, { + params: {startTime: startTime, endTime: endTime, sceneTypeId: sceneTypeId, topTaskId: topTaskId} + }).then((res) => res.data); }, /** * 鑾峰彇鏌愪釜鍦烘櫙鐨勫贰鏌ヤ换鍔� -- Gitblit v1.9.3