mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 10:56: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)
|
||||
//添加权限 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)=>{
|
||||
return http({
|
||||
url:'/activityApi/permission/list',
|
||||
url:'/activityApi/examinePermission/list',
|
||||
method: "post",
|
||||
data:data
|
||||
})
|
||||
@@ -143,7 +143,7 @@ export const removePermission = (data)=>{
|
||||
//转移归属权
|
||||
export const transferPermission =(data)=>{
|
||||
return http({
|
||||
url:'/activityApi/permission/transferPermission',
|
||||
url:'/activityApi/examinePermission/transferPermission',
|
||||
method: "post",
|
||||
data:data
|
||||
})
|
||||
|
||||
@@ -163,6 +163,7 @@ function selectCourse(row) {
|
||||
}
|
||||
const OnlineLearning = async (i, row) => {
|
||||
window.selectCourse = selectCourse;
|
||||
// row && (ViewReviewdata.value = [row.info]);
|
||||
ViewReviewShow.value = true
|
||||
await getOnlineLearningList().then(res=>{
|
||||
if(res.code == 200){
|
||||
@@ -188,7 +189,7 @@ const deleteReview = (record,index) =>{
|
||||
content: '是否删除?',
|
||||
ok: () => {
|
||||
if(record.newId==2){
|
||||
ViewReviewdata.value.splice(index,1)
|
||||
ViewReviewdata.value = ViewReviewdata.value.filter(item => item.id !== record.id);
|
||||
message.success('删除成功')
|
||||
return
|
||||
}
|
||||
@@ -221,6 +222,10 @@ const AddList = () => {
|
||||
// }
|
||||
// })
|
||||
const filteredData = ViewReviewdata.value.filter(item => item.newId === 2);
|
||||
if(filteredData.length==0){
|
||||
message.error('请选择课程')
|
||||
return
|
||||
}
|
||||
const transformedData = filteredData.map(item => ({
|
||||
courseName: item.name,
|
||||
courseContent: '',
|
||||
|
||||
Reference in New Issue
Block a user