feat:经侦模型页面修改,测试问题修改
parent
d7994b7538
commit
9ca4c9ae79
Binary file not shown.
After Width: | Height: | Size: 915 B |
Binary file not shown.
After Width: | Height: | Size: 127 KiB |
@ -0,0 +1,56 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<vxe-grid v-bind="gridOptions" style="margin-top: 20px;" auto-resize />
|
||||||
|
<div style="text-align: center">
|
||||||
|
<cs-page
|
||||||
|
:page.sync="queryForm.page"
|
||||||
|
:limit.sync="queryForm.size"
|
||||||
|
:total="queryForm.total"
|
||||||
|
@pagination="fetchData"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import mixin from '@/views/mixin'
|
||||||
|
import { queryIndexData } from '@/api/indexRule'
|
||||||
|
export default {
|
||||||
|
name: 'CardTable',
|
||||||
|
mixins: [mixin],
|
||||||
|
props: { // 接收父组件的数据
|
||||||
|
indexType: { type: String, default: '' }
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 表格配置
|
||||||
|
gridOptions: {
|
||||||
|
...mixin.data().gridOptions,
|
||||||
|
columns: [
|
||||||
|
{ title: '序号', type: 'seq', width: '50px' },
|
||||||
|
{ title: '指标名称', field: 'name' },
|
||||||
|
{ title: '指标类别', field: 'indexTypeName', width: '150px' },
|
||||||
|
{ title: '指标分数', field: 'indexScore', width: '150px', sortable: true },
|
||||||
|
{ title: '原子指标数量', field: 'atomicIndexNum', width: '150px' },
|
||||||
|
{ title: '最新时间', field: 'updateTime', width: '150px' }
|
||||||
|
],
|
||||||
|
data: []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.fetchData()
|
||||||
|
this.tableHeight(540)
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
fetchData() {
|
||||||
|
queryIndexData({
|
||||||
|
indexType: this.indexType
|
||||||
|
}, this.queryForm.page, this.queryForm.size).then(res => {
|
||||||
|
this.gridOptions.data = res.data.result
|
||||||
|
this.queryForm.total = res.data.total
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
Loading…
Reference in New Issue