feat:修改归属权及查看权

This commit is contained in:
lixg
2022-11-14 10:12:02 +08:00
parent 27dc936ccc
commit 17e24ae408
13 changed files with 1719 additions and 1047 deletions

View File

@@ -51,7 +51,10 @@
<div class="imgIcon"></div>
</div>
<div class="boxs_right">
<div class="imgIcon" @click="deleteChapter(element.chapterId)"></div>
<div
class="imgIcon"
@click="deleteChapter(element.chapterId)"
></div>
</div>
</div>
<div class="items2">
@@ -1776,16 +1779,20 @@ export default {
}
};
//删除关卡
const deleteChapter=(chapterId)=>{
let obj={
chapterId:chapterId
}
api.deleteChapter(obj).then(res=>{
console.log('删除关卡成功',res)
}).catch(err=>{
console.log('删除关卡失败',err)
})
}
const deleteChapter = (chapterId) => {
console.log('chapterId',chapterId)
let obj = {
chapterId: chapterId,
};
api
.deleteChapter(obj)
.then((res) => {
console.log("删除关卡成功", res);
})
.catch((err) => {
console.log("删除关卡失败", err);
});
};
return {
...toRefs(state),
// tableDataFunc,