假数据修改

This commit is contained in:
bb_pan 2026-02-09 11:29:33 +08:00
parent 1ba8cd1024
commit b46c1744ee
2 changed files with 49 additions and 7 deletions

View File

@ -55,7 +55,13 @@ export default {
},
data() {
return {
tableData: [],
tableData: [
{ name: '安徽送变电工程有限公司', proportion: 81.06, turnoverRate: 4.3 },
{ name: '池州华光电力工程有限公司', proportion: 72.31, turnoverRate: 3.4 },
{ name: '安徽莱特实业集团有限公司', proportion: 65.89, turnoverRate: 2.9 },
{ name: '滁州东源电力工程有限公司', proportion: 60.35, turnoverRate: 2.2 },
{ name: '安徽三环电力工程集团有限公司', proportion: 57.78, turnoverRate: 2.2 },
],
showTab: 1,
sort1: 'proportion_asc',
sort2: 'turnoverRate_asc',
@ -77,7 +83,7 @@ export default {
try {
const res = await getDeptEquipmentApi({ sort: this.showTab === 1 ? this.sort1 : this.sort2 })
console.log('🚀 ~ 各单位装备在用率情况 ~ res:', res)
this.tableData = res.data || []
// this.tableData = res.data || []
// if (this.tableData.length > 5) {
// this.tableData = this.tableData.slice(0, 5)
// }

View File

@ -101,7 +101,43 @@ export default {
proNum: 0,
equipNum: 0,
tabIndex: '线路',
tableData: [],
tableData: [
{
projectName: '安徽亳州蒙城县板桥~王集Π入毕集35kV线路新建工程-架空线路工程',
inUser: 6,
voltage: 35,
scale: 12.92,
usage: 0,
},
{
projectName: '桐城抽蓄电站~ 文都500千伏线路工程',
inUser: 10,
voltage: 220,
scale: 28.3,
usage: 0,
},
{
projectName: '平圩电厂四期淮南特高压变电站1000千伏线路工程',
inUser: 12,
voltage: 500,
scale: 77,
usage: 0,
},
{
projectName: '垓下-振兴110kV线路工程',
inUser: 13,
voltage: 1000,
scale: 4.83,
usage: 0,
},
{
projectName: '安徽亳州蒙城县板桥~王集Π入毕集35kV线路新建工程-架空线路工程',
inUser: 9,
voltage: 110,
scale: 46.4,
usage: 0,
},
],
sort: 'asc',
}
},
@ -131,10 +167,10 @@ export default {
sort: this.sort
}
const res = await getEquipmentUseApi(params)
this.tableData = res.data.equipmentUse || []
if (this.tableData.length > 5) {
this.tableData = this.tableData.slice(0, 5)
}
// this.tableData = res.data.equipmentUse || []
// if (this.tableData.length > 5) {
// this.tableData = this.tableData.slice(0, 5)
// }
this.proNum = res.data.proNum || 0
this.equipNum = res.data.equipmentNum || 0
} catch (error) {