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