Преглед на файлове

Signed-off-by: zhaobao <528046418@qq.com>

zhaobao преди 1 година
родител
ревизия
44f6863ee2
променени са 1 файла, в които са добавени 5 реда и са изтрити 6 реда
  1. 5 6
      pages/index/detail/detail.vue

+ 5 - 6
pages/index/detail/detail.vue

@@ -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()
 			},