|
@@ -210,7 +210,7 @@
|
|
|
import { getDangerByPage } from '@/api/aqpt/dangerApi.js';
|
|
|
import { getTaskByPage } from '@/api/aqpt/taskApi.js';
|
|
|
import { getWarningByPage } from '@/api/aqpt/warning.js';
|
|
|
- import { handleCheckTask } from '@/api/aqpt/checkTaskApi'
|
|
|
+ import { handleCheckTask,getCheckTaskByPage } from '@/api/aqpt/checkTaskApi'
|
|
|
import { getSnapshotByPage} from '@/api/aqpt/snapshotApi.js'
|
|
|
import{
|
|
|
taskStatus,taskPriority,taskType,
|
|
@@ -261,10 +261,8 @@
|
|
|
}
|
|
|
},
|
|
|
getData(){
|
|
|
- let handleAccountId=uni.getStorageSync('wxId')
|
|
|
- this.conditions.handleAccountId=handleAccountId
|
|
|
if(this.type==='task'){
|
|
|
- this.getTaskByPage()
|
|
|
+ this.getCheckTask()
|
|
|
}
|
|
|
if(this.type==='danger'){
|
|
|
delete this.conditions.status
|
|
@@ -301,9 +299,9 @@
|
|
|
this.total=res.total
|
|
|
})
|
|
|
},
|
|
|
- getTaskByPage(){
|
|
|
+ getCheckTask(){
|
|
|
let items=JSON.parse(JSON.stringify(this.items))
|
|
|
- getTaskByPage(this.conditions).then((res)=>{
|
|
|
+ getCheckTaskByPage(this.conditions).then((res)=>{
|
|
|
this.items=items.concat(res.data)
|
|
|
this.total=res.total
|
|
|
})
|
|
@@ -328,6 +326,7 @@
|
|
|
this.conditions.status = -1
|
|
|
}
|
|
|
}
|
|
|
+ this.conditions.handleAccountId = this.user.userId
|
|
|
this.conditions.riskPointId=this.riskPointId
|
|
|
this.getData()
|
|
|
},
|