fix bugs
parent
479c2d497c
commit
7b8c17de6f
|
|
@ -190,7 +190,8 @@ const getPartminBusSeedsRate = async (date?: Date) => {
|
|||
let total = 0
|
||||
const { data = [] } = await fetchPartminBusSeedsRate({
|
||||
year: y || yearTwo.value,
|
||||
part: partMin.value
|
||||
// part: partMin.value
|
||||
part: part.value
|
||||
})
|
||||
optionMin.value.series[0].data = data.map((item: any) => {
|
||||
total += item.amount
|
||||
|
|
@ -265,6 +266,12 @@ const handleShowSupplier = () => {
|
|||
|
||||
init()
|
||||
|
||||
const getMaxBusAndMinBusSeedsRate = (val) => {
|
||||
console.log('🚀 ~ file: CD.vue:269 ~ val:', val)
|
||||
getPartminBusSeedsRate()
|
||||
getPartmaxBusSeedsRate()
|
||||
}
|
||||
|
||||
function disabledDate(date: Date) {
|
||||
return date.getTime() > Date.now()
|
||||
}
|
||||
|
|
@ -464,7 +471,7 @@ const beforeUpload = (file: any) => {
|
|||
:disabled-date="disabledDate"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
<!-- <div
|
||||
style="--el-fill-color-blank: transparent; --el-bg-color: #37abff40"
|
||||
class="absolute left-10px top-8px h-46px items-center ipt_year"
|
||||
>
|
||||
|
|
@ -481,7 +488,7 @@ const beforeUpload = (file: any) => {
|
|||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="mt-50px w-full h-300px relative">
|
||||
<VChart key="yyyxx3" :option="optionMin" autoresize></VChart>
|
||||
<!-- <img
|
||||
|
|
@ -504,7 +511,7 @@ const beforeUpload = (file: any) => {
|
|||
class="absolute right-10px top-8px h-46px items-center ipt_year"
|
||||
>
|
||||
<el-select
|
||||
@change="getPartmaxBusSeedsRate"
|
||||
@change="getMaxBusAndMinBusSeedsRate"
|
||||
v-model="part"
|
||||
placeholder="Select"
|
||||
style="width: 100px"
|
||||
|
|
|
|||
Loading…
Reference in New Issue