提交 3af66558 authored 作者: matian's avatar matian

投诉建议增加权限

上级 77005a09
......@@ -19,7 +19,8 @@ import {
Guide,
QuestionFilled,
EditPen,
DataAnalysis
DataAnalysis,
ChatDotRound
} from '@element-plus/icons-vue'
export const menus: IMenuItem[] = [
{
......@@ -155,8 +156,8 @@ export const menus: IMenuItem[] = [
path: '/system/cover'
},
{
tag: 'v1-backend-cover-list',
icon: Picture,
tag: 'v1-backend-suggestion-list',
icon: ChatDotRound,
name: ' 投诉建议管理',
path: '/system/suggestion'
}
......@@ -181,7 +182,7 @@ export const menus: IMenuItem[] = [
},
{
tag: 'v1-teaching-job-list',
icon: EditPen,
icon: Edit,
name: '批改大作业',
path: '/teach/work'
},
......
......@@ -96,7 +96,7 @@ const id = route.query.id ? route.query.id : (route.params.courseId as string)
line-height: 1.5;
color: #ffffff;
margin-bottom: 20px;
margin-top: 6px;
margin-top: 2px;
cursor: pointer;
word-break: break-all;
}
......
......@@ -83,20 +83,43 @@ const handleFresh = () => {
:reserve-keyword="false"
:remote-method="handleGetUserList"
placeholder="用户姓名"
v-permission="'v1-backend-suggestion-search-user'"
>
<el-option v-for="item in userList" :key="item.id" :label="item.username" :value="item" />
</el-select>
</template>
<template v-slot:created_time_start="{ params }">
<el-date-picker v-model="params.created_time_start" type="date" placeholder="开始时间"> </el-date-picker>
<p class="separator">&nbsp;&nbsp;&nbsp;&nbsp;-</p>
<el-date-picker
v-model="params.created_time_start"
type="date"
placeholder="开始时间"
v-permission="'v1-backend-suggestion-search-user'"
>
</el-date-picker>
<p class="separator" v-permission="'v1-backend-suggestion-search-user'">&nbsp;&nbsp;&nbsp;&nbsp;-</p>
</template>
<template v-slot:created_time_end="{ params }">
<el-date-picker v-model="params.created_time_end" type="date" placeholder="结束时间"> </el-date-picker>
<el-date-picker
v-model="params.created_time_end"
type="date"
placeholder="结束时间"
v-permission="'v1-backend-suggestion-search-user'"
>
</el-date-picker>
</template>
<template #table-operate="{ row }">
<el-space>
<el-link type="primary" plain @click="handleDeal(row)">{{ row.status === '1' ? '处理' : '查看' }}</el-link>
<el-link
type="primary"
plain
@click="handleDeal(row)"
v-permission="'v1-backend-suggestion-update'"
v-if="row.status === '1'"
>处理</el-link
>
<el-link type="primary" plain @click="handleDeal(row)" v-permission="'v1-backend-suggestion-view'" v-else>
查看'</el-link
>
</el-space>
</template>
</AppList>
......
......@@ -45,6 +45,7 @@ const listOptions = $computed(() => {
]
}
})
// 批改试卷 页面跳转
const handleCheckPaper = (row: any) => {
// router.push({ path: '/teach/stuList', query: { eid: row.exam_id } })
router.push({
......@@ -56,6 +57,7 @@ const handleCheckPaper = (row: any) => {
}
})
}
// 获取所属课程列表
getSearchList({ type: 'course', search_id: '' }).then((res: any) => {
courseListCategory.value = res.data
})
......
<script setup lang="ts">
import { getProList } from '../api'
// import { useMapStore } from '@/stores/map'
// const store = useMapStore()
const appList = ref()
const listOptions = $computed(() => {
......
......@@ -102,20 +102,23 @@ onMounted(() => {
checkPermission('v1-teaching-job-search-list') && handleGetSearchCourseList()
// checkPermission('v1-teaching-job-search-list') && handleGetSearchClassList()
})
// 获取课程搜索列表
const handleGetSearchCourseList = () => {
getSearchList({ type: 'course', search_id: '' }).then(res => {
searchCourseList.value = res.data
})
}
// 获取班级搜索列表
const handleGetSearchClassList = () => {
getSearchList({ type: 'class', search_id: course_id.value }).then(res => {
searchClassList.value = res.data
})
}
// 页面刷新
const handleFresh = () => {
appList.value.refetch()
}
// 课程信息不为空的时候获取班级搜索列表
watch(
() => course_id.value,
() => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论