操作记录:修改显示逻辑
This commit is contained in:
parent
81d46ccda5
commit
69ab3f5506
@ -18,8 +18,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="headerPart headerPartRight">
|
<div class="headerPart headerPartRight">
|
||||||
<span>风机编号</span>
|
<span>风机编号</span>
|
||||||
<el-select v-model="windTurbinesCode">
|
<el-select v-model="windTurbinesCode" clearable placeholder="请选择风机">
|
||||||
<el-option v-for="item in attributeCodeList" :key="item.value" :value="item.value"></el-option>
|
<el-option v-for="item in attributeCodeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<el-button @click="search" :icon="Search" type="primary" class="headerBtn">查询</el-button>
|
<el-button @click="search" :icon="Search" type="primary" class="headerBtn">查询</el-button>
|
||||||
@ -90,7 +90,7 @@ const shortcuts = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
const windTurbinesCode = ref('')
|
const windTurbinesCode = ref('')
|
||||||
const attributeCodeList = ref<{ value: string }[]>([])
|
const attributeCodeList = ref<{ value: string; label: string }[]>([])
|
||||||
|
|
||||||
const tableData = ref<OperatingResType[]>([])
|
const tableData = ref<OperatingResType[]>([])
|
||||||
const tableColumn = [
|
const tableColumn = [
|
||||||
@ -152,7 +152,8 @@ const getAirBlowerList = () => {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
attributeCodeList.value = res.data.map((item: any) => {
|
attributeCodeList.value = res.data.map((item: any) => {
|
||||||
return {
|
return {
|
||||||
value: item.name,
|
value: item.deviceCode,
|
||||||
|
label: item.name,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user