From bb914b0cbf1f151eebc70e806df7e825786ab495 Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期五, 10 十二月 2021 18:47:39 +0800
Subject: [PATCH] 改
---
src/pages/searchForCluster/index/Searching.vue | 21 ++++++++-------------
1 files changed, 8 insertions(+), 13 deletions(-)
diff --git a/src/pages/searchForCluster/index/Searching.vue b/src/pages/searchForCluster/index/Searching.vue
index 9814964..8c5390f 100644
--- a/src/pages/searchForCluster/index/Searching.vue
+++ b/src/pages/searchForCluster/index/Searching.vue
@@ -238,8 +238,8 @@
<script>
import Card from "@/components/subComponents/Card";
import UploadImg from "@/components/searching/UploadImg";
-//import CardWindow from "../components/cardWindow";
import bus from "./main";
+import { getUrlKey } from "@/api/utils";
export default {
components: {
Card,
@@ -257,7 +257,6 @@
searchImgCardWidth: "",
tagValues: [],
alarmValues: [],
- dialogVisible: false,
taskValues: [],
searchTime: [
this.$moment().format("YYYY-MM-DD 00:00:00"),
@@ -265,7 +264,6 @@
],
searchText: "",
currentPage: 1,
-
};
},
@@ -297,8 +295,8 @@
// this.VideoTaskData.tasks[this.VideoTaskData.activeIndex].taskId
// ];
// }
- let start = this.getUrlKey("start")
- let end = this.getUrlKey("end")
+ let start = getUrlKey("start")
+ let end = getUrlKey("end")
if (start && end) {
this.searchTime = [start, end]
this.VideoPhotoData.searchTime = [start, end]
@@ -311,14 +309,14 @@
//this.TreeDataPool.searchFrom = 'cluster';
// 鏆傛椂鍏抽棴璺宠浆 20200730
// if (this.$route.query.showType === "findByPic") {
- if (this.getUrlKey("showType")) {
+ if (getUrlKey("showType")) {
this.VideoPhotoData.uploadDiaplay = true;
// console.log("鍒璺宠繃鏉ョ殑浠ュ浘鎼滃浘");
- this.VideoPhotoData.picUrl = this.getUrlKey("picSmUrl");
- this.VideoPhotoData.uploadImg = this.getUrlKey("picSmUrl");
+ this.VideoPhotoData.picUrl = getUrlKey("picSmUrl");
+ this.VideoPhotoData.uploadImg = getUrlKey("picSmUrl");
this.VideoPhotoData.uploadType = true
- this.VideoPhotoData.compTargetId = this.getUrlKey("targetId")
- this.VideoPhotoData.compTargetType = this.getUrlKey("compType")
+ this.VideoPhotoData.compTargetId = getUrlKey("targetId")
+ this.VideoPhotoData.compTargetType = getUrlKey("compType")
this.VideoPhotoData.size = 30
this.VideoPhotoData.compareTabs = ["esData"];
this.VideoPhotoData.findPerson2(); // 鏌ユ壘姝や汉
@@ -739,9 +737,6 @@
fn.then(_ => {
this.AuthData.closeLoad();
})
- },
- getUrlKey(name) {
- return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
},
tagChange(obj) {
console.log(obj)
--
Gitblit v1.8.0