| | |
| | | > |
| | | <el-row :gutter="20"> |
| | | <el-col :span="10"> |
| | | <div style="height: 64px; display: flex; align-items: center;"> |
| | | <div |
| | | class="contLable" |
| | | style="height: 64px; display: flex; align-items: center;" |
| | | > |
| | | {{ item.name }} |
| | | </div> |
| | | </el-col> |
| | |
| | | <el-dialog |
| | | :title="$t('common.publish')" |
| | | :visible.sync="insertOsgbVisible" |
| | | width="25%" |
| | | :close-on-click-modal="false" |
| | | :show-close="false" |
| | | width="35%" |
| | | > |
| | | <div style="width:100%; "> |
| | | <el-form |
| | | :model="osgbLasLayer" |
| | | label-width="160px" |
| | | <div> |
| | | |
| | | <div |
| | | v-for="item in osgbLasOption" |
| | | style="margin-top: 10px; display: flex; align-items: center; justify-content: space-around; " |
| | | > |
| | | <el-form-item :label="$t('dataManage.vmobj.heightOffset')"> |
| | | <div |
| | | class="contLable" |
| | | style=" margin: 0px 10px;" |
| | | > |
| | | {{ item.name }} |
| | | </div> |
| | | <div> |
| | | <div style="display: flex; align-items: center; margin: 0px 10px;"> |
| | | <label class="contLable">高度偏移量:</label> |
| | | <el-input |
| | | size="small" |
| | | v-model="item.zs" |
| | | > |
| | | <i slot="suffix">m</i></el-input> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | <div v-show="formInline.type =='LAS'"> |
| | | <div style="display: flex; align-items: center; margin: 0px 10px;"> |
| | | <label class="contLable">坐标系:</label> |
| | | <el-select |
| | | v-if="!item.lids" |
| | | v-model="item.srids" |
| | | style="width: 100%;" |
| | | size="small" |
| | | > |
| | | <el-option |
| | | v-for="item in stridOption" |
| | | :key="item.id" |
| | | :label="item.coordinate" |
| | | :value="item.epsgcode" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | <el-input |
| | | v-if="item.lids" |
| | | v-model="item.srids" |
| | | size="small" |
| | | disabled |
| | | ></el-input> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | </div> |
| | | <!-- <el-form-item :label="$t('dataManage.vmobj.heightOffset')"> |
| | | <el-input |
| | | :placeholder="$t('dataManage.vmobj.label1')" |
| | | v-model="osgbLasLayer.z" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | </el-form-item> --> |
| | | <!-- <el-form-item |
| | | v-if="formInline.type == 'LAS'" |
| | | :label="$t('dataManage.vmobj.coordinateSystemID')" |
| | | > |
| | |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-form-item> --> |
| | | |
| | | <div style="display: flex; justify-content: end;margin-top:10px;"> |
| | | <el-button |
| | | size="small" |
| | |
| | | publish_deletes, |
| | | publish_update, |
| | | publish_insert, |
| | | dataUpload_selectCoords |
| | | dataUpload_selectCoords, |
| | | publish_selectLasCs |
| | | } from '../../api/api.js' |
| | | import { conditions } from '../Archive/Archive'; |
| | | |
| | |
| | | strid: '' |
| | | }, |
| | | stridOption: [], |
| | | osgbLasOption: [], |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | async setOsgbInsert() { |
| | | |
| | | var ids = []; |
| | | for (var i in this.multipleSelection) { |
| | | ids.push(this.multipleSelection[i].id) |
| | | var zs = [] |
| | | for (var i in this.osgbLasOption) { |
| | | ids.push(this.osgbLasOption[i].id) |
| | | zs.push(this.osgbLasOption[i].zs) |
| | | } |
| | | var strid; |
| | | |
| | | var srids = []; |
| | | var lerro = []; |
| | | if (this.formInline.type == 'LAS') { |
| | | if (!this.osgbLasLayer.strid) { |
| | | return this.$message('请选择发布数据的坐标系'); |
| | | } else { |
| | | strid = this.osgbLasLayer.strid.replace('EPSG:', '') |
| | | for (var i in this.osgbLasOption) { |
| | | if (this.osgbLasOption[i].srids) { |
| | | var epsg = this.osgbLasOption[i].srids.replace('EPSG:', '') |
| | | srids.push(epsg) |
| | | } else { |
| | | lerro.push(this.osgbLasOption[i].name) |
| | | } |
| | | } |
| | | if (lerro.length > 0) { |
| | | return this.$message(lerro + '未选择发布数据的坐标系'); |
| | | } |
| | | |
| | | // if (!this.osgbLasLayer.strid) { |
| | | // return this.$message('请选择发布数据的坐标系'); |
| | | // } else { |
| | | // strid = this.osgbLasLayer.strid.replace('EPSG:', '') |
| | | // } |
| | | } |
| | | var obj = { |
| | | dircode: this.formInline.dirid, |
| | |
| | | noData: null, |
| | | ids: ids, |
| | | models: null, |
| | | srid: parseInt(strid), |
| | | z: parseFloat(parseFloat(this.osgbLasLayer.z).toFixed(3)) |
| | | srids: srids, |
| | | zx: zs |
| | | } |
| | | this.loadDialogVisible = true |
| | | this.setOsgbCanel(); |
| | |
| | | this.$message("请选择要发布的数据") |
| | | return |
| | | } |
| | | |
| | | if (this.formInline.type == "DOM" || this.formInline.type == "DEM") { |
| | | |
| | | this.insertLayer.name = this.multipleSelection[0].name.split('.')[0]; |
| | |
| | | this.modelOptions = val; |
| | | this.insertModelVisible = true; |
| | | } else if (this.formInline.type == "OSGB") { |
| | | |
| | | var val = JSON.parse(JSON.stringify(this.multipleSelection)) |
| | | for (var i in val) { |
| | | val[i].zs = 0; |
| | | val[i].srids = null; |
| | | } |
| | | this.osgbLasOption = val; |
| | | this.insertOsgbVisible = true; |
| | | |
| | | } else if (this.formInline.type == "LAS") { |
| | | var lids = []; |
| | | var val = JSON.parse(JSON.stringify(this.multipleSelection)) |
| | | for (var i in val) { |
| | | val[i].zs = 0; |
| | | val[i].srids = null; |
| | | val[i].lids = false; |
| | | lids.push('ids=' + val[i].id) |
| | | } |
| | | |
| | | var url = lids.join('&') |
| | | const data1 = await publish_selectLasCs(url); |
| | | |
| | | if (data1.code != 200) { |
| | | this.$message('Las文件坐标系ID失败'); |
| | | } else { |
| | | for (var i = 0; i < val.length; i++) { |
| | | var coord = data1.result[i] |
| | | if (coord > 0) { |
| | | val[i].srids = "EPDG:" + coord; |
| | | val[i].lids = true; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | const data = await dataUpload_selectCoords(); |
| | | |
| | | if (data.code != 200) { |
| | | this.$message('坐标系数据获取失败'); |
| | | } |
| | | this.stridOption = data.result; |
| | | |
| | | this.osgbLasOption = val; |
| | | this.insertOsgbVisible = true; |
| | | } else { |
| | | var std = []; |
| | |
| | | /deep/.el-dialog__header { |
| | | padding: 10px !important; |
| | | } |
| | | .contLable { |
| | | width: 160px; |
| | | } |
| | | } |
| | | </style> |