| | |
| | | class="tabsSpan" |
| | | :class="{ changetabs : active == 'third'}" |
| | | > |
| | | <span> {{$t('dataManage.uploadObj.modelAttachMount')}}</span> |
| | | <span> {{$t('dataManage.uploadObj.attachMount')}}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | key="7" |
| | | /> |
| | | <el-table-column |
| | | v-if="active == 'first'" |
| | | prop="verName" |
| | | :label="$t('dataManage.vmobj.versionNumber')" |
| | | align="center" |
| | |
| | | align="center" |
| | | key="12" |
| | | /> |
| | | |
| | | <el-table-column |
| | | v-if="active == 'first'" |
| | | prop="createTime" |
| | |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="updateName" |
| | | :label="$t('dataManage.vmobj.updateonuser')" |
| | | align="center" |
| | | key="14" |
| | | /> |
| | | <el-table-column |
| | | prop="updateTime" |
| | | :label="$t('dataManage.vmobj.updateontime')" |
| | | :formatter="formatData" |
| | | align="center" |
| | | key="15" |
| | | /> |
| | | |
| | | <el-table-column |
| | | min-width="150" |
| | | :label="$t('common.operate')" |
| | |
| | | |
| | | <div |
| | | v-for="item in osgbLasOption" |
| | | style="margin-top: 10px; display: flex; align-items: center; justify-content: space-around; " |
| | | style="margin-top: 10px; display: flex; justify-content: center; align-items: center; " |
| | | > |
| | | <div |
| | | class="contLable" |
| | | style=" margin: 0px 10px;" |
| | | > |
| | | |
| | | <div style=" text-align: center; "> |
| | | {{ 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')"> |
| | | <!-- <div style="display: flex; align-items: center; margin: 0px 10px;"> |
| | | <label class="contLable">高度偏移量:</label> |
| | | <el-input |
| | | :placeholder="$t('dataManage.vmobj.label1')" |
| | | v-model="osgbLasLayer.z" |
| | | ></el-input> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item |
| | | v-if="formInline.type == 'LAS'" |
| | | :label="$t('dataManage.vmobj.coordinateSystemID')" |
| | | > |
| | | size="small" |
| | | v-model="item.zs" |
| | | > |
| | | <i slot="suffix">m</i></el-input> |
| | | </div> |
| | | <div style="display: flex; align-items: center; "> |
| | | <label class="contLable">坐标系:</label> |
| | | <el-select |
| | | v-model="osgbLasLayer.strid" |
| | | :placeholder="$t('dataManage.vmobj.label2')" |
| | | v-if="!item.lids" |
| | | v-model="item.srids" |
| | | style="width: 100%;" |
| | | size="small" |
| | | > |
| | | <el-option |
| | | v-for="item in stridOption" |
| | |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> --> |
| | | |
| | | <el-input |
| | | v-if="item.lids" |
| | | v-model="item.srids" |
| | | size="small" |
| | | disabled |
| | | ></el-input> |
| | | </div> --> |
| | | </div> |
| | | <div style="display: flex; justify-content: end;margin-top:10px;"> |
| | | <el-button |
| | | size="small" |
| | |
| | | <div |
| | | v-loading="true" |
| | | element-loading-background="rgba(0, 0, 0, 0.0) " |
| | | element-loading-text="数据发布中" |
| | | :element-loading-text="loadingText" |
| | | style="margin: 0px 20px;widht:100%;height:calc(100% - 80px); " |
| | | > |
| | | </div> |
| | |
| | | }, |
| | | stridOption: [], |
| | | osgbLasOption: [], |
| | | loadingText: '数据发布中' |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | |
| | | var ids = []; |
| | | var zs = [] |
| | | for (var i in this.osgbLasOption) { |
| | | ids.push(this.osgbLasOption[i].id) |
| | | zs.push(this.osgbLasOption[i].zs) |
| | | } |
| | | var models = [] |
| | | var srids = []; |
| | | var lerro = []; |
| | | for (var i in this.osgbLasOption) { |
| | | ids.push(this.osgbLasOption[i].id) |
| | | // zs.push(this.osgbLasOption[i].zs) |
| | | zs.push(0) |
| | | srids.push(0) |
| | | models.push(0) |
| | | } |
| | | var name = this.osgbLasOption[0].name |
| | | |
| | | if (this.formInline.type == 'LAS') { |
| | | 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 (this.osgbLasOption[i].srids) { |
| | | // //var epsg = this.osgbLasOption[i].srids.replace('EPSG:', '') |
| | | // // srids.push(epsg) |
| | | // srids.push("00") |
| | | // } else { |
| | | // lerro.push(this.osgbLasOption[i].name) |
| | | // } |
| | | srids.push(0) |
| | | } |
| | | if (lerro.length > 0) { |
| | | return this.$message(lerro + '未选择发布数据的坐标系'); |
| | | } |
| | | // if (lerro.length > 0) { |
| | | // return this.$message(lerro + '未选择发布数据的坐标系'); |
| | | // } |
| | | |
| | | // if (!this.osgbLasLayer.strid) { |
| | | // return this.$message('请选择发布数据的坐标系'); |
| | |
| | | var obj = { |
| | | dircode: this.formInline.dirid, |
| | | depcode: this.formInline.depid, |
| | | min: null, |
| | | max: null, |
| | | name: null, |
| | | min: 0, |
| | | max: 0, |
| | | name: name, |
| | | type: this.formInline.type, |
| | | noData: null, |
| | | noData: 0, |
| | | ids: ids, |
| | | models: null, |
| | | srids: srids, |
| | | zx: zs |
| | | models: models, |
| | | srids: [], |
| | | zs: zs |
| | | } |
| | | this.loadingText = '数据发布中'; |
| | | this.loadDialogVisible = true |
| | | this.setOsgbCanel(); |
| | | const data = await publish_insert(obj); |
| | |
| | | models: models |
| | | |
| | | } |
| | | this.loadingText = '数据发布中'; |
| | | this.loadDialogVisible = true |
| | | this.insertModelVisible = false; |
| | | |
| | |
| | | this.options = std; |
| | | }, |
| | | setloadDialogVisible() { |
| | | this.loadDialogVisible = false |
| | | |
| | | this.loadDialogVisible = false; |
| | | this.loadingText = '数据发布中'; |
| | | }, |
| | | setinsertLayerCancel() { |
| | | this.insertDialogVisible = false; |
| | |
| | | type: this.formInline.type, |
| | | noData: this.insertLayer.noData |
| | | } |
| | | this.loadingText = '数据发布中'; |
| | | this.loadDialogVisible = true |
| | | this.insertDialogVisible = false; |
| | | |
| | |
| | | ids: std, |
| | | type: this.formInline.type |
| | | } |
| | | |
| | | this.loadingText = '数据发布中'; |
| | | this.loadDialogVisible = true |
| | | this.insertDialogVisible = false; |
| | | |
| | |
| | | var that = this |
| | | this.$confirm('确定是否删除所选内容?') |
| | | .then(_ => { |
| | | |
| | | that.deletePage() |
| | | }) |
| | | .catch(_ => { |
| | |
| | | } |
| | | }, |
| | | async deletePage() { |
| | | this.loadingText = '数据删除中'; |
| | | this.loadDialogVisible = true; |
| | | var std = []; |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].id); |
| | |
| | | }); |
| | | this.getTableData(); |
| | | } |
| | | this.loadDialogVisible = false; |
| | | }, |
| | | //预览弹窗打开 |
| | | setPreviewLayer(res) { |
| | |
| | | padding: 10px !important; |
| | | } |
| | | .contLable { |
| | | width: 160px; |
| | | width: 140px; |
| | | text-align: right; |
| | | } |
| | | } |
| | | </style> |