coding
This commit is contained in:
parent
e7a828c9d6
commit
6e8327a5dd
|
@ -7,7 +7,7 @@
|
||||||
:options="options"
|
:options="options"
|
||||||
:mode="selectMode"
|
:mode="selectMode"
|
||||||
:filter-option="filterOption"
|
:filter-option="filterOption"
|
||||||
:style="{ width, minWidth: '100px' }"
|
:style="{ width, minWidth: '60px' }"
|
||||||
v-bind="selectConf"
|
v-bind="selectConf"
|
||||||
v-on="getListeners"
|
v-on="getListeners"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
|
|
|
@ -66,6 +66,9 @@
|
||||||
<a-radio-button :value="6">保障分队</a-radio-button>
|
<a-radio-button :value="6">保障分队</a-radio-button>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</template>
|
</template>
|
||||||
|
<template #extra>
|
||||||
|
<AntOriginSelect v-model="fd.force" :dataSource="forceSource" width="80px" />
|
||||||
|
</template>
|
||||||
<Flex v-loading.dark="fd.loading" class="normal" fd="co" style="padding: 5px">
|
<Flex v-loading.dark="fd.loading" class="normal" fd="co" style="padding: 5px">
|
||||||
<Flex class="flex-1 scroller-y" fw="w" ac="fs">
|
<Flex class="flex-1 scroller-y" fw="w" ac="fs">
|
||||||
<Flex v-for="item in fd.listData" :key="item.id" class="fd-item" fd="co" ai="c">
|
<Flex v-for="item in fd.listData" :key="item.id" class="fd-item" fd="co" ai="c">
|
||||||
|
@ -196,6 +199,7 @@ export default {
|
||||||
formData: {},
|
formData: {},
|
||||||
},
|
},
|
||||||
fd: {
|
fd: {
|
||||||
|
force: 0,
|
||||||
type: 5,
|
type: 5,
|
||||||
loading: false,
|
loading: false,
|
||||||
listData: [],
|
listData: [],
|
||||||
|
@ -326,6 +330,14 @@ export default {
|
||||||
this.fd.loading = false
|
this.fd.loading = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
forceSource() {
|
||||||
|
return {
|
||||||
|
data: [
|
||||||
|
{ title: '红方', id: 0 },
|
||||||
|
{ title: '蓝方', id: 1 },
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
dragend(item, e) {
|
dragend(item, e) {
|
||||||
const minX = this.$refs['scene-presetting-cesium-container'].offsetLeft
|
const minX = this.$refs['scene-presetting-cesium-container'].offsetLeft
|
||||||
const maxX =
|
const maxX =
|
||||||
|
@ -340,7 +352,7 @@ export default {
|
||||||
const x = e.x - this.$refs['scene-presetting-cesium-container'].offsetLeft
|
const x = e.x - this.$refs['scene-presetting-cesium-container'].offsetLeft
|
||||||
const y = e.y - this.$refs['scene-presetting-cesium-container'].offsetTop
|
const y = e.y - this.$refs['scene-presetting-cesium-container'].offsetTop
|
||||||
const { plotId, longitude, latitude } = this.cesium.addPlotByOffset(item.imgBase64, { x, y })
|
const { plotId, longitude, latitude } = this.cesium.addPlotByOffset(item.imgBase64, { x, y })
|
||||||
this.savePlot(this.fd.queryParams.force, item, { plotId, longitude, latitude })
|
this.savePlot(this.fd.force, item, { plotId, longitude, latitude })
|
||||||
},
|
},
|
||||||
async savePlot(force, item, { plotId, longitude, latitude }) {
|
async savePlot(force, item, { plotId, longitude, latitude }) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user