| | |
| | | <template> |
| | | <view class="pages-map-scene-create"> |
| | | <view class="scene-content" v-if="opSceneType =='' "> |
| | | <image class="img" src="/images/image 25.png" alt=" 图片" mode="aspectFit" /> |
| | | <image class="img" src="/images/image_25.png" alt=" 图片" mode="aspectFit" /> |
| | | <view class="space">没有找到符合条件的地图</view> |
| | | <view class="text-button-group"> |
| | | <a-button type="primary" class="button" @click="clickStartConstructScene"> |
| | |
| | | <view class="tip">请输入场景名称</view> |
| | | <view class="name-input"> |
| | | <input ref="refInputName" :focus="true" placeholder="请输入场景名称" :value="sceneName" |
| | | @input="onInputName"></input> |
| | | @input="onInputName"/> |
| | | <uni-icons class="clear" color="#ccc" type="clear" size="20" v-if="showClearName" |
| | | @click="clickClearName"></uni-icons> |
| | | </view> |
| | |
| | | showToast, |
| | | showModal, |
| | | session, |
| | | showError, |
| | | showInfo |
| | | } from "@/comm/utils.js" |
| | | import { |
| | | Button |
| | |
| | | computed: { |
| | | |
| | | }, |
| | | |
| | | mounted() { |
| | | const _this = this |
| | | uni.getSystemInfo({ |
| | |
| | | |
| | | } catch (ex) { |
| | | |
| | | this.showError(ex) |
| | | showError(ex) |
| | | } |
| | | }, |
| | | async loadMapLaserData() { |
| | |
| | | const info = await getMapLaserData(this.ip) |
| | | return info |
| | | } catch (ex) { |
| | | this.showError(ex) |
| | | showError(ex) |
| | | return {} |
| | | } |
| | | }, |
| | |
| | | await createScene(this.ip, name, 1) |
| | | this.$emit('update:opSceneType', "scan"); |
| | | } catch (ex) { |
| | | this.showError(ex) |
| | | showError(ex) |
| | | } |
| | | |
| | | }, |