点标注物资设置
This commit is contained in:
@ -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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -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++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user