库位名建议保持和库位列表命名一致,改为“库位号”

This commit is contained in:
yyy 2025-03-25 11:46:49 +08:00
parent 47ec7b8bfb
commit 5e13c6975f
3 changed files with 83 additions and 78 deletions

View File

@ -154,7 +154,7 @@
</template> </template>
<div> <div>
<div class="indexpage-popover-item"> <div class="indexpage-popover-item">
<div> 库位 </div> <div> 库位 </div>
<div> <div>
{{ item.showData?.locationNo || '' }} {{ item.showData?.locationNo || '' }}
</div> </div>
@ -723,11 +723,11 @@ const linkWebSocket = (url) => {
} }
const setIsSelect = (arr1, arr2) => { const setIsSelect = (arr1, arr2) => {
for (let i = 0; i < arr1.length; i++) { for (let i = 0; i < arr1.length; i++) {
const element = arr1[i]; const element = arr1[i]
const isExist = arr2.includes(element.id); const isExist = arr2.includes(element.id)
element.isSelect = isExist; element.isSelect = isExist
} }
return arr1; return arr1
} }
// //
const lookError = () => { const lookError = () => {

View File

@ -154,7 +154,7 @@
</template> </template>
<div> <div>
<div class="indexpage-popover-item"> <div class="indexpage-popover-item">
<div> 库位 </div> <div> 库位 </div>
<div> <div>
{{ item.showData?.locationNo || '' }} {{ item.showData?.locationNo || '' }}
</div> </div>
@ -724,11 +724,11 @@ const linkWebSocket = (url) => {
const setIsSelect = (arr1, arr2) => { const setIsSelect = (arr1, arr2) => {
for (let i = 0; i < arr1.length; i++) { for (let i = 0; i < arr1.length; i++) {
const element = arr1[i]; const element = arr1[i]
const isExist = arr2.includes(element.id); const isExist = arr2.includes(element.id)
element.isSelect = isExist; element.isSelect = isExist
} }
return arr1; return arr1
} }
// //
const lookError = () => { const lookError = () => {

View File

@ -7,7 +7,7 @@
cursor: isDrag ? 'pointer' : 'default', cursor: isDrag ? 'pointer' : 'default',
scale: isSizeRadio, scale: isSizeRadio,
transformOrigin: '0 0', transformOrigin: '0 0',
width: isFull?'100%':(widthVal + 'px') width: isFull ? '100%' : widthVal + 'px'
}" }"
@wheel="handleWheel" @wheel="handleWheel"
> >
@ -156,7 +156,7 @@
</template> </template>
<div> <div>
<div class="indexpage-popover-item"> <div class="indexpage-popover-item">
<div> 库位 </div> <div> 库位 </div>
<div> <div>
{{ item.showData?.locationNo || '' }} {{ item.showData?.locationNo || '' }}
</div> </div>
@ -375,13 +375,15 @@ const nodeStyle = (item, index) => {
const typeList = ref([]) const typeList = ref([])
const getTypeList = () => { const getTypeList = () => {
typeList.value = getDictOptions(DICT_TYPE.DEVICE_TYPE)&&getDictOptions(DICT_TYPE.DEVICE_TYPE).length?JSON.parse(JSON.stringify(getDictOptions(DICT_TYPE.DEVICE_TYPE))):[] typeList.value =
getDictOptions(DICT_TYPE.DEVICE_TYPE) && getDictOptions(DICT_TYPE.DEVICE_TYPE).length
? JSON.parse(JSON.stringify(getDictOptions(DICT_TYPE.DEVICE_TYPE)))
: []
} }
//type //type
const filterTypeFun = (type, list) => { const filterTypeFun = (type, list) => {
if (list.length) { if (list.length) {
let obj = list.find(item => { let obj = list.find((item) => {
return item.value == type return item.value == type
}) })
return obj == undefined ? type : obj.label return obj == undefined ? type : obj.label
@ -484,7 +486,6 @@ const changDriveLineShow = () => {
const toggleFullScreen = () => { const toggleFullScreen = () => {
var elem = document.getElementById('indexpage-container') // var elem = document.getElementById('indexpage-container') //
if (!document.fullscreenElement) { if (!document.fullscreenElement) {
// //
if (elem.requestFullscreen) { if (elem.requestFullscreen) {
// requestFullscreen API // requestFullscreen API
@ -620,7 +621,11 @@ const getPositionMapListFun = async (positionMapId) => {
pointList.value?.forEach((item) => { pointList.value?.forEach((item) => {
item.formattedData = item.dataJson ? JSON.parse(item.dataJson) : '' item.formattedData = item.dataJson ? JSON.parse(item.dataJson) : ''
// console.log(JSON.parse(item.dataJson),item.type) // console.log(JSON.parse(item.dataJson),item.type)
item.showData = item.dataJson ? (item.type == 2 ? JSON.parse(item.dataJson)[0] : JSON.parse(item.dataJson)) : null item.showData = item.dataJson
? item.type == 2
? JSON.parse(item.dataJson)[0]
: JSON.parse(item.dataJson)
: null
item.imgUrl = formatTypeImg(item.type) item.imgUrl = formatTypeImg(item.type)
if (item.type === 1) { if (item.type === 1) {
@ -806,11 +811,11 @@ const linkWebSocket = (url) => {
} }
const setIsSelect = (arr1, arr2) => { const setIsSelect = (arr1, arr2) => {
for (let i = 0; i < arr1.length; i++) { for (let i = 0; i < arr1.length; i++) {
const element = arr1[i]; const element = arr1[i]
const isExist = arr2.includes(element.id); const isExist = arr2.includes(element.id)
element.isSelect = isExist; element.isSelect = isExist
} }
return arr1; return arr1
} }
// //