驾驶舱对接

This commit is contained in:
‘937886381’
2024-05-17 10:31:47 +08:00
parent 6f0c8503c6
commit 208af7b565
24 changed files with 676 additions and 393 deletions

View File

@@ -1,18 +1,15 @@
<!--
* @Author: zhp
* @Date: 2024-05-07 10:25:10
* @LastEditTime: 2024-05-08 09:39:15
* @LastEditTime: 2024-05-16 10:42:25
* @LastEditors: zhp
* @Description:
-->
<template>
<div class="stock-monitor">
<MonitorItem
:cities="['成都', '邯郸', '株洲', '瑞昌', '佳木斯']"
:legendList="dhgList"
/>
<MonitorItem :cities="['凯盛光伏', '蚌埠兴科']" :legendList="otherList" />
<MonitorItem :cities="['成都', '邯郸', '株洲', '瑞昌', '佳木斯']" :stockDOData="stockDOData" />
<MonitorItem :cities="['凯盛光伏', '蚌埠兴科']" :stockDOData="stockDOData" />
</div>
</template>
@@ -22,23 +19,33 @@ import MonitorItemVue from "./sub/monitor/MonitorItem.vue";
export default {
name: "StockMonitor",
components: { MonitorItem: MonitorItemVue },
props: {},
props: {
stockDOData: {
type: Array,
default: [],
},
},
data() {
return {
dhgList: [
{ name: "总库存", value: 1000 },
{ name: "已用库存", value: 500 },
{ name: "剩余库存", value: 500 },
],
otherList: [
{ name: "分类1", value: 1000 },
{ name: "分类2", value: 1000 },
{ name: "分类3", value: 1000 },
{ name: "分类4", value: 1000 },
],
// dhgList: [
// { name: "总库存", value: 1000 },
// { name: "已用库存", value: 500 },
// { name: "剩余库存", value: 500 },
// ],
// otherList: [
// { name: "分类1", value: 1000 },
// { name: "分类2", value: 1000 },
// { name: "分类3", value: 1000 },
// { name: "分类4", value: 1000 },
// ],
};
},
computed: {},
computed: {
dhgList() {
console.log(this.stockDOData);
// console.log()
}
},
methods: {},
};
</script>