提交 4b1a5e0f authored 作者: matian's avatar matian

updates

上级 80ba322e
......@@ -106,7 +106,7 @@ const listOptions = computed(() => {
},
filters: [{ type: 'input', prop: 'category_name', label: '类别名称:', placeholder: '请输入类别名称' }],
columns: [
{ label: '类别名称', prop: 'category_name', align: 'left' },
{ label: '类别名称', prop: 'category_name', align: 'center' },
{ label: '层级', prop: 'depth', align: 'center' },
{ label: '状态', prop: 'status_name', align: 'center' },
{ label: '操作', slots: 'table-operate', width: 230, align: 'center' }
......
......@@ -40,7 +40,7 @@ const listOptions = $computed(() => {
{ label: '角色类型', prop: 'role_name', align: 'center' },
{ label: '生效状态', slots: 'status', align: 'center' },
{ label: '更新时间', prop: 'updated_time', align: 'center' },
{ label: '操作', slots: 'table-operate', align: 'center', fixed: 'right' }
{ label: '操作', slots: 'table-operate', align: 'center', fixed: 'center' }
]
}
})
......
......@@ -32,14 +32,16 @@ const listOptions = computed(() => {
{
label: '试卷名称',
prop: 'paper_title',
minWidth: 200
minWidth: 200,
align: 'center'
},
{
label: '组卷模式',
prop: 'paper_type',
computed: (row: any) => {
return row.row.paper_type === 1 ? '选题组卷' : '自动组卷'
}
},
align: 'center'
},
{
label: '试卷用途',
......@@ -52,7 +54,8 @@ const listOptions = computed(() => {
} else if (row.row.paper_type === 3) {
return '课程测试'
}
}
},
align: 'center'
},
{ label: '总分', prop: 'paper_total_score', align: 'center' },
{ label: '及格分数', prop: 'pass_score', align: 'center' },
......
......@@ -3,7 +3,7 @@ import { searchExam } from '../../api'
import { useQuestionList } from '@/composables/useQuestionList'
const appList = ref()
let { list: selectTree } = useQuestionList()
let { list: selectTree }: any = useQuestionList()
const tabValue = ref('1')
const multipleSelection: any = ref([])
const emit = defineEmits<Emits>()
......@@ -42,14 +42,15 @@ const listOptions = {
{ type: 'input', prop: 'paper_title', label: '标题:' }
],
columns: [
{ fixed: 'left', type: 'selection' },
{ fixed: 'left', type: 'selection', align: 'center' },
{
label: '组卷模式',
prop: 'paper_type',
computed: (row: any) => {
return row.row.paper_type === 1 ? '选题组卷' : '自动组卷'
}
},
align: 'center'
},
{
label: '试卷用途',
......@@ -57,13 +58,14 @@ const listOptions = {
computed: (row: any) => {
const map = { 1: '考试', 2: '课后作业', 3: '课程测试' }
return map[row.row.paper_uses] || row.row.paper_uses
}
},
align: 'center'
},
{ label: '试卷分类', prop: 'paper_category.name' },
{ label: '试卷名称', prop: 'paper_title' },
{ label: '总分', prop: 'paper_total_score' },
{ label: '及格分数', prop: 'pass_score' },
{ label: '更新时间', prop: 'updated_at' }
{ label: '试卷分类', prop: 'paper_category.name', align: 'center' },
{ label: '试卷名称', prop: 'paper_title', align: 'center' },
{ label: '总分', prop: 'paper_total_score', align: 'center' },
{ label: '及格分数', prop: 'pass_score', align: 'center' },
{ label: '更新时间', prop: 'updated_at', align: 'center' }
]
}
......@@ -112,6 +114,7 @@ const handleSelectionChange = (val: any) => {
:props="defaultProps"
v-model="params.paper_categories"
:data="selectTree"
:default-expanded-keys="selectTree.length ? [selectTree[0]?.id] : []"
/>
</template>
</AppList>
......
......@@ -2,7 +2,7 @@
import { searchExam, createCharacter } from '../../api'
import { useQuestionList } from '@/composables/useQuestionList'
const appList = ref()
let { list: selectTree } = useQuestionList()
let { list: selectTree }: any = useQuestionList()
const tabValue = ref('1')
const selectionRow: any = ref([])
const tableData = ref([])
......@@ -62,13 +62,14 @@ const listOptions = {
],
columns: [
{ type: 'selection', fixed: 'left' },
{ type: 'index', label: '序号', fixed: 'left' },
{ type: 'index', label: '序号', fixed: 'center', width: '100px' },
{
label: '组卷模式',
prop: 'paper_type',
computed: (row: any) => {
return row.row.paper_type === 1 ? '选题组卷' : '自动组卷'
}
},
align: 'center'
},
{
label: '试卷用途',
......@@ -76,13 +77,14 @@ const listOptions = {
computed: (row: any) => {
const map = { 1: '考试', 2: '课后作业', 3: '课程测试' }
return map[row.row.paper_uses] || row.row.paper_uses
}
},
align: 'center'
},
{ label: '试卷分类', prop: 'paper_category.name', minWidth: 200 },
{ label: '试卷名称', prop: 'paper_title', minWidth: 200 },
{ label: '总分', prop: 'paper_total_score' },
{ label: '及格分数', prop: 'pass_score' },
{ label: '更新时间', prop: 'updated_at' }
{ label: '试卷分类', prop: 'paper_category.name', minWidth: 200, align: 'center' },
{ label: '试卷名称', prop: 'paper_title', minWidth: 200, align: 'center' },
{ label: '总分', prop: 'paper_total_score', align: 'center' },
{ label: '及格分数', prop: 'pass_score', align: 'center' },
{ label: '更新时间', prop: 'updated_at', align: 'center' }
],
data: tableData.value
}
......@@ -166,6 +168,7 @@ const typeFilter = () => {
check-strictly
:render-after-expand="false"
multiple
:default-expanded-keys="selectTree.length ? [selectTree[0]?.id] : []"
/>
</template>
</AppList>
......
......@@ -40,7 +40,7 @@ interface Emits {
(e: 'create'): void
}
// 筛选下拉选择tree 视频分类
let { list: selectTree } = useGetCategoryList()
let { list: selectTree }: any = useGetCategoryList()
const defaultProps = {
children: 'children',
label: 'category_name',
......@@ -136,6 +136,7 @@ if (props.btnInfo.resource_type === '2') {
:props="defaultProps"
v-model="params.classification"
:data="selectTree"
:default-expanded-keys="selectTree.length ? [selectTree[0]?.id] : []"
/>
</template>
<template #body="{ data }">
......
......@@ -33,14 +33,16 @@ const listOptions = computed(() => {
columns: [
{
label: '试卷名称',
prop: 'paper_title'
prop: 'paper_title',
align: 'center'
},
{
label: '组卷模式',
prop: 'paper_type',
computed: (row: any) => {
return row.row.paper_type === 1 ? '选题组卷' : '自动组卷'
}
},
align: 'center'
},
{
label: '试卷用途',
......@@ -53,7 +55,8 @@ const listOptions = computed(() => {
} else if (row.row.paper_type === 3) {
return '课程测试'
}
}
},
align: 'center'
},
{ label: '总分', prop: 'paper_total_score', align: 'center' },
{ label: '及格分数', prop: 'pass_score', align: 'center' }
......
......@@ -104,13 +104,14 @@ const activeName = ref('1')
const listOptions = computed(() => {
return {
columns: [
{ type: 'index', label: '序号', fixed: 'left' },
{ type: 'index', label: '序号', fixed: 'center', width: '100px' },
{
label: '组卷模式',
prop: 'paper_type',
computed: (row: any) => {
return row.row.paper_type === 1 ? '选题组卷' : '自动组卷'
}
},
align: 'center'
},
{
label: '试卷用途',
......@@ -118,13 +119,14 @@ const listOptions = computed(() => {
computed: (row: any) => {
const map = { 1: '考试', 2: '课后作业', 3: '课程测试' }
return map[row.row.paper_uses] || row.row.paper_uses
}
},
align: 'center'
},
{ label: '试卷分类', prop: 'paper_category.name' },
{ label: '试卷名称', prop: 'paper_title' },
{ label: '总分', prop: 'paper_total_score' },
{ label: '及格分数', prop: 'pass_score' },
{ label: '更新时间', prop: 'updated_at' },
{ label: '试卷分类', prop: 'paper_category.name', align: 'center' },
{ label: '试卷名称', prop: 'paper_title', align: 'center' },
{ label: '总分', prop: 'paper_total_score', align: 'center' },
{ label: '及格分数', prop: 'pass_score', align: 'center' },
{ label: '更新时间', prop: 'updated_at', align: 'center' },
{ label: '操作', slots: 'table-operate', align: 'center' }
],
data: resourceData.exam
......@@ -134,13 +136,14 @@ const listOptions = computed(() => {
const homeworkOptions = computed(() => {
return {
columns: [
{ type: 'index', label: '序号', fixed: 'left' },
{ type: 'index', label: '序号', fixed: 'center', width: '100px' },
{
label: '组卷模式',
prop: 'paper_type',
computed: (row: any) => {
return row.row.paper_type === 1 ? '选题组卷' : '自动组卷'
}
},
align: 'center'
},
{
label: '试卷用途',
......@@ -148,13 +151,14 @@ const homeworkOptions = computed(() => {
computed: (row: any) => {
const map = { 1: '考试', 2: '课后作业', 3: '课程测试' }
return map[row.row.paper_uses] || row.row.paper_uses
}
},
align: 'center'
},
{ label: '试卷分类', prop: 'paper_category.name' },
{ label: '试卷名称', prop: 'paper_title' },
{ label: '总分', prop: 'paper_total_score' },
{ label: '及格分数', prop: 'pass_score' },
{ label: '更新时间', prop: 'updated_at' }
{ label: '试卷分类', prop: 'paper_category.name', align: 'center' },
{ label: '试卷名称', prop: 'paper_title', align: 'center' },
{ label: '总分', prop: 'paper_total_score', align: 'center' },
{ label: '及格分数', prop: 'pass_score', align: 'center' },
{ label: '更新时间', prop: 'updated_at', align: 'center' }
],
data: resourceData.homework
}
......
......@@ -31,7 +31,7 @@ if (isUpdate) {
}
// 下拉选择tree 视频分类
let { list: selectTree } = useGetCategoryList()
let { list: selectTree }: any = useGetCategoryList()
const defaultProps = {
children: 'children',
label: 'category_name',
......@@ -177,6 +177,7 @@ const changeProtocol = (data: any) => {
style="width: 100%"
v-model="form.classification"
:data="selectTree"
:default-expanded-keys="selectTree.length ? [selectTree[0]?.id] : []"
/>
</el-form-item>
<el-form-item label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;知识点:">
......
......@@ -78,15 +78,13 @@ getSuggestionDetail({ id: props.id }).then(res => {
<el-divider border-style="dashed" />
</el-row>
<el-form-item label="问题描述:" prop="title">
<el-input v-model="form.title" autosize type="textarea" placeholder="Please input" disabled />
<el-input v-model="form.title" autosize type="textarea" disabled />
</el-form-item>
<el-form-item label="问题详情:" prop="content">
<el-input v-model="form.content" autosize type="textarea" placeholder="Please input" disabled />
<el-input v-model="form.content" autosize type="textarea" disabled />
</el-form-item>
<el-form-item label="相关附件:" prop="files">
<!-- <div v-for="(item, index) in form.files" :key="index"> -->
<a :href="form.files" style="color: #aa1941" target="_blank">{{ form.files }}</a>
<!-- </div> -->
</el-form-item>
<el-divider border-style="dashed" />
<el-form-item label="我的答复:" prop="reply">
......
......@@ -52,7 +52,7 @@ const listOptions = $computed(() => {
}
],
columns: [
{ label: '序号', type: 'index', align: 'center' },
{ label: '序号', type: 'index', align: 'center', width: '100px' },
{ label: '所属课程', prop: 'course_name', align: 'center' },
{ label: '所属班级', prop: 'class_name', align: 'center' },
{ label: '学生姓名', prop: 'student_name', align: 'center' },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论