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

投诉建议增加权限

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