From 74479378a65ce1cb80a9386c5d66270f569ff77b Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期四, 11 三月 2021 10:55:41 +0800
Subject: [PATCH] 朔黄任务分配固定区域,避免按钮的上移
---
src/Pool/VideoPhotoData.ts | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts
index 54f10a5..31383b0 100644
--- a/src/Pool/VideoPhotoData.ts
+++ b/src/Pool/VideoPhotoData.ts
@@ -8,6 +8,7 @@
addToBase
} from "@/api/search";
export default class VideoPhotoData {
+ public searchFrom: string = 'search';
public preCards: Array<object> = [];
public cards: Array<object> = [];
public persons: Array<object> = [];
@@ -49,8 +50,8 @@
constructor() {
this.cards = [];
- this.size = 40;
- this.pageSizeOption = [30, 40, 50]
+ this.size = 60;
+ this.pageSizeOption = [30, 60, 120]
this.alarmlevel = [];
this.inputValue = "";
this.searchTime = [];
@@ -63,8 +64,8 @@
clearStatus() {
//this.cards = [];
this.page = 1;
- this.size = 40;
- this.pageSizeOption = [30, 40, 50]
+ this.size = 60;
+ this.pageSizeOption = [30, 60, 120]
this.alarmlevel = [];
this.inputValue = "";
this.showType = "search";
@@ -73,7 +74,7 @@
async querySearchList() {
this.cards = []
this.preCards = []
- var param = {
+ var param:any = {
page: this.page,
size: this.size,
searchTime: this.searchTime,
@@ -83,7 +84,9 @@
tasks: this.queryTasks,
treeNodes: this.treeNodes
}
-
+ if(this.searchFrom == 'cluster'){
+ param.isAll = true
+ }
const rsp: any = await getSearchList(param);
if (rsp && rsp.success) {
this.cards.length = 0 // 娓呬袱娆★紝绗竴娆℃槸涓轰簡鐐瑰畬涔嬪悗涓嶄細鍑虹幇涔嬪墠鏁版嵁鐨勬畫褰憋紝杩欐鏄负浜嗛槻姝㈠洜涓哄紓姝ラ棶棰樹袱娆¤姹備細鍑虹幇鍙屽�嶆暟鎹殑闂
@@ -249,7 +252,12 @@
}
async queryTaskList() {
- const rsp: any = await getTaskList({});
+ let params:any = {};
+ if(this.searchFrom == 'cluster'){
+ params.isPlatform = 1
+ }
+ console.log(params)
+ const rsp: any = await getTaskList(params);
if (rsp && rsp.success) {
// this.tasks.splice(0, this.tasks.length)
// rsp.data.forEach(element => {
--
Gitblit v1.8.0