Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-lab
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-lab
Commits
5ed5ca97
提交
5ed5ca97
authored
7月 03, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化实验管理界面,调整下拉选择框为可过滤,更新应用配置中的logo链接
上级
b4b308ef
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
29 行增加
和
22 行删除
+29
-22
useAppConfig.ts
src/composables/useAppConfig.ts
+4
-3
FormDialog.vue
src/modules/admin/lab/experiment/components/FormDialog.vue
+2
-2
Index.vue
src/modules/admin/lab/experiment/views/Index.vue
+23
-17
没有找到文件。
src/composables/useAppConfig.ts
浏览文件 @
5ed5ca97
...
...
@@ -147,9 +147,10 @@ const appConfigList = [
},
{
system
:
'dml'
,
title
:
'湖北工匠杯技能大赛'
,
logo
:
'https://webapp-pub.ezijing.com/website/base/images/favicon_swsjfxs.png'
,
favicon
:
'https://webapp-pub.ezijing.com/website/base/images/favicon_swsjfxs.png'
,
// title: '湖北工匠杯技能大赛',
// logo: 'https://webapp-pub.ezijing.com/website/base/images/favicon_swsjfxs.png',
// favicon: 'https://webapp-pub.ezijing.com/website/base/images/favicon_swsjfxs.png',
logo
:
'https://webapp-pub.ezijing.com/website/base/logo.svg'
,
hosts
:
[
'ccsc'
],
dmlURL
:
import
.
meta
.
env
.
VITE_DML_PRO_URL
,
loginURL
:
import
.
meta
.
env
.
VITE_SWSJFXS_LOGIN_URL
,
...
...
src/modules/admin/lab/experiment/components/FormDialog.vue
浏览文件 @
5ed5ca97
...
...
@@ -122,12 +122,12 @@ function handleUpdate(params: ExperimentCreateItem) {
@
update:modelValue=
"(value) => $emit('update:modelValue', value)"
>
<el-form
ref=
"formRef"
:model=
"form"
:rules=
"rules"
label-width=
"145px"
>
<el-form-item
label=
"实验所属部门/学校"
prop=
"organ_id"
>
<el-select
v-model=
"form.organ_id"
style=
"width: 100%"
:disabled=
"isUpdate"
@
change=
"handleOrgChange"
>
<el-select
filterable
v-model=
"form.organ_id"
style=
"width: 100%"
:disabled=
"isUpdate"
@
change=
"handleOrgChange"
>
<el-option
v-for=
"item in organizations"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"实验课程"
prop=
"course_id"
>
<el-select
v-model=
"form.course_id"
style=
"width: 100%"
:disabled=
"isUpdate"
>
<el-select
filterable
v-model=
"form.course_id"
style=
"width: 100%"
:disabled=
"isUpdate"
>
<el-option
v-for=
"item in courses"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
...
...
src/modules/admin/lab/experiment/views/Index.vue
浏览文件 @
5ed5ca97
...
...
@@ -4,7 +4,7 @@ import { CirclePlus, MoreFilled, CopyDocument, Delete, Setting, Edit, EditPen }
import
AppList
from
'@/components/base/AppList.vue'
import
{
getExperimentList
,
deleteExperiment
}
from
'../api'
import
{
useGetCourseList
}
from
'../composables/useGetCourseList'
import
{
useGetCourseExperimentList
}
from
'../composables/useGetCourseExperimentList'
//
import { useGetCourseExperimentList } from '../composables/useGetCourseExperimentList'
import
{
useMapStore
}
from
'@/stores/map'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
...
...
@@ -19,7 +19,7 @@ const status = useMapStore().getMapValuesByKey('system_status')
const
{
courses
,
updateCourses
}
=
useGetCourseList
()
updateCourses
(
''
)
// 课程实验
const
{
courseExperiments
,
updateCourseExperiments
}
=
useGetCourseExperimentList
()
//
const { courseExperiments, updateCourseExperiments } = useGetCourseExperimentList()
const
appList
=
$ref
<
InstanceType
<
typeof
AppList
>
|
null
>
(
null
)
...
...
@@ -29,12 +29,12 @@ const params = reactive({
name
:
''
,
status
:
''
,
})
watch
(
()
=>
params
.
course_id
,
()
=>
{
updateCourseExperiments
(
params
.
course_id
)
}
)
//
watch(
//
() => params.course_id,
//
() => {
//
updateCourseExperiments(params.course_id)
// },
//
)
// 列表配置
const
listOptions
=
$computed
(()
=>
{
return
{
...
...
@@ -58,6 +58,12 @@ const listOptions = $computed(() => {
},
},
filters
:
[
{
type
:
'input'
,
prop
:
'name'
,
label
:
'实验名称'
,
placeholder
:
'请输入实验名称'
,
},
{
type
:
'select'
,
prop
:
'course_id'
,
...
...
@@ -67,15 +73,15 @@ const listOptions = $computed(() => {
labelKey
:
'name'
,
valueKey
:
'id'
,
},
{
type
:
'select'
,
prop
:
'id'
,
label
:
'实验名称'
,
placeholder
:
'请选择实验'
,
options
:
courseExperiments
.
value
,
labelKey
:
'name'
,
valueKey
:
'id'
,
},
//
{
//
type: 'select',
//
prop: 'id',
//
label: '实验名称',
//
placeholder: '请选择实验',
//
options: courseExperiments.value,
//
labelKey: 'name',
//
valueKey: 'id',
//
},
{
type
:
'select'
,
prop
:
'status'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论