mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
feat:修改学习路径操作
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
<div class="main">
|
||||
<div class="inma">
|
||||
<div class="name">
|
||||
<div class="d" style="margin-top: 2px;margin-right:2px">
|
||||
<div class="d" style="margin-top: 2px; margin-right: 2px">
|
||||
<img
|
||||
style="width: 10px; height: 10px"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
@@ -78,8 +78,15 @@
|
||||
<div class="co">{{ value1.length }}/20</div>
|
||||
</div>
|
||||
<div class="name">
|
||||
<div class="d" style="width: 10px;height: 10px;margin-top: 2px;margin-right:2px">
|
||||
</div>
|
||||
<div
|
||||
class="d"
|
||||
style="
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin-top: 2px;
|
||||
margin-right: 2px;
|
||||
"
|
||||
></div>
|
||||
<div class="fir">关卡说明:</div>
|
||||
<div class="input">
|
||||
<a-textarea
|
||||
@@ -822,7 +829,7 @@ export default {
|
||||
|
||||
//新建关卡
|
||||
const editChapter = () => {
|
||||
if(!state.value1) return message.warning("请输入关卡名称");
|
||||
if (!state.value1) return message.warning("请输入关卡名称");
|
||||
let obj = {
|
||||
name: state.value1,
|
||||
remark: state.value2,
|
||||
@@ -845,25 +852,25 @@ export default {
|
||||
.catch((err) => {
|
||||
console.log("创建失败", err);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
//编辑关卡
|
||||
const updateChapter = () => {
|
||||
let obj = {
|
||||
chapterId: state.updateChapterID,
|
||||
name: "",
|
||||
remark:"",
|
||||
remark: "",
|
||||
routerId: 0,
|
||||
};
|
||||
api
|
||||
.updateChapter(obj)
|
||||
.then((res) => {
|
||||
console.log("修改成功",res);
|
||||
console.log("修改成功", res);
|
||||
message.success("修改成功");
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("修改失败",err);
|
||||
})
|
||||
console.log("修改失败", err);
|
||||
});
|
||||
};
|
||||
const showDrawer = () => {
|
||||
state.visible = true;
|
||||
@@ -993,9 +1000,14 @@ export default {
|
||||
<span style="color:#4EA6FF;margin-right:25px;cursor:pointer">
|
||||
编辑
|
||||
</span>
|
||||
<span style="color:#4EA6FF;cursor:pointer" onClick={() => {
|
||||
updateChapter();
|
||||
}}>删除</span>
|
||||
<span
|
||||
style="color:#4EA6FF;cursor:pointer"
|
||||
onClick={() => {
|
||||
updateChapter();
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
@@ -1352,9 +1364,9 @@ export default {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #409EFF;
|
||||
border: 1px solid #409eff;
|
||||
font-size: 14px;
|
||||
color: #409EFF;
|
||||
color: #409eff;
|
||||
cursor: pointer;
|
||||
background: #ffffff;
|
||||
margin-right: 20px;
|
||||
@@ -1367,7 +1379,7 @@ export default {
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
background: #409EFF;
|
||||
background: #409eff;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1389,7 +1401,7 @@ export default {
|
||||
.drawerMain {
|
||||
min-width: 600px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
overflow-x: scroll;
|
||||
overflow-x: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.header {
|
||||
|
||||
Reference in New Issue
Block a user