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

chore: 新增直播平台入口

上级 5dabc6d8
...@@ -9,4 +9,5 @@ VITE_EXAM_SHOW_URL=https://exam-show.zijing.chat ...@@ -9,4 +9,5 @@ VITE_EXAM_SHOW_URL=https://exam-show.zijing.chat
VITE_SWSJFXS_LOGIN_URL=http://172.16.3.203:1001/swsjfxs/login/index VITE_SWSJFXS_LOGIN_URL=http://172.16.3.203:1001/swsjfxs/login/index
VITE_SYS_FLAG=chat VITE_SYS_FLAG=chat
VITE_STATIC_URL=https://saas-lab-api VITE_STATIC_URL=https://saas-lab-api
VITE_SAAS_BI_URL=https://saas-bi.ezijing.com/data/dashboard VITE_SAAS_BI_URL=http://172.16.3.203:1014/data/dashboard
VITE_SAAS_DML_LIVE_URL=http://172.16.3.203:1015/live
\ No newline at end of file
...@@ -90,7 +90,9 @@ const reportRulesVisible = $ref(false) ...@@ -90,7 +90,9 @@ const reportRulesVisible = $ref(false)
const dmlURL = computed(() => { const dmlURL = computed(() => {
return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}?experiment_id=${props.id}` return `${appConfig.dmlURL || import.meta.env.VITE_DML_URL}?experiment_id=${props.id}`
}) })
const liveURL = computed(() => {
return `${import.meta.env.VITE_SAAS_DML_LIVE_URL}?experiment_id=${props.id}`
})
// 复制 // 复制
let copyDialogVisible = $ref(false) let copyDialogVisible = $ref(false)
async function handleCopy() { async function handleCopy() {
...@@ -118,6 +120,9 @@ function handleUpdateGradeRules() { ...@@ -118,6 +120,9 @@ function handleUpdateGradeRules() {
<el-button type="primary" v-if="detail?.type === '4'"> <el-button type="primary" v-if="detail?.type === '4'">
<a :href="dmlURL" target="_blank">进入实验平台</a> <a :href="dmlURL" target="_blank">进入实验平台</a>
</el-button> </el-button>
<el-button type="primary">
<a :href="liveURL" target="_blank">进入直播平台</a>
</el-button>
<el-button type="primary" @click="gradeRulesVisible = true">查看成绩规则</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="reportRulesVisible = true">查看报告规则</el-button>
<el-button type="primary" @click="handleCopy()">复制实验</el-button> <el-button type="primary" @click="handleCopy()">复制实验</el-button>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论