修改
This commit is contained in:
@ -7,6 +7,10 @@ export const addMapSource = async ({ type, id, sourceName = '未命名对象', o
|
|||||||
if (!id) {
|
if (!id) {
|
||||||
id = new YJ.Tools().randomString()
|
id = new YJ.Tools().randomString()
|
||||||
}
|
}
|
||||||
|
//判断是否已有元素
|
||||||
|
if (window.earth.entityMap.get(id)) {
|
||||||
|
window.earth.entityMap.get(id).remove()
|
||||||
|
}
|
||||||
let options: any = await initMapData(type, opt, cd)
|
let options: any = await initMapData(type, opt, cd)
|
||||||
let selectedNodes = window.treeObj.getSelectedNodes()
|
let selectedNodes = window.treeObj.getSelectedNodes()
|
||||||
let node = selectedNodes && selectedNodes[selectedNodes.length - 1]
|
let node = selectedNodes && selectedNodes[selectedNodes.length - 1]
|
||||||
|
|||||||
@ -121,7 +121,7 @@
|
|||||||
max="999999.99"
|
max="999999.99"
|
||||||
step="0.01"
|
step="0.01"
|
||||||
name="defaultTime"
|
name="defaultTime"
|
||||||
value="0"
|
value="5"
|
||||||
/>
|
/>
|
||||||
<span class="unit" style="top: 6px">s</span>
|
<span class="unit" style="top: 6px">s</span>
|
||||||
<span class="arrow"></span>
|
<span class="arrow"></span>
|
||||||
@ -264,7 +264,7 @@ let allData: any = reactive({
|
|||||||
name: '',
|
name: '',
|
||||||
points: [],
|
points: [],
|
||||||
repeat: '',
|
repeat: '',
|
||||||
defaultTime: 0,
|
defaultTime: 5,
|
||||||
totalTime: 0
|
totalTime: 0
|
||||||
})
|
})
|
||||||
const save = () => {
|
const save = () => {
|
||||||
@ -375,8 +375,7 @@ defineExpose({
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.afreshPlay {
|
.afreshPlay {
|
||||||
background:
|
background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
|
||||||
linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
|
|
||||||
linear-gradient(180deg, rgba(27, 248, 195, 0.2) 0%, rgba(27, 248, 195, 0) 100%) !important;
|
linear-gradient(180deg, rgba(27, 248, 195, 0.2) 0%, rgba(27, 248, 195, 0) 100%) !important;
|
||||||
border: 1px solid rgba(27, 248, 195, 1) !important;
|
border: 1px solid rgba(27, 248, 195, 1) !important;
|
||||||
color: rgba(27, 248, 195, 1) !important;
|
color: rgba(27, 248, 195, 1) !important;
|
||||||
@ -387,8 +386,7 @@ defineExpose({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cease {
|
.cease {
|
||||||
background:
|
background: linear-gradient(180deg, rgba(241, 108, 85, 0.2) 0%, rgba(241, 108, 85, 0) 100%),
|
||||||
linear-gradient(180deg, rgba(241, 108, 85, 0.2) 0%, rgba(241, 108, 85, 0) 100%),
|
|
||||||
rgba(0, 0, 0, 0.5) !important;
|
rgba(0, 0, 0, 0.5) !important;
|
||||||
border: 1px solid rgba(241, 108, 85, 1) !important;
|
border: 1px solid rgba(241, 108, 85, 1) !important;
|
||||||
color: rgba(241, 108, 85, 1) !important;
|
color: rgba(241, 108, 85, 1) !important;
|
||||||
@ -399,8 +397,7 @@ defineExpose({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.video {
|
.video {
|
||||||
background:
|
background: linear-gradient(
|
||||||
linear-gradient(
|
|
||||||
180deg,
|
180deg,
|
||||||
rgba(71, 27, 5, 0.3) 0%,
|
rgba(71, 27, 5, 0.3) 0%,
|
||||||
rgba(71, 27, 5, 0.3) 0%,
|
rgba(71, 27, 5, 0.3) 0%,
|
||||||
|
|||||||
Reference in New Issue
Block a user