Commit 008672c7 authored by Mac's avatar Mac

1

parent 634eb097
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</VueApexCharts> </VueApexCharts>
</div> </div>
<div class="bottom flex justify-between content-between"> <div class="bottom flex justify-between content-between">
<div class="sell-block" :class="{'active-sell':sellBlock==1}" @click="ckeckSell(1)"> <div class="sell-block" :class="{'active-sell':sellBlock==1}" @click="ckeckSell(1,'新名单','AddCount')">
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<img src="../../assets/images/newindex/sell1.png" style="width:26px;height:26px"> <img src="../../assets/images/newindex/sell1.png" style="width:26px;height:26px">
<q-btn size="sm" dense flat round icon="more_horiz"> <q-btn size="sm" dense flat round icon="more_horiz">
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
data() { data() {
return { return {
series: [{ series: [{
name: "新名单", name: "新名单",
data: [] data: []
}], }],
chartOptions: { chartOptions: {
...@@ -248,13 +248,23 @@ ...@@ -248,13 +248,23 @@
getPersionNumData() { getPersionNumData() {
queryPersonnelStatic({}).then(res => { queryPersonnelStatic({}).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
console.log(251,res.Data)
this.PersionData = res.Data; this.PersionData = res.Data;
this.series[0].data = res.Data.dayList this.ckeckSell(1,'新名单','AddCount')
} }
}); });
}, },
ckeckSell(n) { ckeckSell(n,name,field) {
this.sellBlock = n this.sellBlock = n;
this.series[0].name=name;
this.series[0].data=[]
this.PersionData.dayList.map(item=>{
const obj={
x:item.x,
y:item[field]
}
this.series[0].data.push(obj)
})
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment