This commit is contained in:
liaoboping 2025-09-20 14:11:12 +08:00
parent e7a828c9d6
commit 6e8327a5dd
2 changed files with 14 additions and 2 deletions

View File

@ -7,7 +7,7 @@
:options="options"
:mode="selectMode"
:filter-option="filterOption"
:style="{ width, minWidth: '100px' }"
:style="{ width, minWidth: '60px' }"
v-bind="selectConf"
v-on="getListeners"
@change="handleChange"

View File

@ -66,6 +66,9 @@
<a-radio-button :value="6">保障分队</a-radio-button>
</a-radio-group>
</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 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">
@ -196,6 +199,7 @@ export default {
formData: {},
},
fd: {
force: 0,
type: 5,
loading: false,
listData: [],
@ -326,6 +330,14 @@ export default {
this.fd.loading = false
}
},
forceSource() {
return {
data: [
{ title: '红方', id: 0 },
{ title: '蓝方', id: 1 },
],
}
},
dragend(item, e) {
const minX = this.$refs['scene-presetting-cesium-container'].offsetLeft
const maxX =
@ -340,7 +352,7 @@ export default {
const x = e.x - this.$refs['scene-presetting-cesium-container'].offsetLeft
const y = e.y - this.$refs['scene-presetting-cesium-container'].offsetTop
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 }) {
try {