| | |
| | | |
| | | const rsp: any = await getSearchList(param); |
| | | if (rsp && rsp.success) { |
| | | debugger |
| | | this.cards.length = 0 // 清两次,第一次是为了点完之后不会出现之前数据的残影,这次是为了防止因为异步问题两次请求会出现双倍数据的问题 |
| | | this.preCards.length = 0 |
| | | if (rsp.data.datalist) { |
| | |
| | | } |
| | | }, |
| | | selectCamera(node) { |
| | | debugger |
| | | this.isAdd = false; |
| | | this.videoItem = null; |
| | | this.$refs.addForm.resetFields(); |
| | |
| | | this.$store.commit('desktop/refreshFrame', this.data); |
| | | }, |
| | | minFrame: function (data) { |
| | | debugger |
| | | //找到当前的iframe |
| | | let curIframe = Array.from(document.querySelectorAll('iframe')).find(iframe => iframe.src.indexOf(data.url) >= 0); |
| | | debugger |
| | | //保存当前应用快照 |
| | | html2canvas(curIframe.contentWindow.document.body,{ |
| | | dpi: window.devicePixelRatio*4, |
| | |
| | | useCORS : true //开启跨域配置 |
| | | }).then(canvas => { |
| | | let shotSrc = canvas.toDataURL(); |
| | | debugger; |
| | | this.$store.commit('desktop/addMinDock', { |
| | | id: this.data.id, |
| | | src: this.data.icon, |
| | |
| | | if (dock.type === '1') {
|
| | | window.open(dock.url);
|
| | | } else if (dock.type === '2') {
|
| | | debugger
|
| | | this.$store.dispatch('desktop/addFrame', {
|
| | | id: dock.id,
|
| | | icon: dock.src,
|
| | |
| | | "code": "0000", |
| | | "success": true, |
| | | "data": [ |
| | | { |
| | | "id": "L1", |
| | | "icon": "images/message.png", |
| | | "tip": "消息", |
| | | "title": "oxygen - 轻量级Java框架", |
| | | "body": "v1.2.0 已经发布啦<br><a href='https://maven-badges.herokuapp.com/maven-central/vip.justlive/oxygen/' target='_blank'><img src='https://maven-badges.herokuapp.com/maven-central/vip.justlive/oxygen/badge.svg' alt='Maven Central'></a><a href='https://www.apache.org/licenses/LICENSE-2.0.html' target='_blank'><img src='https://img.shields.io/badge/license-Apache%202-4EB1BA.svg' alt='License'></a><br>详情<i class='fa fa-hand-o-right'></i>:<a href='https://gitee.com/justlive1/oxygen' target='_blank'>https://gitee.com/justlive1/oxygen</a>", |
| | | "time": "2018/12/14 17:12:03" |
| | | }, |
| | | { |
| | | "id": "L2", |
| | | "icon": "images/message.png", |
| | | "tip": "消息", |
| | | "title": "阿里云福利", |
| | | "body": "最高<span style='color: rgb(255, 138, 0);'>¥1888</span>云产品通用代金券<br>详情<i class='fa fa-hand-o-right'></i>:<a href='https://promotion.aliyun.com/ntms/yunparter/invite.html?userCode=fc8ydi4y' style='word-break: break-all;' target='_blank'>https://promotion.aliyun.com/ntms/yunparter/invite.html?userCode=fc8ydi4y</a>", |
| | | "time": "2018/12/12 12:12:12" |
| | | } |
| | | ] |
| | | } |
| | |
| | | "type": "2", |
| | | "url": "http://www.justlive.vip/center/" |
| | | }, |
| | | |
| | | { |
| | | "id": "9", |
| | | "src": "../../images/gitee.png", |
| | | "alt": "算法管理", |
| | | "id": "3", |
| | | "src": "../../images/app-mid/DVR-access.png", |
| | | "alt": "DVR", |
| | | "type": "2", |
| | | "url": "/view/algorithmManage" |
| | | } |
| | | "url": "/view/DVR", |
| | | "name": "硬盘录像机接入" |
| | | }, |
| | | { |
| | | "id": "14", |
| | | "src": "../../images/app-mid/360.png", |
| | | "alt": "全景视频", |
| | | "type": "2", |
| | | "url": "/view/panoramicVideo", |
| | | "name": "全景视频" |
| | | }, |
| | | { |
| | | "id": "16", |
| | | "src": "../../images/app-mid/device.png", |
| | | "alt": "设备管理", |
| | | "type": "2", |
| | | "url": "/view/device", |
| | | "name": "设备管理" |
| | | }, |
| | | |
| | | ] |
| | | } |
| | | } |
| | |
| | | "width": 1876, |
| | | "height": 750 |
| | | }, |
| | | { |
| | | "id": "3", |
| | | "src": "../../images/app-mid/DVR-access.png", |
| | | "alt": "DVR", |
| | | "type": "2", |
| | | "url": "/view/DVR", |
| | | "name": "硬盘录像机接入" |
| | | }, |
| | | |
| | | { |
| | | "id": "4", |
| | | "src": "../../images/app-mid/data-push.png", |
| | |
| | | "width": 1663, |
| | | "height": 890 |
| | | }, |
| | | { |
| | | "id": "14", |
| | | "src": "../../images/app-mid/360.png", |
| | | "alt": "全景视频", |
| | | "type": "2", |
| | | "url": "/view/panoramicVideo", |
| | | "name": "全景视频" |
| | | }, |
| | | |
| | | { |
| | | "id": "15", |
| | | "src": "../../images/app-mid/log-manage.png", |
| | |
| | | "width": 1246, |
| | | "height": 590 |
| | | }, |
| | | { |
| | | "id": "16", |
| | | "src": "../../images/app-mid/device.png", |
| | | "alt": "设备管理", |
| | | "type": "2", |
| | | "url": "/view/device", |
| | | "name": "设备管理" |
| | | }, |
| | | |
| | | { |
| | | "id": "17", |
| | | "src": "../../images/app-mid/settings.png", |
| | |
| | | import "../../assets/css/common.scss" |
| | | import "../../assets/css/overried.scss" |
| | | |
| | | import App from './App.vue' |
| | | import App from './app.vue' |
| | | |
| | | Vue.use(ElementUI) |
| | | |