From b95cf940af8e01e4eca30b2599b029c2f645bd1e Mon Sep 17 00:00:00 2001 From: charles <981744753@qq.com> Date: 星期一, 29 四月 2024 10:44:26 +0800 Subject: [PATCH] feat:创建新分支 --- src/views/dashboard/components/ReportProductionModal.vue | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/views/dashboard/components/ReportProductionModal.vue b/src/views/dashboard/components/ReportProductionModal.vue index f48da66..254cea5 100644 --- a/src/views/dashboard/components/ReportProductionModal.vue +++ b/src/views/dashboard/components/ReportProductionModal.vue @@ -1,8 +1,9 @@ <template> <div class="report-production-modal"> <BaseModal v-model="modelData" :wider="true" @close="closeModal"> - <template #title> 鐢熶骇鎶ュ伐 </template> + <template #title> {{ modelTitle }} </template> <div class="report-content"> + <div v-if="modelTitle == '鎻愪氦璐ㄦ'" class="r-c-title">鏁伴噺锛�</div> <div class="numbers">{{ inputNumber }}</div> <div class="buttons"> <BigButton @@ -24,8 +25,10 @@ import { useVModel } from '@vueuse/core' import BigButton from './BigButton.vue' import { ref, watch } from 'vue' -const props = withDefaults(defineProps<{ modelValue: boolean }>(), { - modelValue: false +const props = withDefaults(defineProps<{ modelValue: boolean; modelTitle: string; amount?: number }>(), { + modelValue: false, + modelTitle: '', + amount: 0 }) const emit = defineEmits<{ 'update:modelValue': [show: boolean] @@ -72,7 +75,7 @@ } watch(modelData, () => { if (modelData.value) { - inputNumber.value = '' + inputNumber.value = (props.amount ?? '').toString() } }) </script> @@ -81,6 +84,14 @@ .report-content { padding: 60px 0 0 230px; height: 520px; + position: relative; + .r-c-title { + position: absolute; + top: 70px; + left: 110px; + font-size: 26px; + color: #fff; + } } .numbers { height: 80px; -- Gitblit v1.8.0