|
|
@@ -57,6 +57,7 @@
|
|
|
size="sm"
|
|
|
padding="3px 12px"
|
|
|
:label="$t('dashboard_client.providers_close.schedule')"
|
|
|
+ @click="goToScheduling(p)"
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -69,14 +70,16 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
+import { useQuasar } from 'quasar';
|
|
|
import { formatCurrency } from 'src/helpers/utils';
|
|
|
+import SchedulingDialog from 'src/pages/search/components/SchedulingDialog.vue';
|
|
|
import { ref } from 'vue';
|
|
|
import { useI18n } from 'vue-i18n';
|
|
|
|
|
|
defineProps({ data: { type: Array, default: () => [] } });
|
|
|
|
|
|
+const $q = useQuasar();
|
|
|
const { t } = useI18n();
|
|
|
-
|
|
|
const currentPeriodType = ref(8);
|
|
|
const periodTypeMap = ref({
|
|
|
2: 'daily_price_2h',
|
|
|
@@ -136,6 +139,14 @@ const avatarColors = [
|
|
|
{ background: '#dfd', color: '#2a7a3b' },
|
|
|
{ background: '#ffe5cc', color: '#8a4500' },
|
|
|
];
|
|
|
+
|
|
|
+
|
|
|
+const goToScheduling = (provider) => {
|
|
|
+ $q.dialog({
|
|
|
+ component: SchedulingDialog,
|
|
|
+ componentProps: { provider },
|
|
|
+ });
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|