(() => {
Vue.component('uploadPointclound', {
props: [],
name: 'uploadPointclound',
template: `
添加数据集
{{item.code}}
来自场景:{{item.name}}
添加到场景
已添加的数据集
`,
data() {
return {
options: [{
id: 1,
name: "港2",
code: 't-iksBApb'
}, {
id: 2,
name: "港2",
code: 't-iksBA2pb'
}, {
id: 3,
name: "港2",
code: 't-iksBA3pb'
}, {
id: 4,
name: "港2",
code: 't-iksBA4pb'
}, {
id: 5,
name: "港2",
code: 't-iksBA5pb'
}, {
id: 6,
name: "港2",
code: 't-iksBA6pb'
}],
value: '',
}
},
methods: {
searchScene() {
let t = setTimeout(() => {
console.log(1)
clearTimeout(t)
}, 3000);
},
openUpload() {
this.$parent.showLoading()
setTimeout(() => {
this.value = ''
this.$parent.hideLoading()
this.$message({
message: '恭喜你,这是一条成功消息',
type: 'success',
duration: 2000,
});
window.eventBus
IV.api.AuthenticationService.sendAuthenticationChanged()
// IV.SidebarMenuService.goToItem(IV.SidebarMenuService.items[1])
}, 2000);
// this.$confirm('此操作将永久删除该文件, 是否继续?', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// center: true
// }).then(() => {
// // this.$message({
// // type: 'success',
// // message: '删除成功!'
// // });
// }).catch(() => {
// // this.$message({
// // type: 'info',
// // message: '已取消删除'
// // });
// });
},
delConfirm() {
console.log(1)
},
},
computed: {
},
destroyed() {
},
mounted() {
window.eventBus.off('openMap', openMap);
window.eventBus.on('openMap', openMap);
function openMap() {
IV.swapScenes()
}
},
})
})();