新增页面
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="coreItem">
|
||||
<div class="item" v-for="(item, index) in itemList" :key="index">
|
||||
<div @click="handleRoute(item.path)" class="item" v-for="(item, index) in itemList" :key="index">
|
||||
<div class="unit">{{ item.unit }}</div>
|
||||
<div class="item-content">
|
||||
<div class="content-wrapper">
|
||||
@@ -60,15 +60,22 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleRoute(path) {
|
||||
this.$router.push({
|
||||
path:path
|
||||
})
|
||||
},
|
||||
transformData(rawData) {
|
||||
const dataMap = [
|
||||
{
|
||||
key: 'increase',
|
||||
unit: '本月增效额·万元'
|
||||
unit: '本月增效额·万元',
|
||||
path:'/procurementGainAnalysis/procurementGainAnalysis'
|
||||
},
|
||||
{
|
||||
key: 'totalIncrease',
|
||||
unit: '累计增效额·万元'
|
||||
unit: '累计增效额·万元',
|
||||
path: '/procurementGainAnalysis/procurementGainAnalysis'
|
||||
}
|
||||
];
|
||||
|
||||
@@ -80,7 +87,8 @@ export default {
|
||||
unit: itemInfo.unit,
|
||||
targetValue: rawItem.target || 0,
|
||||
currentValue: rawItem.real || 0,
|
||||
progress: progress
|
||||
progress: progress,
|
||||
path: itemInfo.path
|
||||
};
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user