| | |
| | | export default { |
| | | async created() { |
| | | const res = await getBanner(); |
| | | this.cardData[0].number = res.data.deviceAmount; |
| | | this.cardData[1].number = res.data.newDevice; |
| | | this.cardData[2].number = res.data.todayAdded; |
| | | }, |
| | | data() { |
| | | return { |
| | | cardData: [ |
| | | { number: 233, info: "设备总量", color: "#4E94FF" }, |
| | | { number: 34, info: "本月新增", color: "#FFAA44" }, |
| | | { number: 45, info: "今日预警", color: "#FF6464" }, |
| | | { number: 0, info: "设备总量", color: "#4E94FF" }, |
| | | { number: 0, info: "本月新增", color: "#FFAA44" }, |
| | | { number: 0, info: "今日预警", color: "#FF6464" }, |
| | | ], |
| | | cardImage: [ |
| | | "/images/InternetDevice/Group 441.png", |