| | |
| | | <div class="local-vedio-area"> |
| | | <!-- 搜索 --> |
| | | <div class="search-input"> |
| | | <span style="display: inline-block;padding: 0px 3px;"></span> |
| | | <!-- <span style="display: inline-block;padding: 0px 3px;"></span> --> |
| | | <el-select |
| | | v-model="DataStackPool.searchType" |
| | | placeholder="请选择" |
| | |
| | | <template> |
| | | <div> |
| | | <div class="areas"> |
| | | <div class="top-operation"> |
| | | <el-button type="primary" size="small" @click="createArea">新增区域</el-button> |
| | | </div> |
| | | <el-table :data="groups" border> |
| | | <el-table :data="groups" border height="calc(100% - 100px)"> |
| | | <el-table-column type="index" width="50" label="序号" align="center"></el-table-column> |
| | | <el-table-column prop="name" label="区域名称" align="center" sortable></el-table-column> |
| | | <el-table-column prop="id" label="区域ID" align="center" sortable></el-table-column> |
| | |
| | | |
| | | return; |
| | | } |
| | | |
| | | let sameOne = this.groups.findIndex(item => item.id == this.areaForm.id); |
| | | if(sameOne>=0){ |
| | | this.$notify({ |
| | | type: 'error', |
| | | message: '区域ID不能重复' |
| | | }); |
| | | return; |
| | | } |
| | | let tempArr = []; |
| | | let tempIdArr = []; |
| | | this.areaForm.camPolygons = []; |
| | |
| | | .red { |
| | | color: rgb(255, 94, 0); |
| | | } |
| | | .areas{ |
| | | width: 100%; |
| | | height: calc(100% - 60px); |
| | | } |
| | | .top-operation { |
| | | padding: 30px 30px 20px; |
| | | display: flex; |
| | |
| | | return false; |
| | | //} |
| | | //找到当前的iframe |
| | | let curIframe = Array.from(document.querySelectorAll('iframe')).find(iframe => iframe.src.indexOf(data.url) >= 0); |
| | | //let curIframe = Array.from(document.querySelectorAll('iframe')).find(iframe => iframe.src.indexOf(data.url) >= 0); |
| | | //保存当前应用快照 |
| | | // html2canvas(curIframe.contentWindow.document.body, { |
| | | // dpi: window.devicePixelRatio * 4, |
| | |
| | | }, |
| | | "/api-v": { |
| | | //target: 'http://192.168.20.145:8000', |
| | | //target: 'http://192.168.5.22:30102', |
| | | target: 'http://192.168.20.10:8000', |
| | | target: 'http://192.168.5.22:30102', |
| | | //target: 'http://192.168.20.10:8000', |
| | | changeOrigin: true |
| | | }, |
| | | "/api-f": { |