Commit 7f38b093 authored by liwei's avatar liwei

修改了AI无人站的列表stationName的问题

parent 80c534bf
......@@ -80,12 +80,12 @@ function getDataByParams(){
Page.rows = res.pageSize
})
}
function getName(name){
if(AlarmData && AlarmData.value.length > 0 && name !== undefined && options && options.value.length>0) {
const option = options.value.find(item => item.stationId === name);
return option.stationName
}
}
// function getName(name){
// if(AlarmData && AlarmData.value.length > 0 && name !== undefined && options && options.value.length>0) {
// const option = options.value.find(item => item.stationId === name);
// return option.stationName
// }
// }
getEnterprise();
function getEnterprise(){
const result = store.getters.getEnterprise();
......@@ -149,9 +149,9 @@ getSupplys()
:row-class-name="tableBodyClass"
>
<el-table-column type="index" label="序号" align="center" width="100"/>
<el-table-column prop="stationId" align="center" label="换热站" sortable>
<el-table-column prop="stationName" align="center" label="换热站" sortable>
<template #default="scope">
<span>{{getName(scope.row.stationId) || '-' }}</span>
<span>{{scope.row.stationName || '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="srcParentIndex" align="center" label="设施名称" sortable/>
......
......@@ -91,12 +91,12 @@ function getDataByParams() {
})
}
function getName(name) {
if (HistoryData && HistoryData.value.length > 0 && name !== undefined && options && options.value.length > 0) {
const option = options.value.find(item => item.stationId === name);
return option.stationName
}
}
// function getName(name) {
// if (HistoryData && HistoryData.value.length > 0 && name !== undefined && options && options.value.length > 0) {
// const option = options.value.find(item => item.stationId === name);
// return option.stationName
// }
// }
getEnterprise();
......@@ -172,9 +172,9 @@ getSupplys()
:row-class-name="tableBodyClass"
>
<el-table-column type="index" label="序号" align="center" width="100"/>
<el-table-column prop="stationId" align="center" label="换热站名称" sortable>
<el-table-column prop="stationName" align="center" label="换热站名称" sortable>
<template #default="scope">
<span>{{ getName(scope.row.stationId) || '-' }}</span>
<span>{{ scope.row.stationName || '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="deviceIndexCode" align="center" label="光纤设备" sortable/>
......
......@@ -83,12 +83,12 @@ function getDataByParams() {
})
}
function getName(name) {
if (data && data.value.length > 0 && name !== undefined && options && options.value.length > 0) {
const option = options.value.find(item => item.stationId === name);
return option.stationName
}
}
// function getName(name) {
// if (data && data.value.length > 0 && name !== undefined && options && options.value.length > 0) {
// const option = options.value.find(item => item.stationId === name);
// return option.stationName
// }
// }
const enterpriseId = ref();
const loading = ref(true);
......@@ -175,9 +175,9 @@ getSupplys()
:row-class-name="tableBodyClass"
>
<el-table-column type="index" label="序号" align="center" width="100"/>
<el-table-column prop="stationId" align="center" label="换热站名称" sortable>
<el-table-column prop="stationName" align="center" label="换热站名称" sortable>
<template #default="scope">
<span>{{ getName(scope.row.stationId) || '-' }}</span>
<span>{{ scope.row.stationName || '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="deviceIndexCode" align="center" label="光纤设备" sortable/>
......
......@@ -82,12 +82,12 @@ function getDataByParams() {
})
}
function getName(name) {
if (TransTempAlarmData && TransTempAlarmData.value.length > 0 && name !== undefined && options && options.value.length > 0) {
const option = options.value.find(item => item.stationId === name);
return option.stationName
}
}
// function getName(name) {
// if (TransTempAlarmData && TransTempAlarmData.value.length > 0 && name !== undefined && options && options.value.length > 0) {
// const option = options.value.find(item => item.stationId === name);
// return option.stationName
// }
// }
function getDataNew(item) {
getTransListAlarmData(item).then(res => {
......@@ -171,9 +171,9 @@ getSupplys()
:row-class-name="tableBodyClass"
>
<el-table-column type="index" label="序号" align="center" width="100"/>
<el-table-column prop="stationId" label="换热站" align="center" sortable>
<el-table-column prop="stationName" label="换热站" align="center" sortable>
<template #default="scope">
<span>{{ getName(scope.row.stationId) || '-' }}</span>
<span>{{ scope.row.stationName || '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="relateDeviceId" label="设备名称" align="center" sortable/>
......
......@@ -85,12 +85,12 @@ function getDataByParams() {
})
}
function getName(name) {
if (TransTempHistoryData && TransTempHistoryData.value.length > 0 && name !== undefined && options && options.value.length > 0) {
const option = options.value.find(item => item.stationId === name);
return option.stationName
}
}
// function getName(name) {
// if (TransTempHistoryData && TransTempHistoryData.value.length > 0 && name !== undefined && options && options.value.length > 0) {
// const option = options.value.find(item => item.stationId === name);
// return option.stationName
// }
// }
function getDataNew(item) {
getTransListHistoryData(item).then(res => {
......@@ -174,9 +174,9 @@ getSupplys()
:row-class-name="tableBodyClass"
>
<el-table-column type="index" label="序号" align="center" width="100"/>
<el-table-column prop="stationId" align="center" label="换热站名称" sortable>
<el-table-column prop="stationName" align="center" label="换热站名称" sortable>
<template #default="scope">
<span>{{ getName(scope.row.stationId) || '-' }}</span>
<span>{{ scope.row.stationName || '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="deviceName" align="center" label="设备名称" sortable/>
......
......@@ -86,12 +86,12 @@ function getDataByParams() {
})
}
function getName(name) {
if (TransTempNewData && TransTempNewData.value.length > 0 && name !== undefined && options && options.value.length > 0) {
const option = options.value.find(item => item.stationId === name);
return option.stationName
}
}
// function getName(name) {
// if (TransTempNewData && TransTempNewData.value.length > 0 && name !== undefined && options && options.value.length > 0) {
// const option = options.value.find(item => item.stationId === name);
// return option.stationName
// }
// }
function getDataNew(item) {
getTransListNewData(item).then(res => {
......@@ -175,9 +175,9 @@ getSupplys()
:row-class-name="tableBodyClass"
>
<el-table-column type="index" label="序号" align="center" width="100"/>
<el-table-column prop="stationId" align="center" label="换热站名称" sortable>
<el-table-column prop="stationName" align="center" label="换热站名称" sortable>
<template #default="scope">
<span>{{ getName(scope.row.stationId) || '-' }}</span>
<span>{{ scope.row.stationName || '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="deviceName" align="center" label="设备名称" sortable/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment