实时数据页面修改
This commit is contained in:
parent
c59fc08c5f
commit
9124d4b745
@ -123,7 +123,8 @@ const tableItem0: any = [
|
|||||||
prop: 'code',
|
prop: 'code',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
custom: 'default',
|
custom: 'default',
|
||||||
name:''
|
name:'',
|
||||||
|
title: '风机列表'
|
||||||
}]
|
}]
|
||||||
const tableItem1: any = [
|
const tableItem1: any = [
|
||||||
{
|
{
|
||||||
@ -331,17 +332,24 @@ const selectList=ref([])
|
|||||||
const getSel = () => {
|
const getSel = () => {
|
||||||
debugger
|
debugger
|
||||||
selectList.value=[]
|
selectList.value=[]
|
||||||
tableColumn.value.forEach(item => {
|
try {
|
||||||
if (item.prop) {
|
if (tableColumn.value && Array.isArray(tableColumn.value)) {
|
||||||
if(item.prop!='code'){
|
for (const item of tableColumn.value) {
|
||||||
selectList.value.push({
|
if (item && item.prop && item.prop !== 'code') {
|
||||||
attributeName: item.title,
|
if(item.title!==undefined){
|
||||||
attributeCode: item.name,
|
selectList.value.push({
|
||||||
});
|
attributeName: item.title || '',
|
||||||
}
|
attributeCode: item.name || '',
|
||||||
|
unit: item.unit || '',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
} catch (error) {
|
||||||
|
console.error('Error in tableColumn processing:', error);
|
||||||
|
}
|
||||||
//tableRef.value.clearSelection()
|
//tableRef.value.clearSelection()
|
||||||
if (selectList.value.length > 0) {
|
if (selectList.value.length > 0) {
|
||||||
//setTimeout(()=>{
|
//setTimeout(()=>{
|
||||||
@ -601,14 +609,11 @@ const downFun=(tableColumn,tableData)=>{
|
|||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
autoUpdateInterval.value && clearInterval(autoUpdateInterval.value)
|
autoUpdateInterval.value && clearInterval(autoUpdateInterval.value)
|
||||||
autoUpdateInterval.value = null
|
autoUpdateInterval.value = null
|
||||||
//selectList.value=[]
|
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
deviceQuery(devicelistData)
|
deviceQuery(devicelistData)
|
||||||
//queryListData.pageSize=200
|
|
||||||
modelAttributeList(queryListData)
|
modelAttributeList(queryListData)
|
||||||
//tableRef.value.toggleRowSelection(modalTbleData.value[0], true);
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user