瀏覽代碼

修改任务查询直连

JX.LI 1 年之前
父節點
當前提交
81dbc30f1e
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 3 2
      src/api/forest.js
  2. 1 1
      src/components/vBottomMenu.vue

+ 3 - 2
src/api/forest.js

@@ -102,10 +102,11 @@ export function refusedTask(param) {
   })
 }
 // 任务接口
-export function selectTaskBO() {
+export function selectTaskBO(data) {
   return request({
-    url: '/center-fire/VisuForestCloudMapController/selectTaskBO',
+    url: '/center-task/centerTaskFeign/selectUnclaimedTaskBO',
     method: 'post',
+    data:data
   })
 }
 

+ 1 - 1
src/components/vBottomMenu.vue

@@ -1531,7 +1531,7 @@ export default {
     },
     selectTaskList: async function () {
       //获取任务列表
-      selectTaskBO().then(res => {
+      selectTaskBO({depts:[{deptId:Cookies.get("deptId")}]}).then(res => {
         this.taskList = res.data
         this.taskCount = res.data.length
       })