操作记录:修改显示逻辑

This commit is contained in:
高云鹏 2025-01-03 13:58:50 +08:00
parent 81d46ccda5
commit 69ab3f5506

View File

@ -18,8 +18,8 @@
</div>
<div class="headerPart headerPartRight">
<span>风机编号</span>
<el-select v-model="windTurbinesCode">
<el-option v-for="item in attributeCodeList" :key="item.value" :value="item.value"></el-option>
<el-select v-model="windTurbinesCode" clearable placeholder="请选择风机">
<el-option v-for="item in attributeCodeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<el-button @click="search" :icon="Search" type="primary" class="headerBtn">查询</el-button>
@ -90,7 +90,7 @@ const shortcuts = [
]
const windTurbinesCode = ref('')
const attributeCodeList = ref<{ value: string }[]>([])
const attributeCodeList = ref<{ value: string; label: string }[]>([])
const tableData = ref<OperatingResType[]>([])
const tableColumn = [
@ -152,7 +152,8 @@ const getAirBlowerList = () => {
if (res.success) {
attributeCodeList.value = res.data.map((item: any) => {
return {
value: item.name,
value: item.deviceCode,
label: item.name,
}
})
}