| | |
| | | <el-button |
| | | class="primary" |
| | | size="small" |
| | | @click="getInsertDown" |
| | | @click="getInsertDownz()" |
| | | >{{ |
| | | $t("common.confirm") |
| | | }}</el-button> |
| | |
| | | tileHeight: 512, |
| | | }); |
| | | layerWMS.name = "Wms_Layer"; |
| | | |
| | | window.Viewer.scene.imageryLayers.addImageryProvider(window.layerWMS); |
| | | var layer2 = new Image({ |
| | | name: "Wms_Layer", |
| | |
| | | this.getTableData() |
| | | } |
| | | }, |
| | | //格式化时间 |
| | | format(shijianchuo) { |
| | | //shijianchuo是整数,否则要parseInt转换 |
| | | var time = new Date(shijianchuo); |
| | | var y = time.getFullYear(); |
| | | var m = time.getMonth() + 1; |
| | | var d = time.getDate(); |
| | | var h = time.getHours(); |
| | | var mm = time.getMinutes(); |
| | | var s = time.getSeconds(); |
| | | return ( |
| | | y + |
| | | '-' + |
| | | this.add0(m) + |
| | | '-' + |
| | | this.add0(d) + |
| | | ' ' + |
| | | h + |
| | | ':' + |
| | | mm + |
| | | ':' + |
| | | s |
| | | ); |
| | | }, |
| | | //格式化时间 |
| | | add0(m) { |
| | | return m < 10 ? '0' + m : m; |
| | | }, |
| | | async getTableData() { |
| | | this.tableData = [] |
| | | const data = await dataQuery_selectByGid(this.$store.state.pickoption) |
| | |
| | | } |
| | | |
| | | var valste = data.result |
| | | |
| | | valste.dirid = valste.dirName; |
| | | valste.depid = valste.depName; |
| | | valste.verid = valste.verName; |
| | | valste.createuser = valste.createName; |
| | | valste.updateuser = valste.updateName; |
| | | if (valste.createtime) { |
| | | valste.createtime = this.format(valste.createtime) |
| | | } |
| | | if (valste.updatetime) { |
| | | valste.updatetime = this.format(valste.updatetime) |
| | | } |
| | | |
| | | for (var j in this.optionx) { |
| | | if ( |
| | |
| | | arr[vla.alias] = valste[vla.field] |
| | | } |
| | | arr['eventid'] = valste.eventid |
| | | |
| | | |
| | | this.$store.state.propertiesInfo = arr; |
| | | |
| | | this.$store.state.propertiesFlag = '1' |
| | |
| | | this.dialogInsertVisible = true; |
| | | }, |
| | | downloadx() { |
| | | this.$bus.$emit("setInsertDown", this.codeForm) |
| | | this.$bus.$emit("setInsertDown1", this.codeForm) |
| | | this.closeDownx(); |
| | | }, |
| | | handleCloseDown1() { |
| | |
| | | }) |
| | | .catch(_ => { }) |
| | | }, |
| | | getInsertDown() { |
| | | getInsertDownz() { |
| | | this.dialogInsertVisible = false; |
| | | this.dialogVisible1 = true; |
| | | // this.dialogVisible1 = true; |
| | | // |
| | | |
| | | this.$bus.$emit("setInsertApply1", this.ruleForm) |
| | | }, |
| | | handleExtentClose() { |
| | | this.dialogExtentVisible = false |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.$bus.$off(); |
| | | this.measureData = new Map(); |
| | | this.colorAll = { |
| | | point: Cesium.Color.fromCssColorString("#ff0000"), |