|
|
|
@ -15,12 +15,14 @@ const takeTimes = ref(0) |
|
|
|
const realSales = ref('') |
|
|
|
const realSales = ref('') |
|
|
|
const aiSales = ref('') |
|
|
|
const aiSales = ref('') |
|
|
|
const showResult = ref('') |
|
|
|
const showResult = ref('') |
|
|
|
|
|
|
|
const templateDate = ref('') |
|
|
|
const result = ref(false) |
|
|
|
const result = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
// 过滤条件数据 |
|
|
|
// 过滤条件数据 |
|
|
|
const show_date = ref('2026-06-12') |
|
|
|
const show_date = ref('2026-06-12') |
|
|
|
const cinema_code = ref('11078801') |
|
|
|
const cinema_code = ref('11078801') |
|
|
|
const force = ref(false) |
|
|
|
const force = ref(false) |
|
|
|
|
|
|
|
const templateSwitch = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
// 通过异步请求获取影院列表数据 |
|
|
|
// 通过异步请求获取影院列表数据 |
|
|
|
async function get_data() { |
|
|
|
async function get_data() { |
|
|
|
@ -31,17 +33,23 @@ async function get_data() { |
|
|
|
realSales.value = '' |
|
|
|
realSales.value = '' |
|
|
|
aiSales.value = '' |
|
|
|
aiSales.value = '' |
|
|
|
showResult.value = '' |
|
|
|
showResult.value = '' |
|
|
|
|
|
|
|
templateDate.value = '' |
|
|
|
result.value = false |
|
|
|
result.value = false |
|
|
|
await get_ai_show_data(cinema_code.value, show_date.value, force.value).then(res => { |
|
|
|
await get_ai_show_data(cinema_code.value, show_date.value, force.value).then(res => { |
|
|
|
if (res.status === 'success') { |
|
|
|
if (res.status === 'success') { |
|
|
|
result.value = false |
|
|
|
result.value = false |
|
|
|
showData.value = res.data.objects |
|
|
|
|
|
|
|
prompt.value = res.data.prompt |
|
|
|
prompt.value = res.data.prompt |
|
|
|
tokens.value = res.data.take_tokens |
|
|
|
tokens.value = res.data.take_tokens |
|
|
|
takeTimes.value = res.data.take_times |
|
|
|
takeTimes.value = res.data.take_times |
|
|
|
realSales.value = res.data.real_sales |
|
|
|
realSales.value = res.data.real_sales |
|
|
|
aiSales.value = res.data.ai_sales |
|
|
|
aiSales.value = res.data.ai_sales |
|
|
|
showResult.value = res.data.result |
|
|
|
showResult.value = res.data.result |
|
|
|
|
|
|
|
templateDate.value = res.data.template_date |
|
|
|
|
|
|
|
if (templateSwitch.value) { |
|
|
|
|
|
|
|
showData.value = res.data.template_obj |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
showData.value = res.data.real_obj |
|
|
|
|
|
|
|
} |
|
|
|
console.log(showData.value, prompt.value, tokens.value, takeTimes.value, realSales.value, aiSales.value, showResult.value) |
|
|
|
console.log(showData.value, prompt.value, tokens.value, takeTimes.value, realSales.value, aiSales.value, showResult.value) |
|
|
|
formatTableData() |
|
|
|
formatTableData() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
@ -134,11 +142,11 @@ onBeforeMount( |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<el-form |
|
|
|
<el-row> |
|
|
|
:inline="true" |
|
|
|
<el-col :span="2"> |
|
|
|
class="search_form" |
|
|
|
<el-text style="align-items: center">智能排片日期</el-text> |
|
|
|
> |
|
|
|
</el-col> |
|
|
|
<el-form-item label="智能排片日期" label-width="120"> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-date-picker |
|
|
|
<el-date-picker |
|
|
|
v-model="show_date" |
|
|
|
v-model="show_date" |
|
|
|
type="date" |
|
|
|
type="date" |
|
|
|
@ -148,20 +156,29 @@ onBeforeMount( |
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
@change="get_data" |
|
|
|
@change="get_data" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-form-item> |
|
|
|
<el-col :span="10"> |
|
|
|
<el-radio-group v-model="cinema_code" @change="get_data"> |
|
|
|
<el-radio-group v-model="cinema_code" @change="get_data"> |
|
|
|
<el-radio-button value="11078801" label="11078801">保利国际影城北京凯德大峡谷店</el-radio-button> |
|
|
|
<el-radio-button value="11078801" label="11078801">保利国际影城北京凯德大峡谷店</el-radio-button> |
|
|
|
<el-radio-button value="31073101" label="31073101">SFC上影(永华店)</el-radio-button> |
|
|
|
<el-radio-button value="31073101" label="31073101">SFC上影(永华店)</el-radio-button> |
|
|
|
<el-radio-button value="33040301" label="33040301">宁波影都(东门口店)</el-radio-button> |
|
|
|
<el-radio-button value="33040301" label="33040301">宁波影都(东门口店)</el-radio-button> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
<el-text style="margin-left: 30px">强制更新数据</el-text> |
|
|
|
</el-col> |
|
|
|
</el-form-item> |
|
|
|
<el-col :span="2"> |
|
|
|
<el-form-item> |
|
|
|
<el-text>强制更新数据</el-text> |
|
|
|
<el-switch v-model="force" style="margin-left: 5px" @change="get_data"/> |
|
|
|
</el-col> |
|
|
|
</el-form-item> |
|
|
|
<el-col :span="1"> |
|
|
|
<!-- <el-button style="margin-right: 0">添加</el-button>--> |
|
|
|
<el-switch v-model="force" @change="get_data"/> |
|
|
|
</el-form> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row style="margin: 10px 0 20px -15px"> |
|
|
|
|
|
|
|
<el-col :span="6"> |
|
|
|
|
|
|
|
<el-switch v-model="templateSwitch" active-text="模板日期排片对比" inactive-text="目标日期排片对比" @change="get_data"/> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="4"> |
|
|
|
|
|
|
|
<el-text v-if="templateSwitch">模板日期:{{templateDate}}</el-text> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
<el-table :data="tableData" style="width: 100%" :span-method="objectSpanMethod"> |
|
|
|
<el-table :data="tableData" style="width: 100%" :span-method="objectSpanMethod"> |
|
|
|
<el-table-column prop="hall" label="影厅别名" min-width="160"></el-table-column> |
|
|
|
<el-table-column prop="hall" label="影厅别名" min-width="160"></el-table-column> |
|
|
|
|