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

updates

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