提交 438c5efa authored 作者: 王鹏飞's avatar 王鹏飞

支持”AI数据分析实验“和”人工智能应用实验“实验类型

上级 af8147cb
......@@ -8,3 +8,4 @@ VITE_X_LEARNING_URL=https://x-learning.ezijing.com
VITE_EXAM_SHOW_URL=https://exam-show.ezijing.com
VITE_SWSJFXS_LOGIN_URL=https://login.ezijing.com/swsjfxs/login/index
VITE_SAAS_BI_URL=https://saas-bi.ezijing.com/data/dashboard
VITE_SAAS_AI_URL=https://saas-ai.ezijing.com
......@@ -90,6 +90,12 @@ const reportRulesVisible = $ref(false)
const dmlURL = computed(() => {
return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}?experiment_id=${props.id}`
})
const biURL = computed(() => {
return `${import.meta.env.VITE_BI_URL}?experiment_id=${props.id}`
})
const aiURL = computed(() => {
return `${import.meta.env.VITE_AI_URL}?experiment_id=${props.id}`
})
// 复制
let copyDialogVisible = $ref(false)
......@@ -118,6 +124,12 @@ function handleUpdateGradeRules() {
<el-button type="primary" v-if="detail?.type === '4'">
<a :href="dmlURL" target="_blank">进入实验平台</a>
</el-button>
<el-button type="primary" v-if="detail?.type === '5'">
<a :href="biURL" target="_blank">进入BI实验平台</a>
</el-button>
<el-button type="primary" v-if="detail?.type === '6'">
<a :href="aiURL" target="_blank">进入AI实验平台</a>
</el-button>
<el-button type="primary" @click="gradeRulesVisible = true">查看成绩规则</el-button>
<el-button type="primary" @click="reportRulesVisible = true">查看报告规则</el-button>
<el-button type="primary" @click="handleCopy()">复制实验</el-button>
......
......@@ -108,7 +108,9 @@ const LAB_URL: any = computed(() => {
if (experimentInfo?.type === 4)
return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}?experiment_id=${form.experiment_id}`
if (experimentInfo?.type === 5)
return `${appConfig.dmlURL || import.meta.env.VITE_SAAS_BI_URL}?experiment_id=${form.experiment_id}`
return `${import.meta.env.VITE_SAAS_BI_URL}?experiment_id=${form.experiment_id}`
if (experimentInfo?.type === 6)
return `${import.meta.env.VITE_SAAS_AI_URL}?experiment_id=${form.experiment_id}`
return `${appConfig.dmlURL || import.meta.env.VITE_LAB_URL}&token=${cookies.get('TGC')}`
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论