点标注物资设置

This commit is contained in:
zh
2025-10-31 10:35:20 +08:00
parent 4dc50b0345
commit 5b5fe469fc
2 changed files with 10 additions and 52 deletions

View File

@ -211,27 +211,6 @@ const bottomMenuList = ref([
availablePort.value + availablePort.value +
"/" + "/" +
"GEMarker1/A-ablu-blank.png", "GEMarker1/A-ablu-blank.png",
},
attribute: {
goods: {
content: [
{
id: 1,
name: '物资1',
cnt: 10
},
{
id: 2,
name: '物资2',
cnt: 10
},
{
id: 3,
name: '物资3',
cnt: 10
}
]
}
} }
} }
}) })

View File

@ -229,6 +229,7 @@
import { ref } from 'vue' import { ref } from 'vue'
import { inject } from 'vue' import { inject } from 'vue'
import { deviceApi } from '@/api/deviceManage' import { deviceApi } from '@/api/deviceManage'
import { MaterialApi } from '@/api/material'
let ipcRenderer; let ipcRenderer;
if (window && window.process && window.process.type === 'renderer') { if (window && window.process && window.process.type === 'renderer') {
@ -281,37 +282,15 @@ const goodsFilter = () => {
} }
} }
} }
const goodsSelect = (page) => { const goodsSelect = async (page) => {
allGoodsList.value = [ let formData = new FormData()
// { formData.append('pageNum', 1)
// id: '1', formData.append('pageSize', 999999)
// name: '物资1' formData.append('name', goodsKeywords.value)
// }, const res = await MaterialApi.getList(formData)
// { if (res.code === 200) {
// id: '2', allGoodsList.value = res.data.records
// name: '物资2' }
// },
// {
// id: '3',
// name: '物资3'
// },
// {
// id: '4',
// name: '物资4'
// },
// {
// id: '5',
// name: '物资5'
// },
// {
// id: '6',
// name: '物资6'
// },
// {
// id: '7',
// name: '物资7'
// }
]
for (let i = props.entityOptions.attributeGoods.length - 1; i >= 0; i--) { for (let i = props.entityOptions.attributeGoods.length - 1; i >= 0; i--) {
let flag = false let flag = false
for (let m = 0; m < allGoodsList.value.length; m++) { for (let m = 0; m < allGoodsList.value.length; m++) {