feat():整理分页展示数据

master
20300 2024-05-13 09:59:15 +08:00
parent ffaae7cf10
commit cd0fffcb81
1 changed files with 11 additions and 3 deletions

View File

@ -36,9 +36,9 @@
<el-col :span="6" v-for="dataKvt in dataKvtModelList" style="margin-top: 20px; height: 300px;">
<el-descriptions :title="dataKvt.fieldsName" direction="vertical" border :column="1" style="max-height: 200px; overflow-y: auto;">
<el-descriptions-item label="Type" style="max-height: 180px; overflow-y: auto;">
<el-tag size="small">{{dataKvt.javaType}}</el-tag>
<el-tag size="small">{{dataKvt.fieldsType}}</el-tag>
</el-descriptions-item>
<el-descriptions-item label="Value">{{dataKvt.dataValue}}</el-descriptions-item>
<el-descriptions-item label="Value">{{dataKvt.fieldsValue}}</el-descriptions-item>
</el-descriptions>
</el-col>
</el-row>
@ -81,7 +81,15 @@ export default {
getShowModel(dataTable.id).then(
res => {
console.log("模型:",res.data)
this.dataKvtModelList = res.data
let data = res.data;
this.dataKvtModelList = []
data.forEach(d => {
d.forEach(da => {
this.dataKvtModelList.push(da)
})
})
console.log("结果",this.dataKvtModelList)
}
)
},