mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
修改接口
This commit is contained in:
@@ -130,12 +130,12 @@ export const getCertificationProcess = (data) => http.post('/activityApi/teacher
|
|||||||
//编辑认证
|
//编辑认证
|
||||||
export const updateExamine = (data) => http.post('/activityApi/examine/updateExamine',data)
|
export const updateExamine = (data) => http.post('/activityApi/examine/updateExamine',data)
|
||||||
//添加权限 0: 查看 2: 管理
|
//添加权限 0: 查看 2: 管理
|
||||||
export const addPermission = (data) => http.post('/activityApi/permission/addPermission',data)
|
export const addPermission = (data) => http.post('/activityApi/examinePermission/addPermission',data)
|
||||||
|
|
||||||
//权限列表
|
//权限列表
|
||||||
export const removePermission = (data)=>{
|
export const removePermission = (data)=>{
|
||||||
return http({
|
return http({
|
||||||
url:'/activityApi/permission/list',
|
url:'/activityApi/examinePermission/list',
|
||||||
method: "post",
|
method: "post",
|
||||||
data:data
|
data:data
|
||||||
})
|
})
|
||||||
@@ -143,7 +143,7 @@ export const removePermission = (data)=>{
|
|||||||
//转移归属权
|
//转移归属权
|
||||||
export const transferPermission =(data)=>{
|
export const transferPermission =(data)=>{
|
||||||
return http({
|
return http({
|
||||||
url:'/activityApi/permission/transferPermission',
|
url:'/activityApi/examinePermission/transferPermission',
|
||||||
method: "post",
|
method: "post",
|
||||||
data:data
|
data:data
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ function selectCourse(row) {
|
|||||||
}
|
}
|
||||||
const OnlineLearning = async (i, row) => {
|
const OnlineLearning = async (i, row) => {
|
||||||
window.selectCourse = selectCourse;
|
window.selectCourse = selectCourse;
|
||||||
|
// row && (ViewReviewdata.value = [row.info]);
|
||||||
ViewReviewShow.value = true
|
ViewReviewShow.value = true
|
||||||
await getOnlineLearningList().then(res=>{
|
await getOnlineLearningList().then(res=>{
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
@@ -188,7 +189,7 @@ const deleteReview = (record,index) =>{
|
|||||||
content: '是否删除?',
|
content: '是否删除?',
|
||||||
ok: () => {
|
ok: () => {
|
||||||
if(record.newId==2){
|
if(record.newId==2){
|
||||||
ViewReviewdata.value.splice(index,1)
|
ViewReviewdata.value = ViewReviewdata.value.filter(item => item.id !== record.id);
|
||||||
message.success('删除成功')
|
message.success('删除成功')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -221,6 +222,10 @@ const AddList = () => {
|
|||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
const filteredData = ViewReviewdata.value.filter(item => item.newId === 2);
|
const filteredData = ViewReviewdata.value.filter(item => item.newId === 2);
|
||||||
|
if(filteredData.length==0){
|
||||||
|
message.error('请选择课程')
|
||||||
|
return
|
||||||
|
}
|
||||||
const transformedData = filteredData.map(item => ({
|
const transformedData = filteredData.map(item => ({
|
||||||
courseName: item.name,
|
courseName: item.name,
|
||||||
courseContent: '',
|
courseContent: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user