增加使用模型的展示

main
rogersun 2 weeks ago
parent 119dad459a
commit 0865e2ffbf
  1. 22
      src/views/ai_show/index.vue

@ -23,6 +23,8 @@ const showResult = ref('')
const templateDate = ref('') const templateDate = ref('')
const result = ref(false) const result = ref(false)
const loading = ref(false) const loading = ref(false)
const think = ref('')
const aiModel = ref('')
// //
// //
@ -62,6 +64,8 @@ async function get_data() {
templateDate.value = '' templateDate.value = ''
result.value = false result.value = false
createTime.value = '' createTime.value = ''
think.value = ''
aiModel.value = ''
force.value = compareSwitch.value === 'new' force.value = compareSwitch.value === 'new'
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') {
@ -78,6 +82,8 @@ async function get_data() {
realCount.value = res.data.real_count realCount.value = res.data.real_count
aiCount.value = res.data.ai_count aiCount.value = res.data.ai_count
createTime.value = res.data.create_time createTime.value = res.data.create_time
think.value = res.data.think
aiModel.value = res.data.ai_model
if (compareSwitch.value === 'template') { if (compareSwitch.value === 'template') {
showData.value = res.data.template_obj showData.value = res.data.template_obj
} else if (compareSwitch.value === 'new') { } else if (compareSwitch.value === 'new') {
@ -266,6 +272,14 @@ onBeforeMount(
<el-row style="margin-top: 30px"> <el-row style="margin-top: 30px">
<el-text style="font-weight: bold" size="large">相关数据</el-text> <el-text style="font-weight: bold" size="large">相关数据</el-text>
</el-row> </el-row>
<el-row>
<el-col :span="3" align="right">
<el-text style="font-weight: bold">调用模型</el-text>
</el-col>
<el-col :span="4" align="left">
<el-text>{{ aiModel }}</el-text>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="3" align="right"> <el-col :span="3" align="right">
<el-text style="font-weight: bold">智能排片预估销售额</el-text> <el-text style="font-weight: bold">智能排片预估销售额</el-text>
@ -325,6 +339,14 @@ onBeforeMount(
<el-text>{{ prompt }}</el-text> <el-text>{{ prompt }}</el-text>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="3" align="right">
<el-text style="font-weight: bold">AI思考过程</el-text>
</el-col>
<el-col :span="21" align="left">
<el-text>{{ think }}</el-text>
</el-col>
</el-row>
</template> </template>

Loading…
Cancel
Save