diff --git a/src/api/zeroPrices.js b/src/api/zeroPrices.js index a7db41a..c69efd1 100644 --- a/src/api/zeroPrices.js +++ b/src/api/zeroPrices.js @@ -15,26 +15,13 @@ export const useZeroPrices = () => { await apiClient.delete('/merch/zeroprices', list) } catch (error) { - console.log('Delete target zero prices error: ', error) + console.log('Delete zero prices error: ', error) throw error } } - const deleteZeroPricesPeriod = async (start, end) => { - const params = new URLSearchParams({ start, end }).toString() - const url = `/merch/zeroprices/period${params ? `?${params}` : ''}` - const response = await apiClient.delete(url) - - if (response.status === 200) { - return response - } else { - console.log('Delete period select zero prices error: ', response) - } - } - return { getZeroPrices, deleteZeroPrices, - deleteZeroPricesPeriod, } } diff --git a/src/components/ChartBlock.vue b/src/components/ChartBlock.vue index 11bd874..96a5243 100644 --- a/src/components/ChartBlock.vue +++ b/src/components/ChartBlock.vue @@ -13,7 +13,6 @@ import { } from 'chart.js' import { Line } from 'vue-chartjs' import 'chartjs-adapter-date-fns' -import { originColors } from '@/services/colors.js' ChartJS.register( Title, @@ -34,6 +33,11 @@ const props = defineProps({ }, }) +const originColors = { + surugaya: '#2d3081', + mandarake: '#924646', +} + const chartData = ref({ datasets: [], }) diff --git a/src/services/colors.js b/src/services/colors.js deleted file mode 100644 index c337f2a..0000000 --- a/src/services/colors.js +++ /dev/null @@ -1,4 +0,0 @@ -export const originColors = { - surugaya: '#2d3081', - mandarake: '#924646', -}; diff --git a/src/views/ZeroPricesView.vue b/src/views/ZeroPricesView.vue index 82d41a5..6e5820e 100644 --- a/src/views/ZeroPricesView.vue +++ b/src/views/ZeroPricesView.vue @@ -1,20 +1,69 @@ - + diff --git a/src/views/ZeroPricesView/PeriodSelectTab.vue b/src/views/ZeroPricesView/PeriodSelectTab.vue deleted file mode 100644 index 4239f15..0000000 --- a/src/views/ZeroPricesView/PeriodSelectTab.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - - - diff --git a/src/views/ZeroPricesView/TargetZeroesTab.vue b/src/views/ZeroPricesView/TargetZeroesTab.vue deleted file mode 100644 index ba71ba5..0000000 --- a/src/views/ZeroPricesView/TargetZeroesTab.vue +++ /dev/null @@ -1,71 +0,0 @@ - - - - - diff --git a/src/views/ZeroPricesView/ZeroPriceCard.vue b/src/views/ZeroPricesView/ZeroPriceCard.vue index 32bd31f..44236ee 100644 --- a/src/views/ZeroPricesView/ZeroPriceCard.vue +++ b/src/views/ZeroPricesView/ZeroPriceCard.vue @@ -1,7 +1,4 @@ @@ -61,11 +49,4 @@ const currentOriginColor = computed(() => { gap: 12px; border: 1px solid #e0e0e0; } - -.bordered { - border: 1px solid; - border-radius: 4px; - padding: 2px; - margin: 3px; -}