From a046bd648ab10afae926c9c603df430989d62ce2 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Tue, 14 May 2024 18:01:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/examineApi.js | 26 ++++ src/views/gratefulteacher/CommonTeacher.vue | 5 +- .../InstructorCertification.vue | 16 +-- .../gratefulteacher/LecturerManagement.vue | 28 +++-- src/views/gratefulteacher/tablemodel.vue | 115 ++++++++++++------ src/views/gratefulteacher/teaAdd.vue | 2 +- 6 files changed, 132 insertions(+), 60 deletions(-) diff --git a/src/api/examineApi.js b/src/api/examineApi.js index ccd445e5..96d246db 100644 --- a/src/api/examineApi.js +++ b/src/api/examineApi.js @@ -1,5 +1,6 @@ import { data } from "jquery"; import http from "./configPublic"; + //认证审批项目列表 export const getexamineList = (data) => { return http({ @@ -129,3 +130,28 @@ export const getDataById = (data) => http.post('/activityApi/teacher/getDataById export const getCertificationProcess = (data) => http.post('/activityApi/teacher/getCertificationProcess',data) //编辑认证 export const updateExamine = (data) => http.post('/activityApi/examine/updateExamine',data) + +//权限列表 +export const removePermission = (data)=>{ + return http({ + url:'/activityApi/permission/list', + method: "post", + data:data + }) +} +//转移归属权 +export const transferPermission =(data)=>{ + return http({ + url:'/activityApi/permission/transferPermission', + method: "post", + data:data + }) +} +//添加权限 +export const addPermission = (data)=>{ + return http({ + url:'/activityApi/permission/addPermission', + method: "post", + data:data + }) +} \ No newline at end of file diff --git a/src/views/gratefulteacher/CommonTeacher.vue b/src/views/gratefulteacher/CommonTeacher.vue index 15a0f56a..d3779904 100644 --- a/src/views/gratefulteacher/CommonTeacher.vue +++ b/src/views/gratefulteacher/CommonTeacher.vue @@ -303,10 +303,12 @@ import dialog from "@/utils/dialog"; import BaseTable from "@/components/common/BaseTable"; import {AUDIENCE_LIST, ORG_CHILD_LIST, ORG_LIST, STUDENT_LIST, USER_LIST_PAGE} from "@/api/apis"; + import {addPermission} from '@/api/examineApi.js' const emit = defineEmits({}); const props = defineProps({ type: Number, + pid:Number, infoType: Number, infoId: Number, id: String, @@ -603,8 +605,9 @@ //确定添加授权 const submitAuth = () => { - if (props.type === 2) { + if (props.pid === 2) { stageVisible.value = true; + } else { handleDialogOk(); } diff --git a/src/views/gratefulteacher/InstructorCertification.vue b/src/views/gratefulteacher/InstructorCertification.vue index 68c42eaa..c58123c3 100644 --- a/src/views/gratefulteacher/InstructorCertification.vue +++ b/src/views/gratefulteacher/InstructorCertification.vue @@ -1,7 +1,7 @@