|
|
|
@ -30,6 +30,7 @@ const loading = ref(false) |
|
|
|
const think = ref('') |
|
|
|
const think = ref('') |
|
|
|
const aiModel = ref('') |
|
|
|
const aiModel = ref('') |
|
|
|
const promptVersion = ref('') |
|
|
|
const promptVersion = ref('') |
|
|
|
|
|
|
|
const htmlView = ref('') |
|
|
|
|
|
|
|
|
|
|
|
// 日期控件参数 |
|
|
|
// 日期控件参数 |
|
|
|
const calendarStart = ref('') |
|
|
|
const calendarStart = ref('') |
|
|
|
@ -106,6 +107,7 @@ async function get_data(type) { |
|
|
|
force.value = compareSwitch.value === 'new' |
|
|
|
force.value = compareSwitch.value === 'new' |
|
|
|
test_date_option.value = [] |
|
|
|
test_date_option.value = [] |
|
|
|
promptVersion.value = '' |
|
|
|
promptVersion.value = '' |
|
|
|
|
|
|
|
htmlView.value = '' |
|
|
|
console.log('get_test_date-type', type) |
|
|
|
console.log('get_test_date-type', type) |
|
|
|
if (set_default.includes(type)) { |
|
|
|
if (set_default.includes(type)) { |
|
|
|
test_date.value = '' |
|
|
|
test_date.value = '' |
|
|
|
@ -128,6 +130,10 @@ async function get_data(type) { |
|
|
|
think.value = res.data.think |
|
|
|
think.value = res.data.think |
|
|
|
aiModel.value = res.data.ai_model |
|
|
|
aiModel.value = res.data.ai_model |
|
|
|
promptVersion.value = res.data.prompt_version |
|
|
|
promptVersion.value = res.data.prompt_version |
|
|
|
|
|
|
|
if (res.data.report) { |
|
|
|
|
|
|
|
htmlView.value = res.data.report |
|
|
|
|
|
|
|
console.log('htmlView', htmlView.value) |
|
|
|
|
|
|
|
} |
|
|
|
if (compareSwitch.value === 'template') { |
|
|
|
if (compareSwitch.value === 'template') { |
|
|
|
showData.value = res.data.template_obj |
|
|
|
showData.value = res.data.template_obj |
|
|
|
compareCount.value = res.data.template_count |
|
|
|
compareCount.value = res.data.template_count |
|
|
|
@ -534,10 +540,10 @@ onBeforeMount( |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="3" align="right"> |
|
|
|
<el-col :span="3" align="right"> |
|
|
|
<el-text style="font-weight: bold">AI返回结果:</el-text> |
|
|
|
<el-text style="font-weight: bold">报告:</el-text> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="21" align="left"> |
|
|
|
<el-col :span="21" align="left"> |
|
|
|
<el-text>{{ showResult }}</el-text> |
|
|
|
<iframe :srcdoc="htmlView" style="width: 100%; height: 600px; border: 1px solid #ccc; border-radius: 20px"></iframe> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
@ -556,6 +562,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>{{ showResult }}</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">AI思考过程:</el-text> |
|
|
|
<el-text style="font-weight: bold">AI思考过程:</el-text> |
|
|
|
|