增加排片生成时间

main
rogersun 2 weeks ago
parent 5d9cae1fea
commit 119dad459a
  1. 12
      src/views/ai_show/index.vue

@ -11,6 +11,7 @@ const hallArray = ref([])
//
const showData = ref([])
const hallType = ref({})
const createTime = ref('')
const prompt = ref('')
const tokens = ref(0)
const takeTimes = ref(0)
@ -60,9 +61,11 @@ async function get_data() {
aiCount.value = ''
templateDate.value = ''
result.value = false
createTime.value = ''
force.value = compareSwitch.value === 'new'
await get_ai_show_data(cinema_code.value, show_date.value, force.value).then(res => {
if (res.status === 'success') {
console.log(res)
result.value = false
prompt.value = res.data.prompt
tokens.value = res.data.take_tokens
@ -74,6 +77,7 @@ async function get_data() {
hallType.value = res.data.hall_type
realCount.value = res.data.real_count
aiCount.value = res.data.ai_count
createTime.value = res.data.create_time
if (compareSwitch.value === 'template') {
showData.value = res.data.template_obj
} else if (compareSwitch.value === 'new') {
@ -189,7 +193,7 @@ onBeforeMount(
<template>
<el-row align="middle">
<el-col :span="2">
<el-text>智能排片日期</el-text>
<el-text>排片目标日期</el-text>
</el-col>
<el-col :span="3">
<el-date-picker
@ -210,6 +214,12 @@ onBeforeMount(
<el-radio-button value="33040301" label="33040301">宁波影都东门口店</el-radio-button>
</el-radio-group>
</el-col>
<el-col :span="3">
<el-text>智能排片生成时间:</el-text>
</el-col>
<el-col :span="3">
<el-text>{{createTime}}</el-text>
</el-col>
</el-row>
<el-row style="margin: 10px 0 20px 14px" align="middle">
<el-col span="2">

Loading…
Cancel
Save