| | |
| | | this.$emit("addToBase", item); |
| | | }, |
| | | tosearch(item) { |
| | | console.log('search') |
| | | let captureId = item.id == "" ? item.baseInfo[0].targetId : item.id |
| | | let imgUrl = item.targetInfo ? item.targetInfo[0].picSmUrl : item.baseInfo[0].targetPicUrl |
| | | let compType = 1 // 数据来自于es |
| | |
| | | transform: translate(-50%, -50%);
|
| | | }
|
| | | .baseImg {
|
| | | width: 80%;
|
| | | width: 60%;
|
| | | position: absolute;
|
| | | top: 50%;
|
| | | left: 50%;
|
| | |
| | | this.onSaveScene(this.sceneForm); |
| | | }, |
| | | handleDelScene(groupRule) { |
| | | let _this = this; |
| | | this.$confirm("提示:删除后,该条规则将失效,是否删除?", { |
| | | center: true, |
| | | cancelButtonClass: "comfirm-class-cancle", |
| | |
| | | type: "success", |
| | | message: "删除成功" |
| | | }); |
| | | |
| | | _this.$root.$children[0].$children[0].querySearchAsync('camera') |
| | | } else { |
| | | this.$notify({ |
| | | type: "error", |
| | |
| | | saveSceneRule(groupRule) { |
| | | const payload = { ...groupRule } |
| | | payload.cameraIds = [this.Camera.cameraId]; |
| | | let _this = this; |
| | | saveCameraScene(payload).then(rsp => { |
| | | if (rsp && rsp.success) { |
| | | this.Camera.update(); |
| | |
| | | type: "success", |
| | | message: "策略保存成功!" |
| | | }); |
| | | //刷新左侧树 |
| | | debugger |
| | | _this.$root.$children[0].$children[0].querySearchAsync('camera') |
| | | |
| | | } |
| | | }); |
| | | }, |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | debugger |
| | | this.screenHeight = document.documentElement.clientHeight; |
| | | window.onresize = () => { |
| | | return (() => { |
| | |
| | | },
|
| | | mounted() {
|
| | | window.addEventListener('message', e => {
|
| | | console.log('msg')
|
| | | if (e.data && e.data.msg) {
|
| | | let msg = e.data.msg;
|
| | | // token 不合法, 退出
|
| | |
| | |
|
| | | // 打开检索, toSearch?showType=findByPic&targetId=108ba0bc-b0a1-433d-8e1e-d5d2e712b53b&picSmUrl=192.168.20.10:6700/47628,7cc869f3a9c714&compType=1
|
| | | if (msg.indexOf("toSearch") >= 0) {
|
| | | console.log('msg,search')
|
| | | let params = msg.substring(7);
|
| | | this.addFrameByName("search", params)
|
| | | }
|
| | |
| | | state.notificationCenterVisible = visible; |
| | | }, |
| | | closeFrame: (state, item) => { |
| | | |
| | | debugger |
| | | state.frames.find(function (it, idx) { |
| | | if (it.id === item.id) { |
| | | state.frames.splice(idx, 1); |
| | |
| | | } |
| | | }, |
| | | "VideoPhotoData.uploadDiaplay": function (value) { |
| | | debugger |
| | | this.getHeight(); |
| | | console.log("upload的值是:", value) |
| | | if (value) { |