| | |
| | | this.$store.commit('desktop/refreshFrame', this.data); |
| | | }, |
| | | minFrame(data, e) { |
| | | debugger |
| | | //找到当前的iframe |
| | | let curIframe = Array.from(document.querySelectorAll('iframe')).find(iframe => iframe.src.indexOf(data.url) >= 0); |
| | | //保存当前应用快照 |
| | | html2canvas(curIframe.contentWindow.document.body, { |
| | | dpi: window.devicePixelRatio * 4, |
| | | //logging: true, //查看html2canvas内部执行流程 |
| | | logging: true, //查看html2canvas内部执行流程 |
| | | removeContainer: true, |
| | | imageTimeout: 0, |
| | | //useCORS: true //开启跨域配置 |
| | | useCORS: true, //开启跨域配置 |
| | | //allowTaint: true |
| | | }).then(canvas => { |
| | | let shotSrc = canvas.toDataURL(); |
| | | |
| | | this.$store.commit('desktop/addMinDock', { |
| | | id: this.data.id, |
| | | src: this.data.icon, |
| | |
| | | <b class="clear-searching" @click="clearSearch">重置</b> |
| | | </p> |
| | | </div> |
| | | <div ref="mid" style="height:100%;"> |
| | | <div ref="mid" style="height:calc(100% - 50px);"> |
| | | <div class="left-selection" v-if="VideoPhotoData.uploadDiaplay"> |
| | | <upload-img ref="uploadImg" @labelDisabled="disabled"></upload-img> |
| | | </div> |
| | |
| | | color: rgba(0, 0, 0, 0.78) !important; |
| | | } |
| | | .searching-right-content { |
| | | height: calc(100% - 135px); |
| | | height: calc(100% - 80px); |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | .top { |
| | |
| | | overflow: hidden; |
| | | width: 100%; |
| | | height: 80px; |
| | | line-height: 80px; |
| | | padding-top: 24px; |
| | | //line-height: 80px; |
| | | padding-top: 20px; |
| | | padding-right: 24px; |
| | | box-sizing: border-box; |
| | | text-align: right; |
| | |
| | | .right-section { |
| | | //width: calc(100% - 315px); |
| | | height: 100%; |
| | | float: left; |
| | | padding-bottom: 20px; |
| | | box-sizing: border-box; |
| | | //float: left; |
| | | overflow: auto; |
| | | position: relative; |
| | | } |