From 424b0e8257dff5ef4473ddc85be3d4abfdbf11f9 Mon Sep 17 00:00:00 2001 From: rogersun Date: Mon, 13 Jul 2026 17:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=B9=E9=94=99=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai_show/index.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/ai_show/index.vue b/src/views/ai_show/index.vue index ca3b098..5ea35ee 100644 --- a/src/views/ai_show/index.vue +++ b/src/views/ai_show/index.vue @@ -46,8 +46,10 @@ const getDefaultDate = () => { return `${year}-${month}-${day}` } const show_date = ref(`2026-06-12`) +const show_date_old = ref(`2026-06-12`) show_date.value = getDefaultDate() const cinema_code = ref('11078801') +const cinema_code_old = ref('11078801') const force = ref(true) const templateSwitch = ref(false) const compareSwitch = ref('new') // template target new @@ -89,6 +91,12 @@ async function get_data() { if (compareSwitch.value !== 'new') { test_date.value = '' } + if (show_date.value !== show_date_old.value) { + test_date.value = '' + } + if (cinema_code.value !== cinema_code_old.value) { + test_date.value = '' + } test_date_option.value = [] await get_ai_show_data(cinema_code.value, show_date.value, force.value, test_date.value).then(res => { if (res.status === 'success') { @@ -123,6 +131,8 @@ async function get_data() { console.log(showData.value, prompt.value, tokens.value, takeTimes.value, realSales.value, aiSales.value, showResult.value) formatTableData() loading.value = false + cinema_code_old.value = cinema_code.value + show_date_old.value = show_date.value get_test_date() } else { result.value = true