| | |
| | | <template> |
| | | <div v-show="openmobileGoTo" class="mobileGoTo"> |
| | | <el-input v-model="lnt"></el-input> |
| | | <el-input v-model="lat"></el-input> |
| | | <el-input v-model="height"></el-input> |
| | | <el-input v-model="heading"></el-input> |
| | | <el-input v-model="pitch"></el-input> |
| | | <el-input v-model="roll"></el-input> |
| | | <!-- <el-input v-model="alt"></el-input> --> |
| | | <el-button type="primary" @click="submitForm('')">跳转</el-button> |
| | | </div> |
| | |
| | | "query", |
| | | "MobileWindowChangeData", |
| | | "ccDataState", |
| | | "perspectiveControls", |
| | | "perspectiveControl", |
| | | ]), |
| | | }, |
| | | data() { |
| | |
| | | lnt: "121.53772514948211", |
| | | lat: "31.23938286341316", |
| | | alt: "90.648862227", |
| | | height: 800, |
| | | heading: 0, |
| | | pitch: -45, |
| | | roll: 0, |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | this.lnt = this.query.lntLat[0]; |
| | | this.lat = this.query.lntLat[1]; |
| | | }, |
| | | perspectiveControls() { |
| | | this.height = this.perspectiveControl.height; |
| | | this.heading = this.perspectiveControl.heading; |
| | | this.pitch = this.perspectiveControl.pitch; |
| | | this.roll = this.perspectiveControl.roll; |
| | | }, |
| | | }, |
| | | methods: { |
| | | submitForm() { |
| | | if (this.lnt && this.lat) { |
| | | let that = this; |
| | | // 定制化窗体 |
| | | let position = {}; |
| | | let lntLat = [that.lnt, that.lat]; |
| | | // let position = {}; |
| | | // let lntLat = [that.lnt, that.lat]; |
| | | // let d = { |
| | | // position, |
| | | // lntLat, |
| | | // query: { position, lntLat }, |
| | | // useJWD: true, //仅使用经纬度 |
| | | // }; |
| | | // that.$store.dispatch("setMobileWindows", d); |
| | | let d = { |
| | | position, |
| | | lntLat, |
| | | query: { position, lntLat }, |
| | | useJWD: true, //仅使用经纬度 |
| | | height: this.height, |
| | | heading: this.heading, |
| | | pitch: this.pitch, |
| | | roll: this.roll, |
| | | }; |
| | | that.$store.dispatch("setMobileWindows", d); |
| | | that.$store.dispatch("MSET_GOTOCC", d); |
| | | } |
| | | }, |
| | | }, |