| | |
| | | <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> |
| | |
| | | publish_deletesSjServices, |
| | | publish_update, |
| | | publish_insertSjService, |
| | | publish_selectSjColorTables |
| | | publish_selectSjColorTables, |
| | | publish_selectSjMissionStatus |
| | | } from '../../api/api.js' |
| | | import { conditions } from '../Archive/Archive'; |
| | | import { method_option, nodata_Option, server_option, system_Option, type_option } from './js/layerManage'; |
| | |
| | | { |
| | | value: 1, |
| | | label: "直方图均衡", |
| | | }] |
| | | }], |
| | | loadingText: '数据发布中', |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | var color2 = null; |
| | | var level = null; |
| | | var val_data = []; |
| | | |
| | | var dataId = 0; |
| | | if (this.renderTypeOptions.length > 0) { |
| | | for (var i in this.renderTypeOptions) { |
| | | if (this.renderTypeOptions[i].name == this.renderType.value) { |
| | | val_data.push(this.renderTypeOptions[i].content.levels); |
| | | if (this.renderTypeOptions[i].name == this.renderType) { |
| | | val_data.push(this.renderTypeOptions[i]); |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (val_data.length > 0) { |
| | | level = val_data[0]; |
| | | } |
| | | |
| | | if (this.colorTableType == 0) { |
| | | color1 = level; |
| | | color1 = level.content.levels; |
| | | dataId = level.data_id; |
| | | } else if (this.colorTableType == 1) { |
| | | color2 = level; |
| | | color2 = level.content.levels; |
| | | dataId = level.data_id; |
| | | } |
| | | |
| | | |
| | | var obj = { |
| | | colorTable: color1, // 普通颜色表,可不设 |
| | | gradientColorTable: color2, |
| | | dircode: this.formInline.dirid, |
| | | colorTableId: dataId, |
| | | name: name, |
| | | ids: std, |
| | | enhanceType: this.insertLayer.enhanceType, |
| | |
| | | |
| | | this.loadDialogVisible = true |
| | | this.insertDialogVisible = false; |
| | | |
| | | this.loadDialogVisible = false |
| | | const data = await publish_insertSjService(obj); |
| | | if (data.code == 200 && data.result && data.result > 0) { |
| | | this.loadDialogVisible = true |
| | | this.getLoadingMsg(data.result); |
| | | } else { |
| | | this.$message.error("数据发布失败") |
| | | this.getTableData(); |
| | | } |
| | | |
| | | if (data.code == 200 && data.result > 0) { |
| | | |
| | | |
| | | // if (data.code == 200 && data.result > 0) { |
| | | // this.$message({ |
| | | // message: '数据发布成功', |
| | | // type: 'success' |
| | | // }); |
| | | // } else { |
| | | // this.$message.error("数据发布失败") |
| | | // } |
| | | |
| | | // |
| | | }, |
| | | async getLoadingMsg(res) { |
| | | if (!this.loadDialogVisible) return; |
| | | const data = await publish_selectSjMissionStatus({ id: res }) |
| | | |
| | | |
| | | if (data.result.status == 3) { |
| | | this.$message({ |
| | | message: '数据发布成功', |
| | | type: 'success' |
| | | }); |
| | | } else { |
| | | this.$message.error("数据发布失败") |
| | | } |
| | | this.loadDialogVisible = false |
| | | this.loadDialogVisible = false; |
| | | this.getTableData(); |
| | | } else if (data.result.status == 5 || data.result.status == 4) { |
| | | this.$message.error("数据发布失败") |
| | | this.loadDialogVisible = false; |
| | | this.getTableData(); |
| | | } else { |
| | | if (data.result.process == 100) { |
| | | this.$message({ |
| | | message: '数据发布成功', |
| | | type: 'success' |
| | | }); |
| | | this.loadDialogVisible = false; |
| | | this.getTableData(); |
| | | } else { |
| | | this.loadingText = '数据发布中,已发布 ' + data.result.process + '%'; |
| | | |
| | | var that = this; |
| | | setTimeout(() => { |
| | | that.getLoadingMsg(res); |
| | | }, 3000); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | }, |
| | | |
| | | |
| | | |
| | | setEnhanceTypeChange(res) { |
| | | var val = this.enhanceOption.filter((res) => { |
| | | if (res.value == this.insertLayer.enhanceType) { |
| | |
| | | .loadBox { |
| | | position: fixed; |
| | | z-index: 2002; |
| | | background: rgba(0, 0, 0, 0.2); |
| | | background: rgba(0, 0, 0, 0.75); |
| | | width: 100%; |
| | | height: 100%; |
| | | top: 0; |