| | |
| | | pages.page = 1 |
| | | pages.pageSize = 1000 |
| | | pages.total = 0 |
| | | console.log("submit!") |
| | | getLists(formInline) |
| | | } |
| | | |
| | |
| | | let picList = ref([]) |
| | | |
| | | // 查询分页数据 |
| | | function getLists(param = {}) { |
| | | function getLists (param = {}) { |
| | | param.current = pages.page |
| | | param.size = pages.pageSize |
| | | param.firmId = data.companyInfo.id |
| | |
| | | let addPupoLayers = {} |
| | | |
| | | // 行点击 |
| | | function rowClick(row, column, event) { |
| | | function rowClick (row, column, event) { |
| | | if (!row.lng || !row.lat) { |
| | | return |
| | | } |
| | | // console.log('点击了', row, column, event) |
| | | // 销毁之前的 |
| | | destroy() |
| | | if (!addTileLayers[row.name]) { |
| | |
| | | if (picList.value.length == 0) { |
| | | return |
| | | } |
| | | console.log('点击了', picList.value.length) |
| | | addPupoLayers['企业应急物资'] = new DC.HtmlLayer('企业应急物资') |
| | | window.$viewer.addLayer(addPupoLayers['企业应急物资']) |
| | | let iconEl = `<div class="marsBlueGradientPnl"> |
| | |
| | | } |
| | | |
| | | // 销毁 |
| | | function destroy() { |
| | | function destroy () { |
| | | let arr = Object.keys(addTileLayers) |
| | | arr.forEach(i => { |
| | | addTileLayers[i] && window.$viewer.removeLayer(addTileLayers[i]) |
| | |
| | | addTileLayers = {} |
| | | } |
| | | // 销毁 |
| | | function destroyPupoLayers() { |
| | | function destroyPupoLayers () { |
| | | let arr = Object.keys(addPupoLayers) |
| | | arr.filter(i => i != 'hgyq').forEach(i => { |
| | | addPupoLayers[i] && window.$viewer.removeLayer(addPupoLayers[i]) |
| | |
| | | addPupoLayers = {} |
| | | } |
| | | onUnmounted(() => { |
| | | console.log('销毁***************************') |
| | | destroy() |
| | | destroyPupoLayers() |
| | | }) |
| | |
| | | </el-form> |
| | | <!-- <global-search :options="options" @searchBtn="searchBtn" @resetBtn="resetBtn" ref="SeachBarCondition"></global-search> --> |
| | | <div class="table-box"> |
| | | <el-table :data="tableData" @row-click="rowClick" empty-text="" style="width: 100%" |
| | | <el-table empty-text="暂无数据" border :data="tableData" @row-click="rowClick" style="width: 100%" |
| | | :header-cell-style="headerCellStyle" :cell-style="tableCellStyle" |
| | | element-loading-background="rgba(122, 122, 122, 0.1)"> |
| | | <el-table-column prop="name" label="名称" width="240" /> |
| | |
| | | <el-button link type="primary" size="small" :disabled="scope.row.lng == ''" |
| | | @click="rowClick(scope.row)">定位</el-button> |
| | | </template> |
| | | </el-table-column> --> |
| | | </el-table-column> --> |
| | | </el-table> |
| | | </div> |
| | | </div> |