feat():整理分页展示数据
parent
ffaae7cf10
commit
cd0fffcb81
|
@ -36,9 +36,9 @@
|
||||||
<el-col :span="6" v-for="dataKvt in dataKvtModelList" style="margin-top: 20px; height: 300px;">
|
<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 :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-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>
|
||||||
<el-descriptions-item label="Value">{{dataKvt.dataValue}}</el-descriptions-item>
|
<el-descriptions-item label="Value">{{dataKvt.fieldsValue}}</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -81,7 +81,15 @@ export default {
|
||||||
getShowModel(dataTable.id).then(
|
getShowModel(dataTable.id).then(
|
||||||
res => {
|
res => {
|
||||||
console.log("模型:",res.data)
|
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)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue