提交 999fbe3a authored 作者: matian's avatar matian

增加生源地分析地址

上级 bfb04db2
<script lang="ts" setup>
const emit = defineEmits<Emits>()
defineProps({
isShowAnalysisDialog: {
type: Boolean,
required: true
}
})
interface Emits {
(e: 'update:isShowAnalysisDialog', isShowAnalysisDialog: boolean): void
}
const handleCancel = () => {
emit('update:isShowAnalysisDialog', false)
}
</script>
<template>
<el-dialog :model-value="isShowAnalysisDialog" draggable :before-close="handleCancel" width="30%">
<div class="main_content">
<iframe
src="http://114.242.229.132:18080/bi/?proc=1&action=viewer&hback=true&isInPreview=true&db=!7d2b!!8346!!6559!!80b2!e-SaaS!2f!!751f!!6e90!!5730!!5206!!5e03!.db&platform=PC&browserType=chrome"
frameborder="0"
></iframe>
</div>
</el-dialog>
</template>
...@@ -3,6 +3,8 @@ import { ElMessage } from 'element-plus' ...@@ -3,6 +3,8 @@ import { ElMessage } from 'element-plus'
import { useProjectList } from '@/composables/useGetProjectList' import { useProjectList } from '@/composables/useGetProjectList'
import AddStudent from '../components/AddStudent.vue' import AddStudent from '../components/AddStudent.vue'
import ImportStudent from '../components/ImportStudent.vue' import ImportStudent from '../components/ImportStudent.vue'
// import SourceAnalysis from '../components/SourceAnalysis.vue'
import { getStudentList, exportStudent, updateStudent } from '../api' import { getStudentList, exportStudent, updateStudent } from '../api'
import { useUserStore } from '@/stores/user' import { useUserStore } from '@/stores/user'
...@@ -16,6 +18,7 @@ const title = ref('') ...@@ -16,6 +18,7 @@ const title = ref('')
const isEdit = ref('') const isEdit = ref('')
const isShowAddDialog = ref(false) const isShowAddDialog = ref(false)
const isShowImportDialog = ref(false) const isShowImportDialog = ref(false)
// const isShowAnalysisDialog = ref(false)
const listOptions = { const listOptions = {
remote: { httpRequest: getStudentList, params: { name: '', organ_id: '' } }, remote: { httpRequest: getStudentList, params: { name: '', organ_id: '' } },
filters: [ filters: [
...@@ -101,6 +104,12 @@ const multipleSelection: any = ref([]) ...@@ -101,6 +104,12 @@ const multipleSelection: any = ref([])
const handleSelectionChange = (val: any) => { const handleSelectionChange = (val: any) => {
multipleSelection.value = val multipleSelection.value = val
} }
const handleAnalysis = () => {
// isShowAnalysisDialog.value = true
window.open(
'http://114.242.229.132:18080/bi/?proc=1&action=viewer&hback=true&isInPreview=true&db=!7d2b!!8346!!6559!!80b2!e-SaaS!2f!!751f!!6e90!!5730!!5206!!5e03!.db&platform=PC&browserType=chrome'
)
}
</script> </script>
<template> <template>
...@@ -122,7 +131,7 @@ const handleSelectionChange = (val: any) => { ...@@ -122,7 +131,7 @@ const handleSelectionChange = (val: any) => {
<el-button type="primary" round @click="handleExport" v-permission="'v1-learning-student-download'" <el-button type="primary" round @click="handleExport" v-permission="'v1-learning-student-download'"
>导出</el-button >导出</el-button
> >
<el-button type="primary" round>生源地分析</el-button> <el-button type="primary" round @click="handleAnalysis">生源地分析</el-button>
<template v-if="isAdmin" #filter-department="{ params }"> <template v-if="isAdmin" #filter-department="{ params }">
<div class="name" style="font-size: 14px; color: #606266; padding-right: 12px">所属部门/学校:</div> <div class="name" style="font-size: 14px; color: #606266; padding-right: 12px">所属部门/学校:</div>
<el-select @change="handleRefresh" clearable v-model="params.organ_id" placeholder="请选择所属部门/学校"> <el-select @change="handleRefresh" clearable v-model="params.organ_id" placeholder="请选择所属部门/学校">
...@@ -139,7 +148,6 @@ const handleSelectionChange = (val: any) => { ...@@ -139,7 +148,6 @@ const handleSelectionChange = (val: any) => {
style="--el-switch-on-color: #aa1941" style="--el-switch-on-color: #aa1941"
@change="handleChangeStatus(row)" @change="handleChangeStatus(row)"
:disabled="!isAdmin" :disabled="!isAdmin"
></el-switch> ></el-switch>
</template> </template>
<template #table-operate="{ row }"> <template #table-operate="{ row }">
...@@ -163,5 +171,8 @@ const handleSelectionChange = (val: any) => { ...@@ -163,5 +171,8 @@ const handleSelectionChange = (val: any) => {
:isEdit="isEdit" :isEdit="isEdit"
@create="handleRefresh" @create="handleRefresh"
/> />
<!-- 导入学生 -->
<ImportStudent v-if="isShowImportDialog" v-model:isShowImportDialog="isShowImportDialog" @create="handleRefresh" /> <ImportStudent v-if="isShowImportDialog" v-model:isShowImportDialog="isShowImportDialog" @create="handleRefresh" />
<!-- 生源地分析 -->
<!-- <SourceAnalysis v-if="isShowAnalysisDialog" v-model:isShowAnalysisDialog="isShowAnalysisDialog" /> -->
</template> </template>
...@@ -13,7 +13,7 @@ let data = ref<IList[]>([ ...@@ -13,7 +13,7 @@ let data = ref<IList[]>([
{ key: 'platform_course_count', unit: '门', number: 0, text: '平台课程总数' }, { key: 'platform_course_count', unit: '门', number: 0, text: '平台课程总数' },
{ key: 'department_course_count', unit: '门', number: 0, text: '部门课程总数' }, { key: 'department_course_count', unit: '门', number: 0, text: '部门课程总数' },
{ key: 'my_course_count', unit: '门', number: 0, text: '我的课程总数' }, { key: 'my_course_count', unit: '门', number: 0, text: '我的课程总数' },
{ key: 'learn_times', unit: '人次', number: 0, text: '总学习人次' }, { key: 'learn_times', unit: '人次', number: 0, text: '总学习人次' },
{ key: 'learn_time_length', unit: '小时', number: 0, text: '总学习时长' } { key: 'learn_time_length', unit: '小时', number: 0, text: '总学习时长' }
]) ])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论