| | |
| | | > |
| | | </div> |
| | | </div> |
| | | <el-dialog |
| | | :title="$t('common.details')" |
| | | :visible.sync="rasterCsVisible" |
| | | :close-on-click-modal="false" |
| | | width="35%" |
| | | > |
| | | <div class="rasterCsBox"> |
| | | <div v-for="(item,index) in rasterCsOption"> |
| | | <div class="rasterCsContent"> |
| | | <label>{{ item.name }} : </label> |
| | | <label>{{ item.bak }}</label> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | |
| | | </template> |
| | |
| | | dataUpload_selectCoords, |
| | | publish_selectLasCs, |
| | | task_selectByPageAndCount, |
| | | task_deleteTask |
| | | task_deleteTask, |
| | | publish_selectRasterCs |
| | | } from '../../api/api.js' |
| | | import { conditions } from '../Archive/Archive'; |
| | | |
| | |
| | | }, |
| | | stridOption: [], |
| | | osgbLasOption: [], |
| | | loadingText: '数据发布中' |
| | | loadingText: '数据发布中', |
| | | rasterCsVisible: false, |
| | | rasterCsOption: [] |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | srids: [], |
| | | zs: zs |
| | | } |
| | | this.loadingText = '数据发布中'; |
| | | this.loadDialogVisible = true |
| | | this.setOsgbCanel(); |
| | | const data = await publish_insert(obj); |
| | | this.setPublish_insert(obj) |
| | | |
| | | if (data.code == 200 && data.result > 0) { |
| | | this.$message({ |
| | | message: '数据发布成功', |
| | | type: 'success' |
| | | }); |
| | | } else { |
| | | this.$message.error("数据发布失败") |
| | | } |
| | | this.loadDialogVisible = false |
| | | this.getTableData(); |
| | | |
| | | }, |
| | | setModelCanel() { |
| | |
| | | models: models |
| | | |
| | | } |
| | | this.loadingText = '数据发布中'; |
| | | this.loadDialogVisible = true |
| | | this.insertModelVisible = false; |
| | | |
| | | const data = await publish_insert(obj); |
| | | |
| | | if (data.code == 200 && data.result > 0) { |
| | | this.$message({ |
| | | message: '数据发布成功', |
| | | type: 'success' |
| | | }); |
| | | } else { |
| | | this.$message.error("数据发布失败") |
| | | } |
| | | this.loadDialogVisible = false |
| | | this.getTableData(); |
| | | this.setPublish_insert(obj) |
| | | |
| | | |
| | | }, |
| | |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].id) |
| | | } |
| | | |
| | | if (this.formInline.type == 'DOM') { |
| | | const data1 = await publish_selectRasterCs({ |
| | | ids: std.toString() |
| | | }) |
| | | if (data1.code == 200 && data1.result.length == 0) { |
| | | } else { |
| | | this.rasterCsOption = data1.result; |
| | | this.insertDialogVisible = false; |
| | | this.rasterCsVisible = true; |
| | | return |
| | | } |
| | | } |
| | | |
| | | |
| | | var obj = { |
| | | dircode: this.formInline.dirid, |
| | | depcode: this.formInline.depid, |
| | |
| | | type: this.formInline.type, |
| | | noData: this.insertLayer.noData |
| | | } |
| | | this.loadingText = '数据发布中'; |
| | | this.loadDialogVisible = true |
| | | this.insertDialogVisible = false; |
| | | |
| | | const data = await publish_insert(obj); |
| | | |
| | | if (data.code == 200 && data.result > 0) { |
| | | this.$message({ |
| | | message: '数据发布成功', |
| | | type: 'success' |
| | | }); |
| | | } else { |
| | | this.$message.error("数据发布失败") |
| | | } |
| | | this.loadDialogVisible = false |
| | | this.getTableData(); |
| | | this.setPublish_insert(obj) |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | //数据发布 |
| | | async setPagePublish() { |
| | |
| | | this.$message("请选择要发布的数据") |
| | | return |
| | | } |
| | | |
| | | if (this.formInline.type == "DOM" || this.formInline.type == "DEM") { |
| | | |
| | | this.insertLayer.name = this.multipleSelection[0].name.split('.')[0]; |
| | |
| | | ids: std, |
| | | type: this.formInline.type |
| | | } |
| | | |
| | | |
| | | this.setPublish_insert(obj) |
| | | } |
| | | }, |
| | | |
| | | async setPublish_insert(obj) { |
| | | this.insertDialogVisible = false; |
| | | this.insertModelVisible = false; |
| | | this.insertOsgbVisible = false; |
| | | var std = []; |
| | | |
| | | |
| | | |
| | | this.loadingText = '数据发布中'; |
| | | this.loadDialogVisible = true |
| | | this.insertDialogVisible = false; |
| | | |
| | | const data = await publish_insert(obj); |
| | | if (data.code == 200 && data.result > 0) { |
| | | this.$message({ |
| | |
| | | } else { |
| | | this.$message.error("数据发布失败") |
| | | } |
| | | |
| | | this.loadDialogVisible = false |
| | | this.getTableData(); |
| | | } |
| | | |
| | | |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | //数据详情 |
| | | setPreviewDetails(res) { |
| | | this.itemdetail = res; |
| | |
| | | width: 140px; |
| | | text-align: right; |
| | | } |
| | | .rasterCsBox { |
| | | max-height: 60vh; |
| | | overflow: auto; |
| | | .rasterCsContent { |
| | | padding: 10px; |
| | | font-size: 16px; |
| | | font-family: Source Han Sans CN; |
| | | } |
| | | } |
| | | } |
| | | </style> |